← Back to team overview

rohc team mailing list archive

Re: [Question #234832]: compilation error

 

Question #234832 on rohc changed:
https://answers.launchpad.net/rohc/+question/234832

    Status: Open => Needs information

Didier Barvaux requested more information:
Thanks. The problem was probably not caused by the previous
installation. It may be either a global problem with your system (gcc,
ld...) or a specific problem with librohc. Let's try to build a small
application that links with another library, libpcap.

$ sudo apt-get install libpcap libpcap-dev   # if not already installed
$ cat > test_pcap.c << EOF
> #include <pcap/pcap.h>
> 
> int main(int argc, char *argv[])
> {
> pcap_t *handle;
> handle = pcap_open_dead(DLT_LINUX_SLL, 5);
> pcap_close(handle);
> return 0;
> }
> EOF
$ gcc -Wl,--verbose -o test_pcap -lpcap test_pcap.c
$ file test_pcap
$ ldd test_pcap

Regards,
Didier

-- 
You received this question notification because you are a member of ROHC
Team, which is an answer contact for rohc.