Opened 10 years ago

Closed 10 years ago

#44716 closed defect (wontfix)

cmake @3.0.0_3 - Linking fails with OSX 10.4 and Xcode 2.5

Reported by: lars.haulin@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc:
Port: cmake

Description

The path to the dependencies of every dynamic library gets prefixed with "/Developer/SDKs/MacOSX10.4u.sdk". Excerpt from main.log (full log attached)

:info:build Linking CXX executable ../bin/ccmake
:info:build /usr/bin/ld: warning can't open dynamic library: /Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib/liblzo2.2.dylib referenced from: /opt/local/lib/libarchive.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)

The library libarchive.dylib seems to be correct though:

$ otool -vL /opt/local/lib/libarchive.dylib 
/opt/local/lib/libarchive.dylib:
        /opt/local/lib/libarchive.13.dylib (compatibility version 15.0.0, current version 15.2.0)
        time stamp 1408525378 Wed Aug 20 11:02:58 2014
        /opt/local/lib/liblzo2.2.dylib (compatibility version 3.0.0, current version 3.0.0)
        time stamp 1408525226 Wed Aug 20 11:00:26 2014
        /opt/local/lib/liblzma.5.dylib (compatibility version 6.0.0, current version 6.5.0)
        time stamp 1408488511 Wed Aug 20 00:48:31 2014
        /opt/local/lib/libcharset.1.dylib (compatibility version 2.0.0, current version 2.0.0)
        time stamp 1408483786 Tue Aug 19 23:29:46 2014
        /opt/local/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.6)
        time stamp 1408489178 Wed Aug 20 00:59:38 2014
        /opt/local/lib/libxml2.2.dylib (compatibility version 12.0.0, current version 12.1.0)
        time stamp 1408525105 Wed Aug 20 10:58:25 2014
        /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.8)
        time stamp 1408488528 Wed Aug 20 00:48:48 2014
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.11)
        time stamp 1393884570 Mon Mar  3 23:09:30 2014
        /opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.1.0)
        time stamp 1408483847 Tue Aug 19 23:30:47 2014
        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
        time stamp 1177055105 Fri Apr 20 09:45:05 2007
$

Attachments (1)

main.log (166.8 KB) - added by lars.haulin@… 10 years ago.
Full log from build process

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by lars.haulin@…

Attachment: main.log added

Full log from build process

comment:1 Changed 10 years ago by lars.haulin@…

I bypassed the error with "sudo ln -s /Developer/SDKs/MacOSX10.4u.sdk/opt /opt/" , but I guess there are better solutions...

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

Yes, this is a well-known bug in the linker on Tiger PowerPC when making universal binaries.

Do you have the apple-gcc42 port installed with the bootstrap variant? If so, reinstall it without the bootstrap variant. This will install the ld64 port, which provides a newer version of the linker that IIRC does not have this bug anymore.

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

Resolution: wontfix
Status: newclosed

The symlink that you created is also a viable workaround for the problem.

Note: See TracTickets for help on using tickets.