Stephen Gran wrote:
> I think I see slightly more clearly (now that I've slept a bit :)
> 
> The problem is twofold - radeapclient needs to specify libradius as
> something it links to in order to be technically correct.  Also, it
> looks to me like gold is ignoring the dependency-libs line that is
> generated here for libeap/libfreeradius-eap.la.  This is how it manages
> to work with regular libtool - it parses the dependency line and adds it
> to the list.  Can you please provide the contents of that file, so that
> we're sure gold is not also doing something different there?
Yes, no problem.

Is the linker real reading that stuff in la files? I thought that it is only 
for libtool. binutils-gold only replaces ld and not libtool.

Best regards,
        Peter
# libfreeradius-eap.la - a libtool library file
# Generated by ltmain.sh (GNU libtool) 2.2.6 Debian-2.2.6a-4
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname='libfreeradius-eap-2.0.4.so'

# Names of this library.
library_names='libfreeradius-eap-2.0.4.so libfreeradius-eap-2.0.4.so 
libfreeradius-eap.so'

# The name of the static archive.
old_library='libfreeradius-eap.a'

# Linker flags that can not go in dependency_libs.
inherited_linker_flags=''

# Libraries that this one depends upon.
dependency_libs=' 
/home/peter/freeradius-2.0.4+dfsg/src/lib/libfreeradius-radius.la -lnsl 
-lresolv -lpthread'

# Names of additional weak libraries provided by this library
weak_library_names=''

# Version information for libfreeradius-eap.
current=0
age=0
revision=0

# Is this an already installed library?
installed=no

# Should we warn about portability when linking against -modules?
shouldnotlink=no

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='/usr/lib/freeradius'
relink_command="(cd 
/home/peter/freeradius-2.0.4+dfsg/src/modules/rlm_eap/libeap; /bin/bash 
/usr/bin/libtool  --mode=relink gcc -release 2.0.4 -export-dynamic -o 
libfreeradius-eap.la -rpath /usr/lib/freeradius eapcommon.lo eapcrypto.lo 
eapsimlib.lo fips186prf.lo cb.lo eap_tls.lo mppe_keys.lo tls.lo 
/home/peter/freeradius-2.0.4+dfsg/src/lib/libfreeradius-radius.la -lnsl 
-lresolv -lpthread @inst_prefix_dir@)"
# libfreeradius-eap.la - a libtool library file
# Generated by ltmain.sh (GNU libtool) 2.2.6 Debian-2.2.6a-4
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname='libfreeradius-eap-2.0.4.so'

# Names of this library.
library_names='libfreeradius-eap-2.0.4.so libfreeradius-eap-2.0.4.so 
libfreeradius-eap.so'

# The name of the static archive.
old_library='libfreeradius-eap.a'

# Linker flags that can not go in dependency_libs.
inherited_linker_flags=''

# Libraries that this one depends upon.
dependency_libs=' 
/home/peter/freeradius-2.0.4+dfsg/src/lib/libfreeradius-radius.la -lnsl 
-lresolv -lpthread'

# Names of additional weak libraries provided by this library
weak_library_names=''

# Version information for libfreeradius-eap.
current=0
age=0
revision=0

# Is this an already installed library?
installed=no

# Should we warn about portability when linking against -modules?
shouldnotlink=no

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='/usr/lib/freeradius'
relink_command="(cd 
/home/peter/freeradius-2.0.4+dfsg/src/modules/rlm_eap/libeap; /bin/bash 
/usr/bin/libtool  --mode=relink gcc -release 2.0.4 -export-dynamic -o 
libfreeradius-eap.la -rpath /usr/lib/freeradius eapcommon.lo eapcrypto.lo 
eapsimlib.lo fips186prf.lo cb.lo eap_tls.lo mppe_keys.lo tls.lo 
/home/peter/freeradius-2.0.4+dfsg/src/lib/libfreeradius-radius.la -lnsl 
-lresolv -lpthread @inst_prefix_dir@)"
# libfreeradius-eap.la - a libtool library file
# Generated by ltmain.sh (GNU libtool) 2.2.6 Debian-2.2.6a-4
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname='libfreeradius-eap-2.0.4.so'

# Names of this library.
library_names='libfreeradius-eap-2.0.4.so libfreeradius-eap-2.0.4.so 
libfreeradius-eap.so'

# The name of the static archive.
old_library='libfreeradius-eap.a'

# Linker flags that can not go in dependency_libs.
inherited_linker_flags=''

# Libraries that this one depends upon.
dependency_libs=' 
/home/peter/freeradius-2.0.4+dfsg/src/lib/libfreeradius-radius.la -lnsl 
-lresolv -lpthread'

# Names of additional weak libraries provided by this library
weak_library_names=''

# Version information for libfreeradius-eap.
current=0
age=0
revision=0

# Is this an already installed library?
installed=no

# Should we warn about portability when linking against -modules?
shouldnotlink=no

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='/usr/lib/freeradius'
relink_command="(cd 
/home/peter/freeradius-2.0.4+dfsg/src/modules/rlm_eap/libeap; /bin/bash 
/usr/bin/libtool  --mode=relink gcc -release 2.0.4 -export-dynamic -o 
libfreeradius-eap.la -rpath /usr/lib/freeradius eapcommon.lo eapcrypto.lo 
eapsimlib.lo fips186prf.lo cb.lo eap_tls.lo mppe_keys.lo tls.lo 
/home/peter/freeradius-2.0.4+dfsg/src/lib/libfreeradius-radius.la -lnsl 
-lresolv -lpthread @inst_prefix_dir@)"
# libfreeradius-eap.la - a libtool library file
# Generated by ltmain.sh (GNU libtool) 2.2.6 Debian-2.2.6a-4
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname='libfreeradius-eap-2.0.4.so'

# Names of this library.
library_names='libfreeradius-eap-2.0.4.so libfreeradius-eap-2.0.4.so 
libfreeradius-eap.so'

# The name of the static archive.
old_library='libfreeradius-eap.a'

# Linker flags that can not go in dependency_libs.
inherited_linker_flags=''

# Libraries that this one depends upon.
dependency_libs=' 
/home/peter/freeradius-2.0.4+dfsg/src/lib/libfreeradius-radius.la -lnsl 
-lresolv -lpthread'

# Names of additional weak libraries provided by this library
weak_library_names=''

# Version information for libfreeradius-eap.
current=0
age=0
revision=0

# Is this an already installed library?
installed=no

# Should we warn about portability when linking against -modules?
shouldnotlink=no

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='/usr/lib/freeradius'
relink_command="(cd 
/home/peter/freeradius-2.0.4+dfsg/src/modules/rlm_eap/libeap; /bin/bash 
/usr/bin/libtool  --mode=relink gcc -release 2.0.4 -export-dynamic -o 
libfreeradius-eap.la -rpath /usr/lib/freeradius eapcommon.lo eapcrypto.lo 
eapsimlib.lo fips186prf.lo cb.lo eap_tls.lo mppe_keys.lo tls.lo 
/home/peter/freeradius-2.0.4+dfsg/src/lib/libfreeradius-radius.la -lnsl 
-lresolv -lpthread @inst_prefix_dir@)"

Reply via email to