Subject: | perl Makefile.PL fails to compile esqltest.ec to esqltest.o |
On SunOS 5.10 (sparc SUNW,Sun-Fire-480R) using Perl 5.10.0, DBD-
Informix-2008.0229 fails to compile with the following log:
-----------------------------------------
$ DBD_INFORMIX_DEBUG_ESQLCC=2 DBD_INFORMIX_DEBUG_ESQLTEST=1 perl
Makefile.PL
*** ExtUtils::AutoInstall version 0.63
*** Checking for dependencies...
[Core Features]
- DBI ...loaded. (1.602 >= 1.38)
[High Resolution Timing]
- Time::HiRes ...loaded. (1.9711)
[POD Format Testing]
- Test::Pod ...loaded. (1.26)
*** ExtUtils::AutoInstall configuration finished.
Configuring IBM Informix Database Driver for Perl DBI Version
2008.0229 (2008-02-29) (aka DBD::Informix)
You are using DBI version 1.602 and Perl version 5.010000
Remember to actually read the README file!
Perl: perl v5.010000 sun4-solaris dl_dlopen.xs
System: sunos dcsdapp1.alb.flis1.com 5.10 generic_120011-14 sun4u
sparc sunw,sun-fire-480r
Using INFORMIXDIR=/banktools/informix/94 and ESQL/C compiler esql
Using IBM Informix CSDK Version 2.81, IBM Informix-ESQL Version
9.53.UC3 from /banktools/informix/94
Note that bug RT#13708 (IBM CQ bug idsdb00139040) may affect you.
In particular, if test t/t93lvarchar.t detects problems, consider an
upgrade to CSDK 3.00 or later - it seems to be fixed there. All
other parts of DBD::Informix will probably work.
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...
C and C preprocessor flags - used in object compilations
ccflag = <<>>
ccflag = <<-D_LARGEFILE_SOURCE>>
ccflag = <<-D_FILE_OFFSET_BITS=64>>
ccflag = <<-DPERL_USE_SAFE_PUTENV>>
cppflag = <<-DESQLC_VERSION=953>>
cppflag = <<-DNDEBUG>>
cppflag = <<-DDO_NOT_USE_STDERR_H>>
execute_command: esql -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
DPERL_USE_SAFE_PUTENV -DESQLC_VERSION=953 -DNDEBUG -
DDO_NOT_USE_STDERR_H esqltest.ec
+ec+ <<esql>>
+ec+ <<-c>>
+ec+ <<>>
+ec+ <<-D_LARGEFILE_SOURCE>>
+ec+ <<-D_FILE_OFFSET_BITS=64>>
+ec+ <<-DPERL_USE_SAFE_PUTENV>>
+ec+ <<-DESQLC_VERSION=953>>
+ec+ <<-DNDEBUG>>
+ec+ <<-DDO_NOT_USE_STDERR_H>>
+ec+ <<esqltest.ec>>
+ setenv INFORMIXC
= /export/home/nbkwae8/tmp.runtime/fdcs/localperl/bin/perl esqlcc
+ setenv ESQLCC = /opt/SUNWspro/bin/cc
esqlcc: Num args = 2
/opt/SUNWspro/bin/cc -I/banktools/informix/94/incl/esql -c
esqlcc: command
<</opt/SUNWspro/bin/cc>>
esqlcc: arguments
<<-I/banktools/informix/94/incl/esql>>
<<-c>>
usage: cc [ options] files. Use 'cc -flags' for details
Failed to compile esqltest.ec to esqltest.o
-----------------------------------------
N.B.: Manually running the compilation produces an object file
without incident.
-----------------------------------------
$ esql -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DP
ERL_USE_SAFE_PUTENV -DESQLC_VERSION=953 -DNDEBUG
esqltest.ec
$ ll -rt esqltest.*
-r--r--r-- 1 nbkwae8 devel 9960 Feb 29 18:16 esqltest.ec
-rw-rw-r-- 1 nbkwae8 devel 11142 Mar 6 10:43 esqltest.c
-rw-rw-r-- 1 nbkwae8 devel 10320 Mar 6 10:43 esqltest.o
-----------------------------------------