From nobody Sat Mar 9 21:38:26 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Tsbxt5W4Qz5F09Q; Sat, 9 Mar 2024 21:38:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tsbxt509hz4bpw; Sat, 9 Mar 2024 21:38:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710020306; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8kDqBCNJS1wq7NOv+UYCXZJ1kH9vjdiX+O/zgXJjT84=; b=RfsxSjxogOHiaOo270GK8Bu568Gc+YCSto1TjWQRs9E14+X05lAORRGPABl2OhzJ1h7hDn RYc1HM1Qd4Csd9Nei6LOq1hk8veSdxBLIzhVVb7QaGROrZ1NMQ8bCdHed1+fbpw50HRbm5 2UCHlfUqHQNzpenHAiBROE9h75yXHFw40OcqGClo/HGXsIhHqCHf0o1BSMWgrMvK4CzGxQ +P69Vivmfh46VJSucOFZwrDkgUFXABwBwhaZaC1UQ88EBr2/BdJzpquu/Vl/tZOyGyncSu k66dpoxXTXg9NBOsbaCDCLdZdPnSAut22FbgQBLS6RXJiPwutDsR5Obd7ZNnqw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710020306; a=rsa-sha256; cv=none; b=AkHPJN5kgDseijWicFbo1JrXB5e9eoDjOoLVSlQPJkuKsP2O+y4/BnF+A+piBJ4glBkLkT O3MsqNGki1lWtqVBm6cIi/PpIgMfPEzfFrR1ghl4BmK8st+4hUAeVgZSdVHYW2FpPW+jBb zbwQq2kLGPKqTyKhPwZavOH4Seo5k9U5hqqdwC/004rHEGDUNKydF+jJRLaOQ0MaZ2Q5bA dpPnsy9wc+jUNnX6my6niKIEP8/w3bVk+WzPNHs31qDkZQEP9VVpEw79F5SBA7Wm5VMk/9 vtgpoyIVYJ0P6I+fFIu+IVe4rmbcqcwATL7KARhgMc8vk0220WjUT8XW1sdqDw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710020306; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8kDqBCNJS1wq7NOv+UYCXZJ1kH9vjdiX+O/zgXJjT84=; b=DCy82jqpitwpz8L9abz+xmEfizQ5sX8xczY71WVLRNQn66/MhtiBhgxC+2I6LmxXXejle0 Z1SmQ+cB5Na2PH43t1a/Pd1NevBhXgP+GVYC7qXV3zfylJaMPX9G4JVNEzEq6OAyvOAe54 ZB26roQ9cHidQp8rw//9xoLGM7bd8EIy42Kctmfur02rE6+SEiS/UuvtAlp03mjgWFdKz/ /IgkZ0rNiMBKbWt9V+zNoO0Paru7U4ujvl8e9GXFx8CTfR52G1OyT6vX/isyqI0C1PlNoc lXwZ39sHJAcEH5BzrISu2RKtSj9Zl6fTtJlcPxHUvOB2XYYovdR92MxzmgpxRA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Tsbxt4bJczJvQ; Sat, 9 Mar 2024 21:38:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 429LcQr3081694; Sat, 9 Mar 2024 21:38:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 429LcQDF081691; Sat, 9 Mar 2024 21:38:26 GMT (envelope-from git) Date: Sat, 9 Mar 2024 21:38:26 GMT Message-Id: <202403092138.429LcQDF081691@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Xin LI Subject: git: 3d75c31b6239 - main - net/openldap26-server: fix build with lld 17 and DEBUG option off List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: delphij X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3d75c31b623969e665a9c83337efe34417cd4b78 Auto-Submitted: auto-generated The branch main has been updated by delphij: URL: https://cgit.FreeBSD.org/ports/commit/?id=3d75c31b623969e665a9c83337efe34417cd4b78 commit 3d75c31b623969e665a9c83337efe34417cd4b78 Author: Dimitry Andric AuthorDate: 2024-03-09 21:37:15 +0000 Commit: Xin LI CommitDate: 2024-03-09 21:37:15 +0000 net/openldap26-server: fix build with lld 17 and DEBUG option off If the DEBUG option for the net/openldap26-server is turned off, building the port will result in: ld: error: version script assignment of 'OPENLDAP_2.200' to symbol 'ldap_dump_connection' failed: symbol not defined ld: error: version script assignment of 'OPENLDAP_2.200' to symbol 'ldap_dump_requests_and_responses' failed: symbol not defined cc: error: linker command failed with exit code 1 (use -v to see invocation) This is because the mentioned symbols are in a #ifdef LDAP_DEBUG block, and will indeed not be defined if DEBUG option is off. Adjust the port Makefile to delete the undefined symbols from the ldap.map file, if the DEBUG option is off. PR: 277585 Reported by: Matt Magoffin MFH: 2024Q1 --- net/openldap26-server/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/net/openldap26-server/Makefile b/net/openldap26-server/Makefile index a11473918662..4b3fb061554a 100644 --- a/net/openldap26-server/Makefile +++ b/net/openldap26-server/Makefile @@ -390,6 +390,11 @@ post-patch: @${REINPLACE_CMD} -E ${CONFIGURE_SED} \ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} .endif +.if !${PORT_OPTIONS:MDEBUG} + @${REINPLACE_CMD} -E \ + -e '/ldap_dump_(connection|requests_and_responses);/d' \ + ${WRKSRC}/libraries/libldap/ldap.map +.endif pre-configure: @(cd ${WRKSRC} && ${LOCALBASE}/bin/autoconf)