Unix Technical Forum

Informix and ESQLC Perl and DBD but Sun this time.

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 ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 09:41 AM
Gentsch, Sam
 
Posts: n/a
Default Informix and ESQLC Perl and DBD but Sun this time.



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 BundleBD::informix I
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 09:41 AM
Jonathan Leffler
 
Posts: n/a
Default Re: Informix and ESQLC Perl and DBD but Sun this time.

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 BundleBD::informix I
> 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/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:44 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com