HPUX 11.11 mysql zlib DBD::mysql compile error

HPUX 11.11 mysql zlib DBD::mysql compile error

am 12.01.2006 17:30:15 von Robert Smol

------_=_NextPart_001_01C61795.77CBE59A
Content-Type: text/plain;
charset=us-ascii
Content-Transfer-Encoding: quoted-printable

Hi great Perl/MySQL Gurus.
=20
I am trying to install and run Mysql on HPUX 11.11 with perl + Mysql
support.
I've downloaded depot distributions of MySQL from mysql website,
installed and it is running fine.=20
=20
When I install DBD::mysql I got some error about complaining if
libmysqlclient was compiled with Zlib support.
=20
root@czhs0681# perl Makefile.PL --cflags=3D"-I/usr/local/mysql/include =
-O"
I will use the following settings for compiling and testing:

cflags (User's choice) =3D -I/usr/local/mysql/include -O
embedded (mysql_config ) =3D
libs (mysql_config ) =3D -L/usr/local/mysql/lib -lmysqlclient
-lz -lcrypt -lnsl -lm
mysql_config (guessed ) =3D mysql_config
nocatchstderr (default ) =3D 0
nofoundrows (default ) =3D 0
ssl (guessed ) =3D 0
testdb (default ) =3D test
testhost (default ) =3D
testpassword (default ) =3D
testsocket (default ) =3D
testuser (default ) =3D

To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.

Using DBI 1.48 (for perl 5.008007 on PA-RISC2.0) installed in
/opt/perl/lib/site_perl/5.8.7/PA-RISC2.0/auto/DBI/
Writing Makefile for DBD::mysql
root@czhs0681# make
gcc -c -I/opt/perl/lib/site_perl/5.8.7/PA-RISC2.0/auto/DBI/
-I/usr/local/mysql/include -O -DDBD_MYSQL_INSERT_ID_IS_GOOD -g
-mpa-risc-2-0 -D_HPUX_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe
-I/pro/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -g -O
-DVERSION=3D\"3.0002\" -DXS_VERSION=3D\"3.0002\" -fPIC
"-I/opt/perl/lib/5.8.7/PA-RISC2.0/CORE" dbdimp.c
gcc -c -I/opt/perl/lib/site_perl/5.8.7/PA-RISC2.0/auto/DBI/
-I/usr/local/mysql/include -O -DDBD_MYSQL_INSERT_ID_IS_GOOD -g
-mpa-risc-2-0 -D_HPUX_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe
-I/pro/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -g -O
-DVERSION=3D\"3.0002\" -DXS_VERSION=3D\"3.0002\" -fPIC
"-I/opt/perl/lib/5.8.7/PA-RISC2.0/CORE" mysql.c
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.sl
/usr/local/bin/perl myld /usr/bin/ld -b -L/pro/local/lib
dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.sl \
-L/usr/local/mysql/lib -lmysqlclient -lz -lcrypt -lnsl -lm
\

/usr/bin/ld: Invalid loader fixup in text space needed in output file
for symbol "$00000037" in input file:
"/usr/local/mysql/lib/libmysqlclient.a(libmysql.o)". Make sure it was
compiled with +z/+Z.
*** Error exit code 1

Stop.

=20
not sure how to get over this obstacle, do I need to get different
MySQL? recompile it?
=20
other installed SW
=20
=20
root@czhs0681# gcc -V
gcc: `-V' option must have argument
root@czhs0681# gcc -x
gcc: argument to `-x' is missing
root@czhs0681# gcc -v
Reading specs from
/usr/local/pa20_32/lib/gcc/hppa2.0w-hp-hpux11.11/3.4.4/specs
Configured with: ../src/configure --enable-languages=3Dc,c++
--prefix=3D/usr/local/pa20_32 --with-local-prefix=3D/usr/local/pa20_32
--with-gnu-as --with-as=3D/usr/local/pa20_32/bin/as
--with-ld=3D/usr/ccs/bin/ld --disable-shared --disable-nls
Thread model: single
gcc version 3.4.4
root@czhs0681# perl -V
Summary of my perl5 (revision 5 version 8 subversion 7) configuration:
Platform:
osname=3Dhpux, osvers=3D11.11, archname=3DPA-RISC2.0
uname=3D'hp-ux r3 b.11.11 u 9000800 1909236376 unlimited-user =
license
'
config_args=3D'-Dusedevel -Dcc=3Dgcc -Uversiononly
-Dinc_version_list=3Dnone -des'
hint=3Drecommended, useposix=3Dtrue, d_sigaction=3Ddefine
usethreads=3Dundef use5005threads=3Dundef useithreads=3Dundef
usemultiplicity=3Dundef
useperlio=3Ddefine d_sfio=3Dundef uselargefiles=3Ddefine =
usesocks=3Dundef
use64bitint=3Dundef use64bitall=3Dundef uselongdouble=3Dundef
usemymalloc=3Dn, bincompat5005=3Dundef
Compiler:
cc=3D'gcc', ccflags =3D'-mpa-risc-2-0 -D_HPUX_SOURCE -DDEBUGGING
-fno-strict-aliasing -pipe -I/pro/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=3D64',
optimize=3D'-g -O',
cppflags=3D'-mpa-risc-2-0 -D_HPUX_SOURCE -mpa-risc-2-0 =
-D_HPUX_SOURCE
-DDEBUGGING -fno-strict-aliasing -pipe -I/pro/local/include'
ccversion=3D'', gccversion=3D'3.4.4', gccosandvers=3D'hpux11.11'
intsize=3D4, longsize=3D4, ptrsize=3D4, doublesize=3D8, =
byteorder=3D4321
d_longlong=3Ddefine, longlongsize=3D8, d_longdbl=3Ddefine, =
longdblsize=3D16
ivtype=3D'long', ivsize=3D4, nvtype=3D'double', nvsize=3D8, =
Off_t=3D'off_t',
lseeksize=3D8
alignbytes=3D8, prototype=3Ddefine
Linker and Libraries:
ld=3D'/usr/bin/ld', ldflags =3D'-L/pro/local/lib'
libpth=3D/pro/local/lib /lib /usr/lib /usr/ccs/lib /usr/local/lib
libs=3D-lcl -lpthread -lnsl -lnm -lndbm -lgdbm -ldb -lmalloc -ldld =
-lm
-lcrypt -lsec -lc
perllibs=3D-lcl -lpthread -lnsl -lnm -lmalloc -ldld -lm -lcrypt =
-lsec
-lc
libc=3D/lib/libc.sl, so=3Dsl, useshrplib=3Dfalse, =
libperl=3Dlibperl.a
gnulibc_version=3D''
Dynamic Linking:
dlsrc=3Ddl_hpux.xs, dlext=3Dsl, d_dlsymun=3Dundef, =
ccdlflags=3D'-Wl,-E
-Wl,-B,deferred '
cccdlflags=3D'-fPIC', lddlflags=3D'-b -L/pro/local/lib'


Characteristics of this binary (from libperl):
Compile-time options: DEBUGGING USE_LARGE_FILES
Locally applied patches:
defined-or
Built under hpux
Compiled at Jun 1 2005 13:42:32
@INC:
/opt/perl/lib/5.8.7/PA-RISC2.0
/opt/perl/lib/5.8.7
/opt/perl/lib/site_perl/5.8.7/PA-RISC2.0
/opt/perl/lib/site_perl/5.8.7
/opt/perl/lib/site_perl
.

=20
Thanks
=20
Robert Smol
Tools Support Engineer
=20

------_=_NextPart_001_01C61795.77CBE59A--