Bug 18073

Summary: error during configure using libtool-2.x.x
Product: xorg Reporter: Lee Leahu <6khRTwRnE3AB>
Component: Lib/XawAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
libtool-2.2 patch none

Description Lee Leahu 2008-10-15 07:19:20 UTC
git version 012e73faab8dc8617c6da4679715dae14f6cddd4

The configure script errors out when preparing to compile libXaw.
The error occurs with libtool-2.2.6a and libtool-2.2.4.
The error does not occur with libtool-1.5.26.

The error is caused because the libtool file is not created by the time sed attempts to fix the SONAME.
Comment 1 Yaakov Selkowitz 2008-10-25 22:55:28 UTC
Created attachment 19864 [details] [review]
libtool-2.2  patch

libtool-2.2 made an incompatible change to LT_INIT (which replaces AC_PROG_LIBTOOL): it generates the libtool script at the AC_OUTPUT, rather then right after being called.  Sometimes, configure scripts call configure to run tests or read its settings; in those cases, LT_OUTPUT can be appended to force libtool generation earlier.

There is one caveat: libtool is still (re)generated during AC_OUTPUT, so in our case, even adding LT_OUTPUT wouldn't help, because the sed changes are overwritten.

AFAICS the solution is to use AC_CONFIG_COMMANDS; patch against current git master attached.
Comment 2 Arkadiusz Miskiewicz 2008-11-07 03:12:45 UTC
That error is a big problem because when it fails then sonames of created libXaw*.so libraries are terribly wrong causing prolem with dependencies and such.

Comment 3 Lee Leahu 2008-12-05 07:41:36 UTC
confirming resolved in latest git

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.