DBD::Informix

Helmut <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.general
Message-ID <[email protected]>
Hi all,

i have problems building DBD::Informix.

Running Makefile.pl ends up with

..
/opt/IBM/informix/lib/libifasf.so: undefined reference to `dlopen'
/opt/IBM/informix/lib/esql/libifos.so: undefined reference to `crypt'
/opt/IBM/informix/lib/libifasf.so: undefined reference to `dlclose'
/opt/IBM/informix/lib/libifasf.so: undefined reference to `dlerror'
/opt/IBM/informix/lib/libifasf.so: undefined reference to `dlsym'
collect2: Fehler: ld gab 1 als Ende-Status zurück
Failed to link test program esqltest
running on configuration at lib/DBD/Informix/TechSupport.pm line 225.

System: ArchLinux x86-64
Perl: v5.18.2
Informix: clientsdk.4.10.FC4DE.LINUX
DBD-Informix-2013.0521

The bug report "perl -Ilib BugReport A" is below / attached.

What can i do to track the problem down?

Thank you
Helmut
bugreport.out (text/plain, 7.6 KB)
Command:   BugReport A 
Date:      Mi 9. Jul 16:23:59 CEST 2014
Machine:   vmware-schniefie (Linux 3.15.3-1-ARCH)
User:      uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),19(log)
Directory: /root/install/DBD-Informix-2013.0521
Umask:     0022
Terminal:  /dev/pts/1

#
# Perl Version
Summary of my perl5 (revision 5 version 18 subversion 2) configuration:
   
  Platform:
    osname=linux, osvers=3.12.6-1-arch, archname=x86_64-linux-thread-multi
    uname='linux mnt-chroots-arch-extra-x86_64-flo-64 3.12.6-1-arch #1 smp preempt fri dec 20 19:39:00 cet 2013 x86_64 gnulinux '
    config_args='-des -Dusethreads -Duseshrplib -Doptimize=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -Dprefix=/usr -Dvendorprefix=/usr -Dprivlib=/usr/share/perl5/core_perl -Darchlib=/usr/lib/perl5/core_perl -Dsitelib=/usr/share/perl5/site_perl -Dsitearch=/usr/lib/perl5/site_perl -Dvendorlib=/usr/share/perl5/vendor_perl -Dvendorarch=/usr/lib/perl5/vendor_perl -Dscriptdir=/usr/bin/core_perl -Dsitescript=/usr/bin/site_perl -Dvendorscript=/usr/bin/vendor_perl -Dinc_version_list=none -Dman1ext=1perl -Dman3ext=3perl -Dcccdlflags='-fPIC' -Dlddlflags=-shared -Wl,-O1,--sort-common,--as-needed,-z,relro -Dldflags=-Wl,-O1,--sort-common,--as-needed,-z,relro'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.8.2 20131219 (prerelease)', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='cc', ldflags ='-Wl,-O1,--sort-common,--as-needed,-z,relro -fstack-protector -L/usr/local/lib'
    libpth=/usr/local/lib /lib/../lib /usr/lib/../lib /lib /usr/lib /lib64 /usr/lib64
    libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc -lgdbm_compat
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=/lib/libc-2.18.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.18'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/usr/lib/perl5/core_perl/CORE'
    cccdlflags='-fPIC', lddlflags='-shared -Wl,-O1,--sort-common,--as-needed,-z,relro -L/usr/local/lib -fstack-protector'


Characteristics of this binary (from libperl): 
  Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS
                        PERL_DONT_CREATE_GVSV
                        PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
                        PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
                        PERL_PRESERVE_IVUV PERL_SAWAMPERSAND USE_64_BIT_ALL
                        USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
                        USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
                        USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
                        USE_REENTRANT_API
  Built under linux
  Compiled at Jan 12 2014 12:55:05
  @INC:
    /usr/lib/perl5/site_perl
    /usr/share/perl5/site_perl
    /usr/lib/perl5/vendor_perl
    /usr/share/perl5/vendor_perl
    /usr/lib/perl5/core_perl
    /usr/share/perl5/core_perl
    .

#
# Informix Version
Using INFORMIXDIR=/opt/IBM/informix and ESQL/C compiler esql
INFORMIXDIR = /opt/IBM/informix
ESQLC = esql
Version = IBM Informix CSDK Version 4.10, IBM Informix-ESQL Version 4.10.FC4DE
DBMS Version = DB-Access Version 12.10.FC4 
Informix Server Entries in sqlhosts file (/opt/IBM/informix/etc/sqlhosts)
ol_vmware_lucky 	onsoctcp	vmware-lucky.unsinn.local	9090

#
# Sorted Environment
CLIENT_LOCALE=EN_US.UTF8
DBDATE=Y4MD-
DBD_INFORMIX_DATABASE=test@ol_vmware_lucky
DBD_INFORMIX_DEBUG_ESQLCC=yes
DBD_INFORMIX_DEBUG_ESQLLD=yes
DBD_INFORMIX_PASSWORD=XXXXXXXX
DBD_INFORMIX_USERNAME=informix
DBNLS=1
DB_LOCALE=EN_US.UTF8
GL_USEGLU=1
HISTCONTROL=ignorespace
HOME=/root
INFORMIXDIR=/opt/IBM/informix
INFORMIXSERVER=ol_vmware_lucky
JAVA_HOME=/usr/lib/jvm/java-7-openjdk/jre
LANG=de_DE.UTF-8
LC_COLLATE=C
LD_LIBRARY_PATH=/opt/IBM/informix/lib:/opt/IBM/informix/lib/esql:/opt/IBM/informix/lib/c++:/opt/IBM/informix/lib/cli:/opt/IBM/informix/lib/client:/opt/IBM/informix/lib/dmi:/usr/lib
LOGNAME=root
MAIL=/var/spool/mail/root
MC_SID=7803
MC_TMPDIR=/tmp/mc-root
OLDPWD=/usr/lib64
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/IBM/informix/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
PWD=/root/install/DBD-Informix-2013.0521
ROOTPATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/IBM/informix/bin:/opt/IBM/informix/bin
SHELL=/bin/bash
SHLVL=2
SSH_CLIENT=192.168.2.99 39020 22
SSH_CONNECTION=192.168.2.99 39020 192.168.2.86 22
SSH_TTY=/dev/pts/0
TERM=xterm
USER=root
XDG_RUNTIME_DIR=/run/user/0
XDG_SESSION_ID=c5
_=/usr/bin/perl

# End of Configuration Report

#
# Redoing configuration
+ [ ! -f Makefile ] || make realclean
+ rm -f esql esqlvrsn.h esqlinfo.h
+ /usr/bin/perl Makefile.PL
*** ExtUtils::AutoInstall version 0.63
*** Checking for dependencies...
[Core Features]
- DBI         ...loaded. (1.631 >= 1.38)
[High Resolution Timing]
- Time::HiRes ...loaded. (1.9725)
[POD Format Testing]
- Test::Pod   ...loaded. (1.48)
*** ExtUtils::AutoInstall configuration finished.

Configuring Informix Database Driver for Perl DBI Version 2013.0521 (2013-05-21) (aka DBD::Informix)
        You are using DBI version 1.631 and Perl version 5.018002
Remember to actually read the README file!

Perl:     /usr/bin/perl v5.018002 x86_64-linux-thread-multi dl_dlopen.xs
System:   linux mnt-chroots-arch-extra-x86_64-flo-64 3.12.6-1-arch #1 smp preempt fri dec 20 19:39:00 cet 2013 x86_64 gnulinux 
Using INFORMIXDIR=/opt/IBM/informix and ESQL/C compiler esql
Using IBM Informix CSDK Version 4.10, IBM Informix-ESQL Version 4.10.FC4DE from /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
esqlinfo.h written OK

Testing whether your Informix test environment will work...
esqlcc: Num args = 15
cc -I/opt/IBM/informix/incl/esql -I/usr/local/include -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DESQLC_VERSION=410 -DNDEBUG -DDO_NOT_USE_STDERR_H -DESQLC_IFX_LOC_T esqltest.c
esqlcc: Num args = 15
cc -I/opt/IBM/informix/incl/esql -I/usr/local/include -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DESQLC_VERSION=410 -DNDEBUG -DDO_NOT_USE_STDERR_H -DESQLC_IFX_LOC_T esqlc_v6.c
/opt/IBM/informix/lib/libifasf.so: undefined reference to `dlopen'
/opt/IBM/informix/lib/esql/libifos.so: undefined reference to `crypt'
/opt/IBM/informix/lib/libifasf.so: undefined reference to `dlclose'
/opt/IBM/informix/lib/libifasf.so: undefined reference to `dlerror'
/opt/IBM/informix/lib/libifasf.so: undefined reference to `dlsym'
collect2: Fehler: ld gab 1 als Ende-Status zurück
Failed to link test program esqltest
running on configuration at lib/DBD/Informix/TechSupport.pm line 225.

# End of Bug Report
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.