[Pkg-net-snmp-devel] Bug#880070: net-snmp: FTBFS against perl 5.26 on kfreebsd: error: 'struct nlist' has no member named 'n_name'

Andreas Beckmann anbe at debian.org
Sun Oct 29 09:48:11 UTC 2017


Source: net-snmp
Version: 5.7.3+dfsg-1.7
Severity: important
Tags: sid buster
User: debian-bsd at lists.debian.org
Usertags: kfreebsd

Hi,

net-snmp did FTBFS against perl 5.26 on kfreebsd:

https://buildd.debian.org/status/fetch.php?pkg=net-snmp&arch=kfreebsd-i386&ver=5.7.3%2Bdfsg-1.7%2Bb2&stamp=1500736961&raw=0
https://buildd.debian.org/status/fetch.php?pkg=net-snmp&arch=kfreebsd-amd64&ver=5.7.3%2Bdfsg-1.7%2Bb2&stamp=1500712794&raw=0

/bin/bash ../libtool  --mode=compile gcc -I../include -I. -I../agent -I../agent/mibgroup  -I../snmplib -Wdate-time -D_FORTIFY_SOURCE=2  -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -g -O2 -fdebug-prefix-map=/«BUILDDIR»/net-snmp-5.7.3+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -isystem /usr/include/bsd -DLIBBSD_OVERLAY -DNETSNMP_USE_INLINE -Ukfreebsd -Dkfreebsd=kfreebsd  -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I/usr/lib/x86_64-kfreebsd-gnu/perl/5.26/CORE   -c -o auto_nlist.lo auto_nlist.c
libtool: compile:  gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib -Wdate-time -D_FORTIFY_SOURCE=2 -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -g -O2 -fdebug-prefix-map=/«BUILDDIR»/net-snmp-5.7.3+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -isystem /usr/include/bsd -DLIBBSD_OVERLAY -DNETSNMP_USE_INLINE -Ukfreebsd -Dkfreebsd=kfreebsd -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/x86_64-kfreebsd-gnu/perl/5.26/CORE -c auto_nlist.c  -fPIC -DPIC -o .libs/auto_nlist.o
auto_nlist.c: In function 'auto_nlist_value':
auto_nlist.c:68:18: error: 'struct nlist' has no member named 'n_name'; did you mean 'n_type'?
         it->nl[0].n_name = (char *) malloc(strlen(string) + 2);
                  ^
auto_nlist.c:85:18: error: 'struct nlist' has no member named 'n_name'; did you mean 'n_type'?
         it->nl[0].n_name = (const char*)n_name;
                  ^
auto_nlist.c:87:18: error: 'struct nlist' has no member named 'n_name'; did you mean 'n_type'?
         it->nl[1].n_name = 0;
                  ^
auto_nlist.c:107:22: error: 'struct nlist' has no member named 'n_name'; did you mean 'n_type'?
             it->nl[0].n_name = (const char*)n_name2;
                      ^
auto_nlist.c: In function 'init_nlist':
auto_nlist.c:208:26: error: 'struct nlist' has no member named 'n_name'; did you mean 'n_type'?
     for (ret = 0; nl[ret].n_name != NULL; ret++) {
                          ^
In file included from ../include/net-snmp/output_api.h:64:0,
                 from ../include/net-snmp/library/snmp_client.h:32,
                 from ../include/net-snmp/varbind_api.h:102,
                 from ../include/net-snmp/library/snmp_api.h:28,
                 from ../include/net-snmp/types.h:421,
                 from ../include/net-snmp/definitions.h:22,
                 from ../include/net-snmp/net-snmp-includes.h:67,
                 from auto_nlist.c:28:
auto_nlist.c:217:36: error: 'struct nlist' has no member named 'n_name'; did you mean 'n_type'?
                             nl[ret].n_name));
                                    ^
../include/net-snmp/library/snmp_debug.h:159:52: note: in definition of macro '__DBGMSGTL'
 #define __DBGMSGTL(x)    __DBGTRACE, debugmsgtoken x, debugmsg x
                                                    ^
auto_nlist.c:216:17: note: in expansion of macro 'DEBUGMSGTL'
                 DEBUGMSGTL(("auto_nlist:init_nlist", "nlist err:  %s not found\n",
                 ^~~~~~~~~~
auto_nlist.c:217:36: error: 'struct nlist' has no member named 'n_name'; did you mean 'n_type'?
                             nl[ret].n_name));
                                    ^
../include/net-snmp/library/snmp_debug.h:159:64: note: in definition of macro '__DBGMSGTL'
 #define __DBGMSGTL(x)    __DBGTRACE, debugmsgtoken x, debugmsg x
                                                                ^
auto_nlist.c:216:17: note: in expansion of macro 'DEBUGMSGTL'
                 DEBUGMSGTL(("auto_nlist:init_nlist", "nlist err:  %s not found\n",
                 ^~~~~~~~~~
auto_nlist.c:220:77: error: 'struct nlist' has no member named 'n_name'; did you mean 'n_type'?
             DEBUGMSGTL(("auto_nlist:init_nlist", "nlist: %s 0x%X\n", nl[ret].n_name,
                                                                             ^
../include/net-snmp/library/snmp_debug.h:159:52: note: in definition of macro '__DBGMSGTL'
 #define __DBGMSGTL(x)    __DBGTRACE, debugmsgtoken x, debugmsg x
                                                    ^
auto_nlist.c:220:13: note: in expansion of macro 'DEBUGMSGTL'
             DEBUGMSGTL(("auto_nlist:init_nlist", "nlist: %s 0x%X\n", nl[ret].n_name,
             ^~~~~~~~~~
auto_nlist.c:220:77: error: 'struct nlist' has no member named 'n_name'; did you mean 'n_type'?
             DEBUGMSGTL(("auto_nlist:init_nlist", "nlist: %s 0x%X\n", nl[ret].n_name,
                                                                             ^
../include/net-snmp/library/snmp_debug.h:159:64: note: in definition of macro '__DBGMSGTL'
 #define __DBGMSGTL(x)    __DBGTRACE, debugmsgtoken x, debugmsg x
                                                                ^
auto_nlist.c:220:13: note: in expansion of macro 'DEBUGMSGTL'
             DEBUGMSGTL(("auto_nlist:init_nlist", "nlist: %s 0x%X\n", nl[ret].n_name,
             ^~~~~~~~~~
auto_nlist.c: In function 'KNLookup':
auto_nlist.c:233:21: error: 'struct nlist' has no member named 'n_name'; did you mean 'n_type'?
                  nlp->n_name);
                     ^~
Makefile:99: recipe for target 'auto_nlist.lo' failed
make[3]: *** [auto_nlist.lo] Error 1


Andreas


More information about the Pkg-net-snmp-devel mailing list