6 messages in com.mysql.lists.perlFW: HELP - compiling DBD-mysql on HP-...| From | Sent On | Attachments |
|---|---|---|
| Kangara, Madhu | 18 Aug 2003 10:49 | |
| lshen | 18 Aug 2003 11:32 | |
| Kangara, Madhu | 19 Aug 2003 07:48 | |
| Kangara, Madhu | 20 Aug 2003 08:30 | |
| Kangara, Madhu | 20 Aug 2003 12:15 | |
| Kangara, Madhu | 21 Aug 2003 12:06 |
| Subject: | FW: HELP - compiling DBD-mysql on HP-UX 11.00![]() |
|---|---|
| From: | Kangara, Madhu (Madh...@T-Mobile.com) |
| Date: | 08/21/2003 12:06:36 PM |
| List: | com.mysql.lists.perl |
-----Original Message----- From: Kangara, Madhu Sent: Thursday, August 21, 2003 11:36 AM To: 'Jochen Wiedmann' Cc: 'pe...@lists.mysql.com' Subject: RE: HELP - compiling DBD-mysql on HP-UX 11.00
Hi Jochen,
Thanks for helping me, Sorry, I did not noticed since last minute that you are the author of this module. sorry for not paying attention to that part.
(I use HPUX 11.00 with gcc 3.1 , gcc 3.2.3 , mysql 4.0.13 and having these issues. I did not had any issues in linux , but my employer did not want to use linux)
Here is the output of perl Makefile.PL , Please note the output in gmake, the makefile is putting -fPIC , but still giveing me an error message, may be it may be putting in a wrong place (please bear with me, I am not good in linker and compile flags). I hope you could easily find some mistakes from my part The command used is $perl Makefile.PL --libs="-L/usr/local/mysql/lib/mysql -lmysqlclient -lcrypt -lnsl -lm -L/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.2.3 -lgcc" --nocatchstderr
I am attaching the Makefile which this command has created.
$ gmake gcc -c -I/usr/local/lib/perl5/site_perl/5.8.0/PA-RISC2.0/auto/DBI -I'/usr/local /mysql/include/mysql' -D_HPUX_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -DVERSION=\"2.9002\" -DXS_VERSION=\"2.9002\" -fPIC "-I/usr/local/lib/perl5/5.8. 0/PA-RISC2.0/CORE" dbdimp.c gcc -c -I/usr/local/lib/perl5/site_perl/5.8.0/PA-RISC2.0/auto/DBI -I'/usr/local /mysql/include/mysql' -D_HPUX_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -DVERSION=\"2.9002\" -DXS_VERSION=\"2.9002\" -fPIC "-I/usr/local/lib/perl5/5.8. 0/PA-RISC2.0/CORE" mysql.c Running Mkbootstrap for DBD::mysql () chmod 644 mysql.bs rm -f blib/arch/auto/DBD/mysql/mysql.sl LD_RUN_PATH="/usr/local/mysql/lib/mysql:/lib:/usr/local/lib/gcc-lib/hppa2.0n -hp- hpux11.00/3.2.3" /usr/bin/ld -b -L/usr/local/lib -L/opt/local/lib dbdimp.o mysq l.o -o blib/arch/auto/DBD/mysql/mysql.sl -L/usr/local/mysql/lib/mysql -lmysql client -lcrypt -lnsl -lm -L/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.2.3 -l gcc /usr/bin/ld: DP relative code in file /usr/local/mysql/lib/mysql/libmysqlclient. a(libmysql.o) - shared library must be position independent. Use +z or +Z to recompile. gmake: *** [blib/arch/auto/DBD/mysql/mysql.sl] Error 1
-----Original Message----- From: Jochen Wiedmann [mailto:jo...@ispsoft.de] Sent: Thursday, August 21, 2003 2:31 AM To: Kangara, Madhu Cc: 'pe...@lists.mysql.com' Subject: RE: HELP - compiling DBD-mysql on HP-UX 11.00
Quoting "Kangara, Madhu" <Madh...@T-Mobile.com>:
Adding -fPIC to cflags did not change anything. Same error message. Adding -fPIC to --libs gave me Unrecognized argument in LIBS ignored: '-fPIC'
Would you please provide the full output of
perl Makefile.PL --cflags="-I/usr/local/mysql/include/mysql -fPIC" --libs="-L/usr/local/mysql/lib/mysql -lmysqlclient -lcrypt -lnsl -lm -L/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.2.3 -lgcc" --nocatchstderr gmake
Thank you,
Jochen




