Results 1 to 14 of 14

Thread: How can I compile with shared library ?

  1. #1
    Join Date
    Jul 2004
    Location
    near Lyon @ France
    Posts
    195

    How can I compile with shared library ?

    Hi,

    I try to compile a socks server (dante from www.inet.no/dante) in order to run it on my wl500g. Using all the documentation found on this forum plus browsing oleg source for inspiration ,'m able to compile it statically. The size after stripping is arount 980KB, which produce a firmware (linux.trx) to big (17KB too much, snif...), even when discarding samba and Bigpond.

    I would like to know if someone could give me some tips in order to compile it with shared library beacuse today, when shared-compiled, it still reference libc.so.6 which is on the compile host and I have the - normal - error :
    "./sockd: error while loading shared libraries: ./sockd: symbol socketpair, version GLIBC_2.0 not defined in file libc.so.6 with link time reference" when I try to launch it on the wl500.

    Any help would be appreciate.

    Jean-Fabrice

  2. #2
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Use mipsel-uclibc-gcc instead mipsel-linux-gcc. Most packages are allowing passing CC=mipsel-uclibc-gcc to conigure or make - i.e.
    Code:
    CC=mipsel-uclibc-gcc ./configure bal-bla-bla
    or
    Code:
    make CC=mipsel-uclibc-gcc
    Regards,
    Oleg.

  3. #3
    Join Date
    Jul 2004
    Location
    near Lyon @ France
    Posts
    195
    Great thanx Oleg !

    It works like a charm ! : After compiling and stripping, sockd is now 260K !

    Many thanks again.
    Have now to test it and see if wl500 supports the load...

    Jean-Fabrice

  4. #4
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    What is your purpose with Dante? Just the logging possibilities or does is have other capabilities that iptables can't provide? I'm just curious...

    Will you consider making a WIKI page on this if you have it running?

  5. #5
    Join Date
    Jul 2004
    Location
    near Lyon @ France
    Posts
    195
    Well, I use dante as a socks v4/v5 server because.....hum...
    my compagny is blocking TCP port for MSN and HTTP doesn't work because of http stream antivirus filter... Messenger cannot connect

    I found that some port are not filtered out, neither proxyfied (like TCP 443), so I run dante on 443 and then configure Messenger to use my wl500g as socks proxy.

    I still don't know if this is stable or not... Still want a wiki page ?

    Jean-Fabrice

  6. #6
    Join Date
    Jul 2004
    Location
    near Lyon @ France
    Posts
    195
    @Oleg,

    BTW my fully compiled firmware is 3837952 bytes; I read in an other post that you've said max size is around 380... How is this size calculated ?

    Samba is really big ... will have to discard it.

    Jean-fabrice

  7. #7
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    Haha, hacking your way through the company's policy are you? Right.

    There are some other users here who wondered if proxy functionality was/is possible. If you get it working I think a WIKI page would be greatly appreciated... Personally I don't have any plans on using a proxy of some sort.

  8. #8
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Quote Originally Posted by Jean-Fabrice
    @Oleg,

    BTW my fully compiled firmware is 3837952 bytes; I read in an other post that you've said max size is around 380... How is this size calculated ?

    Samba is really big ... will have to discard it.

    Jean-fabrice
    0x3a000 bytes (256k is pmon, 64k nvram, 64k nothing - flashfs now, total 4M)

  9. #9
    Join Date
    Feb 2004
    Posts
    103
    The way I solved my company restrictions are maybe also working for you.
    Also they have some open ports, and I'm able to connect to SSH (over http proxy.. nice in putty) to my WL500g

    With portforwarding I than connect to the service I need (e.g. proxy of internet provider). MSN (chatting) is workin in this mode. (voice not)

  10. #10
    Join Date
    Jul 2004
    Location
    near Lyon @ France
    Posts
    195
    Quote Originally Posted by erik_bies
    The way I solved my company restrictions are maybe also working for you.
    Also they have some open ports, and I'm able to connect to SSH (over http proxy.. nice in putty) to my WL500g

    With portforwarding I than connect to the service I need (e.g. proxy of internet provider). MSN (chatting) is workin in this mode. (voice not)
    but you need to pre-establish a ssh connection, and keep it up and running, no ?

    Jean-Fabrice

  11. #11
    Join Date
    Jul 2004
    Location
    near Lyon @ France
    Posts
    195
    Well, dante compile file, shared linked to uclibc.

    I can launch it with no error but cannot connect

    In fact I have the following network error while connecting a socket :
    Code:
    got accept(): x.x.x.x.50660
    recv_negotiate(): getpeername(): Bad file descriptor
    call to getpeername() in source code is:
    Code:
    if (getpeername(neg->s, &from, &len) != 0) {
         slog(LOG_DEBUG, "%s: getpeername(): %s", function, strerror(errno));
         return 1;
     }

    Does any1 knows if this function, getpeername, is particular in uclibc ?


    Thanks.

    Jean-Fabrice

  12. #12
    Quote Originally Posted by Jean-Fabrice
    Well, I use dante as a socks v4/v5 server because.....
    So you use it like a sort of VPN to access your home network.
    Reading the docs I can't seem to figure out in what way it's different from something
    like OpenVPN.
    Can anyone enlighten me (or point me to an enlightening webpage) about such differences?

  13. #13
    Join Date
    Jul 2004
    Location
    near Lyon @ France
    Posts
    195
    Quote Originally Posted by monnier
    So you use it like a sort of VPN to access your home network.
    Reading the docs I can't seem to figure out in what way it's different from something
    like OpenVPN.
    Can anyone enlighten me (or point me to an enlightening webpage) about such differences?
    As far as I understand it, VPN works at low level and tunnel all the stream to a single point.
    My need is to still be able to communicate with the local network or compagny network and for some softwares which support it, to use a proxy.

    Don't now if I'm right and clear
    Jean-Fabrice

  14. #14
    Sorry for continuing this topic back from trash. Has anyone compiled dante? I don't see it in packages.
    Onlime @ RTN66U
    Megafon @ E392+WL500W
    DOVADO TINY (ðàáîòàåò ñ E392, íî íå òàê øóñòðî)

Similar Threads

  1. Mount windows shared dirs in WL500gx
    By samoht in forum WL-500g Q&A
    Replies: 2
    Last Post: 16-01-2008, 00:22
  2. 1.9.2.7.3-c WEP shared mode...client problem
    By pipos in forum WL-500g Q&A
    Replies: 0
    Last Post: 18-03-2005, 15:27
  3. Setting up a shared hdd on the wl-500g
    By BòóN in forum WL-500g Q&A
    Replies: 1
    Last Post: 27-10-2004, 14:44
  4. configure shared bandwidth
    By xlephant in forum WL-500g Q&A
    Replies: 2
    Last Post: 02-06-2004, 19:37
  5. [WIRELESS] wep 128 bit shared key solution?
    By Wisi in forum WL-500g Q&A
    Replies: 3
    Last Post: 02-04-2004, 12:02

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •