Re: DBD::Informix install issues
Posted in 2003
Jonathan,
I now have 64 bit Perl version and the DBI 1.35. I am using Sun C
compiler. I am having some issus while installing DBD::Informix at
"make" phase.
Here is output for perl -V :
# more perlv.outSummary of my perl5 (revision 5.0 version 8 subversion 0)
configuration:
Platform:
osname=solaris, osvers=2.8, archname=sun4-solaris-64int
uname='sunos e2 5.8 generic_108528-16 sun4u sparc sunw,sun-fire '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=unde
f
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=define use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='/opt/SUNWspro/bin/cc', ccflags ='-I/usr/local/include
-D_LARGEFILE_SOURC
E -D_FILE_OFFSET_BITS=64',
optimize='-O',
cppflags='-I/usr/local/include'
ccversion='', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321
d_longlong=define, longlongsize=8, d_longdbl=define,
longdblsize=16
ivtype='long long', ivsize=8, nvtype='double', nvsize=8,
Off_t='off_t', lsee
ksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='/opt/SUNWspro/bin/cc', ldflags =' -L/usr/local/lib '
libpth=/usr/local/lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -lgdbm -ldb -ldl -lm -lc
perllibs=-lsocket -lnsl -ldl -lm -lc
libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-KPIC', lddlflags='-G -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_64_BIT_INT USE_LARGE_FILES
Built under solaris
Compiled at Sep 1 2003 13:20:55
@INC:
/usr/local/lib/perl5/5.8.0/sun4-solaris-64int
/usr/local/lib/perl5/5.8.0
/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris-64int
/usr/local/lib/perl5/site_perl/5.8.0
/usr/local/lib/perl5/site_perl/5.6.1
/usr/local/lib/perl5/site_perl/5.6.0
/usr/local/lib/perl5/site_perl
.
The DBD Informix install : Perl Makefile.PL output is :
# perl Makefile.PL
*** ExtUtils::AutoInstall version 0.52
*** Checking for dependencies...
[Core Features]
- DBI ...loaded. (1.35 >= 1.33)
[High Resolution Timing]
- Time::HiRes ...loaded. (1.2)
*** ExtUtils::AutoInstall configuration finished.
Subroutine main::WriteMakefile redefined at
/usr/local/lib/perl5/site_perl/5.8..
Configuring IBM Informix Database Driver for Perl Version 2003.04
(2003-03-05) )
You are using DBI version 1.35 and Perl version 5.008
Remember to actually read the README file!
Perl: perl5.008 sun4-solaris-64int dl_dlopen.xs
System: sunos e2 5.8 generic_108528-16 sun4u sparc sunw,sun-fire
Compiler: /opt/SUNWspro/bin/cc -O -I/usr/local/include
-D_LARGEFILE_SOURCE -D_F4
Using IBM Informix CSDK Version 2.80, IBM Informix-ESQL Version
9.52.FC2 from
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 100.3 2002/02/08 22:49:23 jleffler Exp $
$INFORMIXDIR is set to '/usr/informix/prod'.
$INFORMIXSERVER is set to 'ambush'.
$DBI_DBNAME unset - defaulting to 'stores'.
$DBD_INFORMIX_DATABASE unset - defaulting to 'stores'.
$DBD_INFORMIX_DATABASE2 unset - defaulting to 'stores'.
$DBD_INFORMIX_USERNAME is unset.
$DBD_INFORMIX_USERNAME2 is unset.
$DBD_INFORMIX_PASSWORD is unset.
$DBD_INFORMIX_PASSWORD2 is unset.
Testing connection to stores
CONNECT TO 'stores' - no user info
Testing concurrent connection to stores
CONNECT TO 'stores' - no user info
Your Informix environment is (probably) OK
WARNING: LD is not a known parameter.
Using DBI 1.35 installed in
/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris-6I
Writing Makefile for DBD::Informix
#make
# make
Skip blib/lib/DBD/Informix/TechSupport.pm (unchanged)
Skip blib/lib/DBD/Informix/Summary.pm (unchanged)
Skip blib/lib/DBD/Informix/Configure.pm (unchanged)
Skip blib/lib/Bundle/DBD/Informix.pm (unchanged)
Skip blib/lib/DBD/Informix/TypeInfo.pm (unchanged)
Skip blib/lib/DBD/Informix/TestHarness.pm (unchanged)
Skip blib/lib/DBD/Informix/GetInfo.pm (unchanged)
Skip blib/lib/DBD/Informix.pm (unchanged)
Skip blib/lib/DBD/Informix/Defaults.pm (unchanged)
Skip blib/lib/DBD/Informix/Metadata.pm (unchanged)
/usr/bin/perl /usr/local/lib/perl5/5.8.0/ExtUtils/xsubpp -typemap
/usr/local/lc
/opt/SUNWspro/bin/cc -c -I/usr/informix/prod/incl/esql
-I/usr/local/lib/perl5/c
INFORMIXC="/usr/bin/perl esqlcc" ESQLCC="/opt/SUNWspro/bin/cc" esql -c-shared c
"dbdimp.ec", line 2152: warning: argument #2 is incompatible with
prototype:
prototype: pointer to int :
"/usr/informix/prod/incl/esql/sqlhdr.h", li2
argument : pointer to long
rm -f dbdimp.c
INFORMIXC="/usr/bin/perl esqlcc" ESQLCC="/opt/SUNWspro/bin/cc" esql -c-shared c
rm -f dbdattr.c
/opt/SUNWspro/bin/cc -c -I/usr/informix/prod/incl/esql
-I/usr/local/lib/perl5/c
INFORMIXC="/usr/bin/perl esqlcc" ESQLCC="/opt/SUNWspro/bin/cc" esql -c-shared c
rm -f sqltype.c
INFORMIXC="/usr/bin/perl esqlcc" ESQLCC="/opt/SUNWspro/bin/cc" esql -c-shared c
rm -f ixblob.c
/opt/SUNWspro/bin/cc -c -I/usr/informix/prod/incl/esql
-I/usr/local/lib/perl5/c
/opt/SUNWspro/bin/cc -c -I/usr/informix/prod/incl/esql
-I/usr/local/lib/perl5/c
/opt/SUNWspro/bin/cc -c -I/usr/informix/prod/incl/esql
-I/usr/local/lib/perl5/c
INFORMIXC="/usr/bin/perl esqlcc" ESQLCC="/opt/SUNWspro/bin/cc" esql -c-shared c
rm -f esqlcver.c
INFORMIXC="/usr/bin/perl esqlcc" ESQLCC="/opt/SUNWspro/bin/cc" esql -c-shared c
rm -f esqlc_v6.c
Running Mkbootstrap for DBD::Informix ()
chmod 644 Informix.bs
rm -f blib/arch/auto/DBD/Informix/Informix.so
LD_RUN_PATH="" INFORMIXC='/usr/bin/perl esqlld'
ESQLLD='/opt/SUNWspro/bin/cc -G
ld: fatal: file Informix.o: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to
blib/arch/auto/DBD/Infoo
make: *** [blib/arch/auto/DBD/Informix/Informix.so] Error 1
Any help will be appreciated.
Thanks,
Ashutosh
preetinder dhaliwal <preetinder.dhaliwal@dhl.com> wrote in message news:<bigt1j$vu0$1@terabinaries.xmission.com>...
> Ur makefile should have those settings ( something like CC=gcc ... )
>
> Rgds
> Preetinder
>
> Ashutosh wrote:
>
> >I am trying to install DBD::Informix on a Solaris machine. Solaris 8
> >with Sun "C" compiler installed and gcc version 2.95.2.
> >
> >Informix Database version 9.3.FC3