[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AIX5.x bug in libtool as generated by configure script used by courier-a

From: Jørgen Moth
Subject: AIX5.x bug in libtool as generated by configure script used by courier-authlib-0.57)
Date: Wed, 16 Nov 2005 13:41:49 +0100

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 address@hidden for any further information.
- Jorgen
----- Original Message -----
Sent: Wednesday, November 16, 2005 11:57 AM
Subject: [courier-users] bug in configure script for courier-authlib-0.57

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:
          # 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 (_)
          # 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
          # 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
Jorgen Moth
UNI-C Lyngby
DTU Bldg. 304, DK-2800 Lyngby
+45 3587 8963


reply via email to

[Prev in Thread] Current Thread [Next in Thread]