Opened 13 years ago

Closed 13 years ago

#30528 closed defect (duplicate)

libtorrent @ 0.12.9_0: error: 'posix_memalign' was not declared in this scope

Reported by: macdork@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.0
Keywords: Cc: gardnermj@…
Port: libtorrent

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I'm trying to upgrade libtorrent on a PowerMac G5 running 10.5, and I get:

Error: Target org.macports.build returned: shell command failed (see log for details)
Log for libtorrent is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libtorrent/libtorrent/main.log

The contents of the log file are:

version:1
:msg:main --->  Computing dependencies for libtorrent:info:main .:debug:main Checking for conflicts against libtorrent
:debug:main Searching for dependency: libtorrent-devel
:debug:main Didn't find receipt, going to depspec regex for: libtorrent-devel
:debug:main Searching for dependency: zlib
:debug:main Found Dependency: receipt exists for zlib
:debug:main Searching for dependency: pkgconfig
:debug:main Found Dependency: receipt exists for pkgconfig
:debug:main Searching for dependency: openssl
:debug:main Found Dependency: receipt exists for openssl
:debug:main Searching for dependency: libsigcxx2
:debug:main Found Dependency: receipt exists for libsigcxx2
:msg:main
:debug:main Executing org.macports.main (libtorrent)
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 503
:debug:main euid changed to: 508
:debug:archivefetch archivefetch phase started at Mon Aug  1 17:12:47 EDT 2011
:msg:archivefetch --->  Fetching archive for libtorrent
:debug:archivefetch Executing org.macports.archivefetch (libtorrent)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/software/libtorrent to macports
:debug:archivefetch euid/egid changed to: 508/503
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 508/503
:info:archivefetch --->  libtorrent-0.12.9_0.darwin_9.ppc.tgz doesn't seem to exist in /opt/local/var/macports/software/libtorrent
:msg:archivefetch --->  Attempting to fetch libtorrent-0.12.9_0.darwin_9.ppc.tgz from http://packages.macports.org/libtorrent
:debug:archivefetch Fetching archive failed:: The requested URL returned error: 404
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:fetch fetch phase started at Mon Aug  1 17:12:48 EDT 2011
:notice:fetch --->  Fetching libtorrent
:debug:fetch euid/egid changed to: 0/0
:debug:fetch chowned /opt/local/var/macports/distfiles/libtorrent to macports
:debug:fetch euid/egid changed to: 508/503
:debug:fetch Executing org.macports.fetch (libtorrent)
:debug:fetch Privilege de-escalation not attempted as not running as root.
:debug:checksum checksum phase started at Mon Aug  1 17:12:48 EDT 2011
:notice:checksum --->  Verifying checksum(s) for libtorrent
:debug:checksum Executing org.macports.checksum (libtorrent)
:info:checksum --->  Checksumming libtorrent-0.12.9.tar.gz
:debug:checksum Correct (sha1) checksum for libtorrent-0.12.9.tar.gz
:debug:checksum Correct (rmd160) checksum for libtorrent-0.12.9.tar.gz
:debug:checksum Privilege de-escalation not attempted as not running as root.
:debug:extract extract phase started at Mon Aug  1 17:12:48 EDT 2011
:notice:extract --->  Extracting libtorrent
:debug:extract Executing org.macports.extract (libtorrent)
:info:extract --->  Extracting libtorrent-0.12.9.tar.gz
:debug:extract setting option extract.args to '/opt/local/var/macports/distfiles/libtorrent/libtorrent-0.12.9.tar.gz'
:debug:extract Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libtorrent/lib
torrent/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.5'
:debug:extract Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libtorrent/libtorrent/work" && /usr/bin/gzip -dc '/op
t/local/var/macports/distfiles/libtorrent/libtorrent-0.12.9.tar.gz' | /usr/bin/gnutar --no-same-owner -xf -'
:debug:extract Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libtorrent/libtorrent/work" && /usr/bin/gzip -dc
 '/opt/local/var/macports/distfiles/libtorrent/libtorrent-0.12.9.tar.gz' | /usr/bin/gnutar --no-same-owner -xf -
:debug:extract euid/egid changed to: 0/0
:debug:extract chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libtorrent/libtorrent/work to macports
:debug:extract euid/egid changed to: 508/503
:debug:extract Privilege de-escalation not attempted as not running as root.
:debug:patch patch phase started at Mon Aug  1 17:12:48 EDT 2011
:debug:patch Executing org.macports.patch (libtorrent)
:debug:patch Privilege de-escalation not attempted as not running as root.
:debug:configure configure phase started at Mon Aug  1 17:12:48 EDT 2011
:notice:configure --->  Configuring libtorrent
:debug:configure Using compiler 'Mac OS X gcc 4.0'
:debug:configure Executing org.macports.configure (libtorrent)
:debug:configure Environment: CPATH='/opt/local/include' CFLAGS='-pipe -O2 -arch ppc' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-pipe -O2 -arch ppc' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLO
YMENT_TARGET='10.5' CXX='/usr/bin/g++-4.0' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libtorrent/libtorrent/work
/.CC_PRINT_OPTIONS' F90FLAGS='-pipe -O2 -m32' LDFLAGS='-L/opt/local/lib -arch ppc' OBJC='/usr/bin/gcc-4.0' FCFLAGS='-pipe -O2 -m32' INSTALL='/usr/bin/install -c' OBJCFLAGS='-pipe -O2 -arch pp
c' FFLAGS='-pipe -O2 -m32' CC_PRINT_OPTIONS='YES' CC='/usr/bin/gcc-4.0'
:debug:configure Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libtorrent/libtorrent/work/libtorrent-0.12.9" && ./
configure --prefix=/opt/local --disable-debug --enable-ipv6 --with-kqueue'
:debug:configure Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libtorrent/libtorrent/work/libtorrent-0.12.9"
&& ./configure --prefix=/opt/local --disable-debug --enable-ipv6 --with-kqueue
:info:configure checking for a BSD-compatible install... /usr/bin/install -c
:info:configure checking whether build environment is sane... yes
:info:configure checking for a thread-safe mkdir -p... ./install-sh -c -d
:info:configure checking for gawk... no
:info:configure checking for mawk... no
:info:configure checking for nawk... no
:info:configure checking for awk... awk
:info:configure checking whether make sets $(MAKE)... yes
:info:configure checking for cppunit-config... /opt/local/bin/cppunit-config
:info:configure checking for Cppunit - version >= 1.9.6... 1.12.1
:info:configure checking build system type... powerpc-apple-darwin9.8.0
:info:configure checking host system type... powerpc-apple-darwin9.8.0
:info:configure checking how to print strings... printf
:info:configure checking for style of include used by make... GNU
:info:configure checking for gcc... /usr/bin/gcc-4.0
:info:configure checking whether the C compiler works... yes
:info:configure checking for C compiler default output file name... a.out
:info:configure checking for suffix of executables...
:info:configure checking whether we are cross compiling... no
:info:configure checking for suffix of object files... o
:info:configure checking whether we are using the GNU C compiler... yes
:info:configure checking whether /usr/bin/gcc-4.0 accepts -g... yes
:info:configure checking for /usr/bin/gcc-4.0 option to accept ISO C89... none needed
:info:configure checking dependency style of /usr/bin/gcc-4.0... gcc3
:info:configure checking for a sed that does not truncate output... /opt/local/bin/gsed
:info:configure checking for grep that handles long lines and -e... /opt/local/bin/grep
:info:configure checking for egrep... /opt/local/bin/grep -E
:info:configure checking for fgrep... /opt/local/bin/grep -F
:info:configure checking for ld used by /usr/bin/gcc-4.0... /usr/libexec/gcc/powerpc-apple-darwin9/4.0.1/ld
:info:configure checking if the linker (/usr/libexec/gcc/powerpc-apple-darwin9/4.0.1/ld) is GNU ld... no
:info:configure checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -p
:info:configure checking the name lister (/usr/bin/nm -p) interface... BSD nm
:info:configure checking whether ln -s works... yes
:info:configure checking the maximum length of command line arguments... 196608
:info:configure checking whether the shell understands some XSI constructs... yes
:info:configure checking whether the shell understands "+="... yes
:info:configure checking how to convert powerpc-apple-darwin9.8.0 file names to powerpc-apple-darwin9.8.0 format... func_convert_file_noop
:info:configure checking how to convert powerpc-apple-darwin9.8.0 file names to toolchain format... func_convert_file_noop
:info:configure checking for /usr/libexec/gcc/powerpc-apple-darwin9/4.0.1/ld option to reload object files... -r
:info:configure checking for objdump... no
:info:configure checking how to recognize dependent libraries... pass_all
:info:configure checking for dlltool... no
:info:configure checking how to associate runtime and link libraries... printf %s\n
:info:configure checking for ar... ar
:info:configure checking for archiver @FILE support... no
:info:configure checking for strip... strip
:info:configure checking for ranlib... ranlib
:info:configure checking command to parse /usr/bin/nm -p output from /usr/bin/gcc-4.0 object... ok
:info:configure checking for sysroot... no
:info:configure checking for mt... no
:info:configure checking if : is a manifest tool... no
:info:configure checking for dsymutil... dsymutil
:info:configure checking for nmedit... nmedit
:info:configure checking for lipo... lipo
:info:configure checking for otool... otool
:info:configure checking for otool64... otool64
:info:configure checking for -single_module linker flag... yes
:info:configure checking for -exported_symbols_list linker flag... yes
:info:configure checking for -force_load linker flag... no
:info:configure checking how to run the C preprocessor... /usr/bin/gcc-4.0 -E
:info:configure checking for ANSI C header files... yes
:info:configure checking for sys/types.h... yes
:info:configure checking for sys/stat.h... yes
:info:configure checking for stdlib.h... yes
:info:configure checking for string.h... yes
:info:configure checking for memory.h... yes
:info:configure checking for strings.h... yes
:info:configure checking for inttypes.h... yes
:info:configure checking for stdint.h... yes
:info:configure checking for unistd.h... yes
:info:configure checking for dlfcn.h... yes
:info:configure checking for objdir... .libs
:info:configure checking if /usr/bin/gcc-4.0 supports -fno-rtti -fno-exceptions... no
:info:configure checking for /usr/bin/gcc-4.0 option to produce PIC... -fno-common -DPIC
:info:configure checking if /usr/bin/gcc-4.0 PIC flag -fno-common -DPIC works... yes
:info:configure checking if /usr/bin/gcc-4.0 static flag -static works... no
:info:configure checking if /usr/bin/gcc-4.0 supports -c -o file.o... yes
:info:configure checking if /usr/bin/gcc-4.0 supports -c -o file.o... (cached) yes
:info:configure checking whether the /usr/bin/gcc-4.0 linker (/usr/libexec/gcc/powerpc-apple-darwin9/4.0.1/ld) supports shared libraries... yes
:info:configure checking dynamic linker characteristics... darwin9.8.0 dyld
:info:configure checking how to hardcode library paths into programs... immediate
:info:configure checking whether stripping libraries is possible... yes
:info:configure checking if libtool supports shared libraries... yes
:info:configure checking whether to build shared libraries... yes
:info:configure checking whether to build static libraries... no
:info:configure checking whether we are using the GNU C++ compiler... yes
:info:configure checking whether /usr/bin/g++-4.0 accepts -g... yes
:info:configure checking dependency style of /usr/bin/g++-4.0... gcc3
:info:configure checking how to run the C++ preprocessor... /usr/bin/g++-4.0 -E
:info:configure checking for ld used by /usr/bin/g++-4.0... /usr/libexec/gcc/powerpc-apple-darwin9/4.0.1/ld
:info:configure checking if the linker (/usr/libexec/gcc/powerpc-apple-darwin9/4.0.1/ld) is GNU ld... no
:info:configure checking whether the /usr/bin/g++-4.0 linker (/usr/libexec/gcc/powerpc-apple-darwin9/4.0.1/ld) supports shared libraries... yes
:info:configure checking for /usr/bin/g++-4.0 option to produce PIC... -fno-common -DPIC
:info:configure checking if /usr/bin/g++-4.0 PIC flag -fno-common -DPIC works... yes
:info:configure checking if /usr/bin/g++-4.0 static flag -static works... no
:info:configure checking if /usr/bin/g++-4.0 supports -c -o file.o... yes
:info:configure checking if /usr/bin/g++-4.0 supports -c -o file.o... (cached) yes
:info:configure checking whether the /usr/bin/g++-4.0 linker (/usr/libexec/gcc/powerpc-apple-darwin9/4.0.1/ld) supports shared libraries... yes
:info:configure checking dynamic linker characteristics... darwin9.8.0 dyld
:info:configure checking how to hardcode library paths into programs... immediate
:info:configure checking whether byte ordering is bigendian... yes
:info:configure checking the byte alignment... none needed
:info:configure checking for user-defined CXXFLAGS... user-defined "-pipe -O2 -arch ppc"
:info:configure checking for TR1 support... yes
:info:configure checking for special C compiler options needed for large files... no
:info:configure checking for _FILE_OFFSET_BITS value needed for large files... no
:info:configure checking for sysroot... no
:info:configure checking for kqueue support... yes
:info:configure checking whether kqueue supports pipes and ptys... no
:info:configure checking for epoll support... no
:info:configure checking for fallocate... no
:info:configure checking size of long... 4
:info:configure checking sys/vfs.h usability... no
:info:configure checking sys/vfs.h presence... no
:info:configure checking for sys/vfs.h... no
:info:configure checking sys/statvfs.h usability... yes
:info:configure checking sys/statvfs.h presence... yes
:info:configure checking for sys/statvfs.h... yes
:info:configure checking sys/statfs.h usability... no
:info:configure checking sys/statfs.h presence... no
:info:configure checking for sys/statfs.h... no
:info:configure checking for statvfs... ok
:info:configure checking if compiler supports __attribute__((visibility("default")))... yes
:info:configure checking for pkg-config... /opt/local/bin/pkg-config
:info:configure checking pkg-config is at least version 0.9.0... yes
:info:configure checking for OPENSSL... yes
:info:configure checking for STUFF... yes
:info:configure checking for posix_memalign... no
:info:configure checking for madvise... yes
:info:configure checking for cacheline... using default 128 bytes
:info:configure checking signedness of mincore parameter... signed
:info:configure checking for proper overloaded template function disambiguation... yes
:info:configure checking if compiler supports __attribute__((unused))... yes
:info:configure configure: creating ./config.status
:info:configure config.status: creating libtorrent.pc
:info:configure config.status: creating Makefile
:info:configure config.status: creating src/Makefile
:info:configure config.status: creating src/torrent/Makefile
:info:configure config.status: creating src/torrent/peer/Makefile
:info:configure config.status: creating src/torrent/data/Makefile
:info:configure config.status: creating src/torrent/download/Makefile
:info:configure config.status: creating src/torrent/utils/Makefile
:info:configure config.status: creating src/data/Makefile
:info:configure config.status: creating src/dht/Makefile
:info:configure config.status: creating src/download/Makefile
:info:configure config.status: creating src/net/Makefile
:info:configure config.status: creating src/protocol/Makefile
:info:configure config.status: creating src/tracker/Makefile
:info:configure config.status: creating src/utils/Makefile
:info:configure config.status: creating test/Makefile
:info:configure config.status: creating config.h
:info:configure config.status: executing depfiles commands
:info:configure config.status: executing libtool commands
:debug:configure Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Mon Aug  1 17:13:06 EDT 2011
:notice:build --->  Building libtorrent
:debug:build Executing org.macports.build (libtorrent)
:debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_ne
t_libtorrent/libtorrent/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.5'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libtorrent/libtorrent/work/libtorrent
-0.12.9" && /usr/bin/make -j2 -w all'
:debug:build Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libtorrent/libtorrent/work/libto
rrent-0.12.9" && /usr/bin/make -j2 -w all
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libtorrent/libtorrent/work/libtorren
t-0.12.9'
:info:build /usr/bin/make  all-recursive
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libtorrent/libtorrent/work/libtor
rent-0.12.9'
:info:build Making all in src
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libtorrent/libtorrent/work/libtor
rent-0.12.9/src'
:info:build Making all in torrent
:info:build make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libtorrent/libtorrent/work/libtor
rent-0.12.9/src/torrent'
:info:build Making all in data
:info:build make[4]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libtorrent/libtorrent/work/libtor
rent-0.12.9/src/torrent/data'
:info:build /bin/sh ../../../libtool --tag=CXX   --mode=compile /usr/bin/g++-4.0 -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../..  -I/opt/local/include  -pipe
-O2 -arch ppc -DNDEBUG -fvisibility=hidden -I/opt/local/include   -I/opt/local/include/sigc++-2.0 -I/opt/local/lib/sigc++-2.0/include   -MT block.lo -MD -MP -MF .deps/block.
Tpo -c -o block.lo block.cc
:info:build /bin/sh ../../../libtool --tag=CXX   --mode=compile /usr/bin/g++-4.0 -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../..  -I/opt/local/include  -pipe
-O2 -arch ppc -DNDEBUG -fvisibility=hidden -I/opt/local/include   -I/opt/local/include/sigc++-2.0 -I/opt/local/lib/sigc++-2.0/include   -MT block_list.lo -MD -MP -MF .deps/b
lock_list.Tpo -c -o block_list.lo block_list.cc
:info:build libtool: compile:  /usr/bin/g++-4.0 -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/local/include -pipe -O2 -arch ppc -DNDEBUG -fvisibility
=hidden -I/opt/local/include -I/opt/local/include/sigc++-2.0 -I/opt/local/lib/sigc++-2.0/include -MT block.lo -MD -MP -MF .deps/block.Tpo -c block.cc  -fno-common -DPIC -o .
libs/block.o
:info:build libtool: compile:  /usr/bin/g++-4.0 -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/local/include -pipe -O2 -arch ppc -DNDEBUG -fvisibility
=hidden -I/opt/local/include -I/opt/local/include/sigc++-2.0 -I/opt/local/lib/sigc++-2.0/include -MT block_list.lo -MD -MP -MF .deps/block_list.Tpo -c block_list.cc  -fno-co
mmon -DPIC -o .libs/block_list.o
:info:build mv -f .deps/block_list.Tpo .deps/block_list.Plo

:info:build Making all in src
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libtorrent/libtorrent/work/libtor
rent-0.12.9/src'
:info:build Making all in torrent
:info:build make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libtorrent/libtorrent/work/libtor
rent-0.12.9/src/torrent'
:info:build Making all in data
:info:build make[4]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libtorrent/libtorrent/work/libtor
rent-0.12.9/src/torrent/data'
:info:build /bin/sh ../../../libtool --tag=CXX   --mode=compile /usr/bin/g++-4.0 -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../..  -I/opt/local/include  -pipe
-O2 -arch ppc -DNDEBUG -fvisibility=hidden -I/opt/local/include   -I/opt/local/include/sigc++-2.0 -I/opt/local/lib/sigc++-2.0/include   -MT block.lo -MD -MP -MF .deps/block.
Tpo -c -o block.lo block.cc
:info:build /bin/sh ../../../libtool --tag=CXX   --mode=compile /usr/bin/g++-4.0 -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../..  -I/opt/local/include  -pipe
-O2 -arch ppc -DNDEBUG -fvisibility=hidden -I/opt/local/include   -I/opt/local/include/sigc++-2.0 -I/opt/local/lib/sigc++-2.0/include   -MT block_list.lo -MD -MP -MF .deps/b
lock_list.Tpo -c -o block_list.lo block_list.cc
:info:build libtool: compile:  /usr/bin/g++-4.0 -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/local/include -pipe -O2 -arch ppc -DNDEBUG -fvisibility
=hidden -I/opt/local/include -I/opt/local/include/sigc++-2.0 -I/opt/local/lib/sigc++-2.0/include -MT block.lo -MD -MP -MF .deps/block.Tpo -c block.cc  -fno-common -DPIC -o .
libs/block.o
:info:build libtool: compile:  /usr/bin/g++-4.0 -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/local/include -pipe -O2 -arch ppc -DNDEBUG -fvisibility
=hidden -I/opt/local/include -I/opt/local/include/sigc++-2.0 -I/opt/local/lib/sigc++-2.0/include -MT block_list.lo -MD -MP -MF .deps/block_list.Tpo -c block_list.cc  -fno-co
mmon -DPIC -o .libs/block_list.o
:info:build mv -f .deps/block_list.Tpo .deps/block_list.Plo
:info:build /bin/sh ../../../libtool --tag=CXX   --mode=compile /usr/bin/g++-4.0 -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../..  -I/opt/local/include  -pipe
-O2 -arch ppc -DNDEBUG -fvisibility=hidden -I/opt/local/include   -I/opt/local/include/sigc++-2.0 -I/opt/local/lib/sigc++-2.0/include   -MT chunk_utils.lo -MD -MP -MF .deps/
chunk_utils.Tpo -c -o chunk_utils.lo chunk_utils.cc
:info:build libtool: compile:  /usr/bin/g++-4.0 -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I/opt/local/include -pipe -O2 -arch ppc -DNDEBUG -fvisibility
=hidden -I/opt/local/include -I/opt/local/include/sigc++-2.0 -I/opt/local/lib/sigc++-2.0/include -MT chunk_utils.lo -MD -MP -MF .deps/chunk_utils.Tpo -c chunk_utils.cc  -fno
-common -DPIC -o .libs/chunk_utils.o
:info:build ../../../rak/allocators.h: In static member function 'static T* rak::cacheline_allocator<T>::alloc_size(size_t)':
:info:build ../../../rak/allocators.h:80: error: there are no arguments to 'posix_memalign' that depend on a template parameter, so a declaration of 'posix_memalign' must be
 available
:info:build ../../../rak/allocators.h:80: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
:info:build ../../../rak/allocators.h: In static member function 'static T* rak::cacheline_allocator<T>::alloc_size(size_t) [with T = rak::priority_item*]':
:info:build ../../../rak/allocators.h:76:   instantiated from 'T* rak::cacheline_allocator<T>::allocate(size_t, const void*) [with T = rak::priority_item*]'
:info:build /usr/include/c++/4.0.0/bits/stl_vector.h:117:   instantiated from '_Tp* std::_Vector_base<_Tp, _Alloc>::_M_allocate(size_t) [with _Tp = rak::priority_item*, _All
oc = rak::cacheline_allocator<rak::priority_item*>]'
:info:build /usr/include/c++/4.0.0/bits/vector.tcc:275:   instantiated from 'void std::vector<_Tp, _Alloc>::_M_insert_aux(__gnu_cxx::__normal_iterator<typename _Alloc::point
er, std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp = rak::priority_item*, _Alloc = rak::cacheline_allocator<rak::priority_item*>]'
:info:build /usr/include/c++/4.0.0/bits/stl_vector.h:610:   instantiated from 'void std::vector<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = rak::priority_item*, _Alloc =
 rak::cacheline_allocator<rak::priority_item*>]'
:info:build ../../../rak/priority_queue.h:77:   instantiated from 'void rak::priority_queue<Value, Compare, Equal, Alloc>::push(const typename std::vector<Value, Alloc>::val
ue_type&) [with Value = rak::priority_item*, Compare = rak::priority_compare, Equal = rak::priority_equal, Alloc = rak::cacheline_allocator<rak::priority_item*>]'
:info:build ../../../rak/priority_queue_default.h:116:   instantiated from here
:info:build ../../../rak/allocators.h:80: error: 'posix_memalign' was not declared in this scope
:info:build make[4]: *** [block.lo] Error 1
:info:build make[4]: *** Waiting for unfinished jobs....
:info:build ../../../rak/allocators.h: In static member function 'static T* rak::cacheline_allocator<T>::alloc_size(size_t)':
:info:build ../../../rak/allocators.h:80: error: there are no arguments to 'posix_memalign' that depend on a template parameter, so a declaration of 'posix_memalign' must be
 available
:info:build ../../../rak/allocators.h:80: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
:info:build ../../../rak/allocators.h: In static member function 'static T* rak::cacheline_allocator<T>::alloc_size(size_t) [with T = rak::priority_item*]':
:info:build ../../../rak/allocators.h:76:   instantiated from 'T* rak::cacheline_allocator<T>::allocate(size_t, const void*) [with T = rak::priority_item*]'
:info:build /usr/include/c++/4.0.0/bits/stl_vector.h:117:   instantiated from '_Tp* std::_Vector_base<_Tp, _Alloc>::_M_allocate(size_t) [with _Tp = rak::priority_item*, _All
oc = rak::cacheline_allocator<rak::priority_item*>]'
:info:build /usr/include/c++/4.0.0/bits/vector.tcc:275:   instantiated from 'void std::vector<_Tp, _Alloc>::_M_insert_aux(__gnu_cxx::__normal_iterator<typename _Alloc::point
er, std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp = rak::priority_item*, _Alloc = rak::cacheline_allocator<rak::priority_item*>]'
:info:build /usr/include/c++/4.0.0/bits/stl_vector.h:610:   instantiated from 'void std::vector<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = rak::priority_item*, _Alloc =
 rak::cacheline_allocator<rak::priority_item*>]'
:info:build ../../../rak/priority_queue.h:77:   instantiated from 'void rak::priority_queue<Value, Compare, Equal, Alloc>::push(const typename std::vector<Value, Alloc>::val
ue_type&) [with Value = rak::priority_item*, Compare = rak::priority_compare, Equal = rak::priority_equal, Alloc = rak::cacheline_allocator<rak::priority_item*>]'
:info:build ../../../rak/priority_queue_default.h:116:   instantiated from here
:info:build ../../../rak/allocators.h:80: error: 'posix_memalign' was not declared in this scope
:info:build make[4]: *** [chunk_utils.lo] Error 1
:info:build make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libtorrent/libtorrent/work/libtorr
ent-0.12.9/src/torrent/data'
:info:build make[3]: *** [all-recursive] Error 1
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libtorrent/libtorrent/work/libtorr
ent-0.12.9/src/torrent'
:info:build make[2]: *** [all-recursive] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libtorrent/libtorrent/work/libtorr
ent-0.12.9/src'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libtorrent/libtorrent/work/libtorr
ent-0.12.9'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libtorrent/libtorrent/work/libtorrent
-0.12.9'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libtorrent/libtorrent/work/libtorrent-0.12
.9" && /usr/bin/make -j2 -w all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for libtorrent): org.macports.install org.macports.build org.macports.destroot
:notice:build Log for libtorrent is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libtorrent/libtorrent/main.log

Change History (2)

comment:1 Changed 13 years ago by macdork@…

Cc: macdork@… added

Cc Me!

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: gardnermj@… added; macdork@… removed
Description: modified (diff)
Resolution: duplicate
Status: newclosed
Summary: libtorrent @ 0.12.9_0 Target org.macports.build returned: shell command failed (see log for details)libtorrent @ 0.12.9_0: error: 'posix_memalign' was not declared in this scope

Please use WikiFormatting and preview before submitting. As reporter you do not need to Cc yourself. However please do Cc the port's maintainer. Voluminous logs are best attached, not pasted. Finally, search for existing tickets before filing a new one. This is a duplicate of #27289.

Note: See TracTickets for help on using tickets.