Hi
I was requested to forward the following
description (and solution) of an error in the libtool generating
part of the configure script used by the courier people. Please
respond to [EMAIL PROTECTED] for
any further information.
Regards
- Jorgen
----- Original Message -----
From: Jørgen Moth
To: Courier Users
Cc: Allan Dukat
Sent: Wednesday, November 16, 2005 11:57 AM
Subject: [courier-users] bug in configure script for
courier-authlib-0.57 Hi
We have been strugling without success for a long
time now to install the new separated courier-authlib on IBM AIX 5.x to allow us
to switch to the latest version of the courier packages. At last we have now
identified the culpit:
The libtool script generated by the configure
script is not well suited for the courier-authlib package when installed on AIX
5.x.
The configure script erroneously presumes that the
IBM linker automatically will locate and include all objects that define the
symbols being listed in the exp-file.
Owing to this mistake the code for aix4 and aix5 in
the script sets whole_archive_flag_spec=' ' (a single space),
thereby activating a wrong branch of the convenience library code in
libtool.
After having modified this setting to
whole_archive_flag_spec= (empty), thereby suppressing linker-automated
whole-archive processing on AIX5, courier-authlib installs
smoothly!
Excerpt of configure including the culpit line no.
7383:
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
# Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' ${wl}-bernotok' allow_undefined_flag=' ${wl}-berok' # -bexpall does not export symbols beginning with underscore (_) always_export_symbols=yes # Exported symbols can be pulled into shared objects from archives ----> # original introduced error when linking libcourierauth: whole_archive_flag_spec=' ' JM removed the single space whole_archive_flag_spec= archive_cmds_need_lc=yes # This is similar to how AIX traditionally builds it's shared libraries. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' I hope this message will reach the proper
person responsible for the authlib configure script. If we can be of any further
help to enhance configure and libtool please don't hesitate to contact
us.
Best regards
- Jorgen
|
_______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool