[prev in list] [next in list] [prev in thread] [next in thread] 

List:       msql-mysql-modules
Subject:    FW: HELP - compiling DBD-mysql on HP-UX 11.00
From:       "Kangara, Madhu" <Madhu.Kangara () T-Mobile ! com>
Date:       2003-08-21 19:06:58
[Download RAW message or body]

-----Original Message-----
From: Kangara, Madhu 
Sent: Thursday, August 21, 2003 11:36 AM
To: 'Jochen Wiedmann'
Cc: 'perl@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:joe@ispsoft.de]
Sent: Thursday, August 21, 2003 2:31 AM
To: Kangara, Madhu
Cc: 'perl@lists.mysql.com'
Subject: RE: HELP - compiling DBD-mysql on HP-UX 11.00


Quoting "Kangara, Madhu" <Madhu.Kangara@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




-- 
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe:    http://lists.mysql.com/perl?unsub=msql-mysql-modules@progressive-comp.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic