Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 158460 - imapfilter-1.2.2 does not compile with lua-5.1.1
Summary: imapfilter-1.2.2 does not compile with lua-5.1.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 155518
  Show dependency tree
 
Reported: 2006-12-18 07:06 UTC by Dan A. Dickey
Modified: 2007-01-22 21:05 UTC (History)
1 user (show)

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


Attachments
Ebuild patch (imapfilter.ebuild.patch,377 bytes, patch)
2006-12-20 19:29 UTC, Mark Wagner
Details | Diff
imapfilter-lua.patch (imapfilter-lua.patch,435 bytes, patch)
2006-12-20 19:30 UTC, Mark Wagner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dan A. Dickey 2006-12-18 07:06:56 UTC
lua updated to 5.1.1 this morning and imapfilter stopped working as it needed
a liblualib.so.  lua 5.1.1 does not provided this anymore.  imapfilter needs to be updated to not link against lualib, but just lua.  This looks to be an upstream issue, and the imapfilter folks need to make the change.
I worked around the problem by masking lua-5.1.1 which downgraded my system to
lua-5.0.3 and now imapfilter is happy again.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-12-18 07:10:07 UTC
Did you try to just re-emerge it? Or, it doesn't compile either?
Comment 2 Dan A. Dickey 2006-12-18 07:13:31 UTC
Re-emerge what, exactly?  I ran revdep-rebuild which tried to re-emerge
imapfilter - which failed.  It is trying to link with both liblua and liblualib.
I also came across bug 155518 which seems to imply gentoo is creating the
name liblua and/or liblualib.  Please take a look at that bug too.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-12-18 07:21:52 UTC
(In reply to comment #2)
> Re-emerge what, exactly? 

> I also came across bug 155518 which seems to imply gentoo is creating the
> name liblua and/or liblualib.  Please take a look at that bug too.
 

Re-emerge imapfilter w/ lua-5.1.1; post the errors please and reopen the bug, the compile needs to be fixed.
Comment 4 Dan A. Dickey 2006-12-18 07:38:01 UTC
All right, here you go (this piece shows that lua-5.1.1 is installed):
# emerge -pv lua

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

Calculating dependencies... done!
[ebuild   R   ] dev-lang/lua-5.1.1  USE="readline -static" 0 kB

And here is the attempted re-emerge of imapfilter:
# emerge -v --oneshot imapfilter
Calculating dependencies... done!

>>> Emerging (1 of 1) mail-filter/imapfilter-1.2.2 to /
 * imapfilter-1.2.2.tar.bz2 MD5 ;-) ...                                   [ ok ]
 * imapfilter-1.2.2.tar.bz2 RMD160 ;-) ...                                [ ok ]
 * imapfilter-1.2.2.tar.bz2 SHA1 ;-) ...                                  [ ok ]
 * imapfilter-1.2.2.tar.bz2 SHA256 ;-) ...                                [ ok ]
 * imapfilter-1.2.2.tar.bz2 size ;-) ...                                  [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking imapfilter-1.2.2.tar.bz2 ;-) ...                              [ ok ]
>>> Unpacking source...
>>> Unpacking imapfilter-1.2.2.tar.bz2 to /var/tmp/portage/mail-filter/imapfilter-1.2.2/work
 * Applying imapfilter-1.0.patch ...                                      [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/mail-filter/imapfilter-1.2.2/work/imapfilter-1.2.2 ...
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR='"/usr/share/imapfilter"' -I/usr/local/include   -c -o auth.o auth.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR='"/usr/share/imapfilter"' -I/usr/local/include   -c -o buffer.o buffer.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR='"/usr/share/imapfilter"' -I/usr/local/include   -c -o cert.o cert.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR='"/usr/share/imapfilter"' -I/usr/local/include   -c -o core.o core.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR='"/usr/share/imapfilter"' -I/usr/local/include   -c -o file.o file.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR='"/usr/share/imapfilter"' -I/usr/local/include   -c -o imap.o imap.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR='"/usr/share/imapfilter"' -I/usr/local/include   -c -o imapfilter.o imapfilter.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR='"/usr/share/imapfilter"' -I/usr/local/include   -c -o list.o list.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR='"/usr/share/imapfilter"' -I/usr/local/include   -c -o log.o log.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR='"/usr/share/imapfilter"' -I/usr/local/include   -c -o lua.o lua.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR='"/usr/share/imapfilter"' -I/usr/local/include   -c -o memory.o memory.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR='"/usr/share/imapfilter"' -I/usr/local/include   -c -o misc.o misc.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR='"/usr/share/imapfilter"' -I/usr/local/include   -c -o namespace.o namespace.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR='"/usr/share/imapfilter"' -I/usr/local/include   -c -o regexp.o regexp.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR='"/usr/share/imapfilter"' -I/usr/local/include   -c -o request.o request.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR='"/usr/share/imapfilter"' -I/usr/local/include   -c -o response.o response.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR='"/usr/share/imapfilter"' -I/usr/local/include   -c -o session.o session.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR='"/usr/share/imapfilter"' -I/usr/local/include   -c -o signal.o signal.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR='"/usr/share/imapfilter"' -I/usr/local/include   -c -o socket.o socket.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR='"/usr/share/imapfilter"' -I/usr/local/include   -c -o system.o system.c
cc -o imapfilter  -L/usr/local/lib auth.o buffer.o cert.o core.o file.o imap.o imapfilter.o list.o log.o lua.o memory.o misc.o namespace.o regexp.o request.o response.o session.o signal.o socket.o system.o -lm -llua -llualib -lssl -lcrypto
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -llualib
collect2: ld returned 1 exit status
make: *** [imapfilter] Error 1

!!! ERROR: mail-filter/imapfilter-1.2.2 failed.
Call stack:
  ebuild.sh, line 1580:   Called dyn_compile
  ebuild.sh, line 945:   Called src_compile
  imapfilter-1.2.2.ebuild, line 27:   Called die

!!! parallel make failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

And, just for a little more info:
# ls -lt /usr/lib/liblua*
-rw-r--r-- 1 root root 201700 Dec 18 09:33 /usr/lib/liblua.a
-rw-r--r-- 1 root root    789 Dec 18 09:33 /usr/lib/liblua.la
lrwxrwxrwx 1 root root     15 Dec 18 09:33 /usr/lib/liblua.so -> liblua.so.5.1.1
lrwxrwxrwx 1 root root     15 Dec 18 09:33 /usr/lib/liblua.so.5 -> liblua.so.5.1.1
-rwxr-xr-x 1 root root 136472 Dec 18 09:33 /usr/lib/liblua.so.5.1.1

Anything else I can provide, please let me know. Thanks.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-12-18 07:40:29 UTC
Thanks. 
Comment 6 Mark Wagner 2006-12-20 19:29:46 UTC
Created attachment 104486 [details, diff]
Ebuild patch
Comment 7 Mark Wagner 2006-12-20 19:30:26 UTC
Created attachment 104487 [details, diff]
imapfilter-lua.patch
Comment 8 Mark Wagner 2006-12-20 19:31:55 UTC
Attached is a possible fix.
Comment 9 Matti Bickel (RETIRED) gentoo-dev 2007-01-22 20:35:35 UTC
Well, i'll commit the patch, assuming it fixed your problems. I installed imapfilter just fine w/ it, but lack an idea how to test it effectivly.
Comment 10 Matti Bickel (RETIRED) gentoo-dev 2007-01-22 21:05:59 UTC
Fixed in CVS.