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: [EMAIL 
PROTECTED]
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to