Bug 18073 - error during configure using libtool-2.x.x
Summary: error during configure using libtool-2.x.x
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/Xaw (show other bugs)
Version: git
Hardware: Other Linux (All)
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-15 07:19 UTC by Lee Leahu
Modified: 2008-12-05 07:41 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
libtool-2.2 patch (864 bytes, patch)
2008-10-25 22:55 UTC, Yaakov Selkowitz
no flags Details | Splinter Review

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.