build error on Solaris (undefined symbol)
Hello, I'm trying to build FreeRADIUS on Solaris (versions 9 and 10) and I'm getting this error: ----------------------------------------------------------------- rm -f .libs/radiusdS.c .libs/radiusd.nm .libs/radiusd.nmS .libs/radiusd.nmT /opt/csw/gcc4/bin/gcc .libs/radiusdS.o -mcpu=v8 -o .libs/radiusd .libs/acct.o .libs/auth.o .libs/client.o .libs/conffile.o .libs/crypt.o .libs/exec.o .libs/files.o .libs/listen.o .libs/log.o .libs/mainconfig.o .libs/modules.o .libs/modcall.o .libs/radiusd.o .libs/stats.o .libs/session.o .libs/threads.o .libs/util.o .libs/valuepair.o .libs/version.o .libs/xlat.o .libs/event.o .libs/realms.o .libs/evaluate.o .libs/vmps.o .libs/detail.o -L/opt/csw/gcc4/lib/. -L/opt/csw/lib /home/ihsan/gar/csw/mgar/pkg/freeradius/trunk/work/build-isa-sparcv8/freeradius-server-2.1.6/src/lib/.libs/libfreeradius-radius.so -lnsl -lresolv -lsocket -lposix4 -lpthread -lcrypt -lltdl -lssl -lcrypto -R/opt/csw/lib Undefined first referenced symbol in file lt__PROGRAM__LTX_preloaded_symbols .libs/modules.o ld: fatal: Symbol referencing errors. No output written to .libs/radiusd gmake[6]: *** [radiusd] Error 1 gmake[6]: Leaving directory `/home/ihsan/gar/csw/mgar/pkg/freeradius/trunk/work/build-isa-sparcv8/freeradius-server-2.1.6/src/main' ----------------------------------------------------------------- Configure runs fine. I've tried to build FreeRADIUS with Sun Studio 12 and GCC 4.3.3 and both show the same error. Ihsan -- ihsan@dogan.ch http://blog.dogan.ch/
Ihsan Dogan wrote:
I'm trying to build FreeRADIUS on Solaris (versions 9 and 10) and I'm getting this error: Undefined first referenced symbol in file lt__PROGRAM__LTX_preloaded_symbols .libs/modules.o
I have no idea how to fix that. It builds for me on Solaris. Random people seem to be running into this on various platforms, and I don't know why. It's definitely a libtool / libtldl issue, but that's about all I can say.
ld: fatal: Symbol referencing errors. No output written to .libs/radiusd gmake[6]: *** [radiusd] Error 1 gmake[6]: Leaving directory `/home/ihsan/gar/csw/mgar/pkg/freeradius/trunk/work/build-isa-sparcv8/freeradius-server-2.1.6/src/main' -----------------------------------------------------------------
Configure runs fine. I've tried to build FreeRADIUS with Sun Studio 12 and GCC 4.3.3 and both show the same error.
Are you disabling the ltdl install? What configure options are you using? Alan DeKok.
Hello Alan, Alan DeKok wrote: Thank you for the very quick reply.
I'm trying to build FreeRADIUS on Solaris (versions 9 and 10) and I'm getting this error: Undefined first referenced symbol in file lt__PROGRAM__LTX_preloaded_symbols .libs/modules.o
I have no idea how to fix that. It builds for me on Solaris.
Have you been using as well the most recent version 2.2.6a of libtool?
Configure runs fine. I've tried to build FreeRADIUS with Sun Studio 12 and GCC 4.3.3 and both show the same error.
Are you disabling the ltdl install?
No.
What configure options are you using?
./configure --prefix=/opt/csw --exec_prefix=/opt/csw --bindir=/opt/csw/bin --sbindir=/opt/csw/sbin --libexecdir=/opt/csw/libexec --datadir=/opt/csw/share --sysconfdir=/opt/csw/etc --sharedstatedir=/opt/csw/share --localstatedir=/opt/csw/var --libdir=/opt/csw/lib --infodir=/opt/csw/share/info --includedir=/opt/csw/include --mandir=/opt/csw/share/man Nothing special so far. Ihsan -- ihsan@dogan.ch http://blog.dogan.ch/
Alan DeKok wrote:
Have you been using as well the most recent version 2.2.6a of libtool?
No. You should use the version of libtool that comes with the server.
I'm very sorry, but I've mixed up something here. I tested it also with the system libtool, but the error message is from the libtool that comes with the server. I'm wondering now, what the difference between your system and my system is. It's slightly weird that it works for and not for me. Ihsan -- ihsan@dogan.ch http://blog.dogan.ch/
participants (2)
-
Alan DeKok -
Ihsan Dogan