error compiling rlm_sql_oracle

Michael Mitchell mitchell.michael at bigpond.com
Sat Sep 10 06:24:15 CEST 2005


> /usr/ccs/bin/ld -G -h rlm_sql_oracle-1.0.4.so -o .libs/rlm_sql_oracle-1.0.4.so  sql_oracle.lo  -L/u01/app/oracle/product/10.1.0.4/lib -lclntsh -lm -lc 
> ld: fatal: file /u01/app/oracle/product/10.1.0.4/lib/libclntsh.so: wrong ELF class: ELFCLASS64

The problem is that you're trying to link against the 64bit oracle library, but compiling freeradius as 32bit.

Easiest solution is to find the 32bit oracle library, and link against that instead. Or if you have no dependencies on other 32bit libraries (eg BerkeleyDB for LDAP) then try compiling freeradius as 64bit.

cheers,
Mike





More information about the Freeradius-Devel mailing list