error compiling rlm_sql_oracle

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

> /usr/ccs/bin/ld -G -h -o .libs/  sql_oracle.lo  -L/u01/app/oracle/product/ -lclntsh -lm -lc 
> ld: fatal: file /u01/app/oracle/product/ 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.


More information about the Freeradius-Devel mailing list