Hi,
I do not know how to build Wireshark-1.6.7 against patched libpcap.
The Kernel 3.2.0+ is built and installed in directory: umberto@umberto-desktop:/usr/src
The patched libpcap + libnl +libdect are built and installed in directory: umberto@umberto-desktop:/usr/src/tools
Also the source directory wireshark-1.6.7 is in directory: umberto@umberto-desktop:/usr/src/tools
I do:
cd wireshark-1.6.7$ sudo ./configure --with-pcap=/usr/local/lib
and I get the error:
........ checking for connect... yes checking whether to use libpcap for packet capture... yes checking pcap.h usability... yes checking pcap.h presence... yes checking for pcap.h... yes checking for pcap_open_live in -lpcap... no checking for pcap_open_live in -lpcap with -lcfg -lodm... no checking for pcap_open_live in -lpcap with -lpfring... no configure: error: Can't link with library libpcap. andrea@andrea-desktop:/usr/src/tools/wireshark-1.6.7$
What should I do?
(Pci card installed)
With best regards,
Umberto
Hi Samuel,
thank you for your help.
I will try to follow your information.
With best regards,
Umberto
----Messaggio originale---- Da: samuel@sieb.net Data: 06/05/2012 6.13 A: linux-dect@lists.osmocom.org Ogg: Re: How to build Wireshark-1.6.7 against patched libpcap
chiccus2003@libero.it wrote:
The patched libpcap + libnl +libdect are built and installed in directory: umberto@umberto-desktop:/usr/src/tools
They're installed there, or they're installed in /usr/local? Make sure you
know
exactly where the library and the headers were installed.
I do:
cd wireshark-1.6.7$ sudo ./configure --with-pcap=/usr/local/lib
If you've installed them using the defaults, try --with-pcap=/usr/local
instead.
Hi Samuel,
I followed your instructions, but nothing.
I built and install in directory /usr/src the: patched libpcap + libnl + libdect
The headers + pcap.h of patched libpcap and of libnl are installed in directory: /usr/src and also /usr/local/include
I do:
cd /usr/src/wireshark-1.6.7 sudo ./autogen.sh
I tried all the following directory:
-sudo ./configure –with-pcap=/usr/local -sudo ./configure –with-pcap=/usr/local/include -sudo ./configure –with-pcap=/usr/local/include/pcap -sudo ./configure –with-pcap=/usr/local/include/pcap/pcap.h -sudo ./configure –with-pcap=/usr/local/lib -sudo ./configure –with-pcap=/usr/src/libpcap but nothing, I get always the following error:
........ checking for connect... yes checking whether to use libpcap for packet capture... yes checking pcap.h usability... yes checking pcap.h presence... yes checking for pcap.h... yes checking for pcap_open_live in -lpcap... no checking for pcap_open_live in -lpcap with -lcfg -lodm... no checking for pcap_open_live in -lpcap with -lpfring... no configure: error: Can't link with library libpcap.
If instead I run ONLY “./configure” is OK, but then if I run “sudo wireshark” can not find the interface dect. There are only interfaces: "any" - "lo" - "usb0".
There is something that does not work (sorry for bad english).
Some ideas?
(Pci card installed)
With best regards,
Umberto
----Messaggio originale---- Da: chiccus2003@libero.it Data: 08/05/2012 11.45 A: samuel@sieb.net, linux-dect@lists.osmocom.org Ogg: R: Re: How to build Wireshark-1.6.7 against patched libpcap
Hi Samuel,
thank you for your help.
I will try to follow your information.
With best regards,
Umberto
----Messaggio originale---- Da: samuel@sieb.net Data: 06/05/2012 6.13 A: linux-dect@lists.osmocom.org Ogg: Re: How to build Wireshark-1.6.7 against patched libpcap
chiccus2003@libero.it wrote:
The patched libpcap + libnl +libdect are built and installed in
directory:
umberto@umberto-desktop:/usr/src/tools
They're installed there, or they're installed in /usr/local? Make sure
you
know
exactly where the library and the headers were installed.
I do:
cd wireshark-1.6.7$ sudo ./configure --with-pcap=/usr/local/lib
If you've installed them using the defaults, try --with-pcap=/usr/local
instead.
chiccus2003@libero.it wrote:
The headers + pcap.h of patched libpcap and of libnl are installed in directory: /usr/src and also /usr/local/include
I tried all the following directory:
-sudo ./configure –with-pcap=/usr/local
Some ideas?
Check in the config.log file for the specifics of what is failing.
Hi Samuel,
thanks again for your help.
I attach the “config.log” (with leafpad) created after:
sudo ./configure --with-pcap=/usr/local
or
sudo ./configure --with-pcap=/usr/local/include
There are some "result: no", but i do not think this is the problem.
I tried a lot in Google, but I have not found anything.
The problem is known?
Any idea?
With best regards, Umberto
----Messaggio originale---- Da: samuel@sieb.net Data: 15/05/2012 7.40 A: "chiccus2003@libero.it"chiccus2003@libero.it Cc: linux-dect@lists.osmocom.org Ogg: Re: I: Re: How to build Wireshark-1.6.7 against patched libpcap
chiccus2003@libero.it wrote:
The headers + pcap.h of patched libpcap and of libnl are installed in directory: /usr/src and also /usr/local/include
I tried all the following directory:
-sudo ./configure –with-pcap=/usr/local
Some ideas?
Check in the config.log file for the specifics of what is failing.
chiccus2003@libero.it wrote:
/usr/local/lib/libpcap.so: undefined reference to `nl_dect_cell_alloc_cache' /usr/local/lib/libpcap.so: undefined reference to `nl_dect_cell_get_name'
That's your problem. It's finding the pcap library, but the dect dependency is not in the path, so that's why it's failing. Where is that library?
Hi Samuel,
thanks again.
Run "locate libpcap.so" and I find the following paths:
/usr/lib/libpcap.so /usr/lib/libpcap.so.0.8 /usr/lib/libpcap.so.1.0.0 /usr/local/lib/libpcap.so /usr/local/lib/libpcap.so.1 /usr/local/lib/libpcap.so.1.2.0-PRE-GIT /usr/src/libpcap/libpcap.so.1.2.0-PRE-GIT
With best regards,
Umberto
----Messaggio originale---- Da: samuel@sieb.net Data: 27/05/2012 7.36 A: "chiccus2003@libero.it"chiccus2003@libero.it Cc: linux-dect@lists.osmocom.org Ogg: Re: R: Re: I: Re: How to build Wireshark-1.6.7 against patched libpcap
chiccus2003@libero.it wrote:
/usr/local/lib/libpcap.so: undefined reference to
`nl_dect_cell_alloc_cache'
/usr/local/lib/libpcap.so: undefined reference to `nl_dect_cell_get_name'
That's your problem. It's finding the pcap library, but the dect dependency
is
not in the path, so that's why it's failing. Where is that library?
Hi
You should look for libnl
Am Sonntag, den 27.05.2012, 11:40 +0200 schrieb chiccus2003@libero.it:
Hi Samuel,
thanks again.
Run "locate libpcap.so" and I find the following paths:
/usr/lib/libpcap.so /usr/lib/libpcap.so.0.8 /usr/lib/libpcap.so.1.0.0 /usr/local/lib/libpcap.so /usr/local/lib/libpcap.so.1 /usr/local/lib/libpcap.so.1.2.0-PRE-GIT /usr/src/libpcap/libpcap.so.1.2.0-PRE-GIT
With best regards,
Umberto
----Messaggio originale---- Da: samuel@sieb.net Data: 27/05/2012 7.36 A: "chiccus2003@libero.it"chiccus2003@libero.it Cc: linux-dect@lists.osmocom.org Ogg: Re: R: Re: I: Re: How to build Wireshark-1.6.7 against patched libpcap
chiccus2003@libero.it wrote:
/usr/local/lib/libpcap.so: undefined reference to
`nl_dect_cell_alloc_cache'
/usr/local/lib/libpcap.so: undefined reference to `nl_dect_cell_get_name'
That's your problem. It's finding the pcap library, but the dect dependency
is
not in the path, so that's why it's failing. Where is that library?
Hi Umberto,
libpcap seems to work fine, but the required lib "libnl" is lacking the function 'nl_dect_cell_get_name' you need to install a newer version of libnl or compile it from git.
Best regards Benjamin
Am 27.05.2012 11:40, schrieb chiccus2003@libero.it:
Hi Samuel,
thanks again.
Run "locate libpcap.so" and I find the following paths:
/usr/lib/libpcap.so /usr/lib/libpcap.so.0.8 /usr/lib/libpcap.so.1.0.0 /usr/local/lib/libpcap.so /usr/local/lib/libpcap.so.1 /usr/local/lib/libpcap.so.1.2.0-PRE-GIT /usr/src/libpcap/libpcap.so.1.2.0-PRE-GIT
With best regards,
Umberto
----Messaggio originale---- Da: samuel@sieb.net Data: 27/05/2012 7.36 A: "chiccus2003@libero.it"chiccus2003@libero.it Cc:linux-dect@lists.osmocom.org Ogg: Re: R: Re: I: Re: How to build Wireshark-1.6.7 against patched libpcap
chiccus2003@libero.it wrote:
/usr/local/lib/libpcap.so: undefined reference to
`nl_dect_cell_alloc_cache'
/usr/local/lib/libpcap.so: undefined reference to `nl_dect_cell_get_name'
That's your problem. It's finding the pcap library, but the dect dependency
is
not in the path, so that's why it's failing. Where is that library?
Hi Benjamin,
thanks to everyone for the help.
I compiled the libnl by: git://dect.osmocom.org/git/libnl.git
(I attach the config.log file of libnl)
Before installing the libnl, the libdect, and the libpcap i did:
cd /usr/src/linux-2.6
sudo make headers_install
then
sudo cp /usr/src/linux-2.6/include/linux/socket.h /usr/include/linux sudo cp /usr/src/linux-2.6/include/linux/netlink.h /usr/include/linux sudo cp /usr/src/linux-2.6/include/linux/dect.h /usr/include/linux sudo cp /usr/src/linux-2.6/include/linux/dect_netlink.h /usr/include/linux (deleted enum dect_ari_classes)
but nothing, i get always
configure: error: can't link with library libpcap.
With best regards, Umberto
----Messaggio originale---- Da: benjamin@dev-tec.de Data: 28/05/2012 11.14 A: "chiccus2003@libero.it"chiccus2003@libero.it Cc: linux-dect@lists.osmocom.org Ogg: Re: R: Re: R: Re: I: Re: How to build Wireshark-1.6.7 against patched
libpcap
Hi Umberto,
libpcap seems to work fine, but the required lib "libnl" is lacking the function 'nl_dect_cell_get_name' you need to install a newer version of libnl or compile it from git.
Best regards Benjamin
Am 27.05.2012 11:40, schrieb chiccus2003@libero.it:
Hi Samuel,
thanks again.
Run "locate libpcap.so" and I find the following paths:
/usr/lib/libpcap.so /usr/lib/libpcap.so.0.8 /usr/lib/libpcap.so.1.0.0 /usr/local/lib/libpcap.so /usr/local/lib/libpcap.so.1 /usr/local/lib/libpcap.so.1.2.0-PRE-GIT /usr/src/libpcap/libpcap.so.1.2.0-PRE-GIT
With best regards,
Umberto
----Messaggio originale---- Da: samuel@sieb.net Data: 27/05/2012 7.36 A: "chiccus2003@libero.it"chiccus2003@libero.it Cc:linux-dect@lists.osmocom.org Ogg: Re: R: Re: I: Re: How to build Wireshark-1.6.7 against patched
libpcap
chiccus2003@libero.it wrote:
/usr/local/lib/libpcap.so: undefined reference to
`nl_dect_cell_alloc_cache'
/usr/local/lib/libpcap.so: undefined reference to `nl_dect_cell_get_name'
That's your problem. It's finding the pcap library, but the dect
dependency
is
not in the path, so that's why it's failing. Where is that library?
chiccus2003@libero.it wrote:
I compiled the libnl by: git://dect.osmocom.org/git/libnl.git
(I attach the config.log file of libnl)
The config.log for libpcap would be more useful to find out where libnl got installed since your patched libpcap would have required to find it when compiling. You did install libnl somewhere?
Hi Samuel,
I had installed the libnl, the libdect and the libpcap in the directory /usr/src/tools, but then failed to compile wireshark, I uninstalled the libnl, the libdect and the libpcap with “sudo make uninstall”.
Then I reinstalled the libnl, the libdect and the libpcap in the directory /usr/src where there is also the kernel 3.2.0 installed.
With best regards, Umberto
----Messaggio originale---- Da: samuel@sieb.net Data: 28/05/2012 21.20 A: linux-dect@lists.osmocom.org Ogg: Re: How to build Wireshark-1.6.7 against patched libpcap
chiccus2003@libero.it wrote:
I compiled the libnl by: git://dect.osmocom.org/git/libnl.git
(I attach the config.log file of libnl)
The config.log for libpcap would be more useful to find out where libnl got installed since your patched libpcap would have required to find it when compiling. You did install libnl somewhere?
chiccus2003@libero.it wrote:
I had installed the libnl, the libdect and the libpcap in the directory /usr/src/tools, but then failed to compile wireshark, I uninstalled the libnl, the libdect and the libpcap with “sudo make uninstall”.
Then I reinstalled the libnl, the libdect and the libpcap in the directory /usr/src where there is also the kernel 3.2.0 installed.
What you need to do is configure libnl, libdect, and libpcap to install into /usr/local. Recompile them all and install them. That way the libs will all be in /usr/local/lib. Then when you compile wireshark using --with-pcap=/usr/local it should work.
Hi Samuel,
thanks again for the help.
I uninstalled the libnl, libdect and libpcap from the directory /usr/src;
then
I installed the libnl, libdect and libpcap in the directory /usr/local.
I compile wireshark-1.6.7 in the directory /usr/src or in the directory /usr/local with: sudo ./configure --with-pcap=/usr/local
but nothing, I get always the following error:
checking for pcap_open_live in -lpcap... no checking for pcap_open_live in -lpcap with -lcfg -lodm... no checking for pcap_open_live in -lpcap with -lpfring... no configure: error: Can't link with library libpcap.
(I attach the new config.log file of libpcap and libnl).
I think that the problem (undefined reference to nl_dect_cell_get_name) is solved.
With best regards, Umberto
----Messaggio originale---- Da: samuel@sieb.net Data: 29/05/2012 22.08 A: linux-dect@lists.osmocom.org Ogg: Re: R: Re: How to build Wireshark-1.6.7 against patched libpcap
chiccus2003@libero.it wrote:
I had installed the libnl, the libdect and the libpcap in the directory /usr/src/tools, but then failed to compile wireshark, I uninstalled the
libnl,
the libdect and the libpcap with “sudo make uninstall”.
Then I reinstalled the libnl, the libdect and the libpcap in the directory /usr/src where there is also the kernel 3.2.0 installed.
What you need to do is configure libnl, libdect, and libpcap to install into /usr/local. Recompile them all and install them. That way the libs will all
be
in /usr/local/lib. Then when you compile wireshark using --with-
pcap=/usr/local
it should work.
Hi Samuel,
thanks.
I send the new config.log file of wireshark-1.6.7
I compile wireshark-1.6.7 in the directory /usr/src with:
sudo ./configure --with-pcap=/usr/local
With best regards, Umberto
----Messaggio originale---- Da: samuel@sieb.net Data: 30/05/2012 22.26 A: linux-dect@lists.osmocom.org Ogg: Re: How to build Wireshark-1.6.7 against patched libpcap
I will take any further messages in this thread off-list as it's really not relevant.
chiccus2003@libero.it wrote:
(I attach the new config.log file of libpcap and libnl).
I need the config.log from wireshark.
Hi Samuel,
thanks.
I removed from synaptic the normal libpcap (libpcap0.8 - libpcap-dev and libpcap0.8-dev).
I reinstalled the libnl, libdect and the patched libpcap in the directory /usr/local.
I rebooted the system, but nothing, I always get the same error:
configure: error: can't link with library libpcap.
With best regards, Umberto
----Messaggio originale---- Da: samuel@sieb.net Data: 31/05/2012 20.42 A: "chiccus2003@libero.it"chiccus2003@libero.it Ogg: Re: How to build Wireshark-1.6.7 against patched libpcap
chiccus2003@libero.it wrote:
I send the new config.log file of wireshark-1.6.7
I compile wireshark-1.6.7 in the directory /usr/src with:
sudo ./configure --with-pcap=/usr/local
It's failing with the same missing symbol. Do you have a normal libpcap installed on your system? Maybe you need to remove that, the linker may be finding that one first.
Hi Samuel,
update You on the problem.
I run only “sudo ./configure --with-pcap” without the directory /usr/local and I have compiled without errors wireshark.
Not show more (undefined reference to `nl_dect_cell_get_name').
Instead there is: rpath,/usr/local/lib -lpcap -lnl-dect >&5 (see the new “config.log” file of wireshark-1.6.7).
Now when I run “sudo wireshark” there are only interfaces: "any pseudo-device that captures on all iterfaces" - "usb bus number1"- "lo".
(I attach “dmesg” partial).
Any idea? Thanks again
With best regards, Umberto
(........perhaps this can help someone else).
----Messaggio originale---- Da: chiccus2003@libero.it Data: 01/06/2012 21.51 A: samuel@sieb.net Cc: linux-dect@lists.osmocom.org Ogg: R: Re: How to build Wireshark-1.6.7 against patched libpcap
Hi Samuel,
thanks.
I removed from synaptic the normal libpcap (libpcap0.8 - libpcap-dev and libpcap0.8-dev).
I reinstalled the libnl, libdect and the patched libpcap in the directory /usr/local.
I rebooted the system, but nothing, I always get the same error:
configure: error: can't link with library libpcap.
With best regards, Umberto
----Messaggio originale---- Da: samuel@sieb.net Data: 31/05/2012 20.42 A: "chiccus2003@libero.it"chiccus2003@libero.it Ogg: Re: How to build Wireshark-1.6.7 against patched libpcap
chiccus2003@libero.it wrote:
I send the new config.log file of wireshark-1.6.7
I compile wireshark-1.6.7 in the directory /usr/src with:
sudo ./configure --with-pcap=/usr/local
It's failing with the same missing symbol. Do you have a normal libpcap installed on your system? Maybe you need to remove that, the linker may
be
finding that one first.
Sorry Umberto, I got really busy and forgot about this.
I'm sending this back to the list now. As far as I can tell, his wireshark binary is compiled and linked against all the right libraries now. So I don't know why it's not showing the interfaces.
chiccus2003@libero.it wrote:
Hi Samuel, thanks again.
In the system I have only the version that I compiled. No synaptic.
I attack the ldd /usr/local/bin/wireshark result.
With best regards, Umberto
Hi Samuel,
thanks anyway for all Your precious help.
When I can, I try to reinstall everything (kernel, libraries, etc) on another PC desktop.
I'll keep you updated.
With best regards,
Umberto
----Messaggio originale---- Da: samuel@sieb.net Data: 21/06/2012 23.05 A: linux-dect@lists.osmocom.org Ogg: Re: R: Re: I: Re: How to build Wireshark-1.6.7 against patched libpcap
Sorry Umberto, I got really busy and forgot about this.
I'm sending this back to the list now. As far as I can tell, his wireshark binary is compiled and linked against all the right libraries now. So I
don't
know why it's not showing the interfaces.
chiccus2003@libero.it wrote:
Hi Samuel, thanks again.
In the system I have only the version that I compiled. No synaptic.
I attack the ldd /usr/local/bin/wireshark result.
With best regards, Umberto