List:General Discussion« Previous MessageNext Message »
From:Michael Widenius Date:August 29 1999 4:29pm
Subject:Compiling DBD
View as plain text  
>>>>> "TCSARN" == TCSARN  <ISO-8859-1> writes:

TCSARN> I have perl5 with DBI already compiled (even ORACLE-DBD). 
TCSARN> I 'm trying to compile "Msql-Mysql-modules-1.2018", but I receive
TCSARN> the following error:

TCSARN> LD_RUN_PATH="/lib/pa1.1:/usr/local/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.8.1"
TCSARN> ld -o
TCSARN>  ../blib/arch/auto/DBD/mysql/  -b -L/usr/local/lib dbdimp.o mysql.o
TCSARN> pt/mysql/lib/mysql    /opt/mysql/lib/mysql/libmysqlclient.a -lm
TCSARN> -L/usr/local/lib
TCSARN> /gcc-lib/hppa1.1-hp-hpux10.20/2.8.1 -lgcc 
TCSARN> /usr/ccs/bin/ld: DP relative code in file
TCSARN> /opt/mysql/lib/mysql/libmysqlclient.a(
TCSARN> libmysql.o) - shared library must be position
TCSARN>     independent.  Use +z or +Z to recompile.
TCSARN> make[1]: *** [../blib/arch/auto/DBD/mysql/] Error 1
TCSARN> make[1]: Leaving directory `/opt/varios/src/Msql-Mysql-modules-1.2018/Mysql'
TCSARN> make: *** [subdirs] Error 2

TCSARN> I 've read a note in a readme about "DP relative code" but, as I understood,

TCSARN> I had to recompile perl with -fPIC flag. And I did that. And still doesn 't
TCSARN> work. 


It's the other way around;  You need to compile MySQL with the -fpic

Another possibility is to configure DBD-mysql with:

perl Makefile.PL -static

Compiling DBDUnknown Sender26 Aug
  • Compiling DBDMichael Widenius29 Aug