[Bug 232749] net/dhcpd fails to build with NO PF support
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Oct 27 19:11:09 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232749
Bug ID: 232749
Summary: net/dhcpd fails to build with NO PF support
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: ports-bugs at FreeBSD.org
Reporter: driesm.michiels at gmail.com
CC: koue at chaosophia.net
Flags: maintainer-feedback?(koue at chaosophia.net)
CC: koue at chaosophia.net
When trying to build net/dhcpd on 12-stable using poudriere and setting PF
support to OFF. (so option enabled) I get the error below.
===> Building for dhcpd-6.0.20170207_2
echo dhcpd: /usr/lib/libc.a >> .depend
Warning: Object directory not changed from original
/wrkdirs/usr/ports/net/dhcpd/work/dhcpd-6.0.20170207/src/usr.sbin/dhcpd
cc -O2 -pipe -Wall -DNO_PF=1 -fstack-protector -fno-strict-aliasing -Wall
-D__dead='' -MD -MF.depend.bootp.o -MTbootp.o -std=gnu99
-fstack-protector-strong -Qunused-arguments -c bootp.c -o bootp.o
cc -O2 -pipe -Wall -DNO_PF=1 -fstack-protector -fno-strict-aliasing -Wall
-D__dead='' -MD -MF.depend.confpars.o -MTconfpars.o -std=gnu99
-fstack-protector-strong -Qunused-arguments -c confpars.c -o confpars.o
confpars.c:913:20: warning: passing 'char *' to parameter of type 'unsigned
char *' converts between pointers to integer types with different sign
[-Wpointer-sign]
rv = tree_const(h->h_addr_list[0], h->h_length);
^~~~~~~~~~~~~~~~~
./dhcpd.h:534:41: note: passing argument to parameter here
struct tree *tree_const(unsigned char *, int);
^
1 warning generated.
cc -O2 -pipe -Wall -DNO_PF=1 -fstack-protector -fno-strict-aliasing -Wall
-D__dead='' -MD -MF.depend.db.o -MTdb.o -std=gnu99 -fstack-protector-strong
-Qunused-arguments -c db.c -o db.o
cc -O2 -pipe -Wall -DNO_PF=1 -fstack-protector -fno-strict-aliasing -Wall
-D__dead='' -MD -MF.depend.dhcp.o -MTdhcp.o -std=gnu99
-fstack-protector-strong -Qunused-arguments -c dhcp.c -o dhcp.o
cc -O2 -pipe -Wall -DNO_PF=1 -fstack-protector -fno-strict-aliasing -Wall
-D__dead='' -MD -MF.depend.dhcpd.o -MTdhcpd.o -std=gnu99
-fstack-protector-strong -Qunused-arguments -c dhcpd.c -o dhcpd.o
dhcpd.c:381:25: warning: unused variable 's' [-Wunused-variable]
struct shared_network *s;
^
dhcpd.c:382:17: warning: unused variable 'l' [-Wunused-variable]
struct lease *l;
^
2 warnings generated.
cc -O2 -pipe -Wall -DNO_PF=1 -fstack-protector -fno-strict-aliasing -Wall
-D__dead='' -MD -MF.depend.bpf.o -MTbpf.o -std=gnu99 -fstack-protector-strong
-Qunused-arguments -c bpf.c -o bpf.o
cc -O2 -pipe -Wall -DNO_PF=1 -fstack-protector -fno-strict-aliasing -Wall
-D__dead='' -MD -MF.depend.packet.o -MTpacket.o -std=gnu99
-fstack-protector-strong -Qunused-arguments -c packet.c -o packet.o
cc -O2 -pipe -Wall -DNO_PF=1 -fstack-protector -fno-strict-aliasing -Wall
-D__dead='' -MD -MF.depend.errwarn.o -MTerrwarn.o -std=gnu99
-fstack-protector-strong -Qunused-arguments -c errwarn.c -o errwarn.o
cc -O2 -pipe -Wall -DNO_PF=1 -fstack-protector -fno-strict-aliasing -Wall
-D__dead='' -MD -MF.depend.dispatch.o -MTdispatch.o -std=gnu99
-fstack-protector-strong -Qunused-arguments -c dispatch.c -o dispatch.o
cc -O2 -pipe -Wall -DNO_PF=1 -fstack-protector -fno-strict-aliasing -Wall
-D__dead='' -MD -MF.depend.print.o -MTprint.o -std=gnu99
-fstack-protector-strong -Qunused-arguments -c print.c -o print.o
cc -O2 -pipe -Wall -DNO_PF=1 -fstack-protector -fno-strict-aliasing -Wall
-D__dead='' -MD -MF.depend.memory.o -MTmemory.o -std=gnu99
-fstack-protector-strong -Qunused-arguments -c memory.c -o memory.o
cc -O2 -pipe -Wall -DNO_PF=1 -fstack-protector -fno-strict-aliasing -Wall
-D__dead='' -MD -MF.depend.options.o -MToptions.o -std=gnu99
-fstack-protector-strong -Qunused-arguments -c options.c -o options.o
cc -O2 -pipe -Wall -DNO_PF=1 -fstack-protector -fno-strict-aliasing -Wall
-D__dead='' -MD -MF.depend.inet.o -MTinet.o -std=gnu99
-fstack-protector-strong -Qunused-arguments -c inet.c -o inet.o
cc -O2 -pipe -Wall -DNO_PF=1 -fstack-protector -fno-strict-aliasing -Wall
-D__dead='' -MD -MF.depend.conflex.o -MTconflex.o -std=gnu99
-fstack-protector-strong -Qunused-arguments -c conflex.c -o conflex.o
cc -O2 -pipe -Wall -DNO_PF=1 -fstack-protector -fno-strict-aliasing -Wall
-D__dead='' -MD -MF.depend.parse.o -MTparse.o -std=gnu99
-fstack-protector-strong -Qunused-arguments -c parse.c -o parse.o
cc -O2 -pipe -Wall -DNO_PF=1 -fstack-protector -fno-strict-aliasing -Wall
-D__dead='' -MD -MF.depend.alloc.o -MTalloc.o -std=gnu99
-fstack-protector-strong -Qunused-arguments -c alloc.c -o alloc.o
cc -O2 -pipe -Wall -DNO_PF=1 -fstack-protector -fno-strict-aliasing -Wall
-D__dead='' -MD -MF.depend.tables.o -MTtables.o -std=gnu99
-fstack-protector-strong -Qunused-arguments -c tables.c -o tables.o
cc -O2 -pipe -Wall -DNO_PF=1 -fstack-protector -fno-strict-aliasing -Wall
-D__dead='' -MD -MF.depend.tree.o -MTtree.o -std=gnu99
-fstack-protector-strong -Qunused-arguments -c tree.c -o tree.o
cc -O2 -pipe -Wall -DNO_PF=1 -fstack-protector -fno-strict-aliasing -Wall
-D__dead='' -MD -MF.depend.hash.o -MThash.o -std=gnu99
-fstack-protector-strong -Qunused-arguments -c hash.c -o hash.o
cc -O2 -pipe -Wall -DNO_PF=1 -fstack-protector -fno-strict-aliasing -Wall
-D__dead='' -MD -MF.depend.convert.o -MTconvert.o -std=gnu99
-fstack-protector-strong -Qunused-arguments -c convert.c -o convert.o
cc -O2 -pipe -Wall -DNO_PF=1 -fstack-protector -fno-strict-aliasing -Wall
-D__dead='' -MD -MF.depend.icmp.o -MTicmp.o -std=gnu99
-fstack-protector-strong -Qunused-arguments -c icmp.c -o icmp.o
cc -O2 -pipe -Wall -DNO_PF=1 -fstack-protector -fno-strict-aliasing -Wall
-D__dead='' -MD -MF.depend.pfutils.o -MTpfutils.o -std=gnu99
-fstack-protector-strong -Qunused-arguments -c pfutils.c -o pfutils.o
cc -O2 -pipe -Wall -DNO_PF=1 -fstack-protector -fno-strict-aliasing -Wall
-D__dead='' -MD -MF.depend.sync.o -MTsync.o -std=gnu99
-fstack-protector-strong -Qunused-arguments -c sync.c -o sync.o
sync.c:412:11: error: variable has incomplete type 'HMAC_CTX' (aka 'struct
hmac_ctx_st')
HMAC_CTX ctx;
^
/usr/include/openssl/ossl_typ.h:102:16: note: forward declaration of 'struct
hmac_ctx_st'
typedef struct hmac_ctx_st HMAC_CTX;
^
sync.c:422:2: warning: implicit declaration of function 'HMAC_CTX_init' is
invalid in C99 [-Wimplicit-function-declaration]
HMAC_CTX_init(&ctx);
^
sync.c:423:2: warning: 'HMAC_Init' is deprecated [-Wdeprecated-declarations]
HMAC_Init(&ctx, sync_key, strlen(sync_key), EVP_sha1());
^
/usr/include/openssl/hmac.h:30:1: note: 'HMAC_Init' has been explicitly marked
deprecated here
DEPRECATEDIN_1_1_0(__owur int HMAC_Init(HMAC_CTX *ctx, const void *key, int
len,
^
/usr/include/openssl/opensslconf.h:147:34: note: expanded from macro
'DEPRECATEDIN_1_1_0'
# define DEPRECATEDIN_1_1_0(f) DECLARE_DEPRECATED(f)
^
/usr/include/openssl/opensslconf.h:110:55: note: expanded from macro
'DECLARE_DEPRECATED'
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
^
sync.c:473:2: warning: implicit declaration of function 'HMAC_CTX_cleanup' is
invalid in C99 [-Wimplicit-function-declaration]
HMAC_CTX_cleanup(&ctx);
^
3 warnings and 1 error generated.
*** Error code 1
Stop.
make[1]: stopped in
/wrkdirs/usr/ports/net/dhcpd/work/dhcpd-6.0.20170207/src/usr.sbin/dhcpd
*** Error code 1
Stop.
make: stopped in /usr/ports/net/dhcpd
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list