List:General Discussion« Previous MessageNext Message »
From:joecool Date:April 4 1999 11:48pm
Subject:HPUX libmysqlclient.a compiled w/ +z option??
View as plain text  
I am looking into cutting a present database system over to Mysql.
However I have had a hell of a time with the porting between Solaris
2.5.1 (where I got everything to work) and HPUX 10.20 (where it will
eventually run permently).  Under Solaris I installed Mysql and the
Data-Dumper, DBI 1.06, and Msql-Mysql-modules 1.2014 for perl (and Perl
5.004). Everything works great under Solaris 2.5.1 but I need the same
scripts and a Mysql database running under HPUX 10.20 and that has
turned into an extremely frustrating task.

I could not get Mysql 3.22 to compile under HPUX (but I'm not a heavy
programmer and I just want it installed and working). I read the mailing
lists and instructions and tried the various suggestions from posting
with no luck. So I used the binary HP depot for Mysql 3.21 and finally
got that working under HPUX 10.20. The Data-Dumper and DBI perl modules
seemed to install ok

However, the Msql-Mysql-modules 1.2014 gives the following errors
complaining about the libmysqlclient.a file when I issue "perl
        [After answering various setup questions]
        You're building on HP-UX with the HP compiler
        You might get a warning at the link stage of:

        ld: DP-Relative Code in file .../libmysqlclient.a (libmysql.o)
        > - Shared Library must be Position-Independent

        You'll have to recompile libmysqlclient.a from the mysql
distribution specifying
        the '+z' flag of your C compiler
        Creating Mysql files ............................
        Checking if the kit is complete...
        Looks good
        Writing Makefile for DBD::mysql
        Writing Makefile for Msql-Mysql-modules

If I proceed with a 'make' anyway it starts the make and dies at

        Running Mkbootstrap for DBD::myql ()
        chmod 644
        LD_RUN_PATH="/opt/mysql/lib/mysql:/usr/lib/pa1.1" ld -o
        ld: DP relative code in file
/opt/mysql/lib/mysql/libmysqlclient.a(libmysql.o) -
        independent.  Use +z or +Z to recompile.
        *** Error exit code 1

part of the lines above were cut off after 80 characters, but that is
basically the error.

So my questions, has anybody gotten perl access to Mysql working under
HPUX 10.20?? If so did you
have to recompile the libmysqlclient.a file independently with +Z and if
so how do I do that?? I had to load
the binary HP depot because I can't get anywhere compiling Mysql from
scratch. Could somebody send me
the libmysqlclient.a file?? Is there an easy command to recompiler this
library manually??
finally can the recompile be done w/ the HPUX cc compiler because I've
had problems
getting the gcc compiler to work correctly when I was trying to compile
Mysql originally.

any help would be greatly appreciated. I'm about ready to give up but
continue to think I'm close. I thought since the
Perl modules loaded under Solaris no problem they would as well under
HPUX, guess it's not that simple.

thanxs for any help.


HPUX libmysqlclient.a compiled w/ +z option??joecool5 Apr
RE: HPUX libmysqlclient.a compiled w/ +z option??Brian Hochgurtel5 Apr