Opened 10 years ago

Closed 10 years ago

#286 closed defect (fixed)

libtrace compilation problem on Mandriva 2010.1

Reported by: gvubrugier Owned by: perry
Priority: minor Milestone: libtrace3
Component: libtrace-library Version: 3.0
Keywords: Cc:

Description

Compilation of libtrace-3.0.7 fails on a Mandriva 2010.1, using dag-2.5.5r2. The error message is:

(...)
format_erf.c: In function ‘erf_get_padding’:
format_erf.c:139: erreur: ‘TYPE_DSM_COLOR_ETH’ undeclared 
(...)

and can be silenced by the following patch

--- ../libtrace-3.0.7/lib/libtrace_int.h	2010-11-26 04:24:14.000000000 +0100
+++ lib/libtrace_int.h	2010-11-26 03:24:21.000000000 +0100
@@ -135,6 +135,7 @@
 #	if DAG_VERSION == 24
 #		include <erftypes.h>
 #	else
+#              include "erftypes.h"
 #		include <daginf.h>
 #	endif
 #else

Change History (1)

comment:1 Changed 10 years ago by salcock

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

Fixed in r1668 - libtrace will now always include its own erftype definitions when the DAG API is present.

An alternative solution would have been to upgrade the dag drivers to version 3.0.0 or later, as these drivers supercede the 2.5.5 release that has this problem.

Note: See TracTickets for help on using tickets.