WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Need help with libpcap  (Read 3906 times)

Offline daxm

  • Newbie
  • *
  • Posts: 11
Need help with libpcap
« on: April 25, 2009, 12:07:15 AM »
I've got an application I'm trying to run on TinyCore that requires libpcap.so.0.8.3 bug the only version I can find in the repositories is libpcap v0.9.8.

Can anyone advise me what to do?
If I can't see your mirrors, you can't see me.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11050
Re: Need help with libpcap
« Reply #1 on: April 25, 2009, 03:00:34 AM »
Compile that version using compiletc.tce?
The only barriers that can stop you are the ones you create yourself.

Offline daxm

  • Newbie
  • *
  • Posts: 11
Re: Need help with libpcap
« Reply #2 on: April 25, 2009, 09:59:17 AM »
So this helps me make libpcap (it appears) but how do I make a tce out of it?
If I can't see your mirrors, you can't see me.

Offline daxm

  • Newbie
  • *
  • Posts: 11
Re: Need help with libpcap
« Reply #3 on: April 25, 2009, 10:49:59 AM »
For anyone who needs this library too here is what worked for me:

install compiletc.tce
download libpcap-0.8.3.tar.gz from archives at www.tcpdump.org to /tmp
as root:
  cd /tmp
  tar -zxvf libpcap-0.8.3.tar.gz
  cd libpcap-0.8.3
  ./configure
  make
  ld -shared -o libpcap.so.0.8.3 *.o
  mv libpcap.so.0.8.3 /usr/lib
  ldconfig

if needed:
  vi opt/.filetools.lst
    add usr/lib/libpcap.so.0.8.3


if you want to keep your linux small, ftp off the libpcap.so.0.8.3 and upload it to /usr/lib on a fresh TC machine (no need for the compiletc.tce).  Don't forget to run ldconfig too.
If I can't see your mirrors, you can't see me.

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: Need help with libpcap
« Reply #4 on: April 25, 2009, 06:05:15 PM »
So this helps me make libpcap (it appears) but how do I make a tce out of it?
Please see the wiki page on creating extensions.