Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Oct 2018 19:11:06 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 232749] net/dhcpd fails to build with NO PF support
Message-ID:  <bug-232749-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232749

            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@FreeBSD.org
          Reporter: driesm.michiels@gmail.com
                CC: koue@chaosophia.net
             Flags: maintainer-feedback?(koue@chaosophia.net)
                CC: koue@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.

=3D=3D=3D>  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=3D1 -fstack-protector -fno-strict-aliasing    =
-Wall
-D__dead=3D'' -MD  -MF.depend.bootp.o -MTbootp.o -std=3Dgnu99
-fstack-protector-strong    -Qunused-arguments  -c bootp.c -o bootp.o
cc  -O2 -pipe  -Wall -DNO_PF=3D1 -fstack-protector -fno-strict-aliasing    =
-Wall
-D__dead=3D'' -MD  -MF.depend.confpars.o -MTconfpars.o -std=3Dgnu99
-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 =3D 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=3D1 -fstack-protector -fno-strict-aliasing    =
-Wall
-D__dead=3D'' -MD  -MF.depend.db.o -MTdb.o -std=3Dgnu99 -fstack-protector-s=
trong=20=20=20
-Qunused-arguments  -c db.c -o db.o
cc  -O2 -pipe  -Wall -DNO_PF=3D1 -fstack-protector -fno-strict-aliasing    =
-Wall
-D__dead=3D'' -MD  -MF.depend.dhcp.o -MTdhcp.o -std=3Dgnu99
-fstack-protector-strong    -Qunused-arguments  -c dhcp.c -o dhcp.o
cc  -O2 -pipe  -Wall -DNO_PF=3D1 -fstack-protector -fno-strict-aliasing    =
-Wall
-D__dead=3D'' -MD  -MF.depend.dhcpd.o -MTdhcpd.o -std=3Dgnu99
-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=3D1 -fstack-protector -fno-strict-aliasing    =
-Wall
-D__dead=3D'' -MD  -MF.depend.bpf.o -MTbpf.o -std=3Dgnu99 -fstack-protector=
-strong=20
  -Qunused-arguments  -c bpf.c -o bpf.o
cc  -O2 -pipe  -Wall -DNO_PF=3D1 -fstack-protector -fno-strict-aliasing    =
-Wall
-D__dead=3D'' -MD  -MF.depend.packet.o -MTpacket.o -std=3Dgnu99
-fstack-protector-strong    -Qunused-arguments  -c packet.c -o packet.o
cc  -O2 -pipe  -Wall -DNO_PF=3D1 -fstack-protector -fno-strict-aliasing    =
-Wall
-D__dead=3D'' -MD  -MF.depend.errwarn.o -MTerrwarn.o -std=3Dgnu99
-fstack-protector-strong    -Qunused-arguments  -c errwarn.c -o errwarn.o
cc  -O2 -pipe  -Wall -DNO_PF=3D1 -fstack-protector -fno-strict-aliasing    =
-Wall
-D__dead=3D'' -MD  -MF.depend.dispatch.o -MTdispatch.o -std=3Dgnu99
-fstack-protector-strong    -Qunused-arguments  -c dispatch.c -o dispatch.o
cc  -O2 -pipe  -Wall -DNO_PF=3D1 -fstack-protector -fno-strict-aliasing    =
-Wall
-D__dead=3D'' -MD  -MF.depend.print.o -MTprint.o -std=3Dgnu99
-fstack-protector-strong    -Qunused-arguments  -c print.c -o print.o
cc  -O2 -pipe  -Wall -DNO_PF=3D1 -fstack-protector -fno-strict-aliasing    =
-Wall
-D__dead=3D'' -MD  -MF.depend.memory.o -MTmemory.o -std=3Dgnu99
-fstack-protector-strong    -Qunused-arguments  -c memory.c -o memory.o
cc  -O2 -pipe  -Wall -DNO_PF=3D1 -fstack-protector -fno-strict-aliasing    =
-Wall
-D__dead=3D'' -MD  -MF.depend.options.o -MToptions.o -std=3Dgnu99
-fstack-protector-strong    -Qunused-arguments  -c options.c -o options.o
cc  -O2 -pipe  -Wall -DNO_PF=3D1 -fstack-protector -fno-strict-aliasing    =
-Wall
-D__dead=3D'' -MD  -MF.depend.inet.o -MTinet.o -std=3Dgnu99
-fstack-protector-strong    -Qunused-arguments  -c inet.c -o inet.o
cc  -O2 -pipe  -Wall -DNO_PF=3D1 -fstack-protector -fno-strict-aliasing    =
-Wall
-D__dead=3D'' -MD  -MF.depend.conflex.o -MTconflex.o -std=3Dgnu99
-fstack-protector-strong    -Qunused-arguments  -c conflex.c -o conflex.o
cc  -O2 -pipe  -Wall -DNO_PF=3D1 -fstack-protector -fno-strict-aliasing    =
-Wall
-D__dead=3D'' -MD  -MF.depend.parse.o -MTparse.o -std=3Dgnu99
-fstack-protector-strong    -Qunused-arguments  -c parse.c -o parse.o
cc  -O2 -pipe  -Wall -DNO_PF=3D1 -fstack-protector -fno-strict-aliasing    =
-Wall
-D__dead=3D'' -MD  -MF.depend.alloc.o -MTalloc.o -std=3Dgnu99
-fstack-protector-strong    -Qunused-arguments  -c alloc.c -o alloc.o
cc  -O2 -pipe  -Wall -DNO_PF=3D1 -fstack-protector -fno-strict-aliasing    =
-Wall
-D__dead=3D'' -MD  -MF.depend.tables.o -MTtables.o -std=3Dgnu99
-fstack-protector-strong    -Qunused-arguments  -c tables.c -o tables.o
cc  -O2 -pipe  -Wall -DNO_PF=3D1 -fstack-protector -fno-strict-aliasing    =
-Wall
-D__dead=3D'' -MD  -MF.depend.tree.o -MTtree.o -std=3Dgnu99
-fstack-protector-strong    -Qunused-arguments  -c tree.c -o tree.o
cc  -O2 -pipe  -Wall -DNO_PF=3D1 -fstack-protector -fno-strict-aliasing    =
-Wall
-D__dead=3D'' -MD  -MF.depend.hash.o -MThash.o -std=3Dgnu99
-fstack-protector-strong    -Qunused-arguments  -c hash.c -o hash.o
cc  -O2 -pipe  -Wall -DNO_PF=3D1 -fstack-protector -fno-strict-aliasing    =
-Wall
-D__dead=3D'' -MD  -MF.depend.convert.o -MTconvert.o -std=3Dgnu99
-fstack-protector-strong    -Qunused-arguments  -c convert.c -o convert.o
cc  -O2 -pipe  -Wall -DNO_PF=3D1 -fstack-protector -fno-strict-aliasing    =
-Wall
-D__dead=3D'' -MD  -MF.depend.icmp.o -MTicmp.o -std=3Dgnu99
-fstack-protector-strong    -Qunused-arguments  -c icmp.c -o icmp.o
cc  -O2 -pipe  -Wall -DNO_PF=3D1 -fstack-protector -fno-strict-aliasing    =
-Wall
-D__dead=3D'' -MD  -MF.depend.pfutils.o -MTpfutils.o -std=3Dgnu99
-fstack-protector-strong    -Qunused-arguments  -c pfutils.c -o pfutils.o
cc  -O2 -pipe  -Wall -DNO_PF=3D1 -fstack-protector -fno-strict-aliasing    =
-Wall
-D__dead=3D'' -MD  -MF.depend.sync.o -MTsync.o -std=3Dgnu99
-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 mar=
ked
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

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-232749-7788>