Opened 10 years ago

Closed 10 years ago

#287 closed defect (fixed)

libtrace tools linking problem on Mandriva 2010.1

Reported by: gvubrugier Owned by: perry
Priority: minor Milestone: libtrace3
Component: tools Version: 3.0
Keywords: Cc:

Description

On Mandriva 2010.1, building libtrace tools produces this error:

  CCLD   traceanon
/home/me/tmp/libtrace-3.0.7/lib/.libs/libtrace.so: undefined reference to `pcap_vsnprintf'
collect2: ld returned 1 exit status

Apparently, HAVE_VSNPRINTF must be defined somewhere to prevent libpcap (1.1.1) from providing its vsnprintf() (see pcap-int.h):

--- lib/libtrace.h.in	2010-11-26 04:15:55.000000000 +0100
+++ ../libtrace-3.0.7/lib/libtrace.h.in	2010-11-26 04:37:35.000000000 +0100
@@ -60,7 +60,6 @@
  * Woody, at least, does not support large file offsets.
  *
  */
-#define HAVE_VSNPRINTF
 
 #include <sys/types.h>
 #ifndef WIN32

Change History (1)

comment:1 Changed 10 years ago by salcock

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r1669 - we now check for vsnprintf ourselves and #define HAVE_VSNPRINTF if we have it.

Note: See TracTickets for help on using tickets.