Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 225675 - dev-libs/apr fails during autoconf step
Summary: dev-libs/apr fails during autoconf step
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-09 21:18 UTC by Jeremy Olexa (darkside) (RETIRED)
Modified: 2008-06-17 16:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-06-09 21:18:14 UTC
I'm just about ready to suggest that we unleash libtool-2.2.4 on at least ~x86 systems. However, I can't figure out how to fix this issue at the moment:

% emerge -av apr

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-libs/apr-1.2.12  USE="-debug -doc -ipv6 -urandom" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] yes
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) dev-libs/apr-1.2.12 to /
 * apr-1.2.12.tar.gz RMD160 SHA1 SHA256 size ;-) ...                      [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking apr-1.2.12.tar.gz ;-) ...                                     [ ok ]
>>> Unpacking source...
>>> Unpacking apr-1.2.12.tar.gz to /home/jolexa/portage/linux-32/var/tmp/portage/dev-libs/apr-1.2.12/work
 * Applying apr-1.2.8-libtool.patch ...                                   [ ok ]
 * Running eautoreconf in '/home/jolexa/portage/linux-32/var/tmp/portage/dev-libs/apr-1.2.12/work/apr-1.2.12' ...
 * Running aclocal -I build ...                                           [ ok ]
 * Running libtoolize --copy --force --install ...                        [ ok ]
 * Running aclocal -I build ...                                           [ ok ]
 * Running autoconf ...                                                   [ !! ]

 * Failed Running autoconf !
 *
 * Include in your bugreport the contents of:
 *
 *   /home/jolexa/portage/linux-32/var/tmp/portage/dev-libs/apr-1.2.12/temp/autoconf-22404.out

 * ERROR: dev-libs/apr-1.2.12 failed:
 *   Failed Running autoconf !
 *
 * Call stack:
 *               ebuild.sh:  49: <call src_unpack>
 *             environment:2960: <call eautoreconf>
 *             environment: 945: <call eautoconf>
 *             environment: 888: <call autotools_run_tool 'autoconf'>
 *             environment: 413:         die "Failed Running $1 !";
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * build log: '/home/jolexa/portage/linux-32/var/tmp/portage/dev-libs/apr-1.2.12/temp/build.log'
 * ebuild environment: '/home/jolexa/portage/linux-32/var/tmp/portage/dev-libs/apr-1.2.12/temp/environment'
 * S: '/home/jolexa/portage/linux-32/var/tmp/portage/dev-libs/apr-1.2.12/work/apr-1.2.12'

% cat var/tmp/portage/dev-libs/apr-1.2.12/temp/autoconf-22404.out
***** autoconf *****
***** autoconf

configure.in:194: error: possibly undefined macro: LT_VERSION
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.

Any takers?
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-06-09 21:24:14 UTC
By the way, non-issue with libtool-1.5* "it just works" (tm)
Comment 2 Fabian Groffen gentoo-dev 2008-06-10 08:17:43 UTC
have you tried adding
m4_ifdef([LT_VERSION], [LT_VERSION])
to configure.ac (after AM_PROG_LIBTOOL)?

It's a wild guess, but the only thing I can come up with.
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-06-10 14:40:15 UTC
(In reply to comment #2)
> have you tried adding
> m4_ifdef([LT_VERSION], [LT_VERSION])
> to configure.ac (after AM_PROG_LIBTOOL)?
> 
> It's a wild guess, but the only thing I can come up with.
> 

Yea, AM_PROG_LIBTOOL doesn't exist and I don't know enough to experiment with other things. There is not upstream bug on this one because in prefix we rm the provided libtool and do some funky stuff in a patch from a year ago. 

**
Revision 6901, 238 bytes (checked in by grobian, 1 year ago)

Use alternative way of fixing libtool problems, by using system libtool.m4, instead of included one, this fixes libtool horror on Solaris, and hopefully Darwin too. 
**

I removed that patch from the ebuild and tested compilation on x86-linux and:

"libtool: Version mismatch error.  This is libtool 2.2.4, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.4
libtool: and run autoconf again."

which I have seen before, I'll keep hitting this and see if we can drop that patch eventually.
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-06-10 14:42:36 UTC
http://apr.apache.org/download.cgi - apr-1.3.0 is out, maybe that is the best "fix"?
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-06-10 15:08:04 UTC
(In reply to comment #4)
> http://apr.apache.org/download.cgi - apr-1.3.0 is out, maybe that is the best
> "fix"?
> 
With apr-1.3.0:

libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
make[1]: *** [passwd/apr_getpass.lo] Error 1


Comment 6 Fabian Groffen gentoo-dev 2008-06-10 16:38:38 UTC
wait, I recall some of that.

There is something with that chain of apr, apr-util and subversion where gentoo-x86 did something with libtool.  It didn't work, and I patched around it, more or less using more of the upstream method.  Later I found out gentoo-x86 way could work too, but I didn't bother to change it.  Maybe it's time to change it now :(
Comment 7 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-06-10 18:28:18 UTC
For future reference:

bug 225783 - "dev-libs/{apr,apr-util}-1.3.0 released"
Comment 8 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-06-11 22:13:45 UTC
bug 225983 better describes this 'issue'
Comment 9 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-06-12 15:28:29 UTC
(In reply to comment #5)

> libtool: compile: unable to infer tagged configuration
> libtool: compile: specify a tag with `--tag'
> make[1]: *** [passwd/apr_getpass.lo] Error 1

Ugh, this bug will be the death of me.

If I apply the "prefix libtool patch" to apr-1.3.0 then I get alittle farther:
/bin/sh: /home/jolexa/portage/linux-32/var/tmp/portage/dev-libs/apr-1.3.0/work/apr-1.3.0/libtool: No such file or directory
make[1]: *** [passwd/apr_getpass.lo] Error 127
make[1]: *** Waiting for unfinished jobs....
/bin/sh: /home/jolexa/portage/linux-32/var/tmp/portage/dev-libs/apr-1.3.0/work/apr-1.3.0/libtool: No such file or directory
make[1]: *** [strings/apr_cpystrn.lo] Error 127
Comment 10 Fabian Groffen gentoo-dev 2008-06-12 19:32:05 UTC
I just committed a change to the ebuild to be closer to gentoo-x86 version.  I could compile apr with libtool-1.5 and libtool-2.2 with that change.  Please try if it helps for you too.
Comment 11 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-06-16 15:37:07 UTC
(In reply to comment #10)
> I just committed a change to the ebuild to be closer to gentoo-x86 version.  I
> could compile apr with libtool-1.5 and libtool-2.2 with that change.  Please
> try if it helps for you too.

On x86-linux, yes. yay!
On amd64-linux, no. apr-1.3 won't build with libtool-1.5. I haven't tried libtool-2.2 yet.
Comment 12 Fabian Groffen gentoo-dev 2008-06-16 15:38:53 UTC
weird, I updated without problems on amd64-linux today...
Comment 13 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-06-17 16:49:00 UTC
(In reply to comment #11)

> On amd64-linux, no. apr-1.3 won't build with libtool-1.5. I haven't tried
> libtool-2.2 yet.

Hmm, I can't reproduce the problem today. I'm happy with this now. apr seems much more happy now ;) Thanks for your help.