Skip Menu |

This queue is for tickets about the DBD-mysql CPAN distribution.

Report information
The Basics
Id: 12211
Status: resolved
Priority: 0/
Queue: DBD-mysql

People
Owner: Nobody in particular
Requestors: jerome.auza [...] boholweb.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: DBD::mysql compile error on AMD64 FC3
Hi, I've been trying to compile DBD::mysql correctly but I keep getting the error below. My system is an AMD Athlon 64 with FC3 for x86_64. I compiled Perl 5.8.6, Mysql 5.0.4, DBI 1.48 without problems. I made perl to be fully 64bit. I followed the advise on mysql.com on compiling in 64bit linux systems. DBI was installed both using perl -MCPAN and manuall compile. Any advise how this should be done correctly? I've been able to do this exact same process successfully on Solaris and 32bit linux systems. Also, I checked -fPIC in the makefiles and it is there. I got this error: Running Mkbootstrap for DBD::mysql () chmod 644 mysql.bs rm -f blib/arch/auto/DBD/mysql/mysql.so LD_RUN_PATH="/usr/lib" /usr/local/bin/perl myld gcc -shared -fpic -L/usr/local/lib -L/usr/lib64 -L/usr/lib dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.so -L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm /usr/bin/ld: /usr/local/mysql/lib/mysql/libmysqlclient.a(libmysql.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/local/mysql/lib/mysql/libmysqlclient.a: could not read symbols: Bad value collect2: ld returned 1 exit status make: *** [blib/arch/auto/DBD/mysql/mysql.so] Error 1
From: nmaster [...] front.ru
[guest - Fri Apr 8 20:01:58 2005]: Show quoted text
> /usr/local/mysql/lib/mysql/libmysqlclient.a: could not read symbols: > Bad value > collect2: ld returned 1 exit status > make: *** [blib/arch/auto/DBD/mysql/mysql.so] Error 1
Hi! I had similar problem, but with platform HP-UX 11.00 + PA-RISC 2.0 Distribution kit MySQL of version 4.11 has loaded with www.mysql.com. The distribution kit has been already compiled by the compiler ' HP ANSI C ++ B3910B A.03.50 '. I have collected from source codes MySQL by compiler GCC 3.4.3 Problem with DBD-Mysql, described by you, did not begin Yours faithfully, Alexey
Has anyone tried this and encountered this problem lately? I have not been able to reproduce this. On Wed May 11 11:52:13 2005, guest wrote: Show quoted text
> [guest - Fri Apr 8 20:01:58 2005]: > >
> > /usr/local/mysql/lib/mysql/libmysqlclient.a: could not read symbols: > > Bad value > > collect2: ld returned 1 exit status > > make: *** [blib/arch/auto/DBD/mysql/mysql.so] Error 1
> > > Hi! > > I had similar problem, but with platform HP-UX 11.00 + PA-RISC 2.0 > Distribution kit MySQL of version 4.11 has loaded with www.mysql.com. > The distribution kit has been already compiled by the compiler ' HP ANSI > C ++ B3910B A.03.50 '. > > I have collected from source codes MySQL by compiler GCC 3.4.3 > Problem with DBD-Mysql, described by you, did not begin > > > Yours faithfully, > Alexey
Subject: Re: [rt.cpan.org #12211] DBD::mysql compile error on AMD64 FC3
Date: Thu, 05 Oct 2006 02:01:09 +0800
To: bug-DBD-mysql [...] rt.cpan.org
From: "Jerome J. Auza" <jerome.auza [...] boholweb.com>
This problem disappeared for me starting on the MySQL version after version 5.0.4. Patrick Galbraith via RT wrote: Show quoted text
><URL: http://rt.cpan.org/Ticket/Display.html?id=12211 > > >Has anyone tried this and encountered this problem lately? > >I have not been able to reproduce this. > > >On Wed May 11 11:52:13 2005, guest wrote: > >
>>[guest - Fri Apr 8 20:01:58 2005]: >> >> >> >>
>>>/usr/local/mysql/lib/mysql/libmysqlclient.a: could not read symbols: >>> Bad value >>>collect2: ld returned 1 exit status >>>make: *** [blib/arch/auto/DBD/mysql/mysql.so] Error 1 >>> >>>
>>Hi! >> >>I had similar problem, but with platform HP-UX 11.00 + PA-RISC 2.0 >>Distribution kit MySQL of version 4.11 has loaded with www.mysql.com. >>The distribution kit has been already compiled by the compiler ' HP ANSI >>C ++ B3910B A.03.50 '. >> >>I have collected from source codes MySQL by compiler GCC 3.4.3 >>Problem with DBD-Mysql, described by you, did not begin >> >> >>Yours faithfully, >>Alexey >> >>
> > > > >
I am closing this ticket -- it looks like it was an issue with the MySQL-provided binaries for these platforms which has been resolved in later releases.