Opened 11 months ago
#71832 new defect
p5.34-ffi-platypus @2.100.0 has problem with strnlib
| Reported by: | ballapete (Peter "Pete" Dyballa) | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.10.5 |
| Keywords: | leopard ppc | Cc: | devans@… |
| Port: | p5.34-ffi-platypus |
Description
On (PPC) Leopard, Mac OS X 10.5.8, when buildstarts 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.
Note: See
TracTickets for help on using
tickets.
