<?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>182324</bug_id>
          
          <creation_ts>2007-06-17 13:38 0000</creation_ts>
          <short_desc>net-p2p/deluge fails with &apos;undefined symbol: BN_num_bits&apos;</short_desc>
          <delta_ts>2009-06-02 11:03:35 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>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>REOPENED</bug_status>
          
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>129413</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>peter.henriksson@gmail.com</reporter>
          <assigned_to>net-p2p@gentoo.org</assigned_to>
          <cc>flameeyes@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>peter.henriksson@gmail.com</who>
            <bug_when>2007-06-17 13:38:21 0000</bug_when>
            <thetext>Happens with -0.5.0, -0.5.1.1 and the live svn ebuild as of today.
I can&apos;t find any other reports of this problem so I suppose it could be just me.

swany@gentoo ~ $ deluge 
Traceback (most recent call last):
  File &quot;/usr/bin/deluge&quot;, line 41, in ?
    import deluge, deluge.common, deluge.interface
  File &quot;/usr/lib/python2.4/site-packages/deluge/interface.py&quot;, line 34, in ?
    import core, common, dgtk, ipc_manager, dialogs
  File &quot;/usr/lib/python2.4/site-packages/deluge/core.py&quot;, line 49, in ?
    import deluge_core
ImportError: /usr/lib/python2.4/site-packages/deluge/deluge_core.so: undefined symbol: BN_num_bits


Reproducible: Always

Steps to Reproduce:




emerge --info
Portage 2.1.3_rc3 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.5-r3, 2.6.21-ck2 i686)
=================================================================
System uname: 2.6.21-ck2 i686 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
Gentoo Base System release 1.12.10
Timestamp of tree: Sat, 16 Jun 2007 20:00:10 +0000
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17.50.0.15
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-march=pentium-m -msse3 -O2 -pipe -fomit-frame-pointer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/share/X11/xkb&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo&quot;
CXXFLAGS=&quot;-march=pentium-m -msse3 -O2 -pipe -fomit-frame-pointer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;ccache distlocks metadata-transfer nodoc parallel-fetch sandbox sfperms strict unmerge-orphans&quot;
GENTOO_MIRRORS=&quot;http://ds.thn.htu.se/linux/gentoo&quot;
LANG=&quot;en_US.UTF-8&quot;
LC_ALL=&quot;en_US.UTF-8&quot;
LDFLAGS=&quot;-Wl,--hash-style=both -Wl,--as-needed&quot;
LINGUAS=&quot;en&quot;
MAKEOPTS=&quot;-j3&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage /usr/local/overlays/gnome-experimental&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;X acl alsa berkdb bitmap-fonts cli cracklib crypt cups dbus dri fortran gdbm gnome gpm gtk hal iconv ipv6 isdnlog libg++ midi mudflap ncurses nls nptl nptlonly openmp pam pcre perl png pppd python readline reflection session spl ssl tcpd thread tiff truetype-fonts type1-fonts unicode x86 xorg zlib&quot; ALSA_CARDS=&quot;emu10k1&quot; ALSA_PCM_PLUGINS=&quot;adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;evdev mouse keyboard&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LINGUAS=&quot;en&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;i810 nvidia&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-06-17 13:41:31 0000</bug_when>
            <thetext>So try without --as-needed</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>peter.henriksson@gmail.com</who>
            <bug_when>2007-06-17 14:45:58 0000</bug_when>
            <thetext>Of course. It&apos;s been so long since I had anything fail due to --as-needed it slipped my mind.
Works fine without --as-needed. Thanks.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2007-07-23 11:38:17 0000</bug_when>
            <thetext>Uh, forgot about this bug. Same with later versions? 0.5.2, 0.5.3-r1? If so, i&apos;ll filter out that...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>peter.henriksson@gmail.com</who>
            <bug_when>2007-07-23 15:43:10 0000</bug_when>
            <thetext>Yes, this still happens with 0.5.3_rc1.

It seems the deluge people have a &apos;Brand new build and installation system using autotools and make&apos; on the roadmap. But until such time filtering out --as-needed is probably the best way to resolve this bug.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2007-07-23 19:27:08 0000</bug_when>
            <thetext>Fixed, thanks :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>Sander.Sweers@gmail.com</who>
            <bug_when>2007-07-23 19:32:46 0000</bug_when>
            <thetext>(In reply to comment #4)
&gt; Yes, this still happens with 0.5.3_rc1.
&gt; 
&gt; It seems the deluge people have a &apos;Brand new build and installation system
&gt; using autotools and make&apos; on the roadmap. But until such time filtering out
&gt; --as-needed is probably the best way to resolve this bug.

Filtering is never the best option, the worst as it hides the real bug. It should be not filtered leaving the bug report open or fixed for real.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2007-07-23 19:37:40 0000</bug_when>
            <thetext>Well, attach a patch and i&apos;ll add it...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ssuominen@gentoo.org</who>
            <bug_when>2007-07-24 03:32:44 0000</bug_when>
            <thetext>umm.. I&apos;ve never seen asneedeed filtered before, let me try to fix it instead.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ssuominen@gentoo.org</who>
            <bug_when>2007-07-24 09:32:01 0000</bug_when>
            <thetext>drac@unique ~ $ deluge 
Traceback (most recent call last):
  File &quot;/usr/bin/deluge&quot;, line 60, in &lt;module&gt;
    import deluge.core
  File &quot;/usr/lib/python2.5/site-packages/deluge/core.py&quot;, line 57, in &lt;module&gt;
    import deluge_core
ImportError: /usr/lib/python2.5/site-packages/deluge/deluge_core.so: undefined symbol: BN_bin2bn
drac@unique ~ $ qlist -CIv | grep deluge
net-p2p/deluge-0.5.3_rc1
drac@unique ~ $ 
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>peter.henriksson@gmail.com</who>
            <bug_when>2007-07-25 21:03:05 0000</bug_when>
            <thetext>Actually, the filtering added to the ebuilds doesn&apos;t appear to be working for me. Manually removing --as-needed from make.conf works though.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2007-07-26 10:46:05 0000</bug_when>
            <thetext>(In reply to comment #10)
&gt; Actually, the filtering added to the ebuilds doesn&apos;t appear to be working for
&gt; me. Manually removing --as-needed from make.conf works though.
&gt; 

Right, forgot to inherit the flag-o-matic eclass, should be fixed now on 0.5.3 and 9999</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-08-17 18:05:58 0000</bug_when>
            <thetext>Uhm... don&apos;t filter --as-needed; either leave it broken or fix it properly, hiding bugs doesn&apos;t make sense.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bugs.gentoo.org_4@devport.codepilot.net</who>
            <bug_when>2007-10-25 22:38:44 0000</bug_when>
            <thetext>IMHO the flag should be filtered ( you also dont say glibc shouldnt filter any flags because any filtered flag has a corresponding bug ). Filter all flags responsible for breakage or filter none.

Why should e.g. 100 users have to come here to find out how to build it - users want to use it and not care for filtering flags manually. If its a bug post a message about it to notify users - but not let every individual user be forced to come here for a known bug.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2008-01-16 15:50:38 0000</bug_when>
            <thetext>drac slacks :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2009-06-02 11:03:35 0000</bug_when>
            <thetext>Can you drop the bloody filtering and just fix this the bloody right way?

See http://blog.flameeyes.eu/2008/11/20/misguided-link-and-as-needed for what the heck is happening here.
</thetext>
          </long_desc>
      
    </bug>

</bugzilla>