[Xapian-tickets] [Xapian] #684: Build fails with `undefined reference` errors

Xapian nobody at xapian.org
Wed Sep 16 02:57:18 BST 2015


#684: Build fails with `undefined reference` errors
-------------------------------------------------+-------------------------
 Reporter:  ahriman                              |             Owner:  olly
     Type:  defect                               |            Status:  new
 Priority:  normal                               |         Milestone:
Component:  Build system                         |           Version:
                                                 |  1.2.11
 Severity:  normal                               |        Resolution:
 Keywords:  undefined make link build xapian-    |        Blocked By:
  check                                          |  Operating System:
 Blocking:                                       |  Linux
-------------------------------------------------+-------------------------
Changes (by olly):

 * version:   => 1.2.11


Old description:

> Hi,
>
> When trying to build '''xapian-core-1.2.2[[span(style=color: #FF0000, 1
> )]]''' on a Linux box (RHEL4), after a few minutes, the build fails with
> lots of `undefined reference` errors:
>
> {{{
> $ ./configure --prefix=/home/ahriman
> $ make
> make  all-recursive
> make[1]: Entering directory `/home/ahriman/src/xapian/xapian-core-1.2.21'
> Making all in .
> make[2]: Entering directory `/home/ahriman/src/xapian/xapian-core-1.2.21'
> /bin/sh ./libtool  --tag=CXX   --mode=link g++ -fshow-column -Wall -W
> -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long
> -Wformat-security -fno-gnu-keywords -Wundef -Woverloaded-virtual
> -fvisibility=hidden -m64  -L/home/ahriman/lib  -o bin/xapian-check bin
> /bin_xapian_check-xapian-check.o bin/bin_xapian_check-xapian-check-
> brass.o bin/bin_xapian_check-xapian-check-chert.o bin/bin_xapian_check-
> xapian-check-flint.o  libbrasscheck.la libchertcheck.la libflintcheck.la
> libxapian.la
> libtool: link: g++ -fshow-column -Wall -W -Wredundant-decls -Wpointer-
> arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-
> keywords -Wundef -Woverloaded-virtual -fvisibility=hidden -m64 -o
> bin/.libs/xapian-check bin/bin_xapian_check-xapian-check.o bin
> /bin_xapian_check-xapian-check-brass.o bin/bin_xapian_check-xapian-check-
> chert.o bin/bin_xapian_check-xapian-check-flint.o  -L/home/ahriman/lib
> ./.libs/libbrasscheck.a ./.libs/libchertcheck.a ./.libs/libflintcheck.a
> ./.libs/libxapian.so /home/ahriman/lib/libuuid.so -lz -Wl,-rpath
> -Wl,/home/ahriman/lib
> bin/bin_xapian_check-xapian-check.o(.text+0x56f): In function `main':
> : undefined reference to `Xapian::Flint::open(std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&)'
> bin/bin_xapian_check-xapian-check.o(.text+0x57b): In function `main':
> : undefined reference to `Xapian::Database::get_lastdocid() const'
> bin/bin_xapian_check-xapian-check.o(.text+0x602): In function `main':
> : undefined reference to `Xapian::Database::~Database()'
> bin/bin_xapian_check-xapian-check.o(.text+0x61e): In function `main':
> : undefined reference to `Xapian::Database::~Database()'
> bin/bin_xapian_check-xapian-check.o(.text+0x666): In function `main':
> : undefined reference to `Xapian::Error::get_description() const'
> bin/bin_xapian_check-xapian-check.o(.text+0x887): In function `main':
> : undefined reference to `file_exists(std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&)'
> bin/bin_xapian_check-xapian-check.o(.text+0xaa3): In function `main':
> : undefined reference to `Xapian::Chert::open(std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&)'
> bin/bin_xapian_check-xapian-check.o(.text+0xaaf): In function `main':
> : undefined reference to `Xapian::Database::get_lastdocid() const'
> bin/bin_xapian_check-xapian-check.o(.text+0xb27): In function `main':
> : undefined reference to `Xapian::Database::~Database()'
> ...
> collect2: ld returned 1 exit status
> make[2]: *** [bin/xapian-check] Error 1
> make[2]: Leaving directory `/home/ahriman/src/xapian/xapian-core-1.2.21'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/ahriman/src/xapian/xapian-core-1.2.21'
> make: *** [all] Error 2
> }}}
>
> Disabling backends doesn't help either...
> This is a summary of my environment:
>
> * zlib 1.2.8
> * libuuid 1.0.0
> * autoconf 2.69
> * automake 1.15
> * libtool 2.4.6
> * gcc 3.4.6
>
> Please any ideas on what could I do?
>
> Thank you!

New description:

 Hi,

 When trying to build '''xapian-core-1.2.21''' on a Linux box (RHEL4),
 after a few minutes, the build fails with lots of `undefined reference`
 errors:

 {{{
 $ ./configure --prefix=/home/ahriman
 $ make
 make  all-recursive
 make[1]: Entering directory `/home/ahriman/src/xapian/xapian-core-1.2.21'
 Making all in .
 make[2]: Entering directory `/home/ahriman/src/xapian/xapian-core-1.2.21'
 /bin/sh ./libtool  --tag=CXX   --mode=link g++ -fshow-column -Wall -W
 -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long
 -Wformat-security -fno-gnu-keywords -Wundef -Woverloaded-virtual
 -fvisibility=hidden -m64  -L/home/ahriman/lib  -o bin/xapian-check bin
 /bin_xapian_check-xapian-check.o bin/bin_xapian_check-xapian-check-brass.o
 bin/bin_xapian_check-xapian-check-chert.o bin/bin_xapian_check-xapian-
 check-flint.o  libbrasscheck.la libchertcheck.la libflintcheck.la
 libxapian.la
 libtool: link: g++ -fshow-column -Wall -W -Wredundant-decls -Wpointer-
 arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-
 keywords -Wundef -Woverloaded-virtual -fvisibility=hidden -m64 -o
 bin/.libs/xapian-check bin/bin_xapian_check-xapian-check.o bin
 /bin_xapian_check-xapian-check-brass.o bin/bin_xapian_check-xapian-check-
 chert.o bin/bin_xapian_check-xapian-check-flint.o  -L/home/ahriman/lib
 ./.libs/libbrasscheck.a ./.libs/libchertcheck.a ./.libs/libflintcheck.a
 ./.libs/libxapian.so /home/ahriman/lib/libuuid.so -lz -Wl,-rpath
 -Wl,/home/ahriman/lib
 bin/bin_xapian_check-xapian-check.o(.text+0x56f): In function `main':
 : undefined reference to `Xapian::Flint::open(std::basic_string<char,
 std::char_traits<char>, std::allocator<char> > const&)'
 bin/bin_xapian_check-xapian-check.o(.text+0x57b): In function `main':
 : undefined reference to `Xapian::Database::get_lastdocid() const'
 bin/bin_xapian_check-xapian-check.o(.text+0x602): In function `main':
 : undefined reference to `Xapian::Database::~Database()'
 bin/bin_xapian_check-xapian-check.o(.text+0x61e): In function `main':
 : undefined reference to `Xapian::Database::~Database()'
 bin/bin_xapian_check-xapian-check.o(.text+0x666): In function `main':
 : undefined reference to `Xapian::Error::get_description() const'
 bin/bin_xapian_check-xapian-check.o(.text+0x887): In function `main':
 : undefined reference to `file_exists(std::basic_string<char,
 std::char_traits<char>, std::allocator<char> > const&)'
 bin/bin_xapian_check-xapian-check.o(.text+0xaa3): In function `main':
 : undefined reference to `Xapian::Chert::open(std::basic_string<char,
 std::char_traits<char>, std::allocator<char> > const&)'
 bin/bin_xapian_check-xapian-check.o(.text+0xaaf): In function `main':
 : undefined reference to `Xapian::Database::get_lastdocid() const'
 bin/bin_xapian_check-xapian-check.o(.text+0xb27): In function `main':
 : undefined reference to `Xapian::Database::~Database()'
 ...
 collect2: ld returned 1 exit status
 make[2]: *** [bin/xapian-check] Error 1
 make[2]: Leaving directory `/home/ahriman/src/xapian/xapian-core-1.2.21'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/home/ahriman/src/xapian/xapian-core-1.2.21'
 make: *** [all] Error 2
 }}}

 Disabling backends doesn't help either...
 This is a summary of my environment:

 * zlib 1.2.8
 * libuuid 1.0.0
 * autoconf 2.69
 * automake 1.15
 * libtool 2.4.6
 * gcc 3.4.6

 Please any ideas on what could I do?

 Thank you!

--

--
Ticket URL: <http://trac.xapian.org/ticket/684#comment:3>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list