problem installing DBD::mysql on HP-UX 11i

problem installing DBD::mysql on HP-UX 11i

am 07.03.2004 16:56:51 von Michael.Goerke

Hi,

Although I found a similar issue already discussed in the list (Oct/Nov =
2003) I still don't know how to overcome my problem.

I am using PERL 5.8.2 (based on HP's cc compiler, details below) on =
HP-UX 11i / B1000 (PA-RISC1.1), and installed DBI 1.41 sucessfully via =
CPAN.
And I installed the MySQL 4.0.18 for HP-UX 11.11 (PA-RISC 1.1 and 2.0) =
from mysql.com (details below).

Trying to add DBD::mysql results then always in an error when linking =
(again, details see below):

LD_RUN_PATH=3D"" /opt/perl/bin/perl myld /usr/bin/ld -b =
+vnocompatwarnings dbdimp.o mysql.o -o =
blib/arch/auto/DBD/mysql/mysql.sl -L/usr/local/mysql/lib -lmysqlclient =
-lcrypt -lnsl -lm =20
/usr/bin/ld: Invalid loader fixup in text space needed in output file =
for symbol "$0000004B" in input file: =
"/usr/local/mysql/lib/libmysqlclient.a(libmysql.o)". Make sure it was =
compiled with +z/+Z.

I tried to run manually with --libs=3D"-L/usr/local/mysql/lib =
-lmysqlclient -lcrypt -lnsl -lm +z" as suggested in the list, but the =
argument is "not recognized".

Any help would be much appreachiated, many TIA,

Michael

PS: I would like to use the module for Evan Harris' spam control s/w =
relaydelay: http://projects.puremagic.com/greylisting/ so that I put the =
list in Cc:
---
Michael Goerke, European University Institute, Computing Service
Via Boccaccio 121, 50133 Firenze, Italy
phone: +39 055 4685-531 (voice), 4685-205 (fax)
email: michael.goerke@iue.it
==================== DBD install =
==================== =====3D=
=3D
CPAN.pm: Going to build R/RU/RUDY/DBD-mysql-2.9003.tar.gz

I will use the following settings for compiling and testing:

cflags (mysql_config) =3D -I/usr/local/mysql/include =
+DAportable
libs (mysql_config) =3D -L/usr/local/mysql/lib -lmysqlclient =
-lcrypt -lnsl -lm
nocatchstderr (default ) =3D 0
nofoundrows (default ) =3D 0
ssl (guessed ) =3D 0
testdb (default ) =3D test
testhost (default ) =
testpassword (default ) =
testuser (default ) =

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

Checking if your kit is complete...
Looks good
Using DBI 1.41 (for perl 5.008002 on PA-RISC1.1-thread-multi) installed =
in /opt/perl/lib/site_perl/5.8.2/PA-RISC1.1-thread-multi/auto/D BI
Writing Makefile for DBD::mysql
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/Mysql.pm blib/lib/Mysql.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
cc -c -I/opt/perl/lib/site_perl/5.8.2/PA-RISC1.1-thread-multi/auto /DBI =
-I/usr/local/mysql/include +DAportable -D_POSIX_C_SOURCE=3D199506L =
-D_REENTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings -DNO_HASH_SEED =
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -fast +Onolimit =
+Opromote_indirect_calls +DAportable +DS2.0 -DVERSION=3D\"2.9003\" =
-DXS_VERSION=3D\"2.9003\" +Z =
"-I/opt/perl/lib/5.8.2/PA-RISC1.1-thread-multi/CORE" dbdimp.c
/opt/perl/bin/perl -p -e "s/~DRIVER~/mysql/g" =
/opt/perl/lib/site_perl/5.8.2/PA-RISC1.1-thread-multi/auto/D BI/Driver.xst=
> mysql.xsi
/opt/perl/bin/perl /opt/perl/lib/5.8.2/ExtUtils/xsubpp -typemap =
/opt/perl/lib/5.8.2/ExtUtils/typemap mysql.xs > mysql.xsc && mv =
mysql.xsc mysql.c
cc -c -I/opt/perl/lib/site_perl/5.8.2/PA-RISC1.1-thread-multi/auto /DBI =
-I/usr/local/mysql/include +DAportable -D_POSIX_C_SOURCE=3D199506L =
-D_REENTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings -DNO_HASH_SEED =
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -fast +Onolimit =
+Opromote_indirect_calls +DAportable +DS2.0 -DVERSION=3D\"2.9003\" =
-DXS_VERSION=3D\"2.9003\" +Z =
"-I/opt/perl/lib/5.8.2/PA-RISC1.1-thread-multi/CORE" mysql.c
cc: "/usr/include/sys/socket.h", line 504: warning 562: Redeclaration of =
"sendfile" with a different storage class=20
cc: "/usr/include/sys/socket.h", line 505: warning 562: Redeclaration of =
"sendpath" with a different storage class=20
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.sl
LD_RUN_PATH=3D"" /opt/perl/bin/perl myld /usr/bin/ld -b =
+vnocompatwarnings dbdimp.o mysql.o -o =
blib/arch/auto/DBD/mysql/mysql.sl -L/usr/local/mysql/lib -lmysqlclient =
-lcrypt -lnsl -lm =20
/usr/bin/ld: Invalid loader fixup in text space needed in output file =
for symbol "$0000004B" in input file: =
"/usr/local/mysql/lib/libmysqlclient.a(libmysql.o)". Make sure it was =
compiled with +z/+Z.
gmake: *** [blib/arch/auto/DBD/mysql/mysql.sl] Error 1
/usr/local/bin/gmake -- NOT OK
==================== == PERL =
==================== =====3D=
======

# perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 2) configuration:
Platform:
osname=3Dhpux, osvers=3D11.00, archname=3DPA-RISC1.1-thread-multi
uname=3D'hp-ux bertha b.11.00 u 9000800 136901587 unlimited-user =
license '
config_args=3D'-ders -Dcc=3Dcc -Accflags=3D-DNO_HASH_SEED =
-Dusethreads -Duseithreads -Ud_sigsetjmp -Uinstallusrbinperl =
-Ulocincpth=3D -Uloclibpth=3D -Dd_attribut=3Dundef =
-Darchname=3DPA-RISC1.1 -Doptimize=3D-fast +Onolimit =
+Opromote_indirect_calls +DAportable +DS2.0 -Duselargefiles =
-Dinc_version_list=3D5.8.1/$archname 5.8.1 5.8.0/$archname 5.8.0 =
-Duseshrplib -Dprefix=3D/opt/perl -Dcf_by=3DActiveState =
-Dcf_email=3Dsupport@ActiveState.com'
hint=3Drecommended, useposix=3Dtrue, d_sigaction=3Ddefine
usethreads=3Ddefine use5005threads=3Dundef useithreads=3Ddefine =
usemultiplicity=3Ddefine
useperlio=3Ddefine d_sfio=3Dundef uselargefiles=3Ddefine =
usesocks=3Dundef
use64bitint=3Dundef use64bitall=3Dundef uselongdouble=3Dundef
usemymalloc=3Dn, bincompat5005=3Dundef
Compiler:
cc=3D'cc', ccflags =3D' -D_POSIX_C_SOURCE=3D199506L -D_REENTRANT -Ae =
-D_HPUX_SOURCE -Wl,+vnocompatwarnings -DNO_HASH_SEED -D_LARGEFILE_SOURCE =
-D_FILE_OFFSET_BITS=3D64 ',
optimize=3D'-fast +Onolimit +Opromote_indirect_calls +DAportable =
+DS2.0',
cppflags=3D'-Aa -D__STDC_EXT__ -D_HPUX_SOURCE =
-D_POSIX_C_SOURCE=3D199506L -D_REENTRANT -Ae -D_HPUX_SOURCE =
-Wl,+vnocompatwarnings -DNO_HASH_SEED'
ccversion=3D'B.11.11.29484.GP', gccversion=3D'', gccosandvers=3D''
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''
libpth=3D/lib /usr/lib /usr/ccs/lib /usr/local/lib
libs=3D-lcres -lnsl -lnm -lndbm -lmalloc -ldld -lm -lcrypt -lsec =
-lpthread -lc
perllibs=3D-lcres -lnsl -lnm -lmalloc -ldld -lm -lcrypt -lsec =
-lpthread -lc
libc=3D/lib/libc.sl, so=3Dsl, useshrplib=3Dtrue, =
libperl=3Dlibperl.sl
gnulibc_version=3D''
Dynamic Linking:
dlsrc=3Ddl_hpux.xs, dlext=3Dsl, d_dlsymun=3Dundef, =
ccdlflags=3D'-Wl,-E -Wl,-B,deferred '
cccdlflags=3D'+Z', lddlflags=3D'-b +vnocompatwarnings'


Characteristics of this binary (from libperl):=20
Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES =
PERL_IMPLICIT_CONTEXT
Locally applied patches:
ActivePerl Build 808
21739 [perl #24493] install.html not working
21737 Ooops. left an XXX comment in, and worse still it's a // =
comment
21735 utf8 keys now work for tied hashes
21734 Accessing unicode keys in tie hashes via hv_exists was =
broken
21733 ext/threads/t/problem.t
21732 Config::myconfig() fails under ithreads
21728 Update perlhist with 5.6.2
21723 Include 'SCCS' in the list of dir names ignored by =
installperl
21718 Empty subroutine as object method segfaults in 5.8.2 =
(sometimes)
21714 Fix bug #24380: assigning list with duplicated keys to a =
hash
21706 [perl #24460] [DOC PATCH] the begincheck program
21694 sprintf() painfully slow
21693 must copy changes from win32/makeifle.mk to =
wince/makefile.ce
21691 Update the list of pumpkings in perlhist.pod
21687 [PATCH 5.6.2-RC1 pod/perlhist.pod] Updated
21677 OS/2 docu
21676 Bug #24407: key for shared hash got stringified into wrong =
pool
21673 Be sure to use -fPIC not -fpic on Linux/SPARC
21672 extending the hash attack test
21671 Benchmark.pm cmpthese segfault
21662 'make minitest' fails for op/cproto and op/pat
21586 Comment that this 'optimisation' is actually a necessary =
fixup
21548 Sync with Pod::Perldoc 3.12
21540 Fix backward-compatibility issues in if.pm
Built under hpux
Compiled at Dec 7 2003 13:25:38
@INC:
/opt/perl/lib/5.8.2/PA-RISC1.1-thread-multi
/opt/perl/lib/5.8.2
/opt/perl/lib/site_perl/5.8.2/PA-RISC1.1-thread-multi
/opt/perl/lib/site_perl/5.8.2
/opt/perl/lib/site_perl
.
==================== =3D MySQL =
==================== =====3D=
====
# bin/mysql -V=20
bin/mysql Ver 12.22 Distrib 4.0.18, for hp-hpux11.11 (hppa2.0w)
# bin/mysqladmin -V
bin/mysqladmin Ver 8.40 Distrib 4.0.18, for hp-hpux11.11 on hppa2.0w
#=20

--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=3Dgcdmp-msql-mysql-modules @m.gmane.org