#27978: gperf build error ---------------------------------+------------------------------------------ Reporter: hongyi444@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: ---------------------------------+------------------------------------------ {{{ ---> Fetching gperf ---> Attempting to fetch gperf-3.0.4.tar.gz from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/gperf ---> Verifying checksum(s) for gperf ---> Extracting gperf ---> Configuring gperf ---> Building gperf Error: Target org.macports.build returned: shell command failed (see log for details) Error: Failed to install gperf Log for gperf is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/main.log Error: The following dependencies were not installed: apr-util libiconv gperf sqlite3 ncurses ncursesw readline cyrus-sasl2 openssl zlib gettext neon serf Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets> }}} main.log {{{ version:1 :debug:clean Attempting ln -sf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gperf/work :debug:main Executing org.macports.main (gperf) :msg:main ---> Fetching gperf :debug:fetch fetch phase started at Sat Jan 15 14:54:53 CST 2011 :debug:fetch Executing org.macports.fetch (gperf) :info:fetch ---> gperf-3.0.4.tar.gz doesn't seem to exist in /opt/local/var/macports/distfiles/gperf :debug:fetch Pinging mirrors.ibiblio.org... :debug:fetch Pinging mirrors.kernel.org... :debug:fetch Pinging www.mirrorservice.org... :debug:fetch Pinging mirror.facebook.net... :debug:fetch Pinging ftp.funet.fi... :debug:fetch Pinging ftp.kddlabs.co.jp... :debug:fetch Pinging ftp.dti.ad.jp... :debug:fetch Pinging ftp.informatik.hu-berlin.de... :debug:fetch Pinging ftp.lip6.fr... :debug:fetch Pinging ftp.chg.ru... :debug:fetch Pinging mirror.internode.on.net... :debug:fetch Pinging mirror.aarnet.edu.au... :debug:fetch Pinging ftp.gnu.org... :debug:fetch Pinging distfiles.macports.org... :debug:fetch Pinging aarnet.au.distfiles.macports.org... :debug:fetch Pinging cjj.kr.distfiles.macports.org... :debug:fetch Pinging lil.fr.distfiles.macports.org... :debug:fetch Pinging sea.us.distfiles.macports.org... :debug:fetch Pinging ykf.ca.distfiles.macports.org... :debug:fetch mirrors.ibiblio.org ping time is 48.810 :debug:fetch mirrors.kernel.org ping time is 67.764 :debug:fetch www.mirrorservice.org ping time is 142.986 :debug:fetch mirror.facebook.net ping time is 79.710 :debug:fetch ftp.funet.fi ping time is 148.041 :debug:fetch ftp.kddlabs.co.jp ping time is 10000 :debug:fetch ftp.dti.ad.jp ping time is 152.722 :debug:fetch ftp.informatik.hu-berlin.de ping time is 10000 :debug:fetch ftp.lip6.fr ping time is 145.527 :debug:fetch ftp.chg.ru ping time is 182.764 :debug:fetch mirror.internode.on.net ping time is 258.839 :debug:fetch mirror.aarnet.edu.au ping time is 211.121 :debug:fetch ftp.gnu.org ping time is 10000 :debug:fetch distfiles.macports.org ping time is 68.492 :debug:fetch aarnet.au.distfiles.macports.org ping time is 211.178 :debug:fetch cjj.kr.distfiles.macports.org ping time is 10000 :debug:fetch lil.fr.distfiles.macports.org ping time is 124.083 :debug:fetch sea.us.distfiles.macports.org ping time is 10000 :debug:fetch ykf.ca.distfiles.macports.org ping time is 38.186 :msg:fetch ---> Attempting to fetch gperf-3.0.4.tar.gz from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/gperf :msg:fetch ---> Verifying checksum(s) for gperf :debug:checksum checksum phase started at Sat Jan 15 14:54:57 CST 2011 :debug:checksum Executing org.macports.checksum (gperf) :info:checksum ---> Checksumming gperf-3.0.4.tar.gz :debug:checksum Correct (md5) checksum for gperf-3.0.4.tar.gz :debug:checksum Correct (sha1) checksum for gperf-3.0.4.tar.gz :debug:checksum Correct (rmd160) checksum for gperf-3.0.4.tar.gz :msg:checksum ---> Extracting gperf :debug:extract extract phase started at Sat Jan 15 14:54:57 CST 2011 :debug:extract Executing org.macports.extract (gperf) :info:extract ---> Extracting gperf-3.0.4.tar.gz :debug:extract setting option extract.args to '/opt/local/var/macports/distfiles/gperf/gperf-3.0.4.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_devel_gperf/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.6' :debug:extract Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/gperf/gperf-3.0.4.tar.gz' | /usr/bin/gnutar --no-same-owner -xf -' :debug:patch patch phase started at Sat Jan 15 14:54:57 CST 2011 :debug:patch Executing org.macports.patch (gperf) :msg:patch ---> Configuring gperf :debug:patch Using compiler 'Mac OS X gcc 4.2' :debug:configure configure phase started at Sat Jan 15 14:54:57 CST 2011 :debug:configure Executing org.macports.configure (gperf) :debug:configure Environment: CPATH='/opt/local/include' CFLAGS='-pipe -O2 -arch x86_64' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-pipe -O2 -arch x86_64' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.6' CXX='/usr/bin/g++-4.2' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work/.CC_PRINT_OPTIONS' F90FLAGS='-pipe -O2 -m64' LDFLAGS='-L/opt/local/lib -arch x86_64' OBJC='/usr/bin/gcc-4.2' FCFLAGS='-pipe -O2 -m64' INSTALL='/usr/bin/install -c' OBJCFLAGS='-pipe -O2 -arch x86_64' FFLAGS='-pipe -O2 -m64' CC_PRINT_OPTIONS='YES' CC='/usr/bin/gcc-4.2' :debug:configure Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work/gperf-3.0.4" && ./configure --prefix=/opt/local --infodir=/opt/local/share/info' :info:configure checking whether make sets $(MAKE)... yes :info:configure configure: creating ./config.status :info:configure config.status: creating Makefile :info:configure === configuring in lib (/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work/gperf-3.0.4/lib) :info:configure configure: running /bin/sh ./configure '-- prefix=/opt/local' '--infodir=/opt/local/share/info' --cache- file=/dev/null --srcdir=. :info:configure checking whether make sets $(MAKE)... yes :info:configure checking for gcc... /usr/bin/gcc-4.2 :info:configure checking for C compiler default output file name... a.out :info:configure checking whether the C compiler works... yes :info:configure checking whether we are cross compiling... no :info:configure checking for suffix of executables... :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.2 accepts -g... yes :info:configure checking for /usr/bin/gcc-4.2 option to accept ISO C89... none needed :info:configure checking how to run the C preprocessor... /usr/bin/gcc-4.2 -E :info:configure checking whether we are using the GNU C++ compiler... yes :info:configure checking whether /usr/bin/g++-4.2 accepts -g... yes :info:configure checking how to run the C++ preprocessor... /usr/bin/g++-4.2 -E :info:configure checking for ranlib... ranlib :info:configure checking for a BSD compatible install... /usr/bin/install -c :info:configure configure: creating ./config.status :info:configure config.status: creating Makefile :info:configure === configuring in src (/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work/gperf-3.0.4/src) :info:configure configure: running /bin/sh ./configure '-- prefix=/opt/local' '--infodir=/opt/local/share/info' --cache- file=/dev/null --srcdir=. :info:configure checking whether make sets $(MAKE)... yes :info:configure checking for gcc... /usr/bin/gcc-4.2 :info:configure checking for C compiler default output file name... a.out :info:configure checking whether the C compiler works... yes :info:configure checking whether we are cross compiling... no :info:configure checking for suffix of executables... :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.2 accepts -g... yes :info:configure checking for /usr/bin/gcc-4.2 option to accept ISO C89... none needed :info:configure checking how to run the C preprocessor... /usr/bin/gcc-4.2 -E :info:configure checking whether we are using the GNU C++ compiler... yes :info:configure checking whether /usr/bin/g++-4.2 accepts -g... yes :info:configure checking how to run the C++ preprocessor... /usr/bin/g++-4.2 -E :info:configure checking for a BSD compatible install... /usr/bin/install -c :info:configure checking for stack-allocated variable-size arrays... yes :info:configure checking for rand in -lm... yes :info:configure configure: creating ./config.status :info:configure config.status: creating Makefile :info:configure config.status: creating config.h :info:configure === configuring in tests (/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work/gperf-3.0.4/tests) :info:configure configure: running /bin/sh ./configure '-- prefix=/opt/local' '--infodir=/opt/local/share/info' --cache- file=/dev/null --srcdir=. :info:configure checking whether make sets $(MAKE)... yes :info:configure checking for gcc... /usr/bin/gcc-4.2 :info:configure checking for C compiler default output file name... a.out :info:configure checking whether the C compiler works... yes :info:configure checking whether we are cross compiling... no :info:configure checking for suffix of executables... :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.2 accepts -g... yes :info:configure checking for /usr/bin/gcc-4.2 option to accept ISO C89... none needed :info:configure checking how to run the C preprocessor... /usr/bin/gcc-4.2 -E :info:configure checking whether we are using the GNU C++ compiler... yes :info:configure checking whether /usr/bin/g++-4.2 accepts -g... yes :info:configure checking how to run the C++ preprocessor... /usr/bin/g++-4.2 -E :info:configure configure: creating ./config.status :info:configure config.status: creating Makefile :info:configure === configuring in doc (/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work/gperf-3.0.4/doc) :info:configure configure: running /bin/sh ./configure '-- prefix=/opt/local' '--infodir=/opt/local/share/info' --cache- file=/dev/null --srcdir=. :info:configure checking whether make sets $(MAKE)... yes :info:configure checking for a BSD compatible install... /usr/bin/install -c :info:configure configure: creating ./config.status :info:configure config.status: creating Makefile :msg:configure ---> Building gperf :debug:build build phase started at Sat Jan 15 14:55:01 CST 2011 :debug:build Executing org.macports.build (gperf) :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_devel_gperf/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.6' :debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work/gperf-3.0.4" && /usr/bin/make -j4 all' :info:build cd lib; /usr/bin/make all :info:build /usr/bin/gcc-4.2 -pipe -O2 -arch x86_64 -I. -c ./getopt.c :info:build /usr/bin/gcc-4.2 -pipe -O2 -arch x86_64 -I. -c ./getopt1.c :info:build /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -I. -c ./getline.cc :info:build /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -I. -c ./hash.cc :info:build ./getopt.c: In function '_getopt_internal': :info:build ./getopt.c:646: warning: incompatible implicit declaration of built-in function 'strlen' :info:build ./getopt.c:670: warning: incompatible implicit declaration of built-in function 'strlen' :info:build ./getopt.c:700: warning: incompatible implicit declaration of built-in function 'strlen' :info:build ./getopt.c:716: warning: incompatible implicit declaration of built-in function 'strlen' :info:build ./getopt.c:721: warning: incompatible implicit declaration of built-in function 'strlen' :info:build ./getopt.c:832: warning: incompatible implicit declaration of built-in function 'strlen' :info:build ./getopt.c:855: warning: incompatible implicit declaration of built-in function 'strlen' :info:build ./getopt.c:875: warning: incompatible implicit declaration of built-in function 'strlen' :info:build ./getopt.c:889: warning: incompatible implicit declaration of built-in function 'strlen' :info:build ./getopt.c:893: warning: incompatible implicit declaration of built-in function 'strlen' :info:build rm -f libgp.a :info:build ar rc libgp.a getopt.o getopt1.o getline.o hash.o :info:build ranlib libgp.a :info:build cd src; /usr/bin/make all :info:build /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -I. -I./../lib -c ./version.cc :info:build /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -I. -I./../lib -c ./positions.cc :info:build /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -I. -I./../lib -c ./options.cc :info:build /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -I. -I./../lib -c ./keyword.cc :info:build /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -I. -I./../lib -c ./keyword-list.cc :info:build /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -I. -I./../lib -c ./input.cc :info:build /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -I. -I./../lib -c ./bool-array.cc :info:build /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -I. -I./../lib -c ./hash-table.cc :info:build /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -I. -I./../lib -c ./search.cc :info:build /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -I. -I./../lib -c ./output.cc :info:build ./output.cc: In member function 'void Output::output_lookup_array() const': :info:build ./output.cc:1304: warning: format '%d' expects type 'int', but argument 3 has type 'long int' :info:build /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -I. -I./../lib -c ./main.cc :info:build /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -L/opt/local/lib -arch x86_64 -o gperf version.o positions.o options.o keyword.o keyword-list.o input.o bool-array.o hash-table.o search.o output.o main.o ../lib/libgp.a -lm :info:build ld: warning: in ../lib/libgp.a, file was built for unsupported file format which is not the architecture being linked (x86_64) :info:build Undefined symbols: :info:build "hashpjw(unsigned char const*, unsigned int)", referenced from: :info:build Hash_Table::insert(KeywordExt*) in hash-table.o :info:build "get_delim(char**, unsigned long*, int, __sFILE*)", referenced from: :info:build Input::read_input() in input.o :info:build ld: symbol(s) not found :info:build collect2: ld returned 1 exit status :info:build make[1]: *** [gperf] Error 1 :info:build make: *** [all] Error 2 :info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work/gperf-3.0.4" && /usr/bin/make -j4 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 gperf): org.macports.activate org.macports.build org.macports.destroot org.macports.install :error:build Failed to install gperf :notice:build Log for gperf is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/main.log }}} -- Ticket URL: <https://trac.macports.org/ticket/27978> MacPorts <http://www.macports.org/> Ports system for Mac OS