[clug] 32/64 bit compile

Brian bnc at astronomicalresearchaustralia.org
Sat Feb 16 01:09:40 GMT 2008

Hi all,
I am compiling a prog on a 64bit AMD, currently runs on a 32bit machine.

I change to the programs source dir and run
 make -C /usr/src/linux SUBDIRS=$PWD modules
 and it compiles/loads fine.

When I go to run it it says,

Error in startup script: couldn't load file "/opt/apogee/lib/libccd.so":
/opt/apogee/lib/libccd.so: wrong ELF class: ELFCLASS64
    while executing
"load $libs/libccd.so"

Naturally the libccd.so is there.
Searching the web most pointers for the  ELFCLASS64 problem say
recompile as 32bit.

Is that my best option, if so how do I change the above make to force a
compile in 32bit?

It is compiled on a SUSE 10.3, and uses MODPOST.


More information about the linux mailing list