Ticket #24749 (closed defect: fixed)
attica fails to build on Tiger
| Reported by: | roberto@… | Owned by: | snc@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.8.2 |
| Keywords: | Cc: | sharky@…, ryandesign@… | |
| Port: | attica |
Description
When updating today, attica failed to build. I have attached the complete log.
Attachments
Change History
comment:1 Changed 3 years ago by ryandesign@…
- Owner changed from macports-tickets@… to snc@…
- Cc sharky@…, ryandesign@… added
- Port set to attica
- Summary changed from attica fails to build to attica fails to build on Tiger
The relevant lines in the log are:
ld: warning can't open dynamic library: /Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib/libz.1.dylib referenced from: /opt/local/libexec/qt4-mac/lib/QtCore.framework/QtCore (checking for undefined symbols may be affected) (No such file or directory, errno = 2) ld: warning can't open dynamic library: /Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib/libssl.0.9.8.dylib referenced from: /opt/local/libexec/qt4-mac/lib/QtNetwork.framework/QtNetwork (checking for undefined symbols may be affected) (No such file or directory, errno = 2) ld: warning can't open dynamic library: /Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib/libcrypto.0.9.8.dylib referenced from: /opt/local/libexec/qt4-mac/lib/QtNetwork.framework/QtNetwork (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
It means the link flags -lz -lssl -lcrypto are missing.
This problem is unique to using a Mac OS X SDK on Tiger; with Leopard and later Xcode figures this out for you. In this case there's not even really a reason to be using an SDK since we're building on i386 for i386. But cmake seems to decide that it should always use the SDK when on Tiger, thus causing this problem. We could work around it by either telling cmake to not use the SDK, or by adding the required -l flags.
comment:2 Changed 3 years ago by snc@…
So this wasn't a result of qt4-mac referencing non-existant paths? It sounds like we're overriding qt4-mac...
comment:4 follow-up: ↓ 5 Changed 3 years ago by snc@…
- Status changed from assigned to closed
- Resolution set to fixed
Untested patch using additional LD flags when compiled on Tiger, r68174.
comment:5 in reply to: ↑ 4 Changed 3 years ago by cenci@…
- Status changed from closed to reopened
- Resolution fixed deleted

