Skip Menu |

This queue is for tickets about the DBD-Informix CPAN distribution.

Report information
The Basics
Id: 18412
Status: resolved
Worked: 1 hour (60 min)
Priority: 0/
Queue: DBD-Informix

People
Owner: j.leffler [...] acm.org
Requestors: mario.ramirez [...] efectivale.com.mx
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 2007.0826



Subject: Error Report on DBD Informix Compilation...
Date: Tue, 28 Mar 2006 10:56:16 -0600
To: bug-DBD-Informix [...] rt.cpan.org, "G. Maldonado" <gmaldonado [...] gdemos.com.mx>, gponce [...] gdemos.com.mx
From: Mario Ramirez Canto <mario.ramirez [...] efectivale.com.mx>
We tried to compile DBD for Informix, on a IBM Openpower 720 with Power 5 processor, and only get an error when run compilation. The reference: - Perl version: v5.8.3 built for ppc-linux-thread-multi - DBI version: DBI-1.50 - DBD::Informix version: DBD-Informix-2005.01 - ESQL/C version: We use clientsdk.2.90.FC1.PLINUX - IDS version: IDS 9 Enterprise Edition - C compiler version: gcc version 3.3.3 (SuSE Linux) - What the bug is: Compilation Error - unresolvable R_PPC64_REL24 relocation against many symbols. - What the error messages are: collect2: ld returned 1 exit status make: *** [blib/arch/auto/DBD/Informix/Informix.so] Error 1 - Reproduction: Attached file Where can be found the problem...??? Thanks in advance. -- Saludos. Mario Ramirez Canto Admon. Redes Locales EVSA, Mexico mario.ramirez@efectivale.com.mx Tel. 5241-1463 "Planear: preocuparse por encontrar el mejor método para lograr un resultado accidental". Ambrose Bierce (1842-1914); escritor estadounidense. ====================================================================== Aviso de Confidencialidad: Este correo electronico y/o el material adjunto es para uso exclusivo de la persona o entidad a la que expresamente se le ha enviado, y puede contener informacion confidencial o material privilegiado. Si usted no es el destinatario legitimo del mismo, por favor reportelo inmediatamente al remitente del correo y borrelo sin copiarlo. Cualquier revision, retransmision, difusion o cualquier otro uso de este correo, por personas o entidades distintas a las del destinatario legitimo, queda expresamente prohibido. Este correo electronico no pretende ni debe ser considerado como constitutivo de ninguna relacion legal, contractual o de otra indole similar. Notice of Confidentiality: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender immediately by return electronic transmission and then immediately delete this transmission, including all attachments, without copying, distributing or disclosing same.
# perl Makefile.PL *** ExtUtils::AutoInstall version 0.63 *** Checking for dependencies... [Core Features] - DBI ...loaded. (1.50 >= 1.38) [High Resolution Timing] - Time::HiRes ...loaded. (1.52) [POD Format Testing] - Test::Pod ...missing. ==> Auto-install the 1 optional module(s) from CPAN? [y] n *** ExtUtils::AutoInstall configuration finished. Subroutine main::WriteMakefile redefined at /usr/lib/perl5/site_perl/5.8.3/ExtUtils/AutoInstall.pm line 491, <STDIN> line 1. Configuring IBM Informix Database Driver for Perl DBI Version 2005.01 (2005-03-14) (aka DBD::Informix) You are using DBI version 1.50 and Perl version 5.008003 Remember to actually read the README file! Perl: perl v5.008003 ppc-linux-thread-multi dl_dlopen.xs System: linux gooseberry 2.6.5 #1 smp wed jun 23 16:23:15 utc 2004 ppc ppc ppc gnulinux *** Ideally, you should upgrade to Perl version 5.008006. Using INFORMIXDIR=/opt/informix and ESQL/C compiler esql Using IBM Informix CSDK Version 2.90, IBM Informix-ESQL Version 2.90.FC1 from /opt/informix Beware: DBD::Informix is not yet aware of all the new IUS data types. Assert macro will be disabled! lib/DBD/Informix/Defaults.pm written OK esqlvrsn.h written OK esqlinfo.h written OK Testing whether your Informix test environment will work... ESQLTEST Program Running: @(#)$Id: esqltest.ec,v 2004.1 2004/11/16 22:29:43 jleffler Exp $ $INFORMIXDIR is set to '/opt/informix'. $INFORMIXSERVER is set to 'emisnet'. $DBI_DBNAME set to 'evsa@emisnet'. $DBD_INFORMIX_DATABASE set to 'evsa@emisnet'. $DBD_INFORMIX_DATABASE2 unset - defaulting to 'evsa@emisnet'. $DBD_INFORMIX_USERNAME is set to 'emision'. $DBD_INFORMIX_USERNAME2 is unset - defaulting to 'emision'. $DBD_INFORMIX_PASSWORD is set. $DBD_INFORMIX_PASSWORD2 is unset - defaulting to $DBD_INFORMIX_PASSWORD. Testing connection to evsa@emisnet CONNECT TO 'evsa@emisnet' with user info Testing concurrent connection to evsa@emisnet CONNECT TO 'evsa@emisnet' with user info Your Informix environment is (probably) OK Multiple copies of Driver.xst found in: /usr/lib/perl5/site_perl/5.8.3/ppc-linux-thread-multi/auto/DBI/ /usr/lib/perl5/vendor_perl/5.8.3/ppc-linux-thread-multi/auto/DBI/ at Makefile.PL line 58 Using DBI 1.50 (for perl 5.008003 on ppc-linux-thread-multi) installed in /usr/lib/perl5/site_perl/5.8.3/ppc-linux-thread-multi/auto/DBI/ Writing Makefile for DBD::Informix # make .. .. .. .. .. .. .. .. /usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/../../../../powerpc-suse-linux/bin/ld: dbdimp.o(.text+0x4ea0): unresolvable R_PPC64_REL24 relocation against symbol `.sqli_desc_alloc' /usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/../../../../powerpc-suse-linux/bin/ld: dbdimp.o(.text+0x4ee0): unresolvable R_PPC64_REL24 relocation against symbol `.sqli_curs_locate' /usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/../../../../powerpc-suse-linux/bin/ld: dbdimp.o(.text+0x4ef8): unresolvable R_PPC64_REL24 relocation against symbol `.sqli_describe_stmt' /usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/../../../../powerpc-suse-linux/bin/ld: dbdimp.o(.text+0x4fe4): unresolvable R_PPC64_REL24 relocation against symbol `.sqli_desc_alloc' /usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/../../../../powerpc-suse-linux/bin/ld: dbdimp.o(.text+0x5014): unresolvable R_PPC64_REL24 relocation against symbol `.sqli_curs_locate' /usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/../../../../powerpc-suse-linux/bin/ld: dbdimp.o(.text+0x502c): unresolvable R_PPC64_REL24 relocation against symbol `.sqli_describe_stmt' /usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/../../../../powerpc-suse-linux/bin/ld: dbdimp.o(.text+0x5084): unresolvable R_PPC64_REL24 relocation against symbol `.sqli_desc_get' /usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/../../../../powerpc-suse-linux/bin/ld: dbdimp.o(.text+0x5218): unresolvable R_PPC64_REL24 relocation against symbol `.sqli_desc_dealloc' /usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/../../../../powerpc-suse-linux/bin/ld: dbdimp.o(.text+0x59b8): unresolvable R_PPC64_REL24 relocation against symbol `.sqgetdbs' collect2: ld returned 1 exit status make: *** [blib/arch/auto/DBD/Informix/Informix.so] Error 1
The errors suggest that there is a problem with 32-bit vs 64-bit software. You're using a 64-bit version of CSDK - is Perl compiled as a 64-bit program? Unfortunately, the information that would help me most is in the material you didn't include in the compilation output - please update this report with a complete copy of the build output. You also didn't include the output of 'perl -V' as the documentation requests - please update this with the output of 'perl -V' as well. -- Jonathan Leffler <jleffler@earthlink.net> <jleffler@us.ibm.com> Guardian of DBD::Informix 2003.04 -- see http://dbi.perl.org/ "I don't suffer from insanity - I enjoy every minute of it!"
Subject: Re: [rt.cpan.org #18412] Error Report on DBD Informix Compilation...
Date: Tue, 28 Mar 2006 11:58:03 -0600
To: bug-DBD-Informix [...] rt.cpan.org
From: Mario Ramirez Canto <mario.ramirez [...] efectivale.com.mx>
Many, many thanks...!!! Here i'm include the complete build output, and the "perl -V" output... The perl program, is the packaged with my distro, SUSE Linux Enterprise Server 9 for Power, then i suppose that is complied as 64-bit program. Again, Thanks... Saludos. Mario Ramirez Canto Admon. Redes Locales EVSA, Mexico mario.ramirez@efectivale.com.mx Tel. 5241-1463 "Planear: preocuparse por encontrar el mejor método para lograr un resultado accidental". Ambrose Bierce (1842-1914); escritor estadounidense. Jonathan_Leffler via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=18412 > > > The errors suggest that there is a problem with 32-bit vs 64-bit software. > > You're using a 64-bit version of CSDK - is Perl compiled as a 64-bit > program? > > Unfortunately, the information that would help me most is in the > material you didn't include in the compilation output - please update > this report with a complete copy of the build output. > > You also didn't include the output of 'perl -V' as the documentation > requests - please update this with the output of 'perl -V' as well. > >
====================================================================== Aviso de Confidencialidad: Este correo electronico y/o el material adjunto es para uso exclusivo de la persona o entidad a la que expresamente se le ha enviado, y puede contener informacion confidencial o material privilegiado. Si usted no es el destinatario legitimo del mismo, por favor reportelo inmediatamente al remitente del correo y borrelo sin copiarlo. Cualquier revision, retransmision, difusion o cualquier otro uso de este correo, por personas o entidades distintas a las del destinatario legitimo, queda expresamente prohibido. Este correo electronico no pretende ni debe ser considerado como constitutivo de ninguna relacion legal, contractual o de otra indole similar. Notice of Confidentiality: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender immediately by return electronic transmission and then immediately delete this transmission, including all attachments, without copying, distributing or disclosing same.

Message body is not shown because it is too large.

# perl -V Summary of my perl5 (revision 5.0 version 8 subversion 3) configuration: Platform: osname=linux, osvers=2.6.5, archname=ppc-linux-thread-multi uname='linux gooseberry 2.6.5 #1 smp wed jun 23 16:23:15 utc 2004 ppc ppc ppc gnulinux ' config_args='-ds -e -Dprefix=/usr -Dvendorprefix=/usr -Dinstallusrbinperl -Dusethreads -Di_db -Di_dbm -Di_ndbm -Di_gdbm -Duseshrplib=true -Doptimize=-O2 -fsigned-char -fmessage-length=0 -Wall -Wall -pipe' 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_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2 -fsigned-char -fmessage-length=0 -Wall -Wall -pipe', cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing' ccversion='', gccversion='3.3.3 (SuSE Linux)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='cc', ldflags ='' libpth=/lib /usr/lib /lib64 /usr/lib64 /usr/local/lib libs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc libc=, so=so, useshrplib=true, libperl=libperl.so gnulibc_version='2.3.3' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5/5.8.3/ppc-linux-thread-multi/CORE' cccdlflags='-fPIC', lddlflags='-shared' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT Built under linux Compiled at Jun 30 2004 23:15:08 @INC: /usr/lib/perl5/5.8.3/ppc-linux-thread-multi /usr/lib/perl5/5.8.3 /usr/lib/perl5/site_perl/5.8.3/ppc-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.3/ppc-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl
Dear Mario, Thanks for the 'perl -V' output; it tells me what I need to know, and what you need to know. It contains the lines: intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 This tells me that your Perl is a 32-bit version - not 64-bit. You have two choices - both work, but usually only one at a time. * Obtain a 32-bit Informix ClientSDK and use that with your 32-bit Perl. * Build a 64-bit Perl to use with your 64-bit CSDK. You'll need to rebuild any other additional modules if you change to the 64-bit Perl. You'll probably need to run with two separate INFORMIXDIR's, one for the 32-bit CSDK and one for the 64-bit IDS plus 64-bit CSDK, if you change the version of CSDK. (If you build 64-bit Perl, then check what the compiler options are. I usually use 'gcc -m64' to get everything built 64-bit, but be wary of the location of 64-bit libraries vs 32-bit libraries.) -- Jonathan Leffler <jleffler@earthlink.net> <jleffler@us.ibm.com> Guardian of DBD::Informix 2003.04 -- see http://dbi.perl.org/ "I don't suffer from insanity - I enjoy every minute of it!"
Subject: Re: [rt.cpan.org #18412] Resolved: Error Report on DBD Informix Compilation...
Date: Mon, 05 Jun 2006 13:19:20 -0500
To: bug-DBD-Informix [...] rt.cpan.org
From: Mario Ramirez Canto <mario.ramirez [...] efectivale.com.mx>
Jonathan, i follow your instructions... i use the C's compiler "-m64" flag, but keep the same error... With the Perl 5.8.8 downloaded, and executing the "configure.sh", when is required by shell, i put the "-m64" flag, but to final, get the error in the attached file... or, the resulting perl-5.8.8 contain, again, this line in the "perl -V" output: intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8 What is the right procedure to compile Perl to 64-bits, on my Openpower 720 server...??? This server have Power G5 processor (4 of they), and my OS is RedHat Enterprise Linux 4. Plis, 8-O--- H E L P ME!!! Saludos. Mario Ramirez Canto Admon. Redes Locales EVSA, Mexico mario.ramirez@efectivale.com.mx Tel. 5241-1463 "Planear: preocuparse por encontrar el mejor método para lograr un resultado accidental". Ambrose Bierce (1842-1914); escritor estadounidense. Jonathan_Leffler via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=18412 > > > According to our records, your request has been resolved. If you have any > further questions or concerns, please respond to this message. > >
Subject: Re: [rt.cpan.org #18412] Resolved: Error Report on DBD Informix Compilation...
Date: Mon, 05 Jun 2006 13:23:47 -0500
To: bug-DBD-Informix [...] rt.cpan.org
From: Mario Ramirez Canto <mario.ramirez [...] efectivale.com.mx>
Jonathan, i follow your instructions... i use the C's compiler "-m64" flag, but keep the same error... With the Perl 5.8.8 downloaded, and executing the "configure.sh", when is required by shell, i put the "-m64" flag, but to final, get the error in the attached file... or, the resulting perl-5.8.8 contain, again, this line in the "perl -V" output: intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8 What is the right procedure to compile Perl to 64-bits, on my Openpower 720 server...??? This server have Power G5 processor (4 of they), and my OS is RedHat Enterprise Linux 4. Plis, 8-O--- H E L P ME!!! Saludos. Mario Ramirez Canto Admon. Redes Locales EVSA, Mexico mario.ramirez@efectivale.com.mx Tel. 5241-1463 "Planear: preocuparse por encontrar el mejor método para lograr un resultado accidental". Ambrose Bierce (1842-1914); escritor estadounidense. Jonathan_Leffler via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=18412 > > > According to our records, your request has been resolved. If you have any > further questions or concerns, please respond to this message. > >
gcc -o miniperl \ miniperlmain.o opmini.o libperl.a -lnsl -ldl -lm -lcrypt -lutil -lc /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `miniperlmain.o' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `opmini.o' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(perl.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(gv.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(toke.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(perly.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(pad.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(regcomp.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(dump.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(util.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(mg.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(hv.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(av.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(run.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(pp_hot.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(sv.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(pp.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(scope.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(pp_ctl.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(pp_sys.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(doop.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(doio.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(regexec.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(utf8.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(taint.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(deb.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(universal.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(xsutils.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(globals.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(perlio.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(numeric.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(locale.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(pp_pack.o)' es incompatible con la salida powerpc:common /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `libperl.a(pp_sort.o)' es incompatible con la salida powerpc:common miniperlmain.o(.text+0x22): reubicación truncada para ajustar: R_PPC64_TOC16_DS .toc miniperlmain.o(.text+0x34): reubicación truncada para ajustar: R_PPC64_REL24 signal miniperlmain.o(.text+0x3e): reubicación truncada para ajustar: R_PPC64_TOC16_DS .toc miniperlmain.o(.text+0x46): reubicación truncada para ajustar: R_PPC64_TOC16_DS .toc miniperlmain.o(.text+0x5e): reubicación truncada para ajustar: R_PPC64_TOC16_DS .toc miniperlmain.o(.text+0x70): reubicación truncada para ajustar: R_PPC64_REL24 exit miniperlmain.o(.text+0x7a): reubicación truncada para ajustar: R_PPC64_TOC16_DS .toc miniperlmain.o(.text+0x8a): reubicación truncada para ajustar: R_PPC64_TOC16_DS .toc miniperlmain.o(.text+0x96): reubicación truncada para ajustar: R_PPC64_TOC16_DS .toc miniperlmain.o(.text+0xa6): reubicación truncada para ajustar: R_PPC64_TOC16_DS .toc miniperlmain.o(.text+0xae): se omitieron desbordamientos de reubicación adicionales de la salida collect2: ld devolvió el estado de salida 1 make: *** [miniperl] Error 1
perl -V Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=linux, osvers=2.6.9-34.el, archname=ppc64-linux-64int uname='linux lxevsa.efectivale.com.mx 2.6.9-34.el #1 smp fri feb 24 16:46:57 est 2006 ppc64 ppc64 ppc64 gnulinux ' config_args='' 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=define use64bitall=undef uselongdouble=define usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-I/m64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm', optimize='-O1', cppflags='-I/m64 -I/usr/include/gdbm' ccversion='', gccversion='3.4.5 20051201 (Red Hat 3.4.5-2)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8 ivtype='long long', ivsize=8, nvtype='long double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='gcc', ldflags ='' libpth=/usr/lib64 libs=-lnsl -ldl -lm -lcrypt -lutil -lc perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc libc=/lib/libc-2.3.4.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='2.3.4' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fpic', lddlflags='-shared' Characteristics of this binary (from libperl): Compile-time options: PERL_MALLOC_WRAP USE_64_BIT_INT USE_LARGE_FILES USE_PERLIO Built under linux Compiled at May 17 2006 11:15:13 @INC: /usr/local/lib/perl5/5.8.8/ppc64-linux-64int /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/ppc64-linux-64int /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl
Subject: Error Report on DBD::Informix Compilation...
On Mon Jun 05 14:25:25 2006, mario.ramirez@efectivale.com.mx wrote: Show quoted text
> Jonathan, i follow your instructions... i use the C's compiler "-m64" > flag, but keep the same error... >
How did you use the -m64 flag? Show quoted text
> With the Perl 5.8.8 downloaded, and executing the "configure.sh", when > is required by shell, i put the "-m64" flag, but to final, get the error > in the attached file... or, the resulting perl-5.8.8 contain, again, > this line in the "perl -V" output: > > intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321 > d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8 > > What is the right procedure to compile Perl to 64-bits, on my Openpower > 720 server...??? > > This server have Power G5 processor (4 of they), and my OS is RedHat > Enterprise Linux 4. > > Plis, 8-O--- H E L P ME!!! >
In the record of the build, it says: gcc -o miniperl \ miniperlmain.o opmini.o libperl.a -lnsl -ldl -lm -lcrypt -lutil -lc /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de entrada `miniperlmain.o' es incompatible con la salida powerpc:common OK - I must not have made myself clear enough. When the Perl Configure script asks you which C compiler to use, you say "gcc -m64". That way, when you show me the command line above, I'll see: gcc -m64 -o miniperl [...] Note that when you do this, you need to be careful with library paths - if the machine also runs 32-bit, you may well pick up 32-bit libraries instead of 64-bit libraries, and then you run into the same problem again. As I said way back in March, it is also possible to get a 32-bit CSDK. If you are not sure how to build a 64-bit Perl, get a 32-bit CSDK instead. It is easier. I usually do that - use a 32-bit Perl and 32-bit CSDK even though my machine is perfectly capable of running 64-bit software. Show quoted text
> Saludos. > Mario Ramirez Canto > Admon. Redes Locales EVSA, Mexico > mario.ramirez@efectivale.com.mx > Tel. 5241-1463 > > "Planear: preocuparse por encontrar el mejor método para lograr un > resultado accidental". > Ambrose Bierce (1842-1914); escritor estadounidense. > > > > Jonathan_Leffler via RT wrote:
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=18412 > > > > > According to our records, your request has been resolved. If you
have any Show quoted text
> > further questions or concerns, please respond to this message.
-- Jonathan Leffler <jleffler@earthlink.net> <jleffler@us.ibm.com> Guardian of DBD::Informix 2003.04 -- see http://dbi.perl.org/ "I don't suffer from insanity - I enjoy every minute of it!"
Subject: Re: [rt.cpan.org #18412] Error Report on DBD::Informix Compilation...
Date: Wed, 14 Jun 2006 11:58:38 -0500
To: bug-DBD-Informix [...] rt.cpan.org
From: Mario Ramirez Canto <mario.ramirez [...] efectivale.com.mx>
Thanks again... now, i need the link to get the 32-bits CSDK, because in IBM's site, i only find 64-bits CSDK... this is the ultimate "lata" (like we says in Mexico) that i give you... please. Saludos. Mario Ramirez Canto Admon. Redes Locales EVSA, Mexico mario.ramirez@efectivale.com.mx Tel. 5241-1463 "Planear: preocuparse por encontrar el mejor método para lograr un resultado accidental". Ambrose Bierce (1842-1914); escritor estadounidense. Jonathan_Leffler via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=18412 > > > On Mon Jun 05 14:25:25 2006, mario.ramirez@efectivale.com.mx wrote: >
>> Jonathan, i follow your instructions... i use the C's compiler "-m64" >> flag, but keep the same error... >> >>
> > How did you use the -m64 flag? > > >
>> With the Perl 5.8.8 downloaded, and executing the "configure.sh", when >> is required by shell, i put the "-m64" flag, but to final, get the error >> in the attached file... or, the resulting perl-5.8.8 contain, again, >> this line in the "perl -V" output: >> >> intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321 >> d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8 >> >> What is the right procedure to compile Perl to 64-bits, on my Openpower >> 720 server...??? >> >> This server have Power G5 processor (4 of they), and my OS is RedHat >> Enterprise Linux 4. >> >> Plis, 8-O--- H E L P ME!!! >> >>
> > > > In the record of the build, it says: > > > > gcc -o miniperl \ > miniperlmain.o opmini.o libperl.a -lnsl -ldl -lm -lcrypt -lutil -lc > /usr/bin/ld: aviso: la arquitectura powerpc:common64 del fichero de > entrada `miniperlmain.o' es incompatible con la salida powerpc:common > > > > OK - I must not have made myself clear enough. > > > When the Perl Configure script asks you which C compiler to use, you say > "gcc -m64". > > That way, when you show me the command line above, I'll see: > > gcc -m64 -o miniperl [...] > > Note that when you do this, you need to be careful with library paths - > if the machine also runs 32-bit, you may well pick up 32-bit libraries > instead of 64-bit libraries, and then you run into the same problem again. > > As I said way back in March, it is also possible to get a 32-bit CSDK. > If you are not sure how to build a 64-bit Perl, get a 32-bit CSDK > instead. It is easier. I usually do that - use a 32-bit Perl and > 32-bit CSDK even though my machine is perfectly capable of running > 64-bit software. > > > >
>> Saludos. >> Mario Ramirez Canto >> Admon. Redes Locales EVSA, Mexico >> mario.ramirez@efectivale.com.mx >> Tel. 5241-1463 >> >> "Planear: preocuparse por encontrar el mejor método para lograr un >> resultado accidental". >> Ambrose Bierce (1842-1914); escritor estadounidense. >> >> >> >> Jonathan_Leffler via RT wrote: >>
>>> <URL: http://rt.cpan.org/Ticket/Display.html?id=18412 > >>> >>> According to our records, your request has been resolved. If you >>>
> have any >
>>> further questions or concerns, please respond to this message. >>>
> > > >
The build problems run into stem from mixing a 32-bit Perl and a 64-bit CSDK. The previous responses indicate how to go about building 64-bit versions of Perl; I have since used the 'gcc -m64' technique on RHEL Linux for PPC-64 with success, and have build DBD::Informix 2007.0226 with CSDK 3.00. That wasn't wholly painless due to problems recognizing the CSDK version, but building Perl with 'gcc -m64' worked well, and other techniques did not. I claim that with the correct setup - a matched Perl and CSDK, it is perfectly feasible to build DBD::Informix of 64-bit RHEL for PPC-64. -- Jonathan Leffler <jleffler@earthlink.net> <jleffler@us.ibm.com> Guardian of DBD::Informix 2007.0226 -- see http://dbi.perl.org/ "I don't suffer from insanity - I enjoy every minute of it!"