Opened 9 years ago

Closed 9 years ago

#316 closed defect (fixed)

compiling against recent dag releases

Reported by: stew@… Owned by: salcock
Priority: major Milestone:
Component: libtrace-library Version:
Keywords: Cc:

Description

Tried to build the latest release today. I have very recent DAG userspace and drivers installed -- version 4.2.0

# dagconfig -V dagconfig (DAG 4.2.0) $Revision: 14049 $

Please see the attached text file with output from configure and make.

Change History (4)

comment:1 Changed 9 years ago by salcock

  • Status changed from new to assigned

Hi,

You seem to have left out the attachment - I've started looking into it, but that output would help quite a bit.

Shane

comment:2 Changed 9 years ago by stew@…

Here is the full output when typing 'make'. You can see the error at the end. -- Stew

root@hostname: libtrace-3.0.12 # make
make  all-recursive
make[1]: Entering directory `/root/src/libtrace-3.0.12'
Making all in lib
make[2]: Entering directory `/root/src/libtrace-3.0.12/lib'
make  all-am
make[3]: Entering directory `/root/src/libtrace-3.0.12/lib'
  CC     format_dag24.lo
In file included from libtrace_int.h:136,
                 from format_dag24.c:39:
./erftypes.h:55:1: warning: "TYPE_LEGACY" redefined
In file included from libtrace_int.h:134,
                 from format_dag24.c:39:
/opt/dag/include/dagapi.h:84:1: warning: this is the location of the previous definition
In file included from libtrace_int.h:136,
                 from format_dag24.c:39:
./erftypes.h:56:1: warning: "TYPE_HDLC_POS" redefined
In file included from libtrace_int.h:134,
                 from format_dag24.c:39:
/opt/dag/include/dagapi.h:86:1: warning: this is the location of the previous definition
In file included from libtrace_int.h:136,
                 from format_dag24.c:39:
./erftypes.h:57:1: warning: "TYPE_ETH" redefined
In file included from libtrace_int.h:134,
                 from format_dag24.c:39:
/opt/dag/include/dagapi.h:88:1: warning: this is the location of the previous definition
In file included from libtrace_int.h:136,
                 from format_dag24.c:39:
./erftypes.h:58:1: warning: "TYPE_ATM" redefined
In file included from libtrace_int.h:134,
                 from format_dag24.c:39:
/opt/dag/include/dagapi.h:90:1: warning: this is the location of the previous definition
In file included from libtrace_int.h:136,
                 from format_dag24.c:39:
./erftypes.h:59:1: warning: "TYPE_AAL5" redefined
In file included from libtrace_int.h:134,
                 from format_dag24.c:39:
/opt/dag/include/dagapi.h:92:1: warning: this is the location of the previous definition
In file included from libtrace_int.h:136,
                 from format_dag24.c:39:
./erftypes.h:60:1: warning: "TYPE_MC_HDLC" redefined
In file included from libtrace_int.h:134,
                 from format_dag24.c:39:
/opt/dag/include/dagapi.h:94:1: warning: this is the location of the previous definition
In file included from libtrace_int.h:136,
                 from format_dag24.c:39:
./erftypes.h:61:1: warning: "TYPE_MC_RAW" redefined
In file included from libtrace_int.h:134,
                 from format_dag24.c:39:
/opt/dag/include/dagapi.h:96:1: warning: this is the location of the previous definition
In file included from libtrace_int.h:136,
                 from format_dag24.c:39:
./erftypes.h:62:1: warning: "TYPE_MC_ATM" redefined
In file included from libtrace_int.h:134,
                 from format_dag24.c:39:
/opt/dag/include/dagapi.h:98:1: warning: this is the location of the previous definition
In file included from libtrace_int.h:136,
                 from format_dag24.c:39:
./erftypes.h:63:1: warning: "TYPE_MC_RAW_CHANNEL" redefined
In file included from libtrace_int.h:134,
                 from format_dag24.c:39:
/opt/dag/include/dagapi.h:100:1: warning: this is the location of the previous definition
In file included from libtrace_int.h:136,
                 from format_dag24.c:39:
./erftypes.h:64:1: warning: "TYPE_MC_AAL5" redefined
In file included from libtrace_int.h:134,
                 from format_dag24.c:39:
/opt/dag/include/dagapi.h:102:1: warning: this is the location of the previous definition
In file included from libtrace_int.h:136,
                 from format_dag24.c:39:
In file included from libtrace_int.h:136,
                 from format_dag24.c:39:
./erftypes.h:68:1: warning: "TYPE_COLOR_HDLC_POS" redefined
In file included from libtrace_int.h:134,
                 from format_dag24.c:39:
/opt/dag/include/dagapi.h:104:1: warning: this is the location of the previous definition
In file included from libtrace_int.h:136,
                 from format_dag24.c:39:
./erftypes.h:71:1: warning: "TYPE_COLOR_ETH" redefined
In file included from libtrace_int.h:134,
                 from format_dag24.c:39:
/opt/dag/include/dagapi.h:106:1: warning: this is the location of the previous definition
In file included from libtrace_int.h:136,
                 from format_dag24.c:39:
./erftypes.h:74:1: warning: "TYPE_MC_AAL2" redefined
In file included from libtrace_int.h:134,
                 from format_dag24.c:39:
/opt/dag/include/dagapi.h:108:1: warning: this is the location of the previous definition
In file included from libtrace_int.h:136,
                 from format_dag24.c:39:
./erftypes.h:77:1: warning: "TYPE_IP_COUNTER" redefined
In file included from libtrace_int.h:134,
                 from format_dag24.c:39:
/opt/dag/include/dagapi.h:110:1: warning: this is the location of the previous definition
In file included from libtrace_int.h:136,
                 from format_dag24.c:39:
./erftypes.h:80:1: warning: "TYPE_TCP_FLOW_COUNTER" redefined
In file included from libtrace_int.h:134,
                 from format_dag24.c:39:
/opt/dag/include/dagapi.h:112:1: warning: this is the location of the previous definition
In file included from libtrace_int.h:136,
                 from format_dag24.c:39:
./erftypes.h:83:1: warning: "TYPE_DSM_COLOR_HDLC_POS" redefined
In file included from libtrace_int.h:134,
                 from format_dag24.c:39:
/opt/dag/include/dagapi.h:114:1: warning: this is the location of the previous definition
In file included from libtrace_int.h:136,
                 from format_dag24.c:39:
./erftypes.h:86:1: warning: "TYPE_DSM_COLOR_ETH" redefined
In file included from libtrace_int.h:134,
                 from format_dag24.c:39:
/opt/dag/include/dagapi.h:116:1: warning: this is the location of the previous definition
In file included from libtrace_int.h:136,
                 from format_dag24.c:39:
./erftypes.h:90:1: warning: "TYPE_COLOR_MC_HDLC_POS" redefined
In file included from libtrace_int.h:134,
                 from format_dag24.c:39:
/opt/dag/include/dagapi.h:118:1: warning: this is the location of the previous definition
In file included from libtrace_int.h:136,
                 from format_dag24.c:39:
./erftypes.h:93:1: warning: "TYPE_AAL2" redefined
In file included from libtrace_int.h:134,
                 from format_dag24.c:39:
/opt/dag/include/dagapi.h:120:1: warning: this is the location of the previous definition
In file included from libtrace_int.h:136,
                 from format_dag24.c:39:
./erftypes.h:96:1: warning: "TYPE_COLOR_HASH_POS" redefined
In file included from libtrace_int.h:134,
                 from format_dag24.c:39:
/opt/dag/include/dagapi.h:122:1: warning: this is the location of the previous definition
In file included from libtrace_int.h:136,
                 from format_dag24.c:39:
./erftypes.h:99:1: warning: "TYPE_COLOR_HASH_ETH" redefined
In file included from libtrace_int.h:134,
                 from format_dag24.c:39:
/opt/dag/include/dagapi.h:124:1: warning: this is the location of the previous definition
In file included from libtrace_int.h:136,
                 from format_dag24.c:39:
./erftypes.h:102:1: warning: "TYPE_INFINIBAND" redefined
In file included from libtrace_int.h:134,
                 from format_dag24.c:39:
/opt/dag/include/dagapi.h:126:1: warning: this is the location of the previous definition
In file included from libtrace_int.h:136,
                 from format_dag24.c:39:
./erftypes.h:105:1: warning: "TYPE_IPV4" redefined
In file included from libtrace_int.h:134,
                 from format_dag24.c:39:
/opt/dag/include/dagapi.h:128:1: warning: this is the location of the previous definition
In file included from libtrace_int.h:136,
                 from format_dag24.c:39:
./erftypes.h:108:1: warning: "TYPE_IPV6" redefined
In file included from libtrace_int.h:134,
                 from format_dag24.c:39:
/opt/dag/include/dagapi.h:130:1: warning: this is the location of the previous definition
In file included from libtrace_int.h:136,
                 from format_dag24.c:39:
./erftypes.h:111:1: warning: "TYPE_RAW_LINK" redefined
In file included from libtrace_int.h:134,
                 from format_dag24.c:39:
/opt/dag/include/dagapi.h:132:1: warning: this is the location of the previous definition
format_dag24.c: In function ‘dag_probe_filename’:
format_dag24.c:121: warning: ‘return’ with a value, in function returning void
format_dag24.c:125: warning: ‘return’ with a value, in function returning void
format_dag24.c:128: warning: ‘return’ with a value, in function returning void
format_dag24.c: In function ‘dag_available’:
format_dag24.c:160: warning: pointer targets in passing argument 2 of ‘dag_offset’ differ in signedness
format_dag24.c: In function ‘dag_get_duckinfo’:
format_dag24.c:278: error: ‘dag_inf’ undeclared (first use in this function)
format_dag24.c:278: error: (Each undeclared identifier is reported only once
format_dag24.c:278: error: for each function it appears in.)
format_dag24.c:278: error: expected ‘;’ before ‘lt_dag_inf’
format_dag24.c:297: error: ‘DAG_IOINF’ undeclared (first use in this function)
format_dag24.c:297: error: ‘lt_dag_inf’ undeclared (first use in this function)
format_dag24.c:302: warning: implicit declaration of function ‘IsDUCK’
format_dag24.c:308: error: ‘DAG_IOGETDUCK’ undeclared (first use in this function)
format_dag24.c:308: error: ‘duck_inf’ undeclared (first use in this function)
format_dag24.c:308: error: expected expression before ‘)’ token
format_dag24.c: At top level:
format_dag24.c:523: warning: initialization from incompatible pointer type
make[3]: *** [format_dag24.lo] Error 1
make[3]: Leaving directory `/root/src/libtrace-3.0.12/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/src/libtrace-3.0.12/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/src/libtrace-3.0.12'
make: *** [all] Error 2


comment:3 Changed 9 years ago by anonymous

Using this configure line it built cleanly, thanks. --Stew

# dagconfig -V
dagconfig (DAG 4.2.0) $Revision: 14049 $


# ./configure --prefix=/opt/libtrace LDFLAGS="-L/opt/dag/lib" CFLAGS="-I/opt/dag/include"

comment:4 Changed 9 years ago by salcock

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

Looks like this got partly fixed in r1725.

Note: See TracTickets for help on using tickets.