Opened 14 years ago

Closed 14 years ago

#27464 closed defect (fixed)

qt4-mac @4.7.1 fails build

Reported by: roberto@… Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: qt4-mac

Description

Building of qt4-mac @4.7.1 fails with the following error:

:info:build /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning can't open dynamic library: /Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib/libQtCLucene.4.dylib referenced from: /Developer/SDKs/MacOSX10.4u.sdk/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.7.1/lib/libQtHelp.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)

The complete build log is attached.

Apparently, the file's actual location cannot be discerned by the build system. A simple find command yields the following possibilities:

/opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.7.1/lib/libQtCLucene.4.dylib
/opt/local/var/macports/software/qt4-mac/4.6.3_6/opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib

Attachments (4)

main.log.bz2 (111.1 KB) - added by roberto@… 14 years ago.
main_with_23284_patch.log.bz2 (123.3 KB) - added by roberto@… 14 years ago.
main_without_opt_symlink.log.bz2 (113.8 KB) - added by roberto@… 14 years ago.
automoc_main.log.bz2 (3.7 KB) - added by roberto@… 14 years ago.

Download all attachments as: .zip

Change History (29)

Changed 14 years ago by roberto@…

Attachment: main.log.bz2 added

comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to michaelld@…

comment:2 Changed 14 years ago by michaelld (Michael Dickens)

Can you try the patch from ticket #23284? I think your issue is duplicate of that one, but as I don't have 10.4 I can't test out this guess.

comment:3 Changed 14 years ago by roberto@…

That did not work. I have attached the updated build log.

Changed 14 years ago by roberto@…

comment:4 Changed 14 years ago by michaelld (Michael Dickens)

Thank you for the report. The patch did work for this specific problem, but the build broke a bit further down; not sure why though. Can you report back the results of (assuming you haven't 'clean'ed the build yet):

ls -lAF `port dir qt4-mac`/work/qt-everywhere-opensource-src-4.7.1/lib

and

ls -lAF /Developer/SDKs/MacOSX10.6.sdk/opt

comment:5 Changed 14 years ago by roberto@…

The first command gives this output:

-rw-r--r--    1 root  admin       75B Nov  5 21:55 README
drwxr-xr-x   83 root  admin        2K Nov  5 21:55 fonts/
-rw-r--r--    1 root  admin        1K Nov 27 13:03 libQAxContainer.prl
-rw-r--r--    1 root  admin        1K Nov 27 13:03 libQAxServer.prl
-rwxr-xr-x    1 root  admin        3M Nov 27 13:31 libQt3Support.4.7.1.dylib*
lrwxr-xr-x    1 root  admin       25B Nov 27 13:31 libQt3Support.4.7.dylib@ -> libQt3Support.4.7.1.dylib
lrwxr-xr-x    1 root  admin       25B Nov 27 13:31 libQt3Support.4.dylib@ -> libQt3Support.4.7.1.dylib
lrwxr-xr-x    1 root  admin       25B Nov 27 13:31 libQt3Support.dylib@ -> libQt3Support.4.7.1.dylib
-rw-r--r--    1 root  admin      883B Nov 27 13:28 libQt3Support.la
-rw-r--r--    1 root  admin        1K Nov 27 13:28 libQt3Support.prl
-rw-r--r--    1 root  admin      955B Nov 27 13:28 libQt3Support_debug.la
-rw-r--r--    1 root  admin        1K Nov 27 13:28 libQt3Support_debug.prl
-rwxr-xr-x    1 root  admin        1M Nov 27 14:43 libQtCLucene.4.7.1.dylib*
lrwxr-xr-x    1 root  admin       24B Nov 27 14:43 libQtCLucene.4.7.dylib@ -> libQtCLucene.4.7.1.dylib
lrwxr-xr-x    1 root  admin       24B Nov 27 14:43 libQtCLucene.4.dylib@ -> libQtCLucene.4.7.1.dylib
lrwxr-xr-x    1 root  admin       24B Nov 27 14:43 libQtCLucene.dylib@ -> libQtCLucene.4.7.1.dylib
-rw-r--r--    1 root  admin      840B Nov 27 14:42 libQtCLucene.la
-rw-r--r--    1 root  admin        1K Nov 27 14:42 libQtCLucene.prl
-rw-r--r--    1 root  admin      888B Nov 27 14:42 libQtCLucene_debug.la
-rw-r--r--    1 root  admin        1K Nov 27 14:42 libQtCLucene_debug.prl
-rwxr-xr-x    1 root  admin        3M Nov 27 13:11 libQtCore.4.7.1.dylib*
lrwxr-xr-x    1 root  admin       21B Nov 27 13:11 libQtCore.4.7.dylib@ -> libQtCore.4.7.1.dylib
lrwxr-xr-x    1 root  admin       21B Nov 27 13:11 libQtCore.4.dylib@ -> libQtCore.4.7.1.dylib
lrwxr-xr-x    1 root  admin       21B Nov 27 13:11 libQtCore.dylib@ -> libQtCore.4.7.1.dylib
-rw-r--r--    1 root  admin      657B Nov 27 13:09 libQtCore.la
-rw-r--r--    1 root  admin        1K Nov 27 13:09 libQtCore.prl
-rw-r--r--    1 root  admin      699B Nov 27 13:09 libQtCore_debug.la
-rw-r--r--    1 root  admin        1K Nov 27 13:09 libQtCore_debug.prl
-rwxr-xr-x    1 root  admin      643K Nov 27 13:15 libQtDBus.4.7.1.dylib*
lrwxr-xr-x    1 root  admin       21B Nov 27 13:15 libQtDBus.4.7.dylib@ -> libQtDBus.4.7.1.dylib
lrwxr-xr-x    1 root  admin       21B Nov 27 13:15 libQtDBus.4.dylib@ -> libQtDBus.4.7.1.dylib
lrwxr-xr-x    1 root  admin       21B Nov 27 13:15 libQtDBus.dylib@ -> libQtDBus.4.7.1.dylib
-rw-r--r--    1 root  admin      827B Nov 27 13:14 libQtDBus.la
-rw-r--r--    1 root  admin        1K Nov 27 13:14 libQtDBus.prl
-rw-r--r--    1 root  admin      881B Nov 27 13:14 libQtDBus_debug.la
-rw-r--r--    1 root  admin        1K Nov 27 13:14 libQtDBus_debug.prl
-rwxr-xr-x    1 root  admin        4M Nov 27 13:53 libQtDeclarative.4.7.1.dylib*
lrwxr-xr-x    1 root  admin       28B Nov 27 13:53 libQtDeclarative.4.7.dylib@ -> libQtDeclarative.4.7.1.dylib
lrwxr-xr-x    1 root  admin       28B Nov 27 13:53 libQtDeclarative.4.dylib@ -> libQtDeclarative.4.7.1.dylib
lrwxr-xr-x    1 root  admin       28B Nov 27 13:53 libQtDeclarative.dylib@ -> libQtDeclarative.4.7.1.dylib
-rw-r--r--    1 root  admin      942B Nov 27 13:47 libQtDeclarative.la
-rw-r--r--    1 root  admin        1K Nov 27 13:47 libQtDeclarative.prl
-rw-r--r--    1 root  admin        1K Nov 27 13:47 libQtDeclarative_debug.la
-rw-r--r--    1 root  admin        1K Nov 27 13:47 libQtDeclarative_debug.prl
-rwxr-xr-x    1 root  admin        7M Nov 27 14:50 libQtDesigner.4.7.1.dylib*
lrwxr-xr-x    1 root  admin       25B Nov 27 14:50 libQtDesigner.4.7.dylib@ -> libQtDesigner.4.7.1.dylib
lrwxr-xr-x    1 root  admin       25B Nov 27 14:50 libQtDesigner.4.dylib@ -> libQtDesigner.4.7.1.dylib
lrwxr-xr-x    1 root  admin       25B Nov 27 14:50 libQtDesigner.dylib@ -> libQtDesigner.4.7.1.dylib
-rw-r--r--    1 root  admin        1K Nov 27 14:47 libQtDesigner.prl
-rwxr-xr-x    1 root  admin        3M Nov 27 14:53 libQtDesignerComponents.4.7.1.dylib*
lrwxr-xr-x    1 root  admin       35B Nov 27 14:53 libQtDesignerComponents.4.7.dylib@ -> libQtDesignerComponents.4.7.1.dylib
lrwxr-xr-x    1 root  admin       35B Nov 27 14:53 libQtDesignerComponents.4.dylib@ -> libQtDesignerComponents.4.7.1.dylib
lrwxr-xr-x    1 root  admin       35B Nov 27 14:53 libQtDesignerComponents.dylib@ -> libQtDesignerComponents.4.7.1.dylib
-rw-r--r--    1 root  admin        1K Nov 27 14:50 libQtDesignerComponents.prl
-rw-r--r--    1 root  admin      999B Nov 27 14:50 libQtDesignerComponents_debug.prl
-rw-r--r--    1 root  admin        1K Nov 27 14:47 libQtDesigner_debug.prl
-rwxr-xr-x    1 root  admin       13M Nov 27 13:28 libQtGui.4.7.1.dylib*
lrwxr-xr-x    1 root  admin       20B Nov 27 13:28 libQtGui.4.7.dylib@ -> libQtGui.4.7.1.dylib
lrwxr-xr-x    1 root  admin       20B Nov 27 13:28 libQtGui.4.dylib@ -> libQtGui.4.7.1.dylib
lrwxr-xr-x    1 root  admin       20B Nov 27 13:28 libQtGui.dylib@ -> libQtGui.4.7.1.dylib
-rw-r--r--    1 root  admin      812B Nov 27 13:15 libQtGui.la
-rw-r--r--    1 root  admin        1K Nov 27 13:15 libQtGui.prl
-rw-r--r--    1 root  admin      860B Nov 27 13:16 libQtGui_debug.la
-rw-r--r--    1 root  admin        1K Nov 27 13:16 libQtGui_debug.prl
-rwxr-xr-x    1 root  admin      661K Nov 27 14:44 libQtHelp.4.7.1.dylib*
lrwxr-xr-x    1 root  admin       21B Nov 27 14:44 libQtHelp.4.7.dylib@ -> libQtHelp.4.7.1.dylib
lrwxr-xr-x    1 root  admin       21B Nov 27 14:44 libQtHelp.4.dylib@ -> libQtHelp.4.7.1.dylib
lrwxr-xr-x    1 root  admin       21B Nov 27 14:44 libQtHelp.dylib@ -> libQtHelp.4.7.1.dylib
-rw-r--r--    1 root  admin      855B Nov 27 14:43 libQtHelp.la
-rw-r--r--    1 root  admin        1K Nov 27 14:43 libQtHelp.prl
-rw-r--r--    1 root  admin      927B Nov 27 14:43 libQtHelp_debug.la
-rw-r--r--    1 root  admin        1K Nov 27 14:43 libQtHelp_debug.prl
-rw-r--r--    1 root  admin      974B Nov 27 13:03 libQtMeeGoGraphicsSystemHelper.la
-rw-r--r--    1 root  admin        1K Nov 27 13:03 libQtMeeGoGraphicsSystemHelper.prl
-rw-r--r--    1 root  admin        1K Nov 27 13:03 libQtMeeGoGraphicsSystemHelper_debug.la
-rw-r--r--    1 root  admin        1K Nov 27 13:03 libQtMeeGoGraphicsSystemHelper_debug.prl
-rwxr-xr-x    1 root  admin      231K Nov 27 13:41 libQtMultimedia.4.7.1.dylib*
lrwxr-xr-x    1 root  admin       27B Nov 27 13:41 libQtMultimedia.4.7.dylib@ -> libQtMultimedia.4.7.1.dylib
lrwxr-xr-x    1 root  admin       27B Nov 27 13:41 libQtMultimedia.4.dylib@ -> libQtMultimedia.4.7.1.dylib
lrwxr-xr-x    1 root  admin       27B Nov 27 13:41 libQtMultimedia.dylib@ -> libQtMultimedia.4.7.1.dylib
-rw-r--r--    1 root  admin      966B Nov 27 13:41 libQtMultimedia.la
-rw-r--r--    1 root  admin        1K Nov 27 13:41 libQtMultimedia.prl
-rw-r--r--    1 root  admin     1020B Nov 27 13:41 libQtMultimedia_debug.la
-rw-r--r--    1 root  admin        1K Nov 27 13:41 libQtMultimedia_debug.prl
-rwxr-xr-x    1 root  admin        1M Nov 27 13:13 libQtNetwork.4.7.1.dylib*
lrwxr-xr-x    1 root  admin       24B Nov 27 13:13 libQtNetwork.4.7.dylib@ -> libQtNetwork.4.7.1.dylib
lrwxr-xr-x    1 root  admin       24B Nov 27 13:13 libQtNetwork.4.dylib@ -> libQtNetwork.4.7.1.dylib
lrwxr-xr-x    1 root  admin       24B Nov 27 13:13 libQtNetwork.dylib@ -> libQtNetwork.4.7.1.dylib
-rw-r--r--    1 root  admin      840B Nov 27 13:12 libQtNetwork.la
-rw-r--r--    1 root  admin        1K Nov 27 13:12 libQtNetwork.prl
-rw-r--r--    1 root  admin      888B Nov 27 13:12 libQtNetwork_debug.la
-rw-r--r--    1 root  admin        1K Nov 27 13:12 libQtNetwork_debug.prl
-rwxr-xr-x    1 root  admin        1M Nov 27 13:33 libQtOpenGL.4.7.1.dylib*
lrwxr-xr-x    1 root  admin       23B Nov 27 13:33 libQtOpenGL.4.7.dylib@ -> libQtOpenGL.4.7.1.dylib
lrwxr-xr-x    1 root  admin       23B Nov 27 13:33 libQtOpenGL.4.dylib@ -> libQtOpenGL.4.7.1.dylib
lrwxr-xr-x    1 root  admin       23B Nov 27 13:33 libQtOpenGL.dylib@ -> libQtOpenGL.4.7.1.dylib
-rw-r--r--    1 root  admin      841B Nov 27 13:32 libQtOpenGL.la
-rw-r--r--    1 root  admin        1K Nov 27 13:32 libQtOpenGL.prl
-rw-r--r--    1 root  admin      895B Nov 27 13:32 libQtOpenGL_debug.la
-rw-r--r--    1 root  admin        1K Nov 27 13:32 libQtOpenGL_debug.prl
-rw-r--r--    1 root  admin      841B Nov 27 13:02 libQtOpenVG.la
-rw-r--r--    1 root  admin        1K Nov 27 13:02 libQtOpenVG.prl
-rw-r--r--    1 root  admin      895B Nov 27 13:02 libQtOpenVG_debug.la
-rw-r--r--    1 root  admin        1K Nov 27 13:02 libQtOpenVG_debug.prl
-rw-r--r--    1 root  admin      802B Nov 27 13:03 libQtRemote.prl
-rwxr-xr-x    1 root  admin        3M Nov 27 13:46 libQtScript.4.7.1.dylib*
lrwxr-xr-x    1 root  admin       23B Nov 27 13:46 libQtScript.4.7.dylib@ -> libQtScript.4.7.1.dylib
lrwxr-xr-x    1 root  admin       23B Nov 27 13:46 libQtScript.4.dylib@ -> libQtScript.4.7.1.dylib
lrwxr-xr-x    1 root  admin       23B Nov 27 13:46 libQtScript.dylib@ -> libQtScript.4.7.1.dylib
-rw-r--r--    1 root  admin      833B Nov 27 13:42 libQtScript.la
-rw-r--r--    1 root  admin        1K Nov 27 13:42 libQtScript.prl
-rwxr-xr-x    1 root  admin        1M Nov 27 14:40 libQtScriptTools.4.7.1.dylib*
lrwxr-xr-x    1 root  admin       28B Nov 27 14:40 libQtScriptTools.4.7.dylib@ -> libQtScriptTools.4.7.1.dylib
lrwxr-xr-x    1 root  admin       28B Nov 27 14:40 libQtScriptTools.4.dylib@ -> libQtScriptTools.4.7.1.dylib
lrwxr-xr-x    1 root  admin       28B Nov 27 14:40 libQtScriptTools.dylib@ -> libQtScriptTools.4.7.1.dylib
-rw-r--r--    1 root  admin      887B Nov 27 14:39 libQtScriptTools.la
-rw-r--r--    1 root  admin        1K Nov 27 14:39 libQtScriptTools.prl
-rw-r--r--    1 root  admin      947B Nov 27 14:39 libQtScriptTools_debug.la
-rw-r--r--    1 root  admin        1K Nov 27 14:39 libQtScriptTools_debug.prl
-rw-r--r--    1 root  admin      881B Nov 27 13:42 libQtScript_debug.la
-rw-r--r--    1 root  admin        1K Nov 27 13:42 libQtScript_debug.prl
-rwxr-xr-x    1 root  admin      315K Nov 27 13:14 libQtSql.4.7.1.dylib*
lrwxr-xr-x    1 root  admin       20B Nov 27 13:14 libQtSql.4.7.dylib@ -> libQtSql.4.7.1.dylib
lrwxr-xr-x    1 root  admin       20B Nov 27 13:14 libQtSql.4.dylib@ -> libQtSql.4.7.1.dylib
lrwxr-xr-x    1 root  admin       20B Nov 27 13:14 libQtSql.dylib@ -> libQtSql.4.7.1.dylib
-rw-r--r--    1 root  admin      812B Nov 27 13:13 libQtSql.la
-rw-r--r--    1 root  admin        1K Nov 27 13:13 libQtSql.prl
-rw-r--r--    1 root  admin      860B Nov 27 13:13 libQtSql_debug.la
-rw-r--r--    1 root  admin        1K Nov 27 13:13 libQtSql_debug.prl
-rwxr-xr-x    1 root  admin      452K Nov 27 13:41 libQtSvg.4.7.1.dylib*
lrwxr-xr-x    1 root  admin       20B Nov 27 13:41 libQtSvg.4.7.dylib@ -> libQtSvg.4.7.1.dylib
lrwxr-xr-x    1 root  admin       20B Nov 27 13:41 libQtSvg.4.dylib@ -> libQtSvg.4.7.1.dylib
lrwxr-xr-x    1 root  admin       20B Nov 27 13:41 libQtSvg.dylib@ -> libQtSvg.4.7.1.dylib
-rw-r--r--    1 root  admin      820B Nov 27 13:41 libQtSvg.la
-rw-r--r--    1 root  admin        1K Nov 27 13:41 libQtSvg.prl
-rw-r--r--    1 root  admin      874B Nov 27 13:41 libQtSvg_debug.la
-rw-r--r--    1 root  admin        1K Nov 27 13:41 libQtSvg_debug.prl
-rwxr-xr-x    1 root  admin      188K Nov 27 13:14 libQtTest.4.7.1.dylib*
lrwxr-xr-x    1 root  admin       21B Nov 27 13:14 libQtTest.4.7.dylib@ -> libQtTest.4.7.1.dylib
lrwxr-xr-x    1 root  admin       21B Nov 27 13:14 libQtTest.4.dylib@ -> libQtTest.4.7.1.dylib
lrwxr-xr-x    1 root  admin       21B Nov 27 13:14 libQtTest.dylib@ -> libQtTest.4.7.1.dylib
-rw-r--r--    1 root  admin      887B Nov 27 13:14 libQtTest.la
-rw-r--r--    1 root  admin        1K Nov 27 13:14 libQtTest.prl
-rw-r--r--    1 root  admin      935B Nov 27 13:14 libQtTest_debug.la
-rw-r--r--    1 root  admin        1K Nov 27 13:14 libQtTest_debug.prl
-rw-r--r--    1 root  admin        1M Nov 27 14:47 libQtUiTools.a
-rw-r--r--    1 root  admin        1K Nov 27 14:46 libQtUiTools.prl
-rw-r--r--    1 root  admin       12M Nov 27 14:47 libQtUiTools_debug.a
-rw-r--r--    1 root  admin        1K Nov 27 14:46 libQtUiTools_debug.prl
-rwxr-xr-x    1 root  admin       30M Nov 27 14:39 libQtWebKit.4.7.1.dylib*
lrwxr-xr-x    1 root  admin       23B Nov 27 14:39 libQtWebKit.4.7.dylib@ -> libQtWebKit.4.7.1.dylib
lrwxr-xr-x    1 root  admin       23B Nov 27 14:39 libQtWebKit.4.dylib@ -> libQtWebKit.4.7.1.dylib
lrwxr-xr-x    1 root  admin       23B Nov 27 14:39 libQtWebKit.dylib@ -> libQtWebKit.4.7.1.dylib
-rw-r--r--    1 root  admin      899B Nov 27 13:58 libQtWebKit.la
-rw-r--r--    1 root  admin        1K Nov 27 13:58 libQtWebKit.prl
-rw-r--r--    1 root  admin      958B Nov 27 13:58 libQtWebKit_debug.la
-rw-r--r--    1 root  admin        1K Nov 27 13:58 libQtWebKit_debug.prl
-rwxr-xr-x    1 root  admin      538K Nov 27 13:12 libQtXml.4.7.1.dylib*
lrwxr-xr-x    1 root  admin       20B Nov 27 13:12 libQtXml.4.7.dylib@ -> libQtXml.4.7.1.dylib
lrwxr-xr-x    1 root  admin       20B Nov 27 13:12 libQtXml.4.dylib@ -> libQtXml.4.7.1.dylib
lrwxr-xr-x    1 root  admin       20B Nov 27 13:12 libQtXml.dylib@ -> libQtXml.4.7.1.dylib
-rw-r--r--    1 root  admin      812B Nov 27 13:11 libQtXml.la
-rw-r--r--    1 root  admin        1K Nov 27 13:11 libQtXml.prl
-rwxr-xr-x    1 root  admin        7M Nov 27 13:41 libQtXmlPatterns.4.7.1.dylib*
lrwxr-xr-x    1 root  admin       28B Nov 27 13:41 libQtXmlPatterns.4.7.dylib@ -> libQtXmlPatterns.4.7.1.dylib
lrwxr-xr-x    1 root  admin       28B Nov 27 13:41 libQtXmlPatterns.4.dylib@ -> libQtXmlPatterns.4.7.1.dylib
lrwxr-xr-x    1 root  admin       28B Nov 27 13:41 libQtXmlPatterns.dylib@ -> libQtXmlPatterns.4.7.1.dylib
-rw-r--r--    1 root  admin      880B Nov 27 13:33 libQtXmlPatterns.la
-rw-r--r--    1 root  admin        1K Nov 27 13:33 libQtXmlPatterns.prl
-rw-r--r--    1 root  admin      934B Nov 27 13:33 libQtXmlPatterns_debug.la
-rw-r--r--    1 root  admin        1K Nov 27 13:33 libQtXmlPatterns_debug.prl
-rw-r--r--    1 root  admin      860B Nov 27 13:11 libQtXml_debug.la
-rw-r--r--    1 root  admin        1K Nov 27 13:11 libQtXml_debug.prl
-rw-r--r--    1 root  admin      844B Nov 27 13:05 libphonon.la
-rw-r--r--    1 root  admin        1K Nov 27 13:05 libphonon.prl
-rw-r--r--    1 root  admin      910B Nov 27 13:05 libphonon_debug.la
-rw-r--r--    1 root  admin        1K Nov 27 13:05 libphonon_debug.prl
-rw-r--r--    1 root  admin      803B Nov 27 13:03 libpvrQWSWSEGL.prl
drwxr-xr-x   50 root  admin        1K Nov 27 13:05 pkgconfig/

The second:

ls: /Developer/SDKs/MacOSX10.6.sdk/opt: No such file or directory

But please note that I am building on 10.4 and do not have a 10.6 SDK installed. Might this be what you are looking for?

ls -lAF /Developer/SDKs/MacOSX10.4u.sdk/opt/
total 0
drwxrwxr-x   16 root  admin  544B Nov  8 19:39 local/

comment:6 Changed 14 years ago by michaelld (Michael Dickens)

yes, sorry; that last was what I was looking for. What does this result in?

ls -lRAF /Developer/SDKs/MacOSX10.4u.sdk/opt/

comment:7 Changed 14 years ago by roberto@…

ls -lAF /Developer/SDKs/MacOSX10.4u.sdk/opt/
total 0
drwxrwxr-x   16 root  admin  544B Nov  8 19:39 local/

comment:8 Changed 14 years ago by michaelld (Michael Dickens)

How about "ls -lAFR /Developer/SDKs/MacOSX10.4u.sdk/opt/" -- including that "R" to recursively list. It looks like there is something installed in that area, which should not be by default.

comment:9 Changed 14 years ago by michaelld (Michael Dickens)

Note for the previous request: If this is really long then don't post it. It just seems like there's something installed in /Developer/SDKs/MacOSX10.4u.sdk/opt -- which does not exist by default. Either that or Qt's build system is messing up majorly.

comment:10 Changed 14 years ago by roberto@…

Oh, right. My mistake. So, on my system, a while back I noticed that some builds broke (probably all qt or qt-related builds) because there was no /Developer/SDKs/MacOSX10.4u.sdk/opt directory. I looked at the names of the files could not be found, discovered that they exited under /opt, and so I have place there a symlink "/Developer/SDKs/MacOSX10.4u.sdk/opt -> /opt". The recursive listing is thus pretty long because it is everything in /opt on my system, which is all of MacPorts.

comment:11 Changed 14 years ago by michaelld (Michael Dickens)

Hmm ... if you remove that link, I wonder if the issue goes away? You'll probably have to 'clean qt4-mac' and try from scratch & make sure to include the patch.

This might be an issue of the way SYSROOT is treated in GCC 4.0 compared with 4.2; just guessing at this point. From what I can see, all of the correct libraries are in place but the link command doesn't find them; which is quite strange. Thus, obviously, something else is going on.

comment:12 Changed 14 years ago by roberto@…

Build still fails (after removing the opt/ symlink and doing a clean on qt4-mac). See new attached build log for details.

Changed 14 years ago by roberto@…

comment:13 Changed 14 years ago by michaelld (Michael Dickens)

What does the following return:

otool -L /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.7.1/lib/libQtHelp.dylib

I -think- this is related to some other tickets where on 10.4 QtHelp requires QtCLucene to be included separately. I'd bet that QMake is prepending the SDK path to the QtCLucene library (incorrectly) ... I'll look through the QMake build file for QtHelp & see if anything obvious comes up.

comment:14 Changed 14 years ago by roberto@…

otool -L /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.7.1/lib/libQtHelp.dylib
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.7.1/lib/libQtHelp.dylib:
        /opt/local/lib/libQtHelp.4.dylib (compatibility version 4.7.0, current version 4.7.1)
        /opt/local/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
        /opt/local/lib/libdbus-1.3.dylib (compatibility version 8.0.0, current version 8.0.0)
        /opt/local/lib/jpeg6b/lib/libjpeg.62.dylib (compatibility version 63.0.0, current version 63.0.0)
        /opt/local/lib/liblcms.1.dylib (compatibility version 2.0.0, current version 2.19.0)
        /opt/local/lib/libsqlite3.0.dylib (compatibility version 9.0.0, current version 9.6.0)
        /opt/local/lib/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
        /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
        /opt/local/lib/libQtSql.4.dylib (compatibility version 4.7.0, current version 4.7.1)
        /opt/local/lib/libQtXml.4.dylib (compatibility version 4.7.0, current version 4.7.1)
        /opt/local/lib/libQtGui.4.dylib (compatibility version 4.7.0, current version 4.7.1)
        /opt/local/lib/libQtNetwork.4.dylib (compatibility version 4.7.0, current version 4.7.1)
        /opt/local/lib/libQtCore.4.dylib (compatibility version 4.7.0, current version 4.7.1)
        /opt/local/lib/libQtCLucene.4.dylib (compatibility version 4.7.0, current version 4.7.1)
        /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.9)

comment:15 Changed 14 years ago by michaelld (Michael Dickens)

Hopefully fixed in r74980. Can you do a "sudo port selfupdate", and then clean qt4-mac and try again with the same variants?

comment:16 Changed 14 years ago by roberto@…

I was able to successfully build. However, now automoc fails to build with this error:

:info:build /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning can't open dynamic library: /Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib/libz.1.dylib referenced from: /opt/local/lib/libQtCore.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
:info:build /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
:info:build _compress2 referenced from libQtCore expected to be defined in /opt/local/lib/libz.1.dylib
:info:build _uncompress referenced from libQtCore expected to be defined in /opt/local/lib/libz.1.dylib
:info:build collect2: ld returned 1 exit status
:info:build make[2]: *** [automoc4] Error 1
:info:build make[1]: *** [CMakeFiles/automoc4.dir/all] Error 2
:info:build make: *** [all] Error 2
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_automoc/work/build" && /usr/bin/make -j2 all " returned error 2

(I have attached the complete log)

Changed 14 years ago by roberto@…

Attachment: automoc_main.log.bz2 added

comment:17 Changed 14 years ago by michaelld (Michael Dickens)

Glad to hear that Qt finally built! We're definitely getting closer ...

What does "otool -L /opt/local/lib/libQtCore.4.dylib" return?

Does "/Developer/SDKs/MacOSX10.4u.sdk/opt" exist & what is in it if so?

comment:18 Changed 14 years ago by roberto@…

First answer:

otool -L /opt/local/lib/libQtCore.4.dylib
/opt/local/lib/libQtCore.4.dylib:
        /opt/local/lib/libQtCore.4.dylib (compatibility version 4.7.0, current version 4.7.1)
        /opt/local/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
        /opt/local/lib/libdbus-1.3.dylib (compatibility version 8.0.0, current version 8.0.0)
        /opt/local/lib/jpeg6b/lib/libjpeg.62.dylib (compatibility version 63.0.0, current version 63.0.0)
        /opt/local/lib/liblcms.1.dylib (compatibility version 2.0.0, current version 2.19.0)
        /opt/local/lib/libsqlite3.0.dylib (compatibility version 9.0.0, current version 9.6.0)
        /opt/local/lib/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
        /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.9)
        /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 22.0.0)
        /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)

Second answer: /Developer/SDKs/MacOSX10.4u.sdk/opt does not exist. The contents of the directory:

ls -l /Developer/SDKs/MacOSX10.4u.sdk/
total 8
drwxr-xr-x    4 root  wheel  136B Oct 27  2007 Developer
drwxr-xr-x    3 root  wheel  102B Nov  4  2009 Library
-rw-r--r--    1 root  wheel  369B Sep 21  2007 SDKSettings.plist
drwxr-xr-x    3 root  wheel  102B Oct 27  2007 System
drwxr-xr-x   10 root  wheel  340B Nov  4  2009 usr

comment:19 Changed 14 years ago by michaelld (Michael Dickens)

Hmm ... QtCore looks OK, so I think it must be something related to the compiler & how it works on 10.4 versus 10.5+, probably the -isysroot flag. On 10.6, scanning through "man gcc", I get:

       -isysroot dir
           This option is like the --sysroot option, but applies only to
           header files.  See the --sysroot option for more information.
       --sysroot=dir
           Use dir as the logical root directory for headers and libraries.
           For example, if the compiler would normally search for headers in
           /usr/include and libraries in /usr/lib, it will instead search
           dir/usr/include and dir/usr/lib.

Although the c++ command is using "-isysroot /Developer/SDKs/MacOSX10.4u.sdk", I wonder if maybe 10.4's compiler treats it more like "--sysroot=/Developer/SDKs/MacOSX10.4u.sdk" instead. That would correlate with this ticket's issue too. Can you look through the gcc manpage & see what it says about these flags?

comment:20 in reply to:  19 Changed 14 years ago by roberto@…

The man page for gcc-4.2 man page on my system has exactly the same entries as you quoted above. I'm not sure where to go from here.

comment:21 Changed 14 years ago by roberto@…

So, by changing directories to /Developer/SDKs/MacOSX10.4u.sdk and then doing a 'sudo ln -s /opt' I was able to get automoc successfully built. Should that be necessary?

comment:22 Changed 14 years ago by michaelld (Michael Dickens)

Shouldn't be necessary, but if it works as a temporary patch, the more power to you ;) There has to be a real solution though ... not sure what it is though ...

comment:23 Changed 14 years ago by michaelld (Michael Dickens)

I just updated qt4-mac to 4.7.2 ... when you do the update, can you report back if the newer version helps this issue?

comment:24 Changed 14 years ago by roberto@…

I can report that this works now. Thanks very much for resolving the issue.

comment:25 Changed 14 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: newclosed

Yay! Glad it works; thanks for reporting back so promptly.

Note: See TracTickets for help on using tickets.