My suggestion would be to run the same compilation command but instead of compiling, have it dump the preprocessed file: 1) cd /home/admin/Build/pmacct-0.14.0rc3/src/nfprobe_plugin 2) cc -DPACKAGE=\"pmacctd\" -DVERSION=\"0.14.0rc3\" -DSOLARIS=1 -DIM_LITTLE_ENDIAN=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 -DPCAP_TYPE_dlpi=1 -DWITH_SQLITE3=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UINT64_T=1 -DHAVE_UINT32_T=1 -DHAVE_UINT16_T=1 -DHAVE_UINT8_T=1 -DRETSIGTYPE=void -DHAVE_STRLCPY=1 -DHAVE_VSNPRINTF=1 -I. -I.. -fast -DFLOW_SPLAY -DEXPIRY_RB -E -o nfprobe_plugin.pre nfprobe_plugin.c
This assumes that you are using GCC/variant. The output preprocessed file will be nfprobe_plugin.pre. This file would show were the problem is in the preprocessor macros. If you can't figure it out, post it here and I will have a look for you. On Apr 8, 2012, at 7:40 PM, Anil wrote: > Having some trouble compiling. Have you guys seen this? > > > Making all in src > gmake[1]: Entering directory `/home/admin/Build/pmacct-0.14.0rc3/src' > Making all in nfprobe_plugin > gmake[2]: Entering directory > `/home/admin/Build/pmacct-0.14.0rc3/src/nfprobe_plugin' > cc -DPACKAGE=\"pmacctd\" -DVERSION=\"0.14.0rc3\" -DSOLARIS=1 > -DIM_LITTLE_ENDIAN=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 > -DPCAP_TYPE_dlpi=1 -DWITH_SQLITE3=1 -DHAVE_DLOPEN=1 -DSTDC_HEADERS=1 > -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_SELECT_H=1 > -DHAVE_SYS_TIME_H=1 -DHAVE_UINT64_T=1 -DHAVE_UINT32_T=1 -DHAVE_UINT16_T=1 > -DHAVE_UINT8_T=1 -DRETSIGTYPE=void -DHAVE_STRLCPY=1 -DHAVE_VSNPRINTF=1 -I. > -I.. -fast -DFLOW_SPLAY -DEXPIRY_RB -c -o > nfprobe_plugin.o nfprobe_plugin.c > "nfprobe_plugin.c", line 152: warning: no explicit type given > "nfprobe_plugin.c", line 152: syntax error before or at: struct > "nfprobe_plugin.c", line 152: warning: no explicit type given > "nfprobe_plugin.c", line 152: syntax error before or at: struct > "nfprobe_plugin.c", line 152: warning: no explicit type given > "nfprobe_plugin.c", line 152: syntax error before or at: struct > "nfprobe_plugin.c", line 152: warning: syntax error: empty declaration > "nfprobe_plugin.c", line 153: warning: syntax error: empty declaration > "nfprobe_plugin.c", line 172: warning: syntax error: empty declaration > "nfprobe_plugin.c", line 173: warning: syntax error: empty declaration > "nfprobe_plugin.c", line 1039: warning: implicit function declaration: > addr_to_sa > "nfprobe_plugin.c", line 1290: warning: implicit function declaration: > pm_setproctitle > cc: acomp failed for nfprobe_plugin.c > gmake[2]: *** [nfprobe_plugin.o] Error 1 > gmake[2]: Leaving directory > `/home/admin/Build/pmacct-0.14.0rc3/src/nfprobe_plugin' > gmake[1]: *** [all-recursive] Error 1 > gmake[1]: Leaving directory `/home/admin/Build/pmacct-0.14.0rc3/src' > make: *** [all-recursive] Error 1 > _______________________________________________ > pmacct-discussion mailing list > http://www.pmacct.net/#mailinglists _______________________________________________ pmacct-discussion mailing list http://www.pmacct.net/#mailinglists
