[Xapian-tickets] [Xapian] #469: r14327 breaks build on OpenSolaris

Xapian nobody at xapian.org
Mon Apr 26 06:47:32 BST 2010


#469: r14327 breaks build on OpenSolaris
-------------------------+--------------------------------------------------
 Reporter:  wereHamster  |       Owner:  olly 
     Type:  defect       |      Status:  new  
 Priority:  normal       |   Milestone:       
Component:  Other        |     Version:  1.1.5
 Severity:  normal       |    Keywords:       
Blockedby:               |    Platform:  All  
 Blocking:               |  
-------------------------+--------------------------------------------------
 {{{
 depbase=`echo common/getopt.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
         /bin/sh ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
 -I. -I./common -I./include    -Wall -W -Wredundant-decls -Wpointer-arith
 -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-
 keywords -Wundef -Wshadow -Woverloaded-virtual -Wstrict-null-sentinel
 -Wshadow -Wstrict-overflow=1 -Winit-self -Wlogical-op -Wmissing-
 declarations -fvisibility=hidden -m64 -MT common/getopt.lo -MD -MP -MF
 $depbase.Tpo -c -o common/getopt.lo common/getopt.cc &&\
         mv -f $depbase.Tpo $depbase.Plo
 libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./common -I./include -Wall -W
 -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long
 -Wformat-security -fno-gnu-keywords -Wundef -Wshadow -Woverloaded-virtual
 -Wstrict-null-sentinel -Wshadow -Wstrict-overflow=1 -Winit-self -Wlogical-
 op -Wmissing-declarations -fvisibility=hidden -m64 -MT common/getopt.lo
 -MD -MP -MF common/.deps/getopt.Tpo -c common/getopt.cc  -fPIC -DPIC -o
 common/.libs/getopt.o
 In file included from /usr/lib/gcc/i386-pc-
 solaris2.11/4.5.0/../../../../include/c++/4.5.0/cstdlib:68:0,
                  from common/getopt.cc:165:
 common/getopt.cc:79:7: error: previous declaration of 'char*
 Xapian::Internal::optarg' with 'C++' linkage
 /usr/include/stdlib.h:226:14: error: conflicts with new declaration with
 'C' linkage
 common/getopt.cc:94:5: error: previous declaration of 'int
 Xapian::Internal::optind' with 'C++' linkage
 /usr/include/stdlib.h:227:12: error: conflicts with new declaration with
 'C' linkage
 common/getopt.cc:114:5: error: previous declaration of 'int
 Xapian::Internal::opterr' with 'C++' linkage
 /usr/include/stdlib.h:227:20: error: conflicts with new declaration with
 'C' linkage
 common/getopt.cc:120:5: error: previous declaration of 'int
 Xapian::Internal::optopt' with 'C++' linkage
 /usr/include/stdlib.h:227:28: error: conflicts with new declaration with
 'C' linkage
 gmake[2]: *** [common/getopt.lo] Error 1
 gmake[2]: Leaving directory `/export/home/tomc/ospkg/tmp/xapian-
 core-1.1.5'
 gmake[1]: *** [all-recursive] Error 1
 gmake[1]: Leaving directory `/export/home/tomc/ospkg/tmp/xapian-
 core-1.1.5'
 gmake: *** [all] Error 2
 [ scotch ] ospkg (master) - /tmp/xapian-core-1.1.5/ $
 }}}

 Commenting out the block which defines optXXX to Xapian::Internal::optXXX
 see allows xapian to build again.

-- 
Ticket URL: <http://trac.xapian.org/ticket/469>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list