From: Brian Hochgurtel Date: April 5 1999 4:25pm Subject: RE: HPUX libmysqlclient.a compiled w/ +z option?? List-Archive: http://lists.mysql.com/mysql/1423 Message-Id: <380836BBF923D211A55200608CB9832851F72B@EXCHANGE> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" I've just been through all of this so I do have some advice. The installation error your getting happens because Perl and Mysql were compiled using different compilers. The Mysql depot files were probably compiled using gcc while your version of perl used the HPUX compiler. If you look in the INSTALL or the README they give you a cheat on how to bypass this. Though I was unable to get it to work. Your best bet is to download and install gcc and compile perl AND mysql with that. Make sure to download the libstdc++ as well as the gcc compiler. Or I could just send you a tar file of the version of Perl I just compiled. Let me know, Brian -----Original Message----- From: joecool@stripped [mailto:joecool@stripped] Sent: Sunday, April 04, 1999 5:48 PM To: mysql@stripped Subject: HPUX libmysqlclient.a compiled w/ +z option?? 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 Makefile.PL" [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 mysql.bs LD_RUN_PATH="/opt/mysql/lib/mysql:/usr/lib/pa1.1" ld -o .././blib/arch/auto/DBD/ 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 Stop 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. Russ russ@stripped --------------------------------------------------------------------- Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before posting. To request this thread, e-mail mysql-thread1407@stripped To unsubscribe, send a message to the address shown in the List-Unsubscribe header of this message. If you cannot see it, e-mail mysql-unsubscribe@stripped instead.