dbTalk Databases Forums  

architecture error

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss architecture error in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mark Faine
 
Posts: n/a

Default architecture error - 12-13-2005 , 12:09 PM






Solaris 10
GCC 3.4.5
GNU binutils
Berkeley DB 4.4.16

I'm getting this error when I attempt to build db:

....
usr/local/bin/ld: warning: sparc:v9 architecture of input file
`.libs/snprintf.o' is incompatible with sparc output
....

Then a little further down it errors completely out with:
db_archive.lo util_sig.lo libdb-4.4.la -lrt
/usr/local/bin/gcc -g -O2 -m64 -mptr64 -Wa,-xarch=v9 -mcpu=v9 -o
..libs/db_archive .libs/db_archive.o .libs/util_sig.o
../.libs/libdb-4.4.so -lrt -Wl,--rpath -Wl,/usr/local/BerkeleyDB.4.4/lib
../.libs/libdb-4.4.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [db_archive] Error 1


Any assistance is appreciated.

-Mark

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----

Reply With Quote
  #2  
Old   
bostic@sleepycat.com
 
Posts: n/a

Default Re: architecture error - 12-13-2005 , 03:57 PM






I have not seen this before, but there are posts on the web that make
me think the problem is gcc linking 64-bit objects against 32-bit
objects. Specifically, there's a note that gcc 3.X doesn't pass
appropriate 64-bit flags to the loader, and explicitly specifying the
-m64 flag to the loader worked around the problem. What I found:

http://gcc.gnu.org/ml/gcc-help/2005-05/msg00265.html
and
http://sysadminforum.com/showthread....oto=nextnewest

Good luck,
--keith

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Keith Bostic bostic (AT) sleepycat (DOT) com
Sleepycat Software Inc. keithbosticim (ymsgid)
118 Tower Rd. +1-781-259-3139
Lincoln, MA 01773 http://www.sleepycat.com


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.