[Greylist-users] problem installing DBD::mysql on HP-UX 11i

Goerke, Michael Michael.Goerke at IUE.it
Sun Mar 7 07:56:51 PST 2004


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="" /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   
/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="-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 at iue.it
==================== DBD install ==========================
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) = -I/usr/local/mysql/include +DAportable
  libs          (mysql_config) = -L/usr/local/mysql/lib -lmysqlclient -lcrypt -lnsl -lm
  nocatchstderr (default     ) = 0
  nofoundrows   (default     ) = 0
  ssl           (guessed     ) = 0
  testdb        (default     ) = 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/DBI
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=199506L -D_REENTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings -DNO_HASH_SEED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fast +Onolimit +Opromote_indirect_calls +DAportable +DS2.0   -DVERSION=\"2.9003\" -DXS_VERSION=\"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/DBI/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=199506L -D_REENTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings -DNO_HASH_SEED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fast +Onolimit +Opromote_indirect_calls +DAportable +DS2.0   -DVERSION=\"2.9003\" -DXS_VERSION=\"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 
cc: "/usr/include/sys/socket.h", line 505: warning 562: Redeclaration of "sendpath" with a different storage class 
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.sl
LD_RUN_PATH="" /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   
/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 ===============================

# perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 2) configuration:
  Platform:
    osname=hpux, osvers=11.00, archname=PA-RISC1.1-thread-multi
    uname='hp-ux bertha b.11.00 u 9000800 136901587 unlimited-user license '
    config_args='-ders -Dcc=cc -Accflags=-DNO_HASH_SEED -Dusethreads -Duseithreads -Ud_sigsetjmp -Uinstallusrbinperl -Ulocincpth= -Uloclibpth= -Dd_attribut=undef -Darchname=PA-RISC1.1 -Doptimize=-fast +Onolimit +Opromote_indirect_calls  +DAportable +DS2.0 -Duselargefiles -Dinc_version_list=5.8.1/$archname 5.8.1 5.8.0/$archname 5.8.0 -Duseshrplib -Dprefix=/opt/perl -Dcf_by=ActiveState -Dcf_email=support at ActiveState.com'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags =' -D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings -DNO_HASH_SEED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 ',
    optimize='-fast +Onolimit +Opromote_indirect_calls +DAportable +DS2.0',
    cppflags='-Aa -D__STDC_EXT__ -D_HPUX_SOURCE -D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings -DNO_HASH_SEED'
    ccversion='B.11.11.29484.GP', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='/usr/bin/ld', ldflags =''
    libpth=/lib /usr/lib /usr/ccs/lib /usr/local/lib
    libs=-lcres -lnsl -lnm -lndbm -lmalloc -ldld -lm -lcrypt -lsec -lpthread -lc
    perllibs=-lcres -lnsl -lnm -lmalloc -ldld -lm -lcrypt -lsec -lpthread -lc
    libc=/lib/libc.sl, so=sl, useshrplib=true, libperl=libperl.sl
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-B,deferred '
    cccdlflags='+Z', lddlflags='-b +vnocompatwarnings'


Characteristics of this binary (from libperl): 
  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
    .
===================== MySQL =============================
# bin/mysql -V 
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
# 


More information about the Greylist-users mailing list