Opened 2 years ago

Closed 2 years ago

#66253 closed defect (fixed)

wcslib fails on 10.5.8: ld: absolute addressing (perhaps -mdynamic-no-pic) used in _celset from cel.o not allowed in slidable image

Reported by: barracuda156 Owned by: barracuda156
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: leopard Cc:
Port: wcslib

Description

ld warning: codegen with reference kind 14 in _wcsutrne_scanner prevents image from loading in dyld shared cache
ld: absolute addressing (perhaps -mdynamic-no-pic) used in _celset from cel.o not allowed in slidable image. Use '-read_only_relocs suppress' to enable text relocs
collect2: ld returned 1 exit status
make[3]: *** [libwcs.7.12.dylib] Error 1
make[2]: *** [libwcs-7.12.a] Error 2
make[1]: *** [lib] Error 2

Initially I tried enabling universal variant, that failed, but turned out non-universal fails as well.

Attachments (1)

main.log (2.2 MB) - added by barracuda156 2 years ago.

Change History (6)

Changed 2 years ago by barracuda156

Attachment: main.log added

comment:1 Changed 2 years ago by barracuda156

I will make a PR. Suggested by GCC fix works:

configure.ldflags-append \
                    -read_only_relocs suppress

comment:2 Changed 2 years ago by barracuda156

Owner: set to barracuda156
Status: newassigned

comment:3 Changed 2 years ago by kencu (Ken)

that is the standard fix, but only on certain archs and has to be different if muniversal is used.

grep the ports tree for others I fixed and copy the whole block.

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

Replying to kencu:

that is the standard fix, but only on certain archs and has to be different if muniversal is used.

grep the ports tree for others I fixed and copy the whole block.

Thank you! Will check it now.

comment:5 Changed 2 years ago by barracuda156

Resolution: fixed
Status: assignedclosed

In d7c09ae4f5ed38e9c3d50d67b07fbb750d69825e/macports-ports (master):

wcslib: for for 32-bit platforms
Fixes: #48047
Fixes: #66253

Note: See TracTickets for help on using tickets.