[clug] 32/64 bit compile

Jim Watson jim at amarooas.com.au
Sat Feb 16 04:43:23 GMT 2008


Brian wrote:
> 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?
Maybe try working in a 32 bit shell?
before you start anything:
$ linux32 bash



More information about the linux mailing list