1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cross compiling+libpcap (or any other lib)

Discussion in 'Tomato Firmware' started by redcow, Feb 22, 2009.

  1. redcow

    redcow LI Guru Member

    Hi, did someone successful compile a program which needs the libpcap library? I'm able to compile "normal" programs who do not require a lib or use "configure", but e.g tcpdump needs libpcap, I tried to specify the existing lib or specify the directory where I crosscompile libpcap but configure cant find the path, I welcome any hints.

  2. redcow

    redcow LI Guru Member

    If somebody is interested in an up to date tcpdump I managed to fix my problem.
  3. Planiwa

    Planiwa LI Guru Member

    I am. Although it sounds like a biggie.

    But what I'm really, really interested in, is an unbroken nc. An nc that can listen. I would expect the nc binary to be not much more than 20k.
  4. redcow

    redcow LI Guru Member

    NC 1.10: http://rapidshare.com/files/269886866/nc110.tar 36K (shared lib)
    yeah the tcpdump binarie is quite big 996kb (static linked), but tcpdump anyway makes only sense if u have enough space for the logfile too (cifs, sshfs, whatever, mmc card)
    http://rapidshare.com/files/269887171/tcpdump.tar (4.0 latest, static linked 996kb)

    I was only able to compile tcpdump with the "toolchains.x86.debian.sp1.tar" crosscompiling chainset, therefore had to compile it static, otherwise the tomato glibc and tcpdump would not match/work (therefore segfault).
  5. Planiwa

    Planiwa LI Guru Member

    Thank you very much! Also for mentioning sshfs.

Share This Page