HPUX 11.11 mysql zlib DBD::mysql compile error

"Robert Smol" <[email protected]>
Newsgroups gmane.comp.db.mysql.perl
Message-ID <7956513A92463D4A920D356AC877768E01F12758@PRGDCEX002.prg-dc.dhl.com>
Hi great Perl/MySQL Gurus.
 
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. 
 
When I install DBD::mysql I got some error about complaining if
libmysqlclient was compiled with Zlib support.
 
root@czhs0681# perl Makefile.PL --cflags="-I/usr/local/mysql/include -O"
I will use the following settings for compiling and testing:

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

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=64 -g -O
-DVERSION=\"3.0002\"  -DXS_VERSION=\"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=64 -g -O
-DVERSION=\"3.0002\"  -DXS_VERSION=\"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.

 
not sure how to get over this obstacle, do I need to get different
MySQL? recompile it?
 
other installed SW
 
 
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=c,c++
--prefix=/usr/local/pa20_32 --with-local-prefix=/usr/local/pa20_32
--with-gnu-as --with-as=/usr/local/pa20_32/bin/as
--with-ld=/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=hpux, osvers=11.11, archname=PA-RISC2.0
    uname='hp-ux r3 b.11.11 u 9000800 1909236376 unlimited-user license
'
    config_args='-Dusedevel -Dcc=gcc -Uversiononly
-Dinc_version_list=none -des'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-mpa-risc-2-0 -D_HPUX_SOURCE -DDEBUGGING
-fno-strict-aliasing -pipe -I/pro/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
    optimize='-g -O',
    cppflags='-mpa-risc-2-0 -D_HPUX_SOURCE -mpa-risc-2-0 -D_HPUX_SOURCE
-DDEBUGGING -fno-strict-aliasing -pipe -I/pro/local/include'
    ccversion='', gccversion='3.4.4', gccosandvers='hpux11.11'
    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 ='-L/pro/local/lib'
    libpth=/pro/local/lib /lib /usr/lib /usr/ccs/lib /usr/local/lib
    libs=-lcl -lpthread -lnsl -lnm -lndbm -lgdbm -ldb -lmalloc -ldld -lm
-lcrypt -lsec -lc
    perllibs=-lcl -lpthread -lnsl -lnm -lmalloc -ldld -lm -lcrypt -lsec
-lc
    libc=/lib/libc.sl, so=sl, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags='-Wl,-E
-Wl,-B,deferred '
    cccdlflags='-fPIC', lddlflags='-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
    .

 
Thanks
 
Robert Smol
Tools Support Engineer
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.