<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>158460</bug_id>
          
          <creation_ts>2006-12-18 07:06 0000</creation_ts>
          <short_desc>imapfilter-1.2.2 does not compile with lua-5.1.1</short_desc>
          <delta_ts>2007-01-22 21:05:59 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>2006.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>155518</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>dan.dickey@savvis.net</reporter>
          <assigned_to>net-mail@gentoo.org</assigned_to>
          <cc>mark@lanfear.net</cc>

      

      
          <long_desc isprivate="0">
            <who>dan.dickey@savvis.net</who>
            <bug_when>2006-12-18 07:06:56 0000</bug_when>
            <thetext>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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-12-18 07:10:07 0000</bug_when>
            <thetext>Did you try to just re-emerge it? Or, it doesn&apos;t compile either?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dan.dickey@savvis.net</who>
            <bug_when>2006-12-18 07:13:31 0000</bug_when>
            <thetext>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.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-12-18 07:21:52 0000</bug_when>
            <thetext>(In reply to comment #2)
&gt; Re-emerge what, exactly? 

&gt; I also came across bug 155518 which seems to imply gentoo is creating the
&gt; 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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dan.dickey@savvis.net</who>
            <bug_when>2006-12-18 07:38:01 0000</bug_when>
            <thetext>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=&quot;readline -static&quot; 0 kB

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

&gt;&gt;&gt; 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 ]
&gt;&gt;&gt; Unpacking source...
&gt;&gt;&gt; Unpacking imapfilter-1.2.2.tar.bz2 to /var/tmp/portage/mail-filter/imapfilter-1.2.2/work
 * Applying imapfilter-1.0.patch ...                                      [ ok ]
&gt;&gt;&gt; Source unpacked.
&gt;&gt;&gt; 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=&apos;&quot;/usr/share/imapfilter&quot;&apos; -I/usr/local/include   -c -o auth.o auth.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR=&apos;&quot;/usr/share/imapfilter&quot;&apos; -I/usr/local/include   -c -o buffer.o buffer.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR=&apos;&quot;/usr/share/imapfilter&quot;&apos; -I/usr/local/include   -c -o cert.o cert.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR=&apos;&quot;/usr/share/imapfilter&quot;&apos; -I/usr/local/include   -c -o core.o core.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR=&apos;&quot;/usr/share/imapfilter&quot;&apos; -I/usr/local/include   -c -o file.o file.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR=&apos;&quot;/usr/share/imapfilter&quot;&apos; -I/usr/local/include   -c -o imap.o imap.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR=&apos;&quot;/usr/share/imapfilter&quot;&apos; -I/usr/local/include   -c -o imapfilter.o imapfilter.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR=&apos;&quot;/usr/share/imapfilter&quot;&apos; -I/usr/local/include   -c -o list.o list.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR=&apos;&quot;/usr/share/imapfilter&quot;&apos; -I/usr/local/include   -c -o log.o log.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR=&apos;&quot;/usr/share/imapfilter&quot;&apos; -I/usr/local/include   -c -o lua.o lua.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR=&apos;&quot;/usr/share/imapfilter&quot;&apos; -I/usr/local/include   -c -o memory.o memory.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR=&apos;&quot;/usr/share/imapfilter&quot;&apos; -I/usr/local/include   -c -o misc.o misc.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR=&apos;&quot;/usr/share/imapfilter&quot;&apos; -I/usr/local/include   -c -o namespace.o namespace.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR=&apos;&quot;/usr/share/imapfilter&quot;&apos; -I/usr/local/include   -c -o regexp.o regexp.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR=&apos;&quot;/usr/share/imapfilter&quot;&apos; -I/usr/local/include   -c -o request.o request.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR=&apos;&quot;/usr/share/imapfilter&quot;&apos; -I/usr/local/include   -c -o response.o response.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR=&apos;&quot;/usr/share/imapfilter&quot;&apos; -I/usr/local/include   -c -o session.o session.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR=&apos;&quot;/usr/share/imapfilter&quot;&apos; -I/usr/local/include   -c -o signal.o signal.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR=&apos;&quot;/usr/share/imapfilter&quot;&apos; -I/usr/local/include   -c -o socket.o socket.c
cc -march=prescott -O2 -pipe -fomit-frame-pointer -DMAKEFILE_SHAREDIR=&apos;&quot;/usr/share/imapfilter&quot;&apos; -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 -&gt; liblua.so.5.1.1
lrwxrwxrwx 1 root root     15 Dec 18 09:33 /usr/lib/liblua.so.5 -&gt; 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.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-12-18 07:40:29 0000</bug_when>
            <thetext>Thanks. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mark@lanfear.net</who>
            <bug_when>2006-12-20 19:29:46 0000</bug_when>
            <thetext>Created an attachment (id=104486)
Ebuild patch

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mark@lanfear.net</who>
            <bug_when>2006-12-20 19:30:26 0000</bug_when>
            <thetext>Created an attachment (id=104487)
Remove -llualib from Makefile

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mark@lanfear.net</who>
            <bug_when>2006-12-20 19:31:55 0000</bug_when>
            <thetext>Attached is a possible fix.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mabi@gentoo.org</who>
            <bug_when>2007-01-22 20:35:35 0000</bug_when>
            <thetext>Well, i&apos;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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mabi@gentoo.org</who>
            <bug_when>2007-01-22 21:05:59 0000</bug_when>
            <thetext>Fixed in CVS.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>104486</attachid>
            <date>2006-12-20 19:29 0000</date>
            <desc>Ebuild patch</desc>
            <filename>imapfilter.ebuild.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGltYXBmaWx0ZXItMS4yLjIuZWJ1aWxkCTIwMDYtMTItMjAgMTk6MjU6MzEuMDAwMDAwMDAw
IC0wODAwCisrKyBpbWFwZmlsdGVyLTEuMi4yLXIxLmVidWlsZAkyMDA2LTEyLTIwIDE5OjI1OjQx
LjAwMDAwMDAwMCAtMDgwMApAQCAtMjEsNiArMjEsOCBAQAogCXVucGFjayAke0F9CiAJY2QgJHtX
T1JLRElSfS8ke1B9CiAJZXBhdGNoICR7RklMRVNESVJ9LyR7UE59LTEuMC5wYXRjaCB8fCBkaWUg
ImVwYXRjaCBmYWlsZWQiCisJIyBTZWUgQnVnICMxNTU1MTggYW5kIEJ1ZyAjMTU4NDYwCisJaGFz
X3ZlcnNpb24gIj49ZGV2LWxhbmcvbHVhLTUuMS4xIiAmJiBlcGF0Y2ggJHtGSUxFU0RJUn0vJHtQ
Tn0tbHVhLnBhdGNoCiB9CiAKIHNyY19jb21waWxlKCkgewo=
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>104487</attachid>
            <date>2006-12-20 19:30 0000</date>
            <desc>imapfilter-lua.patch</desc>
            <filename>imapfilter-lua.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtdXJOIGltYXBmaWx0ZXItMS4yLjIuZGlzdC9NYWtlZmlsZSBpbWFwZmlsdGVyLTEuMi4y
L01ha2VmaWxlCi0tLSBpbWFwZmlsdGVyLTEuMi4yLmRpc3QvTWFrZWZpbGUJMjAwNi0wOC0wMSAw
NToxMTozNC4wMDAwMDAwMDAgLTA3MDAKKysrIGltYXBmaWx0ZXItMS4yLjIvTWFrZWZpbGUJMjAw
Ni0xMi0yMCAxOToyNjoyNi4wMDAwMDAwMDAgLTA4MDAKQEAgLTE0LDcgKzE0LDcgQEAKIENGTEFH
UyA9ICQoTVlDRkxBR1MpICQoREVGUykgJChJTkNESVJTKQogTERGTEFHUyA9ICQoTVlMREZMQUdT
KSAkKExJQkRJUlMpCiAKLUxJQlMgPSAtbG0gLWxsdWEgLWxsdWFsaWIgLWxzc2wgLWxjcnlwdG8K
K0xJQlMgPSAtbG0gLWxsdWEgLWxzc2wgLWxjcnlwdG8KIAogTUFOX0JJTiA9IGltYXBmaWx0ZXIu
MQogTUFOX0NPTkZJRyA9IGltYXBmaWx0ZXJfY29uZmlnLjUK
</data>        

          </attachment>
    </bug>

</bugzilla>