Re: DBI/DBD for INFORMIX-SE 7.24.UC5 for Linux Redhat
Posted in 1998
Jonathon, Hoang,
I have run into some problems after studying the readme.
I can make the DBI but I receive an error when I make DBD [Makefile.PL -
home/informix/lib/esql/libixos.so: undefined reference to `crypt'.]. I put
some print statements into the Makefile.PL to see what it was linking.
I created a hello.c program which I can get to compile and run. I can run
dbaccess for Informix
and everything there looks cool. Any help would be great! BTW - can
anyone explain
what this glibc issue is for Redhat? Would it be better for me just to
switch to Caldera or
something else? I have found reference to this issue in the Linux Journal
and through out
the newsgroups.
Thanks in Advance,
David Meyer
The details
-----------------------------------------------------
Redhat 5.1
Informix 7.24.UC5
PERL 5.004_04 built for i386-linux
DBD-0.93
DBD-Informix-0.60
gcc version 2.7.2.3
$ perl Makefile.PL
Configuring DBD::Informix version 0.60...
You are using DBI version 0.93 and Perl version 5.00404
Remember to actually read the README file!
*** Ideally, you should upgrade to DBI version 0.95.
Using INFORMIX-ESQL Version 7.24.UC5 from /home/informix
DBD::Informix doesn't check whether ODBC or Informix-CLI software
is installed any more. It uses a home-brew odbctype.h instead.
Testing whether your Informix test environment will work...
EQ: INFORMIXC='/usr/bin/perl esqlcc' ESQLCC='cc' esql
OBJEXT: .o
VERCODE: esqlc_v6
ABOUT TO system: INFORMIXC='/usr/bin/perl esqlcc' ESQLCC='cc'
esql -c -Dbool=char -DHAS_BOOL -I/usr/local/include -DESQLC_VERSION=724 -DU
SE_PROTOTYPES esqltest.ec
cc: /home/informix/lib/libnetstub.so: linker input file unused since linking
not done
ABOUT TO system: INFORMIXC='/usr/bin/perl esqlcc' ESQLCC='cc'
esql -c -Dbool=char -DHAS_BOOL -I/usr/local/include -DESQLC_VERSION=724 -DU
SE_PROTOTYPES esqlc_v6.ec
cc: /home/informix/lib/libnetstub.so: linker input file unused since linking
not done
ABOUT TO system: INFORMIXC='/usr/bin/perl esqlcc' ESQLCC='cc' esql -o
esqltest esqltest.o esqlc_v6.o
/home/informix/lib/esql/libixos.so: undefined reference to `crypt'
Failed to link test program esqltest
Jonathan Leffler wrote in message <363AB0F5.7CC1@earthlink.net>...
>Hoang Nguyen wrote:
>> Has any one successfully compiled the DBD modules
>> to access informix-se database on Linux?
>
>Yes; I have.
>
>> I have INFORMIX-SE 7.24 installed on my linux box
>> but haven't figured out what's the DBI/DBD version
>> that will work with this INFORMIX.
>
>DBI 1.02, DBD::Informix 0.60 works on RedHat 5.1; so
>would most other combinations which are self-consistent,
>I think, though I'm certainly not planning to do any testing
>of older versions.
>
>> If someone has already done so! please tell me where
>> I can get these drivers!
>
>See my signature...
>
>What problem(s) are you having? Have you set DBPATH? Have you got
>ESQL/C running OK? If you haven't got ESQL/C up and running, you
>do have problems. It should work out of the box on Caldera 1.2 and
>S.u.S.E 5.2, but the glibc ports require some extra setup.
>
>I have previously posted a patch to c.d.i for the esql script for
>glibc ports of Linux (eg RedHat 5.1). It will soon appear on the
>IDN web site -- http://www.informix.com/idn -- in the D4GL section
>(for inscrutable reasons).
>
>Also, did you read the README files? Possibly not if you don't yet
>have the software -- but you should read them. They're available
>from CPAN separately from the full source for DBI and DBD::Informix.
>
>--
>Jonathan Leffler (jleffler@informix.com, jleffler@earthlink.net)
>Guardian of DBD::Informix v0.60 -- see http://www.perl.com/CPAN
>#include <disclaimer.h>
>