tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

devel/gnustep-objc: Undefined references to libunwind symbols


devel/gnustep-objc currently doesn't build due to this linkage failure:

The library does refer to symbols from LLVM libunwind without linking with -lunwind, but what confuses me is that exactly the same package built fine on Feb 25 2022. To my surprise libobjc at that time did contain definitions of those symbols even though the source code didn't.

Does anyone have any clue what's going on? I can build the package with the attached diff, but I'm not sure if it's the correct way to fix it.
Index: Makefile
RCS file: /cvsroot/pkgsrc/devel/gnustep-objc/Makefile,v
retrieving revision 1.36
diff -u -u -r1.36 Makefile
--- Makefile	28 Nov 2021 15:45:13 -0000	1.36
+++ Makefile	8 Sep 2022 09:44:24 -0000
@@ -20,6 +20,10 @@
+# libobjc uses symbols from LLVM libunwind (see ${WRKSRC}/unwind-itanium.h)
+# but CMakeLists.txt does not mention the library.
 INSTALLATION_DIRS=		lib include/objc
@@ -41,5 +45,6 @@
 PLIST.objcxx=	yes
+.include "../../lang/libunwind/"
 .include "../../mk/"
 .include "../../mk/"

Home | Main Index | Thread Index | Old Index