Re: make fails with error: wrong ELF class: ELFCLASS64
Posted in 2005
Usually this happens when you intermix 32-bit and 64-bit objects. Which is not permitted. By default the class of the object being generated is determined from the first ELF object processed from the command line. Use the 64-bit flags during compilation (-xarch=v9) and linking (-64). Regards, Nilesh. "folker" <volker.wilkening@freenet.de> Sent by: owner-informix-list@iiug.org 11/08/2005 01:00 PM Please respond to "folker" To informix-list@iiug.org cc Subject make fails with error: wrong ELF class: ELFCLASS64 Hi, I want to build a php5.0.15 with Mysql and Informix as DSO for apache 2 on a SUN solaris 8 SPARC 64-bit machine. Configure, make and make install for apache2 and MySQL worked fine. Then I installed the clientSDK 2.90FC3(64-bit). The configure for php was ok, but make fails with these errors: ld: fatal: file /opt/informix/lib/esql/libifsql.so: wrong ELF class: ELFCLASS64 ld: fatal: file /opt/informix/lib/libifasf.so: wrong ELF class: ELFCLASS64 ld: fatal: file /opt/informix/lib/esql/libifgen.so: wrong ELF class: ELFCLASS64 ld: fatal: file /opt/informix/lib/esql/libifos.so: wrong ELF class: ELFCLASS64 ld: fatal: file /opt/informix/lib/esql/libifgls.so: wrong ELF class: ELFCLASS64 ld: fatal: file /opt/informix/lib/esql/libifglx.so: wrong ELF class: ELFCLASS64 ld: fatal: File processing errors. No output written to .libs/libphp5.so make: *** [libphp5.la] Error 1 I have no idea, what I have to do, to fix this problem. Can you help me ? sending to informix-list