Opened 8 years ago

Closed 2 years ago

#52466 closed defect (fixed)

gnuregex @0.12: symbol dyld_stub_binder not found (normally in libSystem.dylib)

Reported by: dgonyier (Dwaine Gonyier) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: leopard tiger Cc: JR1994, kurthindenburg (Kurt Hindenburg)
Port: gnuregex

Description

Build fails. See attached log.

$ sudo port install gnuregex
--->  Fetching archive for gnuregex
--->  Attempting to fetch gnuregex-0.12_2.darwin_9.ppc.tbz2 from http://packages.macports.org/gnuregex
--->  Attempting to fetch gnuregex-0.12_2.darwin_9.ppc.tbz2 from http://lil.fr.packages.macports.org/gnuregex
--->  Attempting to fetch gnuregex-0.12_2.darwin_9.ppc.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/gnuregex
--->  Fetching distfiles for gnuregex
--->  Attempting to fetch regex-0.12.tar.gz from http://distfiles.macports.org/gnuregex
--->  Verifying checksums for gnuregex
--->  Extracting gnuregex
--->  Configuring gnuregex
--->  Building gnuregex
Error: org.macports.build for port gnuregex returned: command execution failed
Please see the log file for port gnuregex for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_gnuregex/gnuregex/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port gnuregex failed


$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.5.8
BuildVersion:   9L31a

Attachments (1)

main.log (48.5 KB) - added by dgonyier (Dwaine Gonyier) 8 years ago.
main.log

Download all attachments as: .zip

Change History (9)

Changed 8 years ago by dgonyier (Dwaine Gonyier)

Attachment: main.log added

main.log

comment:1 Changed 8 years ago by dgonyier (Dwaine Gonyier)

$ arch
ppc

comment:2 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: leopard added
Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned
Summary: gnuregex fails to build on 10.5 (Lion)gnuregex @0.12: symbol dyld_stub_binder not found (normally in libSystem.dylib)
:info:build ld: warning: -macosx_version_min not specificed, assuming 10.6
:info:build ld: symbol dyld_stub_binder not found (normally in libSystem.dylib).  Needed to perform lazy binding to function _memset for architecture ppc

Let me see what I can do about that...

comment:3 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: herminio.hernandezjr@… added
Keywords: tiger added

Has duplicate #52618.

comment:4 Changed 7 years ago by kurthindenburg (Kurt Hindenburg)

Cc: kurthindenburg added

This version is from 1993 - I believe the current site is https://bitbucket.org/mrabarnett/mrab-regex (https://directory.fsf.org/wiki/Regex) - perhaps the port needs renamed and updated.

comment:5 in reply to:  3 Changed 2 years ago by barracuda156

Replying to ryandesign:

Has duplicate #52618.

I have checked, and it is still broken for ppc:

make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_gnuregex/gnuregex/work/regex-0.12'
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
Command failed: cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_gnuregex/gnuregex/work/regex-0.12 && libtool -lSystem -dynamic -install_name /opt/local/lib/libgnuregex.dylib -o libgnuregex.dylib regex.o
Exit code: 1
Error: Failed to build gnuregex: command execution failed
  1. S. Not sure if related, but there was a similar error with g95 which is now fixed: #64188
Last edited 2 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:6 in reply to:  2 Changed 2 years ago by barracuda156

Replying to ryandesign:

:info:build ld: warning: -macosx_version_min not specificed, assuming 10.6
:info:build ld: symbol dyld_stub_binder not found (normally in libSystem.dylib).  Needed to perform lazy binding to function _memset for architecture ppc

Let me see what I can do about that...

It builds with this:

post-build {
    set command "libtool -lSystem -ldylib1.10.5.o -dynamic -install_name ${prefix}/lib/libgnuregex.dylib -o libgnuregex.dylib regex.o"
    ui_debug "$command"
    system "cd ${worksrcpath} && ${command}"
}

comment:7 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

No, we don't need to do that; we should fix it as we fixed #64188, by setting the deployment target properly.

comment:8 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

In 208404e488831406fcb0af62175c1b8d0df63542/macports-ports (master):

gnuregex: Set deployment target to fix build

Closes: #52466

Note: See TracTickets for help on using tickets.