[MacPorts] #71680: gnuregex fails on powerpc: symbol dyld_stub_binding_helper not defined for architecture ppc
MacPorts
noreply at macports.org
Mon Dec 30 17:00:01 UTC 2024
#71680: gnuregex fails on powerpc: symbol dyld_stub_binding_helper not defined for
architecture ppc
---------------------------+--------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Resolution: | Keywords:
Port: gnuregex |
---------------------------+--------------------
Comment (by kencu):
no, that's not it, I think. On 10.5 PPC, the build fails similarly.
Linking it manually also fails.
{{{
$ libtool -lSystem -dynamic -install_name ${prefix}/lib/libgnuregex.dylib
-o libgnuregex.dylib regex.o
ld: symbol dyld_stub_binding_helper not defined (usually in
crt1.o/dylib1.o/bundle1.o) for architecture ppc
fatal error: libtool: internal link edit command failed
}}}
that symbol is supposed to be found in libSystem, and it is there:
{{{
LeopardG5:regex-0.12 $ nm -a -arch ppc /usr/lib/libSystem.dylib | grep
dyld_stub_binding_helper
000b25c4 t dyld_stub_binding_helper
}}}
Hmm. libtool weirdness.
Ignoring libtool,and changing the link command to this, does work:
{{{
post-build {
system -W ${worksrcpath}
"MACOSX_DEPLOYMENT_TARGET=${macosx_deployment_target} ${configure.cc}
-lSystem -dynamiclib -install_name ${prefix}/lib/libgnuregex.dylib -o
libgnuregex.dylib regex.o"
}
}}}
As to exactly why libtool is not working, not sure -- we have libtool
experts around MacPorts who would know better than I do.
--
Ticket URL: <https://trac.macports.org/ticket/71680#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list