[MacPorts] #71832: p5.34-ffi-platypus @2.100.0 has problem with strnlib
MacPorts
noreply at macports.org
Tue Jan 14 12:11:53 UTC 2025
#71832: p5.34-ffi-platypus @2.100.0 has problem with strnlib
-------------------------+--------------------------------
Reporter: ballapete | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Keywords: leopard ppc | Port: p5.34-ffi-platypus
-------------------------+--------------------------------
On (PPC) Leopard, Mac OS X 10.5.8, when `build`starts Apple's crash log
handler opens a window explaining something like
{{{
Dyld Error Message:
Symbol not found: _strnlen
Referenced from: /opt/local/var/macports/build/_Users_ctest_perll_p5
-ffi-platypus/p5.34-ffi-platypus/work/FFI-Platypus-2.10/.tmp/ffi-probe-
sWrLNQ/libeval81.dylib
Expected in: dynamic lookup
}}}
This can be overcome with a `patch` like this one:
{{{
--- Makefile~ 2025-01-14 12:15:49.000000000 +0100
+++ Makefile 2025-01-14 12:18:07.000000000 +0100
@@ -41,14 +41,14 @@
CC = /usr/bin/gcc-4.2
CCCDLFLAGS =
CCDLFLAGS =
-CPPRUN = /usr/bin/cc -I/opt/local/include -E
+CPPRUN = /usr/bin/cc -I/opt/local/include/LegacySupport
-I/opt/local/include -E
DLEXT = bundle
DLSRC = dl_dlopen.xs
EXE_EXT =
FULL_AR = /opt/local/bin/ar
LD = /usr/bin/gcc-4.2
-LDDLFLAGS = -L/opt/local/lib -bundle -undefined dynamic_lookup
-L/opt/local/lib -Wl,-headerpad_max_install_names -fstack-protector
-LDFLAGS = -L/opt/local/lib -L/opt/local/lib
-Wl,-headerpad_max_install_names -fstack-protector
+LDDLFLAGS = -L/opt/local/lib -lMacportsLegacySupport -bundle -undefined
dynamic_lookup -Wl,-headerpad_max_install_names -fstack-protector
+LDFLAGS = -L/opt/local/lib -lMacportsLegacySupport
-Wl,-headerpad_max_install_names -fstack-protector
LIBC =
LIB_EXT = .a
OBJ_EXT = .o
}}}
– **after** the `configure` phase. Because Perl modules do not enjoy
Legacy_Support, somethings else is needed.
--
Ticket URL: <https://trac.macports.org/ticket/71832>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list