Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285144 - net-mail/courier-imap-4.0.6-r3: Failed to emerge with libtool 2.2.6a
Summary: net-mail/courier-imap-4.0.6-r3: Failed to emerge with libtool 2.2.6a
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal with 2 votes (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on: 287933
Blocks:
  Show dependency tree
 
Reported: 2009-09-16 01:14 UTC by Tkachenko Sergey
Modified: 2009-11-23 10:18 UTC (History)
13 users (show)

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


Attachments
build.log (build.log,151.37 KB, text/plain)
2009-09-16 09:44 UTC, Tkachenko Sergey
Details
Ebuild-Patch for #c3 (fixing libtool issue) (courier-4.0.6-r3_libtoolfix.patch,433 bytes, patch)
2009-09-18 11:33 UTC, d00p
Details | Diff
Expanded version of patch that makes courier-imap actually compile. (courier-imap-4.0.6-r3.ebuild.patch,1.84 KB, patch)
2009-10-21 19:19 UTC, Dave Lindquist
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tkachenko Sergey 2009-09-16 01:14:14 UTC
Failed to emerge net-mail/courier-imap-4.0.6-r3

make[3]: Entering directory `/var/tmp/portage/net-mail/courier-imap-4.0.6-r3/work/courier-imap-4.0.6/numlib'
Compiling atotimet.c
./libtool: line 454: CDPATH: command not found
./libtool: line 1139: func_opt_split: command not found
libtool: Version mismatch error.  This is libtool 2.2.6, 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.6
libtool: and run autoconf again.
make[3]: *** [atotimet.lo] Ошибка 1
make[3]: Leaving directory `/var/tmp/portage/net-mail/courier-imap-4.0.6-r3/work/courier-imap-4.0.6/numlib'
make[2]: *** [all] Ошибка 2
make[2]: Leaving directory `/var/tmp/portage/net-mail/courier-imap-4.0.6-r3/work/courier-imap-4.0.6/numlib'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Leaving directory `/var/tmp/portage/net-mail/courier-imap-4.0.6-r3/work/courier-imap-4.0.6'


Reproducible: Always

Steps to Reproduce:
1. emerge sys-devel/libtool 2.2.6a
2. emerge courier-imap
Comment 1 Rafał Mużyło 2009-09-16 08:23:33 UTC
Full build.log, please.

Anyway, courier-imap has a really messy build system
and it's a package, that nobody really cares about
(or so it seems). See perhaps if 4.5.0 handles it better.
Comment 2 Tkachenko Sergey 2009-09-16 09:44:57 UTC
Created attachment 204301 [details]
build.log
Comment 3 Rafał Mużyło 2009-09-16 19:02:18 UTC
I think adding this block:
        cd "${S}/numlib"
        ebegin "Recreating numlib/configure"
        eautoreconf || die "eautoreconf on numlib failed"
        eend $?

may help. Not sure though, it should fix the problem of old
libtool macro definition, but new problem may surface.
Comment 4 Tkachenko Sergey 2009-09-16 22:08:36 UTC
(In reply to comment #3)
I cannot understand how I can use your advice.
I must place this block in ebuild file?
Comment 5 Rafał Mużyło 2009-09-18 08:12:08 UTC
Yes, in the ebuild, right after other such blocks
in src_unpack.
Comment 6 Michael Angenendt 2009-09-18 11:20:08 UTC
I have the same Problem. In the courier ebuild you mean ?
Can you tell us on what position we should add this Block?
Comment 7 d00p 2009-09-18 11:33:32 UTC
Created attachment 204512 [details, diff]
Ebuild-Patch for #c3 (fixing libtool issue)

for all thos who don't know where to put the block  Rafa? Mu?y?o posted in #c3
Comment 8 d00p 2009-09-18 11:36:03 UTC
it's not only for "numlib", the patch fixes that one but you'll end up with the next libtool error in the "md5"-directory (and further i'd guess)
Comment 9 Joshua Pettett 2009-09-20 01:16:32 UTC
For those just trying to get courier-imap (r)emerged, an easy work-around is temporarily downgrading libtool:

emerge -av1 =sys-devel/libtool-1.5.26 courier-imap

But this is obviously not a long-term fix (er, unless libtool can be slotted).
Comment 10 Christian Wilken 2009-09-28 18:25:45 UTC
Seems I'm having the same problem with courier-authlib-0.62.2:
http://bugs.gentoo.org/show_bug.cgi?id=286811
Comment 11 Rafał Mużyło 2009-09-29 13:40:34 UTC
There's a little catch about this "workaround":
as it seems those courier packages use libltdl,
emerging them after emerging old libtool
gets them linked to the wrong libltdl
(as major lib version has changed).

Perhaps somebody could test, if now a fully
recursive eautoreconf works (instead of
doing just a few dirs).
Comment 12 Sergio Bevilacqua 2009-09-29 13:55:44 UTC
i have these files:

/usr/include/ltdl.h
/usr/share/aclocal/ltdl.m4
/usr/share/libtool/libltdl/ltdl.c
/usr/share/libtool/libltdl/ltdl.h

all of these files belongs to sys-devel/libtool
there's no a package named libltdl or *tdl*
Comment 13 Rafał Mużyło 2009-09-30 12:03:11 UTC
(In reply to comment #12)
> i have these files:
> ....
> all of these files belongs to sys-devel/libtool
> there's no a package named libltdl or *tdl*
> 
Of course there's none - libltdl is provided by libtool.
Comment 14 BlackSun 2009-09-30 13:45:33 UTC
and how to fix this bug? i`m don`t understand what mean:
Ebuild-Patch for #c3 (fixing libtool issue) at #7 comment
how to use this patch?

p.s. sorry for my english )
Comment 15 Christian Wilken 2009-09-30 21:33:57 UTC
(In reply to comment #14)
> and how to fix this bug? i`m don`t understand what mean:
> Ebuild-Patch for #c3 (fixing libtool issue) at #7 comment
> how to use this patch?
> 
> p.s. sorry for my english )
> 

I believe this is what You should do (someone correct me if I'm wrong)...:

Download courier-4.0.6-r3_libtoolfix.patch to /usr/portage/net-mail/courier-imap and cd (cd /usr/portage/net-mail/courier-imap) to the directory

Run the following:
patch courier-imap-4.0.6-r3.ebuild < courier-4.0.6-r3_libtoolfix.patch
ebuild courier-imap-4.0.6-r3.ebuild digest
emerge courier-imap
Comment 16 Christian Wilken 2009-09-30 21:39:15 UTC
Never mind... Proposed patch doesn't work:

[...]
make[3]: Entering directory `/var/tmp/portage/net-mail/courier-imap-4.0.6-r3/work/courier-imap-4.0.6/md5'
Compiling md5.c
Compiling md5_hash.c
Compiling redhat-crypt-md5.c
Compiling hmac.c
Compiling md5test.c
./libtool: line 454: CDPATH: command not found
./libtool: line 454: CDPATH: command not found
./libtool: line 454: CDPATH: command not found
./libtool: line 454: CDPATH: command not found
./libtool: line 1139: func_opt_split: command not found
./libtool: line 1139: func_opt_split: command not found
./libtool: line 1139: func_opt_split: command not found
libtool: Version mismatch error.  This is libtool 2.2.6, 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.6
libtool: and run autoconf again.
libtool: Version mismatch error.  This is libtool 2.2.6, 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.6
libtool: and run autoconf again.
libtool: Version mismatch error.  This is libtool 2.2.6, 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.6
libtool: and run autoconf again.
make[3]: *** [md5_hash.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [md5.lo] Error 1
./libtool: line 1139: func_opt_split: command not found
make[3]: *** [redhat-crypt-md5.lo] Error 1
libtool: Version mismatch error.  This is libtool 2.2.6, 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.6
libtool: and run autoconf again.
make[3]: *** [hmac.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/net-mail/courier-imap-4.0.6-r3/work/courier-imap-4.0.6/md5'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/net-mail/courier-imap-4.0.6-r3/work/courier-imap-4.0.6/md5'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-mail/courier-imap-4.0.6-r3/work/courier-imap-4.0.6'
make: *** [all] Error 2
 * 
 * ERROR: net-mail/courier-imap-4.0.6-r3 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2797:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-mail/courier-imap-4.0.6-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-mail/courier-imap-4.0.6-r3/temp/environment'.
 * 

>>> Failed to emerge net-mail/courier-imap-4.0.6-r3, Log file:

>>>  '/var/tmp/portage/net-mail/courier-imap-4.0.6-r3/temp/build.log'
Comment 17 Christian Wilken 2009-09-30 21:45:30 UTC
Just had a look at the ChangeLog for courier-imap:
http://www.courier-mta.org/imap/changelog.html

It seems that courier-imap-4.0.6 was released in 2005...??

Newest version is 4.6.0 released 2009-09-05...
Comment 18 BlackSun 2009-10-01 08:12:33 UTC
may be forget change version in gentoo ports...?
Comment 19 Aljoscha Vollmerhaus 2009-10-05 11:00:20 UTC
i've got it, too. very annoying. maybe we shouldn't care about fixing such old versions and just try to stabilize a newer one?
Comment 20 Christian Wilken 2009-10-05 11:06:45 UTC
Sounds like a good idea... ;)

Another possible "solution" would be to use another IMAP server (like Dovecot), but I really don't want to migrate since it might break my current setup...
Comment 21 Gerard 2009-10-05 11:28:30 UTC
There are a lot of unstable versions in the portage: 
http://gentoo-portage.com/net-mail/courier-imap

Now trying to upgrade to version 4.5.0 (~x86), I hope it will work (and that it is going to be marked as stable soon)
Comment 22 Gerard 2009-10-05 12:12:22 UTC
Now using courier-imap 4.5.0, so far it CAN be emerged without problems, and seems to do it's job. 
Comment 23 Christian Wilken 2009-10-05 12:16:30 UTC
I'm emerging as I write... :)
Comment 24 Christian Wilken 2009-10-05 12:45:40 UTC
I've also upgraded to 4.5.0 and haven't seen any problems so far... ;)

Maybe someone "forgot" to mark it stable...?? ;)
Comment 25 BlackSun 2009-10-07 16:08:35 UTC
plz, tel me, how can i unmask courier-imap-4.5.0 or 4.6.0??
Comment 26 Christian Wilken 2009-10-07 20:26:22 UTC
(In reply to comment #25)
> plz, tel me, how can i unmask courier-imap-4.5.0 or 4.6.0??
> 

echo "=net-mail/courier-imap-4.5.0" >> /etc/portage/package.keywords

This info is also available in the Gentoo Handbook :)
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3&chap=3
Comment 27 Marko Weber Bürgermeister 2009-10-16 15:05:12 UTC
(In reply to comment #26)
> (In reply to comment #25)
> > plz, tel me, how can i unmask courier-imap-4.5.0 or 4.6.0??
> > 
> 
> echo "=net-mail/courier-imap-4.5.0" >> /etc/portage/package.keywords
> 
> This info is also available in the Gentoo Handbook :)
> http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3&chap=3
> 

when i compile courier authlib  without postgres useflag it compile fine
Comment 28 Gerard 2009-10-16 15:35:27 UTC
I never compiled courier-authlib with the postgres use flag, and still, the stable version throws an error when compiling. (still running unstable on several servers. Still no problems)
Comment 29 Christian Wilken 2009-10-18 10:26:09 UTC
(In reply to comment #28)
> I never compiled courier-authlib with the postgres use flag, and still, the
> stable version throws an error when compiling. (still running unstable on
> several servers. Still no problems)
> 

Same here... :)
Comment 30 Lincoln A Baxter 2009-10-18 23:18:14 UTC
(In reply to comment #29)
> (In reply to comment #28)
> > I never compiled courier-authlib with the postgres use flag, and still, the
> > stable version throws an error when compiling. (still running unstable on
> > several servers. Still no problems)
> > 
> 
> Same here... :)
> 
and here (4.5.0)... if there is not a good reason to keep 4.5.0 Masked... how about it be unmasked... this (along with the xorg and gnome upgrades has made this an ugly weekend of emerges trying to get current... 
Comment 31 Dave Lindquist 2009-10-21 19:19:51 UTC
Created attachment 207859 [details, diff]
Expanded version of patch that makes courier-imap actually compile.

I'm attaching a patch (courier-imap-4.0.6-r3.ebuild.patch) that makes this compile for me.

Basically, I just followed the previous instructions (adding in the "eautoreconf") for each thing that failed, until everything compiled.

I've briefly tested this, and it appears that the compiled code actually functions correctly, too.
Comment 32 Aljoscha Vollmerhaus 2009-10-22 11:30:11 UTC
I've upgraded to 4.5.0, too. Error-free operation with about 45 users on a daily basis. 
Comment 33 Jaime Garcia 2009-10-24 19:50:49 UTC
sucessfully compiled unmasking 2.5.0 version =)
Comment 34 Jaime Garcia 2009-10-24 19:52:44 UTC
(In reply to comment #33)
> sucessfully compiled unmasking 2.5.0 version =)
> 

I mean 4.5.0 version, sorry
Comment 35 Bernard Cafarelli gentoo-dev 2009-11-23 10:18:15 UTC
courier-imap-4.5.0 is stable on most arches now, and fixes this bug

Thanks for the report!