From owner-freebsd-ports-bugs@freebsd.org Thu Mar 28 13:43:44 2019 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DC452155D923 for ; Thu, 28 Mar 2019 13:43:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 6CF7C71E6D for ; Thu, 28 Mar 2019 13:43:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 2C8C6155D922; Thu, 28 Mar 2019 13:43:43 +0000 (UTC) Delivered-To: ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 07B8C155D921 for ; Thu, 28 Mar 2019 13:43:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8D03771E60 for ; Thu, 28 Mar 2019 13:43:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id CDD7D2537 for ; Thu, 28 Mar 2019 13:43:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x2SDhfhd026472 for ; Thu, 28 Mar 2019 13:43:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x2SDhf42026471 for ports-bugs@FreeBSD.org; Thu, 28 Mar 2019 13:43:41 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 236850] net/isc-dhcp44-server fails to build with LDAP - unknown type name errors at dhcpd.h & omapip.h Date: Thu, 28 Mar 2019 13:43:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: anton.tonev@sistechnology.bg X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: zi@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Mar 2019 13:43:44 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236850 Bug ID: 236850 Summary: net/isc-dhcp44-server fails to build with LDAP - unknown type name errors at dhcpd.h & omapip.h Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: zi@FreeBSD.org Reporter: anton.tonev@sistechnology.bg Flags: maintainer-feedback?(zi@FreeBSD.org) Assignee: zi@FreeBSD.org The compilation with LDAP of port net/isc-dhcp44-server fails on FreeBSD 11.2-RELEASE-p9 (r344922: Fri Mar 8 14:43:41 EET 2019) amd64, with the err= ors shown below at (#1).=20 That unknown type name errors have been successfully resolved by including isc/boolean.h & isc/int.h & isc/util.h into /usr/ports/net/isc-dhcp44-server/work/dhcp-4.4.1/includes/dhcpd.h, plus including isc/boolean.h into /usr/ports/net/isc-dhcp44-server/work/dhcp-4.4.1/includes/omapip/omapip.h (thanks to the patch at bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D911975). Next errors "undefined reference to dns_fixedname_init" & dns_fixedname_nam= e, shown below at (#2), have been successfully resolved by creating new header file /usr/ports/net/isc-dhcp44-server/work/dhcp-4.4.1/includes/fixedname.h = as listed at users.isc.org/~each/doxygen/bind9/fixedname_8h-source.html, plus including that fixedname.h into /usr/ports/net/isc-dhcp44-server/work/dhcp-4.4.1/includes/omapip/isclib.c Please add that missing content to the port source code. (#1) --- cc -DHAVE_CONFIG_H -I. -I../includes -I.. -DLOCALSTATEDIR=3D'"/var"' -D_PATH_DHCLIENT_SCRIPT=3D'"/usr/local/sbin/dhclient-script"' -D_PATH_DHCLIENT_CONF=3D'"/usr/local/etc/dhclient.conf"' -D_PATH_DHCPD_CONF=3D'"/usr/local/etc/dhcpd.conf"' -I/usr/local/include -L/usr/local/lib -DLDAP_CONFIGURATION -DLDAP_USE_SSL -O2 -pipe -fPIC -fstack-protector -DLDAP_DEPRECATED -fno-strict-aliasing -I../includes -I/usr/ports/net/isc-dhcp44-server/work/dhcp-4.4.1/bind/include -MT alloc.o= -MD -MP -MF .deps/alloc.Tpo -c -o alloc.o alloc.c cc: warning: argument unused during compilation: '-L/usr/local/lib' [-Wunused-command-line-argument] In file included from alloc.c:29: In file included from ../includes/dhcpd.h:97: ../includes/tree.h:307:30: warning: type specifier missing, defaults to 'in= t' [-Wimplicit-int] struct option_cache *, isc_boolean_t); ^ In file included from alloc.c:29: In file included from ../includes/dhcpd.h:101: In file included from ../includes/omapip/omapip_p.h:65: ../includes/omapip/omapip.h:267:1: error: unknown type name 'isc_boolean_t'; did you mean 'isc_token_t'? isc_boolean_t omapi_protocol_authenticated (omapi_object_t *); ^~~~~~~~~~~~~ isc_token_t /usr/local/include/isc/lex.h:135:3: note: 'isc_token_t' declared here } isc_token_t; ^ In file included from alloc.c:29: In file included from ../includes/dhcpd.h:101: ../includes/omapip/omapip_p.h:152:2: error: unknown type name 'isc_boolean_= t'; did you mean 'isc_token_t'? isc_boolean_t insecure; /* Set to allow unauthenticated ^~~~~~~~~~~~~ isc_token_t /usr/local/include/isc/lex.h:135:3: note: 'isc_token_t' declared here } isc_token_t; ^ In file included from alloc.c:29: In file included from ../includes/dhcpd.h:101: ../includes/omapip/omapip_p.h:161:2: error: unknown type name 'isc_boolean_= t'; did you mean 'isc_token_t'? isc_boolean_t insecure; /* Set to allow unauthenticated ^~~~~~~~~~~~~ isc_token_t /usr/local/include/isc/lex.h:135:3: note: 'isc_token_t' declared here } isc_token_t; ^ In file included from alloc.c:29: In file included from ../includes/dhcpd.h:101: ../includes/omapip/omapip_p.h:211:2: error: unknown type name 'isc_boolean_= t'; did you mean 'isc_token_t'? isc_boolean_t closed; /* ISC_TRUE =3D closed, do not use */ ^~~~~~~~~~~~~ isc_token_t /usr/local/include/isc/lex.h:135:3: note: 'isc_token_t' declared here } isc_token_t; ^ In file included from alloc.c:29: ../includes/dhcpd.h:464:2: error: unknown type name 'isc_boolean_t'; did you mean 'isc_token_t'? isc_boolean_t agent_options_stashed; ^~~~~~~~~~~~~ isc_token_t /usr/local/include/isc/lex.h:135:3: note: 'isc_token_t' declared here } isc_token_t; ^ In file included from alloc.c:29: ../includes/dhcpd.h:470:2: error: unknown type name 'isc_boolean_t'; did you mean 'isc_token_t'? isc_boolean_t unicast; ^~~~~~~~~~~~~ isc_token_t /usr/local/include/isc/lex.h:135:3: note: 'isc_token_t' declared here } isc_token_t; ^ In file included from alloc.c:29: ../includes/dhcpd.h:477:2: error: unknown type name 'isc_boolean_t'; did you mean 'isc_token_t'? isc_boolean_t relay_source_port; ^~~~~~~~~~~~~ isc_token_t /usr/local/include/isc/lex.h:135:3: note: 'isc_token_t' declared here } isc_token_t; ^ In file included from alloc.c:29: ../includes/dhcpd.h:1177:2: error: unknown type name 'isc_boolean_t'; did y= ou mean 'isc_token_t'? isc_boolean_t released; ^~~~~~~~~~~~~ isc_token_t /usr/local/include/isc/lex.h:135:3: note: 'isc_token_t' declared here } isc_token_t; ^ In file included from alloc.c:29: ../includes/dhcpd.h:1698:2: error: unknown type name 'isc_uint64_t'; did you mean '__uint64_t'? isc_uint64_t num_active; /* count of active leases */ ^~~~~~~~~~~~ __uint64_t /usr/include/x86/_types.h:61:24: note: '__uint64_t' declared here typedef unsigned long __uint64_t; ^ In file included from alloc.c:29: ../includes/dhcpd.h:1699:2: error: unknown type name 'isc_uint64_t'; did you mean '__uint64_t'? isc_uint64_t num_abandoned; /* count of abandoned lease= s */ ^~~~~~~~~~~~ __uint64_t /usr/include/x86/_types.h:61:24: note: '__uint64_t' declared here typedef unsigned long __uint64_t; ^ In file included from alloc.c:29: ../includes/dhcpd.h:1735:2: error: unknown type name 'isc_uint64_t'; did you mean '__uint64_t'? isc_uint64_t num_total; /* Total number of elements in the pond= */ ^~~~~~~~~~~~ __uint64_t /usr/include/x86/_types.h:61:24: note: '__uint64_t' declared here typedef unsigned long __uint64_t; ^ In file included from alloc.c:29: ../includes/dhcpd.h:1736:2: error: unknown type name 'isc_uint64_t'; did you mean '__uint64_t'? isc_uint64_t num_active; /* Number of elements in the pond in us= e */ ^~~~~~~~~~~~ __uint64_t /usr/include/x86/_types.h:61:24: note: '__uint64_t' declared here typedef unsigned long __uint64_t; ^ In file included from alloc.c:29: ../includes/dhcpd.h:1737:2: error: unknown type name 'isc_uint64_t'; did you mean '__uint64_t'? isc_uint64_t num_abandoned; /* count of abandoned leases */ ^~~~~~~~~~~~ __uint64_t /usr/include/x86/_types.h:61:24: note: '__uint64_t' declared here typedef unsigned long __uint64_t; ^ In file included from alloc.c:29: ../includes/dhcpd.h:1739:2: error: unknown type name 'isc_uint64_t'; did you mean '__uint64_t'? isc_uint64_t low_threshold; /* low threshold to restart logging= */ ^~~~~~~~~~~~ __uint64_t /usr/include/x86/_types.h:61:24: note: '__uint64_t' declared here typedef unsigned long __uint64_t; ^ In file included from alloc.c:29: ../includes/dhcpd.h:1871:30: error: unknown type name 'isc_boolean_t'; did = you mean 'isc_token_t'? struct option_cache *oc, isc_boolean_t appendp); ^~~~~~~~~~~~~ isc_token_t /usr/local/include/isc/lex.h:135:3: note: 'isc_token_t' declared here } isc_token_t; ^ In file included from alloc.c:29: ../includes/dhcpd.h:1956:27: error: unknown type name 'isc_boolean_t'; did = you mean 'isc_token_t'? struct option_cache *, isc_boolean_t appendp); ^~~~~~~~~~~~~ isc_token_t /usr/local/include/isc/lex.h:135:3: note: 'isc_token_t' declared here } isc_token_t; ^ In file included from alloc.c:29: ../includes/dhcpd.h:2044:27: error: unknown type name 'isc_boolean_t'; did = you mean 'isc_token_t'? struct option_cache *, isc_boolean_t appendp); ^~~~~~~~~~~~~ isc_token_t /usr/local/include/isc/lex.h:135:3: note: 'isc_token_t' declared here } isc_token_t; ^ In file included from alloc.c:29: ../includes/dhcpd.h:2072:35: warning: type specifier missing, defaults to '= int' [-Wimplicit-int] int, int, const struct iaddr *, isc_boolean_t); ^ ../includes/dhcpd.h:2227:30: warning: type specifier missing, defaults to '= int' [-Wimplicit-int] struct dhcp_ddns_cb *, isc_boolean_t); ^ ../includes/dhcpd.h:2453:1: error: unknown type name 'isc_boolean_t'; did y= ou mean 'isc_token_t'? isc_boolean_t server_duid_isset(void); ^~~~~~~~~~~~~ isc_token_t /usr/local/include/isc/lex.h:135:3: note: 'isc_token_t' declared here } isc_token_t; ^ In file included from alloc.c:29: ../includes/dhcpd.h:2855:37: warning: type specifier missing, defaults to '= int' [-Wimplicit-int] int, const struct iaddr *, isc_boolean= _t); ^ ../includes/dhcpd.h:2946:1: error: unknown type name 'isc_boolean_t'; did y= ou mean 'isc_token_t'? isc_boolean_t is_cidr_mask_valid(const struct iaddr *addr, int bits); ^~~~~~~~~~~~~ isc_token_t /usr/local/include/isc/lex.h:135:3: note: 'isc_token_t' declared here } isc_token_t; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=3D] 4 warnings and 20 errors generated. gmake[4]: *** [Makefile:500: alloc.o] Error 1 gmake[4]: Leaving directory '/usr/ports/net/isc-dhcp44-server/work/dhcp-4.4.1/common' gmake[3]: *** [Makefile:563: all-recursive] Error 1 gmake[3]: Leaving directory '/usr/ports/net/isc-dhcp44-server/work/dhcp-4.4.1/common' gmake[2]: *** [Makefile:462: all-recursive] Error 1 gmake[2]: Leaving directory '/usr/ports/net/isc-dhcp44-server/work/dhcp-4.4= .1' *** Error code 1 Stop. make[1]: stopped in /usr/ports/net/isc-dhcp44-server *** Error code 1 Stop. make: stopped in /usr/ports/net/isc-dhcp44-server (#2) --- cc -O2 -pipe -fPIC -fstack-protector -DLDAP_DEPRECATED -fno-strict-aliasi= ng=20=20 -I../includes -I/usr/ports/net/isc-dhcp44-server/work/dhcp-4.4.1/bind/inclu= de=20 -fstack-protector -o svtest test.o libomapi.a /usr/ports/net/isc-dhcp44-server/work/dhcp-4.4.1/bind/bind-9.11.2-P1/lib/ir= s/libirs.a /usr/ports/net/isc-dhcp44-server/work/dhcp-4.4.1/bind/bind-9.11.2-P1/lib/dn= s/libdns.a /usr/ports/net/isc-dhcp44-server/work/dhcp-4.4.1/bind/bind-9.11.2-P1/lib/is= ccfg/libisccfg.a /usr/ports/net/isc-dhcp44-server/work/dhcp-4.4.1/bind/bind-9.11.2-P1/lib/is= c/libisc.a -lssl -L/usr/local/lib libomapi.a(isclib.o): In function `dhcp_isc_name': isclib.c:(.text+0x463): undefined reference to `dns_fixedname_init' isclib.c:(.text+0x46b): undefined reference to `dns_fixedname_name' libomapi.a(isclib.o): In function `isclib_make_dst_key': isclib.c:(.text+0x5dc): undefined reference to `dns_fixedname_init' isclib.c:(.text+0x5e4): undefined reference to `dns_fixedname_name' cc: error: linker command failed with exit code 1 (use -v to see invocation) gmake[3]: *** [Makefile:429: svtest] Error 1 gmake[3]: Leaving directory '/usr/ports/net/isc-dhcp44-server/work/dhcp-4.4.1/omapip' gmake[2]: *** [Makefile:462: all-recursive] Error 1 gmake[2]: Leaving directory '/usr/ports/net/isc-dhcp44-server/work/dhcp-4.4= .1' *** Error code 1 Stop. make[1]: stopped in /usr/ports/net/isc-dhcp44-server *** Error code 1 Stop. make: stopped in /usr/ports/net/isc-dhcp44-server --=20 You are receiving this mail because: You are the assignee for the bug.=