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