Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: daxm on April 25, 2009, 12:07:15 AM

Title: Need help with libpcap
Post by: daxm 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?
Title: Re: Need help with libpcap
Post by: curaga on April 25, 2009, 03:00:34 AM
Compile that version using compiletc.tce?
Title: Re: Need help with libpcap
Post by: daxm 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?
Title: Re: Need help with libpcap
Post by: daxm 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.
Title: Re: Need help with libpcap
Post by: ^thehatsrule^ 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.