"ld: fatal: file .libs/sql_mysql.o: wrong ELF class: ELFCLASS32" error while running make

Nereida Bernal nereidarubi at gmail.com
Mon Dec 7 17:53:12 CET 2009


Hi all!

I want to install FreeRADIUS 2.1.7, but while running "make" I get the
error "ld: fatal: file .libs/sql_mysql.o: wrong ELF class: ELFCLASS32"

Version: FreeRADIUS 2.1.7
Host SUN Sparc Netra-210
OS: Solaris2.10
MySQL Pkg: mysql-5.0.88-solaris10-sparc-64bit.pkg.gz

Where can I find the 64 bit libraries? I thought I had them but
apparently I don't, since I am getting the ELFCLASS32 error

See the log below

make[10]: Entering directory
`/opt/RADUIS/FreeRADIUSv2/freeradius/freeradius-server-2.1.7/src/modules/rlm_sql/drivers/rlm_sql_iodbc'
make[10]: Nothing to be done for `all'.
make[10]: Leaving directory
`/opt/RADUIS/FreeRADIUSv2/freeradius/freeradius-server-2.1.7/src/modules/rlm_sql/drivers/rlm_sql_iodbc'
Making all in rlm_sql_mysql...
make[10]: Entering directory
`/opt/RADUIS/FreeRADIUSv2/freeradius/freeradius-server-2.1.7/src/modules/rlm_sql/drivers/rlm_sql_mysql'
/opt/RADUIS/FreeRADIUSv2/freeradius/freeradius-server-2.1.7/libtool
--mode=link gcc -release 2.1.7 \
        -module -export-dynamic   -o rlm_sql_mysql.la \
        -rpath /usr/local/lib sql_mysql.lo -m64
-L/opt/mysql/mysql/lib -lmysqlclient_r -lz -lpthread -lthread -lposix4
-lresolv -lgen -lsocket -lnsl -lm  -lpthread -lthread
gcc -shared -Wl,-h -Wl,rlm_sql_mysql-2.1.7.so -o
.libs/rlm_sql_mysql-2.1.7.so  .libs/sql_mysql.o
-L/opt/mysql/mysql/lib -lmysqlclient_r -lz -lposix4 -lresolv -lgen
-lsocket -lnsl -lm -lpthread -lthread -lc  -m64
ld: fatal: file .libs/sql_mysql.o: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to
.libs/rlm_sql_mysql-2.1.7.so
collect2: ld returned 1 exit status
make[10]: *** [rlm_sql_mysql.la] Error 1
make[10]: Leaving directory
`/opt/RADUIS/FreeRADIUSv2/freeradius/freeradius-server-2.1.7/src/modules/rlm_sql/drivers/rlm_sql_mysql'
make[9]: *** [common] Error 2
make[9]: Leaving directory
`/opt/RADUIS/FreeRADIUSv2/freeradius/freeradius-server-2.1.7/src/modules/rlm_sql/drivers'
make[8]: *** [all] Error 2
make[8]: Leaving directory
`/opt/RADUIS/FreeRADIUSv2/freeradius/freeradius-server-2.1.7/src/modules/rlm_sql/drivers'
make[7]: *** [common] Error 2
make[7]: Leaving directory
`/opt/RADUIS/FreeRADIUSv2/freeradius/freeradius-server-2.1.7/src/modules/rlm_sql'
make[6]: *** [build-module] Error 2
make[6]: Leaving directory
`/opt/RADUIS/FreeRADIUSv2/freeradius/freeradius-server-2.1.7/src/modules/rlm_sql'
make[5]: *** [common] Error 2
make[5]: Leaving directory
`/opt/RADUIS/FreeRADIUSv2/freeradius/freeradius-server-2.1.7/src/modules'
make[4]: *** [all] Error 2
make[4]: Leaving directory
`/opt/RADUIS/FreeRADIUSv2/freeradius/freeradius-server-2.1.7/src/modules'
make[3]: *** [common] Error 2
make[3]: Leaving directory
`/opt/RADUIS/FreeRADIUSv2/freeradius/freeradius-server-2.1.7/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/opt/RADUIS/FreeRADIUSv2/freeradius/freeradius-server-2.1.7/src'
make[1]: *** [common] Error 2
make[1]: Leaving directory
`/opt/RADUIS/FreeRADIUSv2/freeradius/freeradius-server-2.1.7'
make: *** [all] Error 2


Could you help me please?
Regards
Nere



More information about the Freeradius-Users mailing list