[MacPorts] #21020: xapian-core-1.0.9 Fails to build on Snow Leopard

MacPorts noreply at macports.org
Wed Sep 2 03:48:00 PDT 2009


#21020: xapian-core-1.0.9 Fails to build on Snow Leopard
-----------------------------------+----------------------------------------
 Reporter:  jfahrenkrug@…          |       Owner:  macports-tickets@…                   
     Type:  defect                 |      Status:  new                                  
 Priority:  Normal                 |   Milestone:                                       
Component:  ports                  |     Version:  1.8.0                                
 Keywords:  xapian snow leopard    |        Port:  xapian-core                          
-----------------------------------+----------------------------------------
 xapian-core version 1.0.9 fails to build on snow leopard. Pulling the
 1.0.15 source from xapian.org also fails to build on SL with the same
 error.

 {{{
 Error: Target org.macports.build returned: shell command " cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_devel_xapian-core/work/xapian-core-1.0.9" &&
 /usr/bin/make -j2 all " returned error 2
 Command output:  /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I./common
 -I./include -I/opt/local/include -Wall -W -Wredundant-decls -Wpointer-
 arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-
 keywords -Wundef -Wshadow -Winit-self -Wstrict-overflow=1
 -fvisibility=hidden -O2 -arch x86_64 -MT backends/flint/flint_check.lo -MD
 -MP -MF backends/flint/.deps/flint_check.Tpo -c
 backends/flint/flint_check.cc  -fno-common -DPIC -o
 backends/flint/.libs/flint_check.o
  /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I./common -I./include
 -I/opt/local/include -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-
 qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-keywords
 -Wundef -Wshadow -Winit-self -Wstrict-overflow=1 -fvisibility=hidden -O2
 -arch x86_64 -MT backends/quartz/btreecheck.lo -MD -MP -MF
 backends/quartz/.deps/btreecheck.Tpo -c backends/quartz/btreecheck.cc -o
 backends/quartz/btreecheck.o >/dev/null 2>&1
  /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I./common -I./include
 -I/opt/local/include -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-
 qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-keywords
 -Wundef -Wshadow -Winit-self -Wstrict-overflow=1 -fvisibility=hidden -O2
 -arch x86_64 -MT backends/flint/flint_check.lo -MD -MP -MF
 backends/flint/.deps/flint_check.Tpo -c backends/flint/flint_check.cc -o
 backends/flint/flint_check.o >/dev/null 2>&1
 depbase=`echo common/getopt.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
         /bin/sh ./libtool  --tag=CXX   --mode=compile /usr/bin/g++-4.2
 -DHAVE_CONFIG_H -I. -I./common -I./include    -I/opt/local/include -Wall
 -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-
 long -Wformat-security -fno-gnu-keywords -Wundef -Wshadow -Winit-self
 -Wstrict-overflow=1 -fvisibility=hidden -O2 -arch x86_64 -MT
 common/getopt.lo -MD -MP -MF $depbase.Tpo -c -o common/getopt.lo
 common/getopt.cc &&\
         mv -f $depbase.Tpo $depbase.Plo
 depbase=`echo api/editdistance.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
         /bin/sh ./libtool  --tag=CXX   --mode=compile /usr/bin/g++-4.2
 -DHAVE_CONFIG_H -I. -I./common -I./include    -I/opt/local/include -Wall
 -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-
 long -Wformat-security -fno-gnu-keywords -Wundef -Wshadow -Winit-self
 -Wstrict-overflow=1 -fvisibility=hidden -O2 -arch x86_64 -MT
 api/editdistance.lo -MD -MP -MF $depbase.Tpo -c -o api/editdistance.lo
 api/editdistance.cc &&\
         mv -f $depbase.Tpo $depbase.Plo
 mkdir common/.libs
  /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I./common -I./include
 -I/opt/local/include -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-
 qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-keywords
 -Wundef -Wshadow -Winit-self -Wstrict-overflow=1 -fvisibility=hidden -O2
 -arch x86_64 -MT common/getopt.lo -MD -MP -MF common/.deps/getopt.Tpo -c
 common/getopt.cc  -fno-common -DPIC -o common/.libs/getopt.o
 In file included from /usr/include/c++/4.2.1/i686-apple-
 darwin10/x86_64/bits/os_defines.h:61,
                  from /usr/include/c++/4.2.1/i686-apple-
 darwin10/x86_64/bits/c++config.h:41,
                  from /usr/include/c++/4.2.1/cstring:50,
                  from common/getopt.cc:164:
 common/getopt.cc:84: error: previous declaration of 'char* optarg' with
 'C++' linkage
 /usr/include/unistd.h:515: error: conflicts with new declaration with 'C'
 linkage
 common/getopt.cc:99: error: previous declaration of 'int optind' with
 'C++' linkage
 /usr/include/unistd.h:516: error: conflicts with new declaration with 'C'
 linkage
 common/getopt.cc:119: error: previous declaration of 'int opterr' with
 'C++' linkage
 /usr/include/unistd.h:516: error: conflicts with new declaration with 'C'
 linkage
 common/getopt.cc:125: error: previous declaration of 'int optopt' with
 'C++' linkage
 /usr/include/unistd.h:516: error: conflicts with new declaration with 'C'
 linkage
 make[2]: *** [common/getopt.lo] Error 1
 make[2]: *** Waiting for unfinished jobs....
 mkdir api/.libs
  /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I./common -I./include
 -I/opt/local/include -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-
 qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-keywords
 -Wundef -Wshadow -Winit-self -Wstrict-overflow=1 -fvisibility=hidden -O2
 -arch x86_64 -MT api/editdistance.lo -MD -MP -MF
 api/.deps/editdistance.Tpo -c api/editdistance.cc  -fno-common -DPIC -o
 api/.libs/editdistance.o
  /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I./common -I./include
 -I/opt/local/include -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-
 qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-keywords
 -Wundef -Wshadow -Winit-self -Wstrict-overflow=1 -fvisibility=hidden -O2
 -arch x86_64 -MT api/editdistance.lo -MD -MP -MF
 api/.deps/editdistance.Tpo -c api/editdistance.cc -o api/editdistance.o
 >/dev/null 2>&1
 make[1]: *** [all-recursive] Error 1
 make: *** [all] Error 2

 Error: Status 1 encountered during processing.

 }}}

-- 
Ticket URL: <http://trac.macports.org/ticket/21020>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list