Opened 15 years ago
Closed 15 years ago
#21020 closed defect (fixed)
xapian-core-1.0.9 Fails to build on Snow Leopard
Reported by: | jfahrenkrug@… | Owned by: | m@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.0 |
Keywords: | xapian snowleopard | Cc: | jfahrenkrug@… |
Port: | xapian-core |
Description
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.
Change History (5)
comment:1 Changed 15 years ago by jfahrenkrug@…
Cc: | jfahrenkrug@… added |
---|
comment:2 Changed 15 years ago by jfahrenkrug@…
Please see this message: http://trac.xapian.org/ticket/396
comment:3 Changed 15 years ago by nerdling (Jeremy Lavergne)
Keywords: | snowleopard added; snow leopard removed |
---|
This port should likely be updated, either to a new version or to include the patch.
comment:4 Changed 15 years ago by nerdling (Jeremy Lavergne)
Owner: | changed from macports-tickets@… to m@… |
---|
comment:5 Changed 15 years ago by tobypeterson
Resolution: | → fixed |
---|---|
Status: | new → closed |
r56964, port is still out of date though
Note: See
TracTickets for help on using
tickets.
Cc Me!