Click to See Complete Forum and Search --> : compile+link in 64 bits


nestorgm
10-19-2002, 02:28 AM
Please help me! I'm loosing my mind.

I'm trying to compile PHP + informix in a solaris 8 environment. I followed php manual and contributors instructions and sugenstions but I can't doit.

The ./configure step is OK with no errors.

when in make step it makes everything but fails on the libtool pass. The error message is:

ld. fatal: file /var/opt/informix/lib/esql/libifsql.so: wrong ELF class: ELFCLASS64.

for each of the informix libraries.

I guess everything is compiled in 32 bits and the informix libraries are on 64, so the problem.

How can I make everything compiled at 64 bits?

I will thank all the comments about this isue.

--Nestor

nestorgm
10-22-2002, 11:47 PM
Thanks to an old post asking about same think on anoter plataform, but with no answare and further reading about gcc and solaris, what I did was:

CFLAGS='-m64 -mcmodel=medlow'; export CFLAGS
CC=/usr/local/bin/gcc; export CC
find . -name *.c -print -exec touch {} \;
find . -name *.al -print -exec touch {} \;

and ready to make.

thanks.