DBD::mysql problem when I try to compile under HP-UX 11.00

"laboratorio sistemi traffico" <[email protected]>
Newsgroups gmane.comp.db.mysql.perl
Message-ID <79913B7DCF0CB34C9AF6229D402F86F7212ECA@PTPEVS007BA020.idc.cww.telecomitalia.it>
Hi all,
 
I'm new here (and also with Linux, Perl, Mysql).
I'm working with a HP Server 9000 (L1000/L2000) with HP-UX 11.00 OS.
I'm trying to install MySql, Perl, DBI and DBD.
After Install:
- MySql 4.1.7 (HP version from MySql site) (Mysql-standard-4.1.7-hp-hpux11.00-1.7.tar)
- Perl 5.8.2 (depot file from HP site) (perl_D.5.8.2.B_hp-ux_B.11.00_32+64.depot)
- DBI 1.46 (from CPAN.ORG site) (DBI-1.4.tar) (Using the 'CC' from HP-UX 11.00)
with success,
 
I started to install the "DBD::MySql" (DBD-mysql-2.9004.tar).
- "perl Makefile.PL" runs OK!
- "Make" showing and error code 1
 
In attach you can find 2 files:
 
 - the error message
 - some suggestion from the HP help desk
 
I hope this can help you to understand my problems.
 
Thanks in advance to every one that could help me !!
 
Andrea.
 
--------------------------------------------------------------------

CONFIDENTIALITY NOTICE

This message and its attachments are addressed solely to the persons above and may contain confidential information. If you have received the message in error, be informed that any use of the content hereof is prohibited. Please return it immediately to the sender and delete the message. Should you have any questions, please contact us by replying to [email protected].

        Thank you

                                        www.telecomitalia.it

--------------------------------------------------------------------

-- 
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe:    http://lists.mysql.com/[email protected]
HP_support.txt (text/plain, 376 B)
"You can tell them that the script you are using is trying to build a Shared Library but 
it fails because the modules they want to include in this library are not compiled with the required +z or +Z option. 
This option is for PIC ( Position-Independant-Code)"
This is the HP descriptions after tested the library "libmysql.o" extracted with 'ar' from "libmysqlclient.a"
DBD_mysql_errors.txt (text/plain, 3.1 KB)
srvhp01:/backup/SOFTWARE/DBD-mysql-2.9004# /opt/perl/bin/perl -v
 
This is perl, v5.8.2 built for PA-RISC1.1-thread-multi
(with 25 registered patches, see perl -V for more detail)
 
Copyright 1987-2003, Larry Wall
 
Binary build 808 provided by ActiveState Corp. http://www.ActiveState.com
ActiveState is a division of Sophos.
Built Dec  7 2003 13:25:38
 
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
 
Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.
 
srvhp01:/backup/SOFTWARE/DBD-mysql-2.9004# /opt/perl/bin/perl Makefile.PL
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  ../zlib/libz.la
  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'.
 
Unrecognized argument in LIBS ignored: '../zlib/libz.la'
Using DBI 1.46 (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
srvhp01:/backup/SOFTWARE/DBD-mysql-2.9004# make
        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.9004\"  -DXS_VERSION=\"2.9004\" +Z "-I/opt/perl/lib/5.8.2/PA-RISC1.1-thread-multi/CORE"   dbdimp.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.9004\"  -DXS_VERSION=\"2.9004\" +Z "-I/opt/perl/lib/5.8.2/PA-RISC1.1-thread-multi/CORE"   mysql.c
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 "$00000037" in input file "/usr/local/mysql/lib/libmysqlclient.a(libmysql.o)"
        chmod 755 blib/arch/auto/DBD/mysql/mysql.sl
chmod: can't access blib/arch/auto/DBD/mysql/mysql.sl
*** Error exit code 1
 
Stop.
srvhp01:/backup/SOFTWARE/DBD-mysql-2.9004#
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.