<?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>176064</bug_id>
          
          <creation_ts>2007-04-26 04:11 0000</creation_ts>
          <short_desc>net-mail/perdition works on ~amd64</short_desc>
          <delta_ts>2008-01-05 02:43:18 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>unspecified</version>
          <rep_platform>AMD64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>dave@anticlockwise.com.au</reporter>
          <assigned_to>amd64@gentoo.org</assigned_to>
          <cc>net-mail@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>dave@anticlockwise.com.au</who>
            <bug_when>2007-04-26 04:11:17 0000</bug_when>
            <thetext>missing amd64 keyword for net-mail/perdition

Reproducible: Always</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>miknix@gentoo.org</who>
            <bug_when>2007-07-24 03:56:33 0000</bug_when>
            <thetext>Emerging net-mail/perdition-1.17 on AMD64 will fail.

/bin/sh ../../../libtool --mode=link x86_64-pc-linux-gnu-gcc  -march=athlon64 -pipe -Os -maccumulate-outgoing-args -fpeel-loops -ftracer -funswitch-loops  -o libperditiondb_daemon.la -rpath /usr/lib64 -version-info 0:0:0 perditiondb_daemon.lo unix_socket.lo -ldb -L. -lperditiondb_daemon_packet 
x86_64-pc-linux-gnu-gcc -march=athlon64 -pipe -Os -maccumulate-outgoing-args -fpeel-loops -ftracer -funswitch-loops -o server server.o unix_socket.o  /usr/lib64/libvanessa_logger.so -L/home/portage-tmp/portage/net-mail/perdition-1.17/work/perdition-1.17/perdition/db/daemon -lperditiondb_daemon_packet
x86_64-pc-linux-gnu-gcc -shared  .libs/perditiondb_daemon.o .libs/unix_socket.o  -ldb -L/home/portage-tmp/portage/net-mail/perdition-1.17/work/perdition-1.17/perdition/db/daemon -lperditiondb_daemon_packet  -march=athlon64 -maccumulate-outgoing-args -Wl,-soname -Wl,libperditiondb_daemon.so.0 -o .libs/libperditiondb_daemon.so.0.0.0
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: /home/portage-tmp/portage/net-mail/perdition-1.17/work/perdition-1.17/perdition/db/daemon/libperditiondb_daemon_packet.a(packet.o): relocation R_X86_64_32 against `a local symbol&apos; can not be used when making a shared object; recompile with -fPIC
/home/portage-tmp/portage/net-mail/perdition-1.17/work/perdition-1.17/perdition/db/daemon/libperditiondb_daemon_packet.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[4]: *** [libperditiondb_daemon.la] Error 1
make[4]: Leaving directory `/home/portage-tmp/portage/net-mail/perdition-1.17/work/perdition-1.17/perdition/db/daemon&apos;
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/portage-tmp/portage/net-mail/perdition-1.17/work/perdition-1.17/perdition/db&apos;
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/portage-tmp/portage/net-mail/perdition-1.17/work/perdition-1.17/perdition&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/portage-tmp/portage/net-mail/perdition-1.17/work/perdition-1.17&apos;
make: *** [all-recursive-am] Error 2

perditiondb_daemon.o tries to link against perditiondb_daemon_packet which is a static lib.
The perdition-1.17-pic01 patch will make all .o being built as shared (including packet.o which causes the error).

Despite that error, the package builds OK.
NOTE: I didn&apos;t check any other missing -fPIC, maybe tomorrow :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>miknix@gentoo.org</who>
            <bug_when>2007-07-24 04:01:20 0000</bug_when>
            <thetext>Created an attachment (id=125830)
The -fPIC patch.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>miknix@gentoo.org</who>
            <bug_when>2007-07-24 04:20:12 0000</bug_when>
            <thetext>Created an attachment (id=125831)
perdition-1.17-pic01.diff (the right one)

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>miknix@gentoo.org</who>
            <bug_when>2007-07-24 14:24:06 0000</bug_when>
            <thetext>net-mail/perdition-1.17 built OK with USE=&quot;nls pam ssl mysql -gdbm -ldap -odbc -postgres&quot; and patch perdition-1.17-pic01.diff. No colisions.

I also tested execution by configuring a proxy server to my gmail account with SSL support. popmap data where stored in a mysql database.
The execution was successful, I could receive your &quot;SPAM&quot; :p

Execution log with debug set:

Jul 24 15:01:20 [perdition] version=1.17, add_domain=&quot;&quot;, authenticate_in=off, bind_address=&quot;127.0.0.1&quot;, capability=&quot;UIDL  USER&quot;, client_server_specification=off, config_file=&quot;/etc/perdition/perdition.conf&quot;, connection_limit=0, connection_logging=on, connect_relog=300, debug=on, domain_delimiter=&quot;@&quot;, explicit_domain=&quot;&quot;, group=&quot;nobody&quot;, inetd_mode=off, listen_port=&quot;110&quot;, log_facility=&quot;mail&quot;, login_disabled=off, lower_case=&quot;&quot;, map_library=&quot;/usr/lib/libperditiondb_mysql.so&quot;, map_library_opt=&quot;localhost:3306:perditiondb:popmap:perdition:***:servername:user:port&quot;, no_bind_banner=off, no_daemon=off, no_lookup=off, nodename=&quot;WoW&quot;, ok_line=&quot;You are so in&quot;, outgoing_port=&quot;110&quot;, outgoing_server=&quot;&quot;, pid_file=&quot;/var/run/perdition/pop3.pid&quot;, protocol=&quot;POP3&quot;, server_resp_line=off, strip_domain=&quot;&quot;, timeout=1800, username=&quot;perdition&quot;, username_from_database=off, query_key=&quot;&quot;, quiet=off, ssl_mode=&quot;ssl_outgoing&quot;, ssl_ca_file=&quot;&quot;, ssl_ca_path=&quot;/etc/perdition/perdition.ca/&quot;, ssl_ca_accept_self_signed=&quot;off&quot;, ssl_cert_file=&quot;/etc/perdition/perdition.crt.pem&quot;, ssl_cert_accept_expired=&quot;off&quot;, ssl_cert_not_yet_valid=&quot;off&quot;, ssl_cert_self_signed=&quot;off&quot;, ssl_cert_verify_depth=9, ssl_key_file=&quot;/etc/perdition/perdition.key.pem&quot;, ssl_listen_ciphers=&quot;&quot;, ssl_outgoing_ciphers=&quot;&quot;, ssl_no_cert_verify=&quot;on&quot;, ssl_no_cn_verify=&quot;off&quot;, (ssl_mask=0x00000000) (mask=0x10000400 00000002)__
Jul 24 15:01:20 [perdition] vanessa_socket_daemon_setid: uid=107 euid=107 gid=65534 egid=65534_
Jul 24 15:01:23 [perdition] Connect: 127.0.0.1-&gt;127.0.0.1 _
Jul 24 15:01:23 [perdition] SELF:   &quot;+OK POP3 Ready localhost ***\r\n&quot;_
Jul 24 15:01:23 [perdition] CLIENT: &quot;USER miknix@gmail.com\r\n&quot;_
Jul 24 15:01:23 [perdition] SELF:   &quot;+OK USER miknix@gmail.com set, mate\r\n&quot;_
Jul 24 15:01:23 [perdition] CLIENT: &quot;PASS *** \r\n&quot;_
Jul 24 15:01:23 [perdition] username_add_domain: username_add_domain 0 1 ***_
Jul 24 15:01:23 [perdition] SSL connection using DES-CBC3-SHA_
Jul 24 15:01:23 [perdition] subject: /C=US/ST=California/L=Mountain View/O=Google Inc./CN=pop.gmail.com_
Jul 24 15:01:23 [perdition] issuer: /C=US/O=Equifax/OU=Equifax Secure Certificate Authority_
Jul 24 15:01:23 [perdition] username_add_domain: username_add_domain 0 4 ***_
Jul 24 15:01:23 [perdition] REAL:   &quot;+OK Gpop ready for requests from 85.241.***.*** ***\r\n&quot;_
Jul 24 15:01:23 [perdition] SELF:   &quot;USER miknix@gmail.com\r\n&quot;_
Jul 24 15:01:23 [perdition] REAL:   &quot;+OK send PASS\r\n&quot;_
Jul 24 15:01:23 [perdition] SELF:   &quot;PASS *** \r\n&quot;_
Jul 24 15:01:24 [perdition] REAL:   &quot;+OK Welcome.\r\n&quot;_
Jul 24 15:01:24 [perdition] SELF:   &quot;+OK You are so in\r\n&quot;_
Jul 24 15:01:24 [perdition] Auth: 127.0.0.1-&gt;127.0.0.1 user=&quot;miknix@gmail.com&quot; server=&quot;pop.gmail.com&quot; port=&quot;995&quot; status=&quot;ok&quot;_
Jul 24 15:01:24 [perdition] CLIENT: &quot;STAT\r\n&quot;_
Jul 24 15:01:24 [perdition] REAL:   &quot;+OK 4 9126\r\n&quot;_
Jul 24 15:01:24 [perdition] CLIENT: &quot;UIDL\r\n&quot;_
Jul 24 15:01:24 [perdition] REAL:   &quot;+OK\r\n1 GmailId***\r\n2 GmailId***\r\n3 GmailId***\r\n4 GmailId***\r\n.\r\n&quot;_
Jul 24 15:01:24 [perdition] CLIENT: &quot;LIST\r\n&quot;_
(...)
Jul 24 15:01:24 [perdition] REAL:   &quot;+OK 4 messages (9126 bytes)\r\n1 2275\r\n2 2261\r\n3 2393\r\n4 2197\r\n.\r\n&quot;_
Jul 24 15:01:24 [perdition] CLIENT: &quot;RETR 1\r\n&quot;_</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>angelos@gentoo.org</who>
            <bug_when>2007-08-13 12:14:06 0000</bug_when>
            <thetext>Adding net-mail, please see comment #1 and comment #3</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>siiludus@gmail.com</who>
            <bug_when>2007-09-12 17:35:48 0000</bug_when>
            <thetext>patch from #3 works for me.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2008-01-05 02:43:18 0000</bug_when>
            <thetext>Added keywords for net-mail/perdition-1.17.1 since that compiles fine without the patch. Thanks for reporting!</thetext>
          </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>125830</attachid>
            <date>2007-07-24 04:01 0000</date>
            <desc>perdition-1.17-pic01.diff</desc>
            <filename>perdition-1.17-pic01.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHBlcmRpdGlvbi0xLjE3L3BlcmRpdGlvbi9kYi9kYWVtb24vTWFrZWZpbGUuaW4JMjAwNy0w
Ny0yNCAwNTowMDoyMS4wMDAwMDAwMDAgKzAxMDAKKysrIHBlcmRpdGlvbi0xLjE3LWZpeC9wZXJk
aXRpb24vZGIvZGFlbW9uL01ha2VmaWxlLmluCTIwMDctMDctMjQgMDQ6NDY6NTIuMDAwMDAwMDAw
ICswMTAwCkBAIC0zNzEsNyArMzcxLDcgQEAgbWFpbnRhaW5lci1jbGVhbi1kZXBlbmQ6CiAKICUu
bzogJS5jCiAJQGVjaG8gJyQoQ09NUElMRSkgLWMgJDwnOyBcCi0JJChDT01QSUxFKSAtV3AsLU1E
LC5kZXBzLyQoKkYpLnBwIC1jICQ8CisJJChDT01QSUxFKSAtZlBJQyAtRFBJQyAtV3AsLU1ELC5k
ZXBzLyQoKkYpLnBwIC1jICQ8CiAJQC1jcCAuZGVwcy8kKCpGKS5wcCAuZGVwcy8kKCpGKS5QOyBc
CiAJdHIgJyAnICdcMDEyJyA8IC5kZXBzLyQoKkYpLnBwIFwKIAkgIHwgc2VkIC1lICdzL15cXCQk
Ly8nIC1lICcvXiQkLyBkJyAtZSAnLzokJC8gZCcgLWUgJ3MvJCQvIDovJyBcCg==
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>125831</attachid>
            <date>2007-07-24 04:20 0000</date>
            <desc>perdition-1.17-pic01.diff (the right one)</desc>
            <filename>perdition-1.17-pic01.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHBlcmRpdGlvbi9kYi9kYWVtb24vTWFrZWZpbGUuaW4tb2xkCTIwMDctMDctMjQgMDU6MTM6
NTMuMDAwMDAwMDAwICswMTAwCisrKyBwZXJkaXRpb24vZGIvZGFlbW9uL01ha2VmaWxlLmluCTIw
MDctMDctMjQgMDU6MTQ6MDUuMDAwMDAwMDAwICswMTAwCkBAIC0yMTcsNyArMjE3LDcgQEAgZGlz
dGNsZWFuLW5vaW5zdExJQlJBUklFUzoKIG1haW50YWluZXItY2xlYW4tbm9pbnN0TElCUkFSSUVT
OgogCiAuYy5vOgotCSQoQ09NUElMRSkgLWMgJDwKKwkkKENPTVBJTEUpIC1mUElDIC1EUElDIC1j
ICQ8CiAKICMgRklYTUU6IFdlIHNob3VsZCBvbmx5IHVzZSBjeWdwYXRoIHdoZW4gYnVpbGRpbmcg
b24gV2luZG93cywKICMgYW5kIG9ubHkgaWYgaXQgaXMgYXZhaWxhYmxlLgo=
</data>        

          </attachment>
    </bug>

</bugzilla>