tcpdump mailing list archives

Re: compilation status of current (2004-09-13)


From: Guy Harris <guy () alum mit edu>
Date: Tue, 14 Sep 2004 15:35:37 -0700


On Sep 14, 2004, at 10:33 AM, Rick Jones wrote:

well, with the link in place, i did the make dist clean then the configure then the make and did get the duplicate symbols. so, here is the config.log

        ...

configure:8312: checking for local pcap library
configure:8420: result: ./../libpcap/libpcap.a
configure:8445: checking for pcap_list_datalinks
configure:8495: cc -o conftest -g -L/usr/local/lib conftest.c ./../libpcap/libpcap.a -lnsl >&5 /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (conftest.o) was detected. The linked output may not run on a PA 1.x system.
configure:8498: $? = 0
configure:8501: test -s conftest
configure:8504: $? = 0
configure:8515: result: yes

OK, so it thinks libpcap has pcap_list_datalinks()...

configure:9005: checking if sockaddr struct has sa_len member
configure:9029: cc -c -g  conftest.c >&5
cc: "configure", line 9061: error 1588: "sa_len" undefined.
cc: "configure", line 9061: error 1531: Invalid member of struct or union. cc: "configure", line 9061: error 1594: The sizeof operator cannot be applied to types with unknown size.
configure:9032: $? = 1
configure: failed program was:
| #line 9010 "configure"
| /* confdefs.h.  */

        ...

| #define HAVE_PCAP_LIST_DATALINKS 1

...and it even defines HAVE_PCAP_LIST_DATALINKS as 1, meaning it *knows* it thinks that...

## ----------------- ##
## Output variables. ##
## ----------------- ##

        ...

LIBOBJS=' strlcat$U.o strlcpy$U.o strsep$U.o'
LIBS='-lcrypto ./../libpcap/libpcap.a -lnsl '
LOCALSRC='print-smb.c smbutil.c '
LTLIBOBJS=' strlcat$U.lo strlcpy$U.lo strsep$U.lo'

...and it even doesn't seem to think that it needs to use "datalinks.o" (which contains an implementation of "pcap_list_datalinks()" to use if libpcap doesn't have it).

However, if it's getting a duplicate definition of "pcap_list_datalinks()", it's apparently linking with it anyway.

What is LIBOBJS defined as in the top-level Makefile? If it's defined as anything that includes "datalinks.o", try doing a "make distclean", re-running configure, and trying again.

-
This is the tcpdump-workers list.
Visit https://lists.sandelman.ca/ to unsubscribe.


Current thread: