git: 148d4c8dd90e - main - net/librdkafka: work around undefined version symbol error
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 01 Nov 2024 17:47:52 UTC
The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=148d4c8dd90e2fbd7d4ed05eabf06f647790b395 commit 148d4c8dd90e2fbd7d4ed05eabf06f647790b395 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2024-09-10 08:04:03 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2024-11-01 17:47:13 +0000 net/librdkafka: work around undefined version symbol error When building outside of poudriere, net/librdkafka can fail to link, with an error similar to: ld: error: version script assignment of 'global' to symbol 'rd_ut_coverage_check' failed: symbol not defined Work around this by adding -Wl,--undefined-version to LDFLAGS. While here, pet portlint. PR: 275866 Approved by: maintainer timeout (2 weeks) MFH: 2024Q4 --- net/librdkafka/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/librdkafka/Makefile b/net/librdkafka/Makefile index 0a29f744a9a8..3c5421825f54 100644 --- a/net/librdkafka/Makefile +++ b/net/librdkafka/Makefile @@ -1,6 +1,6 @@ PORTNAME= librdkafka -DISTVERSION= 2.3.0 DISTVERSIONPREFIX= v +DISTVERSION= 2.3.0 CATEGORIES= net MAINTAINER= pizzamig@FreeBSD.org @@ -29,6 +29,7 @@ MAKE_ARGS= pkgconfigdir=${PREFIX}/libdata/pkgconfig CONFIGURE_ARGS+= --disable-sasl \ --enable-ssl \ --enable-strip +LDFLAGS+= -Wl,--undefined-version USE_LDCONFIG= yes