Craig M Talbert
2007-Dec-07 23:48 UTC
[Xapian-discuss] Problems compiling xapian-core to run omega, SunOS
Hello xapian users, The server I'm compiling on is a little odd. SunOS on a sun4 architecture. Fails when linking, gives the following, memcpy 0x10 /usr/local/gcc-3.3.2/lib/./libstdc++.a(ctype.o) ld: fatal: relocations remain against allocatable but non-writable sections collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `libxapian.la' Current working directory /Net/www/webdata/htdocs/UCB/StudentGroups/cogsci/xapian-core-1.0.4 *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /Net/www/webdata/htdocs/UCB/StudentGroups/cogsci/xapian-core-1.0.4 *** Error code 1 make: Fatal error: Command failed for target `all' Apologies if this is out of place for this list. - Craig
Olly Betts
2007-Dec-08 10:38 UTC
[Xapian-discuss] Problems compiling xapian-core to run omega, SunOS
On Fri, Dec 07, 2007 at 01:11:57PM -0700, Craig M Talbert wrote:> The server I'm compiling on is a little odd. SunOS on a sun4 > architecture. > > Fails when linking, gives the following,Hmm, can you build other C++ software?> memcpy 0x10 > /usr/local/gcc-3.3.2/lib/./libstdc++.a(ctype.o)Is there any error output before this?> ld: fatal: relocations remain against allocatable but non-writable > sectionsI don't have access to any sparc machines since sourceforge killed their compile farm, but googling for that error message suggests that you might have more success using GNU ld: http://www.filibeto.org/pipermail/solaris-users/2004-March/000660.html Other hits suggest it might be related to trying to link with static libraries when compiling a shared library, in which case you could either try to rebuild GCC with a shared libstdc++, or build xapian-core only as a static library using: ./configure --disable-shared Cheers, Olly
James Aylett
2007-Dec-08 12:51 UTC
[Xapian-discuss] Problems compiling xapian-core to run omega, SunOS
On Sat, Dec 08, 2007 at 10:38:44AM +0000, Olly Betts wrote:> Other hits suggest it might be related to trying to link with static > libraries when compiling a shared library, in which case you could > either try to rebuild GCC with a shared libstdc++, or build xapian-core > only as a static library using: > > ./configure --disable-sharedWe had a number of problems with shared libraries on earlier versions of Solaris (8 & 9 I believe), so going fully static may help in general (tests were failing otherwise, from what I remember). J -- /--------------------------------------------------------------------------\ James Aylett xapian.org james@tartarus.org uncertaintydivision.org