[maemo-developers] libpcap not found?

From: Juha Kallioinen juha.kallioinen at nokia.com
Date: Thu Feb 14 12:42:32 EET 2008
ext Kwan Hong Lee wrote:
> Hi,
> 
> I passed the host-gcc problem by using "python2.5 setup.py build" and by 
> following:
> http://maemogeek.blogspot.com/2007/11/installing-qemu-arm-eabi-patch-into.html
> 
> But even after I did apt-get install libpcap0.8 and even though /usr/lib 
> contains libpcap.so
> I get the following error that the library is not found.  /usr/lib is 
> specified in the library path.
> 
> Any ideas???  Thank you.
> 
> g++ -pthread -shared build/temp.linux-armv5tel-2.5/pcapdumper.o 
> build/temp.linux-armv5tel-2.5/bpfobj.o 
> build/temp.linux-armv5tel-2.5/pcapy.o 
> build/temp.linux-armv5tel-2.5/pcapobj.o 
> build/temp.linux-armv5tel-2.5/pcap_pkthdr.o -L/lib -L/usr/lib 
> -L/usr/lib/python2.5 -L/usr/lib -lpcap -lpython2.5 -o 
> build/lib.linux-armv5tel-2.5/pcapy.so
> /scratchbox/compilers/cs2005q3.2-glibc2.5-arm/bin/../lib/gcc/arm-none-linux-gnueabi/3.4.4/../../../../arm-none-linux-gnueabi/bin/ld: 
> cannot find -lpcap
> collect2: ld returned 1 exit status
> error: command 'g++' failed with exit status 1

Hi,

in order to link libpcap into your own program, you would need to install 
the libpcap0.8-dev package. That is not in the official SDK packages, so 
you'll have to get it from somewhere else. the libpcap0.8 package is in the 
SDK just because it is needed as a dependency by tcpdump.

In case you do have libpcap0.8-dev installed, then I don't know what the 
problem could be.

Cheers,
  Juha

-- 
Juha Kallioinen                                               JID: kaltsi at ok

More information about the maemo-developers mailing list