Hi, while trying to test libpcap with wireshark and tcpdump I've come across a problem when compiling tcpdump or wireshark in the clearview-uv bits. Compiling with pre-cleaview-uv bits works fine. The issue is because libdlpi links with libdladm (needed for dlpi_walk()). More details: I have used autoconf macros to find if libdlpi is supported and furthermore dlpi_walk is available by using the macro:
***AC_SEARCH_LIBS* (function, search-libs, [action-if-found], [action-if-not-found], [other-libraries]) This macro tests whether the 'library' and the 'function' specified is available by trying to link a test program that calls function function with the library. This test program fails due to not finding libdladm since libdladm is not a public library : configure:5134: gcc -o conftest -g -O2 conftest.c -ldlpi -lsocket -lnsl >&5 ld: warning: file libdladm.so.1: required by /usr/lib/libdlpi.so, not found Undefined first referenced symbol in file dladm_dev2linkid /usr/lib/libdlpi.so dladm_walk /usr/lib/libdlpi.so Any suggestion on what I could do to solve this issue? Sagun
