[Xapian-discuss] Failure compiling 1.0.19 on OSX 10.5.8

Zach Dennis zach.dennis at gmail.com
Fri Apr 16 20:49:44 BST 2010


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)


More information about the Xapian-discuss mailing list