This is a discussion on Informix and ESQLC Perl and DBD but Sun this time. within the Informix forums, part of the Database Server Software category; --> Semi-related to our earlier fun with AIX and DBD build environments. Solaris 8, 9.40FC, CSDK2.80UC (now in a separate ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Semi-related to our earlier fun with AIX and DBD build environments. Solaris 8, 9.40FC, CSDK2.80UC (now in a separate dir CSDK2.90FC), Perl 5.6.1 I got the esqlbasic program to compile and run installing the 64 bit CSDK (standalone), upgrading to gcc 3.3.2 and setting INFORMIXC='gcc -m64 after clearing arch9 args out of the esql file But, when running "perl Makefile.PL" to build the Bundle am still getting: ld: fatal: file $INFORMIXDIR/lib/esql/libifsql.so: wrong ELF class: ELFCLASS64 ld: fatal: file $INFORMIXDIR/lib/libifasf.so: wrong ELF class: ELFCLASS64 ld: fatal: file $INFORMIXDIR/lib/esql/libifgen.so: wrong ELF class: ELFCLASS64 ld: fatal: file $INFORMIXDIR/lib/esql/libifos.so: wrong ELF class: ELFCLASS64 ld: fatal: file $INFORMIXDIR/lib/esql/libifgls.so: wrong ELF class: ELFCLASS64 ld: fatal: file $INFORMIXDIR/lib/esql/libifglx.so: wrong ELF class: ELFCLASS64 This is the same error I get when building esqlbasic.ec with the INFORMIXC env variable set to gcc rather than gcc -m64. I cannot seem to figure out how to make the "perl Makefile.PL" have the -m64 argument (assuming this is the problem, since it seems to have been that on the esqlbasic compile, it throws errors about sizes being redefined.) Is there some wiz-bang way to do this? I have never had issues biulding DBD with Solaris and GCC in the past, but this box is killing me. The Box I built with similar OS, etc worked like a dream, so a bit confused. isainfo -k /-v show the same thing on both working and not sun boxes. Thanks in advance, Sam sending to informix-list |
| ||||
| Gentsch, Sam wrote: > > Semi-related to our earlier fun with AIX and DBD build environments. > > Solaris 8, 9.40FC, CSDK2.80UC (now in a separate dir CSDK2.90FC), Perl > 5.6.1 5.6.1? Built for 64-bit? > I got the esqlbasic program to compile and run installing the 64 bit > CSDK (standalone), > upgrading to gcc 3.3.2 and setting INFORMIXC='gcc -m64 after clearing > arch9 args out of the esql file > > But, when running "perl Makefile.PL" to build the Bundle > am still getting: > > ld: fatal: file $INFORMIXDIR/lib/esql/libifsql.so: wrong ELF class: > ELFCLASS64 > ld: fatal: file $INFORMIXDIR/lib/libifasf.so: wrong ELF class: > ELFCLASS64 > ld: fatal: file $INFORMIXDIR/lib/esql/libifgen.so: wrong ELF class: > ELFCLASS64 > ld: fatal: file $INFORMIXDIR/lib/esql/libifos.so: wrong ELF class: > ELFCLASS64 > ld: fatal: file $INFORMIXDIR/lib/esql/libifgls.so: wrong ELF class: > ELFCLASS64 > ld: fatal: file $INFORMIXDIR/lib/esql/libifglx.so: wrong ELF class: > ELFCLASS64 > > This is the same error I get when building esqlbasic.ec with the > INFORMIXC env variable set to gcc rather than gcc -m64. If you're reasonably confident that the build will work, you can bypass the test. Not recommended for the novice, but you're out of the novice category by now. DBD_INFORMIX_NO_ESQLTEST. However, if you bypass the test and then you run into problems, you need to work out how to fix things so the test passes before trying to do more error reporting. The rest of the build assumes that ESQL/C will work - with the various hacks introduced by esqlcc, esqlld, etc - and if it won't, then there are problems. Most likely, copying the esql script and hacking it along the lines of the 64-bit AIX hack will end up doing the trick. I'll install a 64-bit CSDK on my Sparc sometime - and build a 64-bit Perl, too - but I don't recall major problems... > I cannot seem to figure out how to make the "perl Makefile.PL" have the > -m64 argument (assuming this is the problem, since it seems to have been > that on the esqlbasic compile, it throws errors about sizes being > redefined.) Is there some wiz-bang way to do this? > > I have never had issues biulding DBD with Solaris and GCC in the past, > but this box is killing me. > > The Box I built with similar OS, etc worked like a dream, so a bit > confused. > > isainfo -k /-v show the same thing on both working and not sun boxes. > > Thanks in advance, > > Sam > > > > > > > > sending to informix-list -- Jonathan Leffler #include <disclaimer.h> Email: jleffler@earthlink.net, jleffler@us.ibm.com Guardian of DBD::Informix v2005.01 -- http://dbi.perl.org/ |