tcpdump mailing list archives

Dynamic linking with libpcap


From: Munish Dayal <munish.dayal () aricent com>
Date: Wed, 10 Sep 2008 10:51:32 +0530

Hi,

-- I posted this query on Wireshark dev mailing list. But I guess its more suitable for this mailing list, as this 
holds for any application using libpcap. If Guy or someone could pls help. ---

I have built Wireshark from source on my Linux RHEL 4 system, that has libpcap version 0.8.3 installed.
But when I try to run this Wireshark on a Linux system with RHEL 5 (libpcap version 0.9.4), I get an error:

"error while loading shared libraries: libpcap.so.0.8.3: cannot open shared object file: No such file or directory"

Obviously, Wireshark is looking for the same libpcap version as the one with which it was built.

My question is: how can I build Wireshark so that it is not statically linked to a particular libpcap version? Is there 
a way to dynamically link Wireshark with libpcap ?
Ideally it should be able to run on any system that has the same or newer version of libpcap available.

Regards,
Munish


________________________________
"DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is 
addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in error,please notify the originator 
immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility forloss or damage 
arising from the use of the information transmitted by this email including damage from virus."
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: