[MacPorts] #71465: nfdump fails to build: error: ‘master_record_t’ has no member named ‘icmp’ etc.
MacPorts
noreply at macports.org
Thu Dec 5 20:06:20 UTC 2024
#71465: nfdump fails to build: error: ‘master_record_t’ has no member named ‘icmp’
etc.
--------------------------+--------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Keywords: | Port: nfdump
--------------------------+--------------------
{{{
---> Configuring nfdump
Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nfdump/nfdump/work/nfdump-1.6.25"
&& ./autogen.sh && ./configure --prefix=/opt/local --enable-sflow
--enable-nfprofile --enable-nsel --with-rrdpath=/opt/local
autogen.sh: reconfigure with autoreconf
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: /opt/local/bin/aclocal -I m4 --force -I m4
/opt/local/share/aclocal/zthread.m4:34: warning: underquoted definition of
AM_PATH_ZTHREAD
/opt/local/share/aclocal/zthread.m4:34: run info Automake 'Extending
aclocal'
/opt/local/share/aclocal/zthread.m4:34: or see
https://www.gnu.org/software/automake/manual/automake.html#Extending-
aclocal
autoreconf: configure.ac: tracing
autoreconf: running: /opt/local/bin/glibtoolize --copy --force
glibtoolize: putting auxiliary files in '.'.
glibtoolize: copying file './ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: copying file 'm4/libtool.m4'
glibtoolize: copying file 'm4/ltoptions.m4'
glibtoolize: copying file 'm4/ltsugar.m4'
glibtoolize: copying file 'm4/ltversion.m4'
glibtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: /opt/local/bin/aclocal -I m4 --force -I m4
/opt/local/share/aclocal/zthread.m4:34: warning: underquoted definition of
AM_PATH_ZTHREAD
/opt/local/share/aclocal/zthread.m4:34: run info Automake 'Extending
aclocal'
/opt/local/share/aclocal/zthread.m4:34: or see
https://www.gnu.org/software/automake/manual/automake.html#Extending-
aclocal
autoreconf: running: /opt/local/bin/autoconf --include=m4 --force
autoreconf: running: /opt/local/bin/autoheader --include=m4 --force
autoreconf: running: /opt/local/bin/automake --add-missing --copy --force-
missing
configure.ac:17: installing './compile'
configure.ac:26: installing './config.guess'
configure.ac:26: installing './config.sub'
configure.ac:9: installing './install-sh'
configure.ac:9: installing './missing'
Makefile.am: installing './INSTALL'
bin/Makefile.am: installing './depcomp'
configure.ac: installing './ylwrap'
parallel-tests: installing './test-driver'
autoreconf: Leaving directory '.'
autogen.sh: for the next step, run './configure' [or './configure --help'
to check available options]
checking for a BSD-compatible install... /usr/bin/install -c
checking whether sleep supports fractional seconds... yes
checking filesystem timestamp resolution... 2
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking xargs -n works... yes
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether ccache /usr/bin/gcc-4.2 accepts -g... yes
checking for ccache /usr/bin/gcc-4.2 option to enable C11 features...
unsupported
checking for ccache /usr/bin/gcc-4.2 option to enable C99 features...
unsupported
checking for ccache /usr/bin/gcc-4.2 option to enable C89 features... none
needed
checking whether ccache /usr/bin/gcc-4.2 understands -c and -o together...
yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of ccache /usr/bin/gcc-4.2... gcc3
checking whether C compiler accepts -std=gnu11... no
checking whether C compiler accepts -std=c11... no
checking whether C compiler accepts -std=c99... yes
checking build system type... powerpc-apple-darwin10.0.0d2
checking host system type... powerpc-apple-darwin10.0.0d2
checking how to print strings... printf
checking for a sed that does not truncate output... /opt/local/bin/gsed
checking for grep that handles long lines and -e... /opt/local/bin/ggrep
checking for egrep... /opt/local/bin/ggrep -E
checking for fgrep... /opt/local/bin/ggrep -F
checking for ld used by ccache /usr/bin/gcc-4.2... /usr/libexec/gcc
/powerpc-apple-darwin10/4.2.1/ld
checking if the linker (/usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/ld)
is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /opt/local/bin/nm
-B
checking the name lister (/opt/local/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking how to convert powerpc-apple-darwin10.0.0d2 file names to
powerpc-apple-darwin10.0.0d2 format... func_convert_file_noop
checking how to convert powerpc-apple-darwin10.0.0d2 file names to
toolchain format... func_convert_file_noop
checking for /usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/ld option to
reload object files... -r
checking for file... file
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ranlib... ranlib
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking command to parse /opt/local/bin/nm -B output from ccache
/usr/bin/gcc-4.2 object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -no_fixup_chains linker flag... no
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... ld: unknown option: -force_load
no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for vfork.h... no
checking for sys/time.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if ccache /usr/bin/gcc-4.2 supports -fno-rtti -fno-exceptions...
no
checking for ccache /usr/bin/gcc-4.2 option to produce PIC... -fno-common
-DPIC
checking if ccache /usr/bin/gcc-4.2 PIC flag -fno-common -DPIC works...
yes
checking if ccache /usr/bin/gcc-4.2 static flag -static works... no
checking if ccache /usr/bin/gcc-4.2 supports -c -o file.o... yes
checking if ccache /usr/bin/gcc-4.2 supports -c -o file.o... (cached) yes
checking whether the ccache /usr/bin/gcc-4.2 linker (/usr/libexec/gcc
/powerpc-apple-darwin10/4.2.1/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin10.0.0d2 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for bison... bison -y
checking for flex... flex
checking for lex output file root... lex.yy
checking for lex library... none needed
checking for library containing yywrap... -lfl
checking whether yytext is a pointer... yes
checking for rrd_update in -lrrd... yes
checking for rrd.h... yes
checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for struct sockaddr.sa_len... yes
checking for struct sockaddr_storage.ss_family... yes
checking for struct sockaddr_storage.__ss_family... no
checking for struct sockaddr_storage.ss_len... yes
checking for struct sockaddr_storage.__ss_len... no
checking for struct sockaddr.sa_len... (cached) yes
checking for gethostbyname... yes
checking for setsockopt... yes
checking for fpurge... yes
checking for __fpurge... no
checking if htonll is defined... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for egrep... (cached) /opt/local/bin/ggrep -E
checking for stdio_ext.h... no
checking for nameser8_compat.h... yes
checking for features.h... no
checking for arpa/inet.h... yes
checking for fcntl.h... yes
checking for netinet/in.h... yes
checking for fts.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for stddef.h... yes
checking for string.h... (cached) yes
checking for sys/socket.h... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking for iso/limits_iso.h... no
checking for pcap-bpf.h... yes
checking for net/bpf.h... yes
checking for sys/types.h... (cached) yes
checking for netinet/in.h... (cached) yes
checking for arpa/nameser.h... yes
checking for arpa/nameser_compat.h... yes
checking for netdb.h... yes
checking for resolv.h... yes
checking for netinet/in_systm.h... yes
checking for bzlib.h... yes
checking size of void *... 4
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether byte ordering is bigendian... yes
checking for pid_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for _Bool... yes
checking for stdbool.h that conforms to C99 or later... yes
checking whether closedir returns void... no
checking for fork... yes
checking for vfork... yes
checking for alarm... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working mktime... yes
checking for GNU libc compatible realloc... yes
checking whether lstat correctly handles trailing slash... no
checking whether stat accepts an empty string... no
checking for strftime... yes
checking for inet_ntoa... yes
checking for socket... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strrchr... yes
checking for strstr... yes
checking for scandir... yes
checking for res_search in -lsocket... no
checking for res_search in -lresolv... yes
checking for BZ2_bzCompressInit in -lbz2... yes
checking for ptrdiff_t... yes
checking for size_t... (cached) yes
checking size of short... 2
checking size of int... 4
checking size of long... 4
checking size of long long... 8
checking size of __int64... 0
checking size of void *... (cached) 4
checking size of size_t... 4
checking size of time_t... 4
checking size of ptrdiff_t... 4
checking for an ANSI C-conforming const... (cached) yes
checking for memcmp... yes
checking for memcpy... yes
checking for memmove... yes
checking for memset... yes
checking for union semun... yes
checking for the %z format string in printf()... yes
checking for doxygen... /opt/local/bin/doxygen
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating bin/Makefile
config.status: creating man/Makefile
config.status: creating doc/Makefile
config.status: creating doc/Doxyfile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
----------------------------------
Build Settings for nfdump v1.6.25
----------------------------------
host type = darwin10.0.0d2
install dir = /opt/local
CC = ccache /usr/bin/gcc-4.2
CFLAGS = -pipe -Os -std=gnu89 -arch ppc -std=c99 -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-
noreturn -fno-strict-aliasing -DNSEL
CPPFLAGS = -I/opt/local/include -I/opt/local/include
LDFLAGS = -L/opt/local/lib
-Wl,-headerpad_max_install_names -arch ppc -L/opt/local/lib
LIBS = -lresolv -lbz2
----------------------------------
You can run ./make now.
* Many thanks for using nfdump tools
* Please send bug reports back to me: peter at people.ops-trust.net
* or open a ticket at https://github.com/phaag/nfdump/issues
* You may want to subscribe to the nfdump-discuss and/or
* nfsen-discuss mailing list:
* http://lists.sourceforge.net/lists/listinfo/nfdump-discuss
* http://lists.sourceforge.net/lists/listinfo/nfsen-discuss
---> Building nfdump
Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nfdump/nfdump/work/nfdump-1.6.25"
&& /usr/bin/make -w all
make: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nfdump/nfdump/work/nfdump-1.6.25'
/usr/bin/make all-recursive
make[1]: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nfdump/nfdump/work/nfdump-1.6.25'
Making all in .
make[2]: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nfdump/nfdump/work/nfdump-1.6.25'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nfdump/nfdump/work/nfdump-1.6.25'
Making all in bin
make[2]: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nfdump/nfdump/work/nfdump-1.6.25/bin'
/bin/sh ../ylwrap grammar.y y.tab.c grammar.c y.tab.h `echo grammar.c |
sed -e s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/ -e s/c++$/h++/ -e s/c$/h/`
y.output grammar.output -- bison -y -d
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nfdump/nfdump/work/nfdump-1.6.25/bin/grammar.y:
warning: 1 shift/reduce conflict [-Wconflicts-sr]
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nfdump/nfdump/work/nfdump-1.6.25/bin/grammar.y:
note: rerun with option '-Wcounterexamples' to generate conflict
counterexamples
updating grammar.h
/usr/bin/make all-am
make[3]: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nfdump/nfdump/work/nfdump-1.6.25/bin'
ccache /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include
-I/opt/local/include -pipe -Os -std=gnu89 -arch ppc -std=c99 -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-
noreturn -fno-strict-aliasing -DNSEL -MT nfcapd-nfcapd.o -MD -MP -MF .deps
/nfcapd-nfcapd.Tpo -c -o nfcapd-nfcapd.o `test -f 'nfcapd.c' || echo
'./'`nfcapd.c
In file included from nfcapd.c:67:
nfdump.h:56: warning: declaration does not declare anything
nfdump.h:338: warning: declaration does not declare anything
nfdump.h:340: warning: declaration does not declare anything
nfdump.h:495: warning: declaration does not declare anything
nfdump.h:497: warning: declaration does not declare anything
In file included from nfcapd.c:69:
nfx.h:348: warning: declaration does not declare anything
nfx.h:350: warning: declaration does not declare anything
nfx.h:473: warning: declaration does not declare anything
nfx.h:506: warning: declaration does not declare anything
nfx.h:538: warning: declaration does not declare anything
nfx.h:555: warning: declaration does not declare anything
nfx.h:559: warning: declaration does not declare anything
nfx.h:576: warning: declaration does not declare anything
nfx.h:580: warning: declaration does not declare anything
nfx.h:683: warning: declaration does not declare anything
nfx.h:716: warning: declaration does not declare anything
nfx.h:727: warning: declaration does not declare anything
nfx.h:729: warning: declaration does not declare anything
nfx.h:941: error: redefinition of typedef ‘extension_map_t’
nfdump.h:64: error: previous declaration of ‘extension_map_t’ was here
In file included from nfcapd.c:70:
exporter.h:79: error: redefinition of typedef ‘exporter_info_record_t’
nfdump.h:63: error: previous declaration of ‘exporter_info_record_t’ was
here
In file included from nfcapd.c:356:
nffile_inline.c: In function ‘ExpandRecord_v2’:
nffile_inline.c:112: error: ‘master_record_t’ has no member named ‘icmp’
nffile_inline.c:202: error: ‘master_record_t’ has no member named ‘any’
nffile_inline.c:202: error: ‘tpl_ext_8_t’ has no member named ‘any’
nffile_inline.c:209: error: ‘union <anonymous>’ has no member named ‘_v4’
nffile_inline.c:223: error: ‘union <anonymous>’ has no member named ‘_v4’
nffile_inline.c:246: error: ‘tpl_ext_15_t’ has no member named ‘v’
nffile_inline.c:246: error: ‘tpl_ext_15_t’ has no member named ‘v’
nffile_inline.c:247: error: ‘tpl_ext_15_t’ has no member named ‘v’
nffile_inline.c:247: error: ‘tpl_ext_15_t’ has no member named ‘v’
nffile_inline.c:248: error: ‘tpl_ext_15_t’ has no member named ‘out_pkts’
nffile_inline.c:258: error: ‘tpl_ext_17_t’ has no member named ‘v’
nffile_inline.c:258: error: ‘tpl_ext_17_t’ has no member named ‘v’
nffile_inline.c:259: error: ‘tpl_ext_17_t’ has no member named ‘v’
nffile_inline.c:259: error: ‘tpl_ext_17_t’ has no member named ‘v’
nffile_inline.c:260: error: ‘tpl_ext_17_t’ has no member named ‘out_bytes’
nffile_inline.c:270: error: ‘tpl_ext_19_t’ has no member named ‘v’
nffile_inline.c:270: error: ‘tpl_ext_19_t’ has no member named ‘v’
nffile_inline.c:271: error: ‘tpl_ext_19_t’ has no member named ‘v’
nffile_inline.c:271: error: ‘tpl_ext_19_t’ has no member named ‘v’
nffile_inline.c:272: error: ‘tpl_ext_19_t’ has no member named
‘aggr_flows’
nffile_inline.c:277: error: ‘tpl_ext_20_t’ has no member named ‘v1’
nffile_inline.c:277: error: ‘tpl_ext_20_t’ has no member named ‘v1’
nffile_inline.c:278: error: ‘tpl_ext_20_t’ has no member named ‘v1’
nffile_inline.c:278: error: ‘tpl_ext_20_t’ has no member named ‘v1’
nffile_inline.c:279: error: ‘tpl_ext_20_t’ has no member named
‘in_src_mac’
nffile_inline.c:281: error: ‘tpl_ext_20_t’ has no member named ‘v2’
nffile_inline.c:281: error: ‘tpl_ext_20_t’ has no member named ‘v2’
nffile_inline.c:282: error: ‘tpl_ext_20_t’ has no member named ‘v2’
nffile_inline.c:282: error: ‘tpl_ext_20_t’ has no member named ‘v2’
nffile_inline.c:283: error: ‘tpl_ext_20_t’ has no member named
‘out_dst_mac’
nffile_inline.c:288: error: ‘tpl_ext_21_t’ has no member named ‘v1’
nffile_inline.c:288: error: ‘tpl_ext_21_t’ has no member named ‘v1’
nffile_inline.c:289: error: ‘tpl_ext_21_t’ has no member named ‘v1’
nffile_inline.c:289: error: ‘tpl_ext_21_t’ has no member named ‘v1’
nffile_inline.c:290: error: ‘tpl_ext_21_t’ has no member named
‘in_dst_mac’
nffile_inline.c:291: error: ‘tpl_ext_21_t’ has no member named ‘v2’
nffile_inline.c:291: error: ‘tpl_ext_21_t’ has no member named ‘v2’
nffile_inline.c:292: error: ‘tpl_ext_21_t’ has no member named ‘v2’
nffile_inline.c:292: error: ‘tpl_ext_21_t’ has no member named ‘v2’
nffile_inline.c:293: error: ‘tpl_ext_21_t’ has no member named
‘out_src_mac’
nffile_inline.c:308: error: ‘union <anonymous>’ has no member named ‘_v4’
nffile_inline.c:340: error: ‘tpl_ext_27_t’ has no member named ‘v’
nffile_inline.c:341: error: ‘tpl_ext_27_t’ has no member named ‘v’
nffile_inline.c:349: error: ‘tpl_ext_37_t’ has no member named ‘v’
nffile_inline.c:350: error: ‘tpl_ext_37_t’ has no member named ‘v’
nffile_inline.c:356: error: ‘tpl_ext_37_t’ has no member named ‘nsel_icmp’
nffile_inline.c:356: error: ‘master_record_t’ has no member named ‘icmp’
nffile_inline.c:356: error: ‘tpl_ext_37_t’ has no member named ‘nsel_icmp’
nffile_inline.c:370: error: ‘union <anonymous>’ has no member named ‘_v4’
nffile_inline.c:373: error: ‘union <anonymous>’ has no member named ‘_v4’
nffile_inline.c:429: error: ‘union <anonymous>’ has no member named ‘_v4’
nffile_inline.c:432: error: ‘union <anonymous>’ has no member named ‘_v4’
In file included from nfcapd.c:357:
collector_inline.c: In function ‘GetFlowSource’:
collector_inline.c:58: error: ‘union <anonymous>’ has no member named
‘_v4’
make[3]: *** [nfcapd-nfcapd.o] Error 1
make[3]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nfdump/nfdump/work/nfdump-1.6.25/bin'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nfdump/nfdump/work/nfdump-1.6.25/bin'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nfdump/nfdump/work/nfdump-1.6.25'
make: *** [all] Error 2
make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nfdump/nfdump/work/nfdump-1.6.25'
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nfdump/nfdump/work/nfdump-1.6.25"
&& /usr/bin/make -w all
Exit code: 2
Error: Failed to build nfdump: command execution failed
}}}
--
Ticket URL: <https://trac.macports.org/ticket/71465>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list