[Xapian-tickets] [Xapian] #631: Doesn't build with Sun C++ since C++11 switch

Xapian nobody at xapian.org
Mon Jun 10 05:58:45 BST 2019


#631: Doesn't build with Sun C++ since C++11 switch
--------------------------+----------------------------
 Reporter:  dmichelsen    |             Owner:  olly
     Type:  defect        |            Status:  new
 Priority:  normal        |         Milestone:  1.4.x
Component:  Build system  |           Version:  1.3.1
 Severity:  normal        |        Resolution:
 Keywords:                |        Blocked By:
 Blocking:                |  Operating System:  Solaris
--------------------------+----------------------------

Comment (by olly):

 Opencsw now has 12.6, so I tried a build with that, and also one with GCC
 on Solaris.

 These shook out a few problems which I've fixed in
 [3a09d7cc6bf420e2a87a22f2580000055d7b0d6b] and commits preceding it.

 However, with Sun C++ linking xapian-delve now fails with:

 {{{
 libtool: link: /opt/developerstudio12.6/bin/CC -erroff=voidretw -g
 -std=c++11 -errtags -o bin/.libs/xapian-delve bin/xapian-delve.o
 ./.libs/libgetopt.a ./.libs/libxapian-1.5.so -lz -luuid -lnsl -lsocket -lm
 -R/usr/local/lib
 ld: fatal: unwind table: file ./.libs/libgetopt.a(getopt.o): section
 .eh_frame%exchange(char**): unexpected negative integer encountered:
 offset 0x24
 }}}

 Only similar error I can find only was in this mysql bug, which doesn't
 enlighten me:

 https://bugs.mysql.com/bug.php?id=94949

 There's also a warning about use of an anonymous `struct` (which doesn't
 seem to be supported by C++11, but does seem to be a common extension).  I
 guess we should eliminate the single use for maximum portability.

--
Ticket URL: <https://trac.xapian.org/ticket/631#comment:8>
Xapian <https://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list