Hi all, While building from git with xapian-letor not ignored in bootstrap, I am getting the following make error: In function `main': /home/ayush/Desktop/xapian/xapian-letor/bin/xapian-letor-update.cc:98: undefined reference to `Xapian::Internal::str(unsigned int)' /home/ayush/Desktop/xapian/xapian-letor/bin/xapian-letor-update.cc:99: undefined reference to `Xapian::Internal::str(unsigned int)' /home/ayush/Desktop/xapian/xapian-letor/bin/xapian-letor-update.cc:100: undefined reference to `Xapian::Internal::str(unsigned int)' collect2: error: ld returned 1 exit status make[3]: *** [bin/xapian-letor-update] Error 1 make[3]: Leaving directory `/home/ayush/Desktop/xapian/xapian-letor' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/ayush/Desktop/xapian/xapian-letor' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/ayush/Desktop/xapian/xapian-letor' make: *** [all] Error 2 Is there something that I'm ignoring? can someone please help me out? Thanks! Ayush Tomar -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20160308/e089d196/attachment.html>
On Tue, Mar 08, 2016 at 12:01:29PM -0500, Ayush Tomar wrote:> /home/ayush/Desktop/xapian/xapian-letor/bin/xapian-letor-update.cc:98: > undefined reference to `Xapian::Internal::str(unsigned int)' > /home/ayush/Desktop/xapian/xapian-letor/bin/xapian-letor-update.cc:99: > undefined reference to `Xapian::Internal::str(unsigned int)' > /home/ayush/Desktop/xapian/xapian-letor/bin/xapian-letor-update.cc:100: > undefined reference to `Xapian::Internal::str(unsigned int)'[...]> Is there something that I'm ignoring? can someone please help me out?A downside of not building letor by default is that breakages like this don't get picked up right away. But it has extra dependencies so we don't force people to build it by default. I think this means that letor needs updating to a more recent version of the "common" subdirectory. You can probably just modify the bootstrap script and change the git commit hash that's used for letor's common to be the same as used for omega's common. Cheers, Olly
On Wed, Mar 09, 2016 at 01:05:04AM +0000, Olly Betts wrote:> I think this means that letor needs updating to a more recent version > of the "common" subdirectory. You can probably just modify the > bootstrap script and change the git commit hash that's used for letor's > common to be the same as used for omega's common.It also needed common/str.cc adding to the list of sources for apian-letor-update. I've pushed a fix: https://trac.xapian.org/changeset/fda54b68d2407a44cbaeabf0186d76f7c43085a4/git Ayush - can you pull the latest commits and see if that fixes this for you? Cheers, Olly