Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 2966

Summary: BitchX-1.0.19-r1 fails to emerge when SOCKS5 is in USE variable
Product: Gentoo Linux Reporter: SpanKY <vapier>
Component: Current packagesAssignee: Ben Lutgens (RETIRED) <lamer>
Status: RESOLVED FIXED    
Severity: minor CC: vapier
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description SpanKY gentoo-dev 2002-05-23 13:38:37 UTC
when SOCKS5 is in the USE variable, BitchX-1.0.19-r1 fails to emerge (while 
trying to run configure)

DISPLAY:
checking for SOCKSconnect in -lsocks5... no
configure: error: cannot find SOCKS5

CONFIG.LOG: (nothing more informative, but included for completeness)
configure:11846: checking whether to enable SOCKS support
configure:11863: result: yes
configure:11903: i586-pc-linux-gnu-gcc -o conftest -march=i586 -O3 -pipe   
conftest.c -lsocks5  -lncurses -lssl -lm -lcrypt -lres
/usr/i586-pc-linux-gnu/bin/ld: cannot find -lsocks5
collect2: ld returned 1 exit status
configure:11906: $? = 1
configure: failed program was:
#line 11877 "configure"
#include "confdefs.h"

SOLUTION HACK:
by removing SOCKS5 from the USE variable, emerge-ing bitchx, then adding it 
again, bitchx emerges just fine.
PROBLEM WITH HACK:
SOCKS5 support doesnt get built into bitchx ;)
Comment 1 Ryan Phillips (RETIRED) gentoo-dev 2002-05-26 22:27:18 UTC
I find this quite odd... I can't find the socks library anywhere is portage.
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2002-05-28 05:03:22 UTC
Ben, any thoughts?
Comment 3 SpanKY gentoo-dev 2002-05-29 23:53:18 UTC
any idea on where to find a SOCKS5 library ? 
google/freshmeat both hit up http://www.socks.nec.com/cgi-bin/download.pl ... 
but they are for non-commerical use only, and dont have a direct d/l site that 
i can find 
(call me a communist but i dont want to fill out my information and wait for 
them to call me) 
Comment 4 Nicholas Jones (RETIRED) gentoo-dev 2002-06-14 07:35:34 UTC
Well... LinuxApps.com has been a long-time friend of mine...

And as it turns out, we have 'Dante' in portage...

*  net-misc/dante
      Latest version Available: 1.1.12
      Homepage: http://www.inet.no/dante/
      Description: A free socks4,5 and msproxy implemetation

There is also net-misc/tsocks, but that's only a transparent socks4 lib.
Comment 5 SpanKY gentoo-dev 2002-06-14 18:30:57 UTC
emerged dante (i thought i already had, oh well ... guess we need a dependency 
in the ebuild for it now)
didnt have a problem

went to compile bitchx, it died
config.log bitches about same problem as before:
configure:11903: i686-pc-linux-gnu-gcc -o conftest -march=i686 -O3 -pipe 
conftest.c -lsocks5  -lncurses -lssl -lm -lcrypt -lresolv -lssl -lcrypto >&5
/usr/i686-pc-linux-gnu/bin/ld: cannot find -lsocks5

in the configure script it uses '-lsocks5' ... dante installs as libsocks.so 
and libdsocks.so
rux0r BitchX # grep -n -- -lsocks configure
11872:      echo "$as_me:$LINENO: checking for SOCKSconnect in -lsocks5" >&5
11873:echo $ECHO_N "checking for SOCKSconnect in -lsocks5... $ECHO_C" >&6
11878:LIBS="-lsocks5  $LIBS"
11928:  LIBS="-lsocks5 $LIBS"
11945:      echo "$as_me:$LINENO: checking for Rconnect in -lsocks" >&5
11946:echo $ECHO_N "checking for Rconnect in -lsocks... $ECHO_C" >&6
11951:LIBS="-lsocks  $LIBS"
12001:  LIBS="-lsocks $LIBS"

changed the 2 references from -lsocks5 to -lsocks by hand to see if this would 
fix problem
configure died again, this time config.log said:
/var/tmp/portage/bitchx-1.0.19-r1/work/BitchX/configure:11895:
undefined reference to `SOCKSconnect'
/usr/lib/libsocks.so: undefined reference to `checkmodule'
changing the 2 references from -lsocks5 to -ldsocks results in same error

what you guys think ?
Comment 6 SpanKY gentoo-dev 2002-06-14 18:43:57 UTC
i did cave in and send http://www.socks.nec.com/cgi-bin/download.pl an e-mail.  
they responded with a location to d/l their library

d/l-ed it, compiled it, and copied the libsocks5.a file to /usr/lib
that allowed bitchx to compile just fine with socks support ...

the only problem i have with this library is: 
http://www.socks.nec.com/socksfaq.html#q0
<p>2. Can I use the reference software in a business environment?
No. SOCKS reference software is available free of charge for NON-COMMERCIAL USE 
ONLY (academic, research, and personal use). All other usage requires 
licensing.</p>

this would require setting up a portage system with the same kind of thing that 
deb has ... a set of utilities that anyone can use for free, and a set of 
utilities that anyone non-commerical can use for free
Comment 7 Ben Lutgens (RETIRED) gentoo-dev 2002-07-16 20:40:41 UTC
 firstly -r2 supercedes -r1 so I'm removing it from the tree to keep the cruft 
down. Secondly bitchx doesn't appear to work with any of our socks 
implentations (dante-1.1.12, and dante-1.1.13) so i've disabled that compile 
option untill someone upstream fixes it, or untill we get a different socks 
implementation that makes bitchx happy.