Opened 7 years ago

Closed 7 years ago

#54422 closed defect (fixed)

gnutls @3.5.14: ld: library not found for -lsnowleopardfixes

Reported by: BrentSqAR Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: snowleopard leopard tiger Cc: Schamschula (Marius Schamschula)
Port: gnutls

Description (last modified by ryandesign (Ryan Carsten Schmidt))

whilst configuring the c-compiler: library not found for -lsnowleopardfixes

configure:5377: checking whether the C compiler works
configure:5399: /opt/local/bin/clang-mp-3.7 -pipe -Os -arch x86_64 -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -lsnowleopardfixes -arch x86_64 conftest.c  >&5
ld: library not found for -lsnowleopardfixes
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Attachments (1)

config.log (38.8 KB) - added by BrentSqAR 7 years ago.

Download all attachments as: .zip

Change History (5)

Changed 7 years ago by BrentSqAR

Attachment: config.log added

comment:1 Changed 7 years ago by kencu (Ken)

Ah - I see -- the new gnutls Portfile has the snowleopard_fixes portgroup in it. That has an instruction to depend on the snowleopardfixes port -- but for some reason, it does not pull in the port.

please try this

sudo port -v install snowleopardfixes +universal

and then try gnutls again.

Last edited 7 years ago by kencu (Ken) (previous) (diff)

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

I see what happened. In the portfile, the depends_lib is reset by this

depends_lib     port:gmp \
                port:libidn \
                port:libtasn1 \
 ...

which overwrites the depends_lib-append in the PortGroup, deleting the dependency on snowleopardfixes

Last edited 7 years ago by kencu (Ken) (previous) (diff)

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

Cc: Schamschula added
Description: modified (diff)
Keywords: snowleopard leopard tiger added
Owner: set to ryandesign
Port: gnutls added
Status: newaccepted
Summary: gnutls fails to build - library not found for -lsnowleopardfixesgnutls @3.5.14: ld: library not found for -lsnowleopardfixes

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

Resolution: fixed
Status: acceptedclosed

In 619f637a0f4e55ddd5d6c69f4cc9002242c2f000/macports-ports:

gnutls: Don't override dependencies set by portgroups

Closes: #54422

Note: See TracTickets for help on using tickets.