Ethereal-dev: [Ethereal-dev] Problems compiling 0.10.3 (epan/packet-cops.o)

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Albert Chin <ethereal-dev@xxxxxxxxxxxxxxxxxx>
Date: Mon, 29 Mar 2004 17:28:47 -0600
When creating epan/packet-cops.o on Solaris, the following compile
command-line is used:
  $ cc -DHAVE_CONFIG_H -I. -I. -I. -I./..  -I/opt/TWWfsw/libpcre44/include
  -D_U_="" -mr -Qn -xstrconst -xO2 -xtarget=generic -xarch=v8
  -I/opt/TWWfsw/glib12/include/glib-1.2
  -I/opt/TWWfsw/glib12/lib/glib/include -I/opt/TWWfsw/libpcre44/include
  -c -o packet-cops.lo `test -f '../packet-cops.c' || echo
  './'`../packet-cops.c

Because we use ../packet-cops.c, ../config.h is #include'd when
<config.h> is called for (and not epan/config.h). This brings in the
definition of HAVE_NET_SNMP if net-snmp was found and #include's the
net-snmp include files. However, epan/configure doesn't do any
Net-SNMP checking so, unless the include files are in /usr/include,
compilation fails.

How to fix? Have epan/configure check for Net-SNMP?

-- 
albert chin (china@xxxxxxxxxxxxxxxxxx)