I've having trouble downloading and compiling Xapian 1.0.19 on OSX 10.5.8. Does the below error look at all familiar to anyone? creating bin/quartzcheck g++ -DHAVE_CONFIG_H -I. -I./common -I./include -I./backends/quartz -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-keywords -Woverloaded-virtual -Wundef -Wshadow -Wstrict-null-sentinel -fvisibility=hidden -g -O2 -MT bin/bin_quartzcompact-quartzcompact.o -MD -MP -MF bin/.deps/bin_quartzcompact-quartzcompact.Tpo -c -o bin/bin_quartzcompact-quartzcompact.o `test -f 'bin/quartzcompact.cc' || echo './'`bin/quartzcompact.cc ./common/gnu_getopt.h:71: error: ?optarg? is already declared in this scope ./common/gnu_getopt.h:72: error: ?optind? is already declared in this scope ./common/gnu_getopt.h:73: error: ?opterr? is already declared in this scope ./common/gnu_getopt.h:74: error: ?optopt? is already declared in this scope make[2]: *** [bin/bin_quartzcompact-quartzcompact.o] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Thanks, -- Zach Dennis http://www.continuousthinking.com (personal) http://www.mutuallyhuman.com (hire me) http://ideafoundry.info/behavior-driven-development (first rate BDD training) @zachdennis (twitter)
On Fri, Apr 16, 2010 at 03:49:44PM -0400, Zach Dennis wrote:> I've having trouble downloading and compiling Xapian 1.0.19 on OSX 10.5.8. > [...] > ./common/gnu_getopt.h:71: error: ?optarg? is already declared in this scopeSorry about that - my getopt change in 1.0.19 breaks compilation on a number of platforms. I really should have tested it more widely. I've added a patch here which should fix it: http://trac.xapian.org/wiki/ReleaseNotes/1.0.19 Omega suffers from the same issue, and the same patch should fix it there too. Cheers, Olly
Apparently Analagous Threads
- Re: [Xapian-commits] 7603: trunk/xapian-core/trunk/xapian-core/backends/flint/ trunk/xapian-core/backends/quartz/
- Re: [Xapian-commits] 7603: trunk/xapian-core/ trunk/xapian-core/backends/flint/ trunk/xapian-core/backends/quartz/
- gnu_getopt.h / errors Interix 3.5 / xapian-core-1.2.21 / Eric Lindblad
- build error : xapian-core-0.9.4_svn6707
- [PATCH] pygrub: Add option to list grub entries