AW: DBD::Informix FAILURE CLASS A gcc: language arch=v9 not recog
am 23.06.2006 07:56:19 von Govinda.PfisterDear Jonathan,
Thanks a lot for your sound advice. And sorry that I did not include =
the plattform information (Solaris) as part of the problem description. =
I noticed just one moment after sending the email...
By the way is it allways the case that one should not use programs =
together that are mixed concerning 32 vs 64 bit builds?
I will give the installation of the 32-Bit CSDK a try ... really hope =
this will solve my problem.=20
Cheers,
Govinda
-----Ursprüngliche Nachricht-----
Von: Jonathan Leffler [mailto:jonathan.leffler@gmail.com]=20
Gesendet: Donnerstag, 22. Juni 2006 17:28
An: Pfister, Govinda
Cc: dbi-users@perl.org; dbd.informix@gmail.com
Betreff: Re: DBD::Informix FAILURE CLASS A gcc: language arch=3Dv9 not =
recognize d
On 6/22/06, Govinda.Pfister@telekom.de
wrote:
> I do have a big problem with a configuration failure (perl =
Makefile.PLdoes not work).
> I studied all the provided readmes and googled endlessly, but did not =
> found a solution.
> Hopefully you can help!
>
> The error message is: gcc: language arch=3Dv9 not recognized A lot of =
> problems I found in the dbi-users mailing list seemed simlar to this=20
> error message, but Perl, DBI where compiled with gcc and not a=20
> diffrent compiler. Right?
>
> Best Regards,
>
> Govinda Pfister
Dear Govinda,
Thanks for including all the relevant information as you did - it =
really helps me diagnose the problems much more swiftly than just =
supplying part of the information would have done.
You have a 32-bit build of Perl - see the line that says =
use64bitint=3Dundef and the line that says longsize=3D4. You have a =
64-bit version of CSDK (ESQL/C), as indicated by F in version 2.90.FC4, =
and you're on Solaris as indicated by the Perl configuration and the =
arch-v9 not recognized error message.
Because you gave me all the information, I can recommend that you =
obtain CSDK 2.90.UC4 for Solaris - the 32-bit version of CSDK or ESQL/C =
instead of the 64-bit version. This will work better with your =
obsolete version of IDS (DB-Access 9.21.UC6 is long overdue for =
upgrade; you will almost certainly get a performance boost out of the =
upgrade too). Assuming you can't upgrade that, the 32-bit CSDK will be =
able to use shared memory connections to the 32-bit server.
The alternative - harder in my view - is to build a 64-bit Perl, and =
then rebuild the other modules (such as DBI) for the new build, and =
then use the 64-bit CSDK. Beware of the Perl configuration process =
picking up 32-bit libraries instead of 64-bit libraries - this =
complicates the build in my experience.
If you decide to go ahead with a 64-bit Perl, then you have another =
preparatory step to do when you are ready to install DBD::Informix =
again.
You'll need to modify the esql script to remove the -xarch=3Dv9 =
directive that is specific to the Sun C compiler and replace it with =
the corresponding -m64 directive for GCC. With GCC v3.3.2, you are =
probably OK - the 64-bit support would, I think, be built =
automatically. Depending on whether you want to use GCC every time, or =
only when you work with Perl, you will take a copy of the esql script =
as provided by IBM/Informix, either in $INFORMIXDIR/bin or in the =
DBD::Informix build directory. Assuming you do this just for =
DBD::Informix, edit the local copy of the script, replacing the C =
compiler (cc) with GCC (gcc), and replacing -xarch=3Dv9 with -m64.
There might be other flags to fiddle with - I don't recall any, but if =
you have problems, get back to me via the mailing lists. Make sure "." =
is on your path ahead of $INFORMIXDIR/bin so you use the local script.
Bugreport-Info:
>
> perl -V
> ---------------------------------------
> Summary of my perl5 (revision 5 version 8 subversion 7) =
configuration:
> Platform:
> osname=3Dsolaris, osvers=3D2.8, archname=3Dsun4-solaris
> uname=3D'sunos solaris 5.8 generic_108528-11 sun4u sparc=20
> sunw,ultra-5_10 '
> config_args=3D'-Dcc=3Dgcc -B/usr/ccs/bin/'
> hint=3Drecommended, useposix=3Dtrue, d_sigaction=3Ddefine
> usethreads=3Dundef use5005threads=3Dundef useithreads=3Dundef=20
> usemultiplicity=3Dundef
> useperlio=3Ddefine d_sfio=3Dundef uselargefiles=3Ddefine =
usesocks=3Dundef
> use64bitint=3Dundef use64bitall=3Dundef uselongdouble=3Dundef
> usemymalloc=3Dn, bincompat5005=3Dundef
> Compiler:
> cc=3D'gcc -B/usr/ccs/bin/', ccflags =3D'-fno-strict-aliasing =
-pipe=20
> -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64',
> optimize=3D'-O',
> cppflags=3D'-fno-strict-aliasing -pipe -I/usr/local/include'
> ccversion=3D'', gccversion=3D'3.3.2', gccosandvers=3D'solaris2.8'
> intsize=3D4, longsize=3D4, ptrsize=3D4, doublesize=3D8, =
byteorder=3D4321
> d_longlong=3Ddefine, longlongsize=3D8, d_longdbl=3Ddefine, =
longdblsize=3D16
> ivtype=3D'long', ivsize=3D4, nvtype=3D'double', nvsize=3D8, =
Off_t=3D'off_t',
> lseeksize=3D8
> alignbytes=3D8, prototype=3Ddefine
> Linker and Libraries:
> ld=3D'gcc -B/usr/ccs/bin/', ldflags =3D' -L/usr/local/lib '
> libpth=3D/usr/local/lib /usr/lib /usr/ccs/lib
> libs=3D-lsocket -lnsl -ldl -lm -lc
> perllibs=3D-lsocket -lnsl -ldl -lm -lc
> libc=3D/lib/libc.so, so=3Dso, useshrplib=3Dfalse, =
libperl=3Dlibperl.a
> gnulibc_version=3D''
> Dynamic Linking:
> dlsrc=3Ddl_dlopen.xs, dlext=3Dso, d_dlsymun=3Dundef, =
ccdlflags=3D' '
> cccdlflags=3D'-fPIC', lddlflags=3D'-G -L/usr/local/lib'
>
>
> Characteristics of this binary (from libperl):
> Compile-time options: USE_LARGE_FILES
> Built under solaris
> Compiled at Dec 2 2005 01:34:16
> @INC:
> /usr/local/lib/perl5/5.8.7/sun4-solaris
> /usr/local/lib/perl5/5.8.7
> /usr/local/lib/perl5/site_perl/5.8.7/sun4-solaris
> /usr/local/lib/perl5/site_perl/5.8.7
> /usr/local/lib/perl5/site_perl/5.6.1
> /usr/local/lib/perl5/site_perl
>
>
> esql -v
> ---------------------------------------
> IBM Informix CSDK Version 2.90, IBM Informix-ESQL Version 2.90.FC4=20
> Software Serial Number AAA#B000000
>
> dbaccess -V
> ----------------------------------------
> DB-Access Version 9.21.UC6
> Software Serial Number AAD#J179567
>
> env | sort
> ----------------------------------------
> _=3D/bin/env
> ARCONFIGDIR=3D/appl/local/ar/config
> ARDATE=3D%d.%m.%y %X
> ARHELP=3D/appl/local/ar/es7601a/help
> ARHOME=3D/users/es7601a/user1/aradmin/arHome
> ARNONROOTINSTALL=3DTRUE
> ARSDIR=3D/appl/local/ar/es7601a/
> BACKUPDIR=3D/appl/local/informix/archive
> BEADIR=3D/appl/local/bea/DMA50A
> CMASK=3D022
> DBD_INFORMIX_DATABASE=3Darsysten_help
> DBD_INFORMIX_DEBUG_ESQLTEST=3Dyes
> DBD_INFORMIX_DEBUG_GCC=3Dyes
> DBD_INFORMIX_PASSWORD=3Dxxxxxxxx
> DBD_INFORMIX_USERNAME=3Daradmin
> DBDATE=3DMDY2
> DBEDIT=3Dvi
> EDITOR=3Dvi
> HISTFILE=3D/.sh_history
> HISTSIZE=3D5000
> HOME=3D/users/es7601a/user1/aradmin
> INFORMIXDIR=3D/opt/IBM/informix
> INFORMIXSERVER=3Darsa1
> INFSHMSERVER=3Des7601ashm
> LANG=3Dde
> LC_ALL=3Dde
>
> =
LD_LIBRARY_PATH=3D/appl/local/bea/DMA50A/lib:/appl/local/ar/ es7601a/bin:=
> /opt/IBM/informix/lib:/opt/IBM/informix/lib/esql
> LOGNAME=3Daradmin
> MAIL=3D/usr/mail/aradmin
> MANPAT=3D:/appl/local/ar/es7601a/man
> MANPATH=3D:/usr/flash/man
>
> =
NLSPATH=3D/usr/lib/locale/C/LC_MESSAGES/%N:/appl/local/ar/es 7601a/locale=
> /C/%N
> NTSPOOLDIR=3D/appl/local/ar/ntspool
> ONCONFIG=3Donconfig.ars
>
> =
PATH=3D/usr/local/bin:/bin:/usr/bin:/usr/ucb:/usr/bin/X11:/u sr/local/bin=
> =
:/usr/bin:/appl/local/bea/DMA50A/bin:/usr/X/bin:/usr/apache/ bin:/usr/c
> =
cs/bin:/usr/dt/bin:/usr/j2re1.4.2_05/bin:/usr/j2sdk1.4.2_05/ bin:/usr/j
> =
2se/bin:/usr/java/bin:/usr/java1.1/bin:/usr/java1.2/bin:/usr /java1.3/b
> =
in:/usr/java1.4.2/bin:/usr/java1.4/bin:/usr/java1.5.0/bin:/u sr/jre1.5.
> =
0_02/bin:/usr/local/bin:/usr/oasys/bin:/usr/openwin/bin:/usr /perl5/bin
> =
:/usr/proc/bin:/usr/sadm/bin:/usr/snadm/bin:/usr/storapi/bin :/usr/symc
> =
li/bin:/usr/vmsys/bin:/usr/xpg4/bin:/appl/local/apache_webpo rtal/bin:/
> appl/local/ar/bin:/appl/local/informix/bin:/appl/local/jakar ta-
> =
tomcat-4.1.29_pegaview/bin:/appl/local/jakarta-tomcat-4.1.30 _geocoder/
> =
bin:/appl/local/jakarta-tomcat-4.1.30_qgis/bin:/appl/local/t omcat-geoc
> =
oder/bin:/appl/local/tomcat-pegaview/bin:/appl/local/tomcat- qgis/bin:/
> =
appl/local/tools/bin:/appl/local/OpenSource/usr/bin:/appl/lo cal/UC4/uc
> =
4263j/bin:/appl/local/amore/autodocu/bin:/appl/local/amore/p erl/bin:/a
> =
ppl/local/apple/5.1/bin:/appl/local/ar/Backup_Patch1484/bin: /appl/loca
> =
l/ar/es7601a/bin:/appl/local/bea/BEAMQ50_PATCH/bin:/appl/loc al/bea/DMA
> =
50A/bin:/appl/local/bea/jdk131_03/bin:/appl/local/bea/jdk131 _10/bin:/a
> =
ppl/local/ebp/ebpgk/bin:/appl/local/emc/ECC/bin:/appl/local/ epos/ecare
> =
/bin:/appl/local/epos/epos40/bin:/appl/local/ftrans/ftrans/b in:/appl/l
> =
ocal/geocoder/java1.3.1_02/bin:/appl/local/iplanet/iplanet-h ttp-4.1/bi
> =
n:/appl/local/iplanet/iplanet_http_6.0/bin:/appl/local/ivmpk g/IVMcvs11
> =
5/bin:/appl/local/oracle/8.1.7.4/bin:/appl/local/oracle/8.1. 7/bin:/app
> =
l/local/oracle/9.2.0.6/bin:/appl/local/oracle/9.2.0/bin:/app l/local/or
> =
acle/OSL/bin:/appl/local/oracle/oid/bin:/appl/local/oracle/o ui/bin:/ap
> =
pl/local/oracle2/oid/bin:/appl/local/pegaview/jdo/bin:/appl/ local/qgis
> =
/aims40exe/bin:/appl/local/qgis/arcexe82/bin:/appl/local/qgi s/j2re1_3_
> =
0_02/bin:/appl/local/qgis/sdeexe83/bin:/appl/local/src/libww w-perl-5.6
> =
4/bin:/appl/local/src/perl-ldap-0.25/bin:/appl/local/tivoli/ lcf/bin:/a
> =
ppl/local/tools/usr/bin:/opt/CTEact/bin:/opt/Navisphere/bin: /opt/ORCLf
> =
map/bin:/opt/Patrol/bin:/opt/SUNWcest/bin:/opt/SUNWcstu/bin: /opt/SUNWe
> =
xplo/bin:/opt/SUNWncswc/bin:/opt/SUNWrtvc/bin:/opt/SUNWsan/b in:/opt/SU
> =
NWsneep/bin:/opt/SUNWsrsas/bin:/opt/SUNWsrsca/bin:/opt/SUNWs rscp/bin:/
> =
opt/SUNWsrsep/bin:/opt/SUNWsrshp/bin:/opt/SUNWsrspx/bin:/opt /SUNWsrsrp
> =
/bin:/opt/SUNWsrssa/bin:/opt/SUNWsrsvp/bin:/opt/SUNWstade/bi n:/opt/VRT
> =
S/bin:/opt/VRTSob/bin:/opt/VRTSvlic/bin:/opt/VRTSvmsa/bin:/o pt/sun/bin
> =
:/opt/tools/bin:/bin:/users/es7601a/user1/aradmin:/opt/gnu/b in:/usr/sb
> =
in:/appl/local/informix/bin:/appl/local/informix/ARSPROD/scr ipts:/appl
> =
/local/informix/bin:/appl/local/informix/ARSPROD/scripts:/op t/IBM/info
> rmix/bin
> PS1=3Des7601a:$PWD$>
> PWD=3D/users/es7601a/user1/aradmin/govinda/DBD-Informix-2005 .02
> SHELL=3D/bin/ksh
>
> =
SHLIB_PATH=3D:/appl/local/informix/lib:/appl/local/informix/ lib/esql:/ap=
> pl/local/informix/lib:/appl/local/informix/lib/esql
> SSH2_CLIENT=3D164.29.8.174 1206 10.100.0.255 22
> SSH2_SFTP_LOG_FACILITY=3D12
> SSH2_TTY=3D/dev/pts/21
> TERM=3Dvt100
> TZ=3DMET
> USER=3Daradmin
>
> perl5.8.7 Makefile.PL
> ----------------------------------------------
> *** ExtUtils::AutoInstall version 0.63
> *** Checking for dependencies...
> [Core Features]
> - DBI ...loaded. (1.51 >=3D 1.38)
> [High Resolution Timing]
> - Time::HiRes ...loaded. (1.66)
> [POD Format Testing]
> - Test::Pod ...missing.
> ==> Auto-install the 1 optional module(s) from CPAN? [y] =
Dispatching=20
> deprecated method 'CPAN::Config::load' to CPAN::HandleConfigOdd =
number=20
> of elements in hash assignment at=20
> /usr/local/lib/perl5/5.8.7/CPAN/HandleConfig.pm line 338.
> CPAN: File::HomeDir loaded ok
> *** Dependencies will be installed the next time you type 'make'.
> (You may need to do that as the 'root' user.)
> *** ExtUtils::AutoInstall configuration finished.
> Subroutine main::WriteMakefile redefined at=20
> /usr/local/lib/perl5/site_perl/5.8.7/ExtUtils/AutoInstall.pm line =
491.
>
> Configuring IBM Informix Database Driver for Perl DBI Version =
2005.02(2005-07-29) (aka DBD::Informix)
> You are using DBI version 1.51 and Perl version 5.008007=20
> Remember to actually read the README file!
>
> Perl: perl v5.008007 sun4-solaris dl_dlopen.xs
> System: sunos solaris 5.8 generic_108528-11 sun4u sparc =
sunw,ultra-5_10
> Using INFORMIXDIR=3D/opt/IBM/informix and ESQL/C compiler esql Using =
IBM=20
> Informix CSDK Version 2.90, IBM Informix-ESQL Version 2.90.FC4from=20
> /opt/IBM/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=20
> esqlinfo.h written OK
>
> Testing whether your Informix test environment will work...
> ccflag =3D <<-fno-strict-aliasing>>
> ccflag =3D <<-pipe>>
> ccflag =3D <<-I/usr/local/include>>
> ccflag =3D <<-D_LARGEFILE_SOURCE>>
> ccflag =3D <<-D_FILE_OFFSET_BITS=3D64>>
> cppflag =3D <<-DESQLC_VERSION=3D290>>
> cppflag =3D <<-DNDEBUG>>
> cppflag =3D <<-DUSE_REAL_MALLOC>>
> execute_command: esql -c -fno-strict-aliasing -pipe=20
> -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64=20
> -DESQLC_VERSION=3D290 -DNDEBUG -DUSE_REAL_MALLOC esqltest.ec
> +ec+ <
> +ec+ <<-c>>
> +ec+ <<-fno-strict-aliasing>>
> +ec+ <<-pipe>>
> +ec+ <<-I/usr/local/include>>
> +ec+ <<-D_LARGEFILE_SOURCE>>
> +ec+ <<-D_FILE_OFFSET_BITS=3D64>>
> +ec+ <<-DESQLC_VERSION=3D290>>
> +ec+ <<-DNDEBUG>>
> +ec+ <<-DUSE_REAL_MALLOC>>
> +ec+ <
> + setenv INFORMIXC =3D /usr/local/bin/perl esqlcc setenv ESQLCC =3D =
gcc=20
> + -B/usr/ccs/bin/
> gcc: language arch=3Dv9 not recognized
> gcc: esqltest.c: linker input file unused because linking not done
> execute_command: esql -c -fno-strict-aliasing -pipe=20
> -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64=20
> -DESQLC_VERSION=3D290 -DNDEBUG -DUSE_REAL_MALLOC esqlc_v6.ec
> +ec+ <
> +ec+ <<-c>>
> +ec+ <<-fno-strict-aliasing>>
> +ec+ <<-pipe>>
> +ec+ <<-I/usr/local/include>>
> +ec+ <<-D_LARGEFILE_SOURCE>>
> +ec+ <<-D_FILE_OFFSET_BITS=3D64>>
> +ec+ <<-DESQLC_VERSION=3D290>>
> +ec+ <<-DNDEBUG>>
> +ec+ <<-DUSE_REAL_MALLOC>>
> +ec+ <
> + setenv INFORMIXC =3D /usr/local/bin/perl esqlcc setenv ESQLCC =3D =
gcc=20
> + -B/usr/ccs/bin/
> gcc: language arch=3Dv9 not recognized
> gcc: esqlc_v6.c: linker input file unused because linking not done
> execute_command: esql -o esqltest esqltest.o esqlc_v6.o
> +ec+ <
> +ec+ <<-o>>
> +ec+ <
> +ec+ <
> +ec+ <
> + setenv INFORMIXC =3D /usr/local/bin/perl esqlcc setenv ESQLCC =3D =
gcc=20
> + -B/usr/ccs/bin/
> gcc: esqltest.o: No such file or directory
> gcc: esqlc_v6.o: No such file or directory
> gcc: language arch=3Dv9 not recognized
> Failed to link test program esqltest
>
>
>
> Govinda Pfister
> Remedy Approved Consultant, Clarify Certified Consultant,=20
> ITIL-Certified
>
> Projectcenter Business Process Solutions Solution & Service Center=20
> Business Enabling Solutions Global Competence Center T-Systems=20
> Enterprise Services GmbH Memmelsdorfer Str. 209a, 96052 Bamberg
> +49 951 4097-161 (Tel)
> +49 951 4097-200 (Fax)
> E-Mail: Govinda.Pfister
> t-systems.com
> Internet:
>
>
>
>
>
>
>
--
Jonathan Leffler
Guardian of DBD::Informix - v2005.02 - http://dbi.perl.org "I don't =
suffer from insanity - I enjoy every minute of it."