dbTalk Databases Forums  

Re: Link problems when building on SUSE 10

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss Re: Link problems when building on SUSE 10 in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Warren Young
 
Posts: n/a

Default Re: Link problems when building on SUSE 10 - 12-15-2005 , 06:51 AM






Gamez, David wrote:
Quote:
/usr/lib64/mysql/libmysqlclient.a(libmysql.o): could not read symbols: Bad value
This looks to be a problem with your MySQL package. Find a small MySQL
C API example program and try to build it. If it will not build, take
the problem up on the main MySQL mailing list, or with whoever built
your MySQL package. If it does build and run, let us know.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #2  
Old   
Warren Young
 
Posts: n/a

Default Re: Link problems when building on SUSE 10 - 12-20-2005 , 01:36 AM






Gamez, David wrote:
Quote:
Could the problem be connected with libtools trying to link to
libmysqlclient.a instead of libmysqlclient.la and is this the
'recompliation' that is requested when it says 'recompile with
-fPIC'?
It's possible. It may be especially problematic if you build MySQL++
dynamically against the MySQL C API library, and then statically link to
it when building your program.

Why are you trying to link to a static version of the MySQL C API
library anyway?

P.S., I've replied to the mailing list. Please keep this sort of
discussion there.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #3  
Old   
Warren Young
 
Posts: n/a

Default Re: Link problems when building on SUSE 10 - 12-20-2005 , 05:49 AM



Gamez, David wrote:
Quote:
Do
you think that changing to the 32 bit version of SUSE 10 might solve
the problem?
Almost certainly. This problem has the feel of general weirdness
surrounding a platform that hasn't fully shaken out yet, which fits the
current x64 situation perfectly.

Unfortunately, I don't have access to such a machine, so I can't help
you very much.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #4  
Old   
Tommy Apel
 
Posts: n/a

Default Re: Link problems when building on SUSE 10 - 12-20-2005 , 08:02 AM



Quote:
Yes, that solved it. It built without problems on the 32 bit version of
SUSE 10.

Presumably it must have been building 32 bit .lo files or trying to combine
64 bit .lo files with 32 bit .la files from mysql (that should have been 64
bit, since I was using the 64 bit versions).

Many thanks for the help. I can now return to writing my application!


-----Original Message-----
From: Warren Young [mailto:mysqlpp (AT) etr-usa (DOT) com]
Sent: Tue 12/20/2005 11:49
To: MySQL++ Mailing List
Subject: Re: Link problems when building on SUSE 10

Gamez, David wrote:
Do
you think that changing to the 32 bit version of SUSE 10 might solve
the problem?

Almost certainly. This problem has the feel of general weirdness
surrounding a platform that hasn't fully shaken out yet, which fits the
current x64 situation perfectly.

Unfortunately, I don't have access to such a machine, so I can't help
you very much.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ex (DOT) ac.uk
Actually it builds fine on Gentoo in 64bit mode on my Athlon64, just for an
info ;-)

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #5  
Old   
Warren Young
 
Posts: n/a

Default Re: Link problems when building on SUSE 10 - 12-20-2005 , 09:27 AM



Tommy Apel wrote:
Quote:
Actually it builds fine on Gentoo in 64bit mode on my Athlon64, just for an
info ;-)
Presumably this is because everything on a Gentoo system is recompiled
for the local environment, so there is no possibility of 32/64 bit
confusion.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #6  
Old   
Tommy Apel
 
Posts: n/a

Default Re: Link problems when building on SUSE 10 - 12-20-2005 , 09:44 AM



Quote:
Presumably this is because everything on a Gentoo system is recompiled
for the local environment, so there is no possibility of 32/64 bit
confusion.
Well actually I have both 64 and 32 bit libs installed but the 32bit ones are
located in an emul folder instead of right next to the 64bit ones
--
Tommy Apel
Software Developer

Fax : (+371) 7 473 607
Cell : (+371) 8 293 490
VoIP DK : (+45) 46 96 81 61
VoIP ES : (+45) 46 96 81 60
E-Mail : root (AT) cargoa2b (DOT) com

SIA "Cargo A2B"
Liepezera iela 1,
Liepezeras ciemats,
Babites pagasts
LV-2101 Riga, Latvia

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



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.