Opened 15 years ago

Closed 14 years ago

Last modified 14 years ago

#23284 closed defect (fixed)

qt4-mac on Tiger: can't open dynamic library: /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib

Reported by: mcmeijer@… Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: tiger Cc: boydb@…, skurylo+macports@…
Port: qt4-mac

Description (last modified by jmroot (Joshua Root))

building qt4-mac on OSX 10.4 on ppc and I get the next error.

cd tools/ && /usr/bin/make -f Makefile 
cd assistant/ && /usr/bin/make -f Makefile 
/usr/bin/g++-4.0 -headerpad_max_install_names -arch ppc -o ../../../../bin/Assistant.app/Contents/MacOS/Assistant .obj/debug-shared/fontpanel.o .obj/debug-shared/helpviewer.o .obj/debug-shared/main.o .obj/debug-shared/mainwindow.o .obj/debug-shared/indexwindow.o .obj/debug-shared/topicchooser.o .obj/debug-shared/contentwindow.o .obj/debug-shared/searchwidget.o .obj/debug-shared/preferencesdialog.o .obj/debug-shared/filternamedialog.o .obj/debug-shared/centralwidget.o .obj/debug-shared/installdialog.o .obj/debug-shared/bookmarkmanager.o .obj/debug-shared/remotecontrol.o .obj/debug-shared/cmdlineparser.o .obj/debug-shared/aboutdialog.o .obj/debug-shared/qtdocinstaller.o .obj/debug-shared/moc_fontpanel.o .obj/debug-shared/moc_helpviewer.o .obj/debug-shared/moc_mainwindow.o .obj/debug-shared/moc_indexwindow.o .obj/debug-shared/moc_topicchooser.o .obj/debug-shared/moc_contentwindow.o .obj/debug-shared/moc_searchwidget.o .obj/debug-shared/moc_preferencesdialog.o .obj/debug-shared/moc_filternamedialog.o .obj/debug-shared/moc_centralwidget.o .obj/debug-shared/moc_installdialog.o .obj/debug-shared/moc_bookmarkmanager.o .obj/debug-shared/moc_remotecontrol.o .obj/debug-shared/moc_aboutdialog.o .obj/debug-shared/moc_qtdocinstaller.o .obj/debug-shared/qrc_assistant.o .obj/debug-shared/qrc_assistant_images.o   -F/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.6.0/lib -L/opt/local/lib -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.6.0/lib -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.6.0/plugins/sqldrivers -framework QtHelp -L/opt/local/lib -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.6.0/lib -F/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.6.0/lib -framework QtWebKit -lsqlite3 -framework phonon -framework QtDBus -framework QtXmlPatterns -framework QtSql -framework QtXml -framework QtGui -framework QtNetwork -framework QtCore 
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: warning can't open dynamic library: /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib referenced from: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.6.0/lib/QtHelp.framework/QtHelp (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols:
QCLuceneHits::~QCLuceneHits()referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneTerm::QCLuceneTerm(QString const&, QString const&)referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneTerm::~QCLuceneTerm()referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneField::QCLuceneField(QString const&, QString const&, int)referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneDocument::add(QCLuceneField*)       referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneDocument::QCLuceneDocument()referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneDocument::~QCLuceneDocument()referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneSearcher::search(QCLuceneQuery const&)  referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneTermQuery::QCLuceneTermQuery(QCLuceneTerm const&)referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneTermQuery::~QCLuceneTermQuery()referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneIndexReader::indexExists(QString const&)  referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneIndexReader::deleteDocuments(QCLuceneTerm const&)   referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneIndexReader::open(QString const&) referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneIndexReader::close()      referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneIndexReader::unlock(QString const&) referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneIndexReader::isLocked(QString const&) referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneIndexReader::~QCLuceneIndexReader()referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneIndexWriter::addDocument(QCLuceneDocument&, QCLuceneAnalyzer&)        referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneIndexWriter::setMergeFactor(int)    referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneIndexWriter::setMinMergeDocs(int)    referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneIndexWriter::setMaxFieldLength(int)    referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneIndexWriter::close()      referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneIndexWriter::optimize()      referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneIndexWriter::QCLuceneIndexWriter(QString const&, QCLuceneAnalyzer&, bool, bool)referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneIndexWriter::~QCLuceneIndexWriter()referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneIndexSearcher::QCLuceneIndexSearcher(QString const&)referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneIndexSearcher::~QCLuceneIndexSearcher()referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneStandardAnalyzer::QCLuceneStandardAnalyzer()referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneStandardAnalyzer::~QCLuceneStandardAnalyzer()referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneHits::length() const referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneHits::document(int)   referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneDocument::clear()      referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneHitsPrivate::~QCLuceneHitsPrivate()referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLucenePhraseQuery::addTerm(QCLuceneTerm const&)  referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLucenePhraseQuery::QCLucenePhraseQuery()referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneQueryParser::parse(QString const&, QString const&, QCLuceneAnalyzer&)referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneBooleanQuery::add(QCLuceneQuery*, bool, bool, bool)referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneBooleanQuery::QCLuceneBooleanQuery()referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneBooleanQuery::~QCLuceneBooleanQuery()referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneStopAnalyzer::QCLuceneStopAnalyzer()referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneStopAnalyzer::~QCLuceneStopAnalyzer()referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneIndexSearcher::close()      referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneDocumentPrivate::~QCLuceneDocumentPrivate()referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneQuery::toString() const referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneDocument::get(QString const&) constreferenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneStopAnalyzer::englishStopWords() const  referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
collect2: ld returned 1 exit status
make[4]: *** [../../../../bin/Assistant.app/Contents/MacOS/Assistant] Error 1
make[3]: *** [sub-assistant-make_default-ordered] Error 2
make[2]: *** [sub-tools-make_default-ordered] Error 2
make[1]: *** [sub-assistant-make_default-ordered] Error 2
make: *** [sub-tools-make_default-ordered] Error 2
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.6.0" && /usr/bin/make -j2 first " returned error 2
DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.6.0" && /usr/bin/make -j2 first " returned error 2
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 9)
    invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for qt4-mac): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

Attachments (4)

qt4-mac-Portfile_10.4_link.diff (1.2 KB) - added by michaelld (Michael Dickens) 14 years ago.
"svn diff" in 'qt4-mac' Portfile, to maybe allow 10.4 to build cleanly?
qt4-mac-Portfile_10.4_link.2.diff (1.2 KB) - added by michaelld (Michael Dickens) 14 years ago.
revision1: "svn diff" in 'qt4-mac' Portfile, to maybe allow 10.4 to build cleanly?
patch-QtHelp_add_QtCLucene.diff (2.2 KB) - added by michaelld (Michael Dickens) 14 years ago.
patch to add QtCLucene library when already linking with QtHelp.
qt4-mac.patch (4.3 KB) - added by skurylo+macports@… 14 years ago.
After applying patch-QtHelp_add_QtCLucene.diff, apply this patch

Download all attachments as: .zip

Change History (36)

comment:1 Changed 15 years ago by mcmeijer@…

Qt4-mac build process seems to look on the wrong location for libQtLucene.4.dylib

It already build the same file in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-macwork.qt-everywhere-opensource-scr-4.6.0/lib/

I copied it by hand in the location where it is looking /opt/local/libexec/qt4-mac/lib/

and the building is proceeding. Is is a bug . But I think you will not find it in a update because then a old version of libQtLucene.4.dylib is in the right place.

comment:2 Changed 15 years ago by boydb@…

I'm getting a similar issue on OS X 10.3.9 (Intel processor):

sudo port install qt4-mac
--->  Computing dependencies for qt4-mac
--->  Building qt4-mac
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.6.0" && /usr/bin/make -j1 first " returned error 2
Command output: QCLuceneIndexWriter::optimize()      referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneIndexWriter::QCLuceneIndexWriter(QString const&, QCLuceneAnalyzer&, bool, bool)referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneIndexWriter::~QCLuceneIndexWriter()referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneIndexSearcher::QCLuceneIndexSearcher(QString const&)referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneIndexSearcher::~QCLuceneIndexSearcher()referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneStandardAnalyzer::QCLuceneStandardAnalyzer()referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneStandardAnalyzer::~QCLuceneStandardAnalyzer()referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneHits::length() const referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneHits::document(int)   referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneDocument::clear()      referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneHitsPrivate::~QCLuceneHitsPrivate()referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLucenePhraseQuery::addTerm(QCLuceneTerm const&)  referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLucenePhraseQuery::QCLucenePhraseQuery()referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneQueryParser::parse(QString const&, QString const&, QCLuceneAnalyzer&)referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneBooleanQuery::add(QCLuceneQuery*, bool, bool, bool)referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneBooleanQuery::QCLuceneBooleanQuery()referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneBooleanQuery::~QCLuceneBooleanQuery()referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneStopAnalyzer::QCLuceneStopAnalyzer()referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneStopAnalyzer::~QCLuceneStopAnalyzer()referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneIndexSearcher::close()      referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneDocumentPrivate::~QCLuceneDocumentPrivate()referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneQuery::toString() const referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneDocument::get(QString const&) constreferenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
QCLuceneStopAnalyzer::englishStopWords() const  referenced from QtHelp expected to be defined in /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib
collect2: ld returned 1 exit status
make[4]: *** [../../../../bin/Assistant.app/Contents/MacOS/Assistant] Error 1
make[3]: *** [sub-assistant-make_default-ordered] Error 2
make[2]: *** [sub-tools-make_default-ordered] Error 2
make[1]: *** [sub-assistant-make_default-ordered] Error 2
make: *** [sub-tools-make_default-ordered] Error 2

Error: Status 1 encountered during processing.
Before reporting a bug, first run the command again with the -d flag to get complete output.

On the suggestion of the above post, running

$ sudo mkdir -p /opt/local/libexec/qt4-mac/lib/
$ sudo cp /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.6.0/lib/libQtCLucene.4.dylib  /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib

allows the build to proceed (not finished yet, but appears to be getting further now). I had to add the folder first, since the "qt4-mac" folder didn't exist in the "/opt/local" folder already.

comment:3 Changed 15 years ago by boydb@…

Cc: boydb@… added

Cc Me!

comment:4 Changed 15 years ago by jmroot (Joshua Root)

Description: modified (diff)
Keywords: qt4-mac removed

Please remember to preview and use WikiFormatting.

comment:5 Changed 15 years ago by boydb@…

My above post incorrectly names my OS; the error logs above were generated by a tower running 10.4.11 (same as original poster, though mine is an Intel core).

comment:6 Changed 15 years ago by francois.work@…

got the same problem of 10.4.11 with 1.8.2 of macports. I have made the changes suggested the compilation takes a couple of hours (at least 24 at first)

comment:7 in reply to:  1 Changed 15 years ago by mcmeijer@…

After you copied the files the building process continues. But installation gives a error. Removed the files you copied by hand and start it again. than the installation works.

so what to do :

sudo port install qt4-mac

when getting the error -> copy the file libQtLucene.4.dylib in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-macwork.qt-everywhere-opensource-scr-4.6.0/lib/ to /opt/local/libexec/qt4-mac/lib/

restart the build with

sudo port install qt4-mac

when building is ready and installation gives a error

remove /opt/local/libexec/qt4-mac/lib/libQtLucene.4.dylib

and restart

sudo port install qt4-mac

and than it is ready

worked for me.

comment:8 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Keywords: tiger added
Summary: qt4-mac on OSX 10.4 on ppc build errorqt4-mac on Tiger: can't open dynamic library: /opt/local/libexec/qt4-mac/lib/libQtCLucene.4.dylib

I can also confirm the problem with qt4-mac 4.6.2 on 10.4.11 Intel. I believe this is the same problem as #19162. I am hoping we can fix this with a little DYLD_LIBRARY_PATH magic.

comment:9 in reply to:  8 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… removed
Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

Replying to ryandesign@…:

I am hoping we can fix this with a little DYLD_LIBRARY_PATH magic.

Ah, no. Forget that. This is what's really going on:

Assistant (and a few other pieces) use QtHelp.framework, and therefore the Makefiles specify "-framework QtHelp". The problem is QtHelp.framework needs libQtCLucene.dylib, but the Makefiles don't specify "-lQtCLucene". Leopard and later figure this out on their own somehow, but Tiger needs it given explicitly. The build system in use here is too complex for me to wade through at the moment, but the simple fix we can employ is to modify the Makefiles after the fact and add "-lQtCLucene" everywhere we find "-framework QtHelp". I've committed this fix in r65819; I'll wait to close this ticket until I verify the build succeeds on my two Tiger systems.

This problem was also the cause of upstream bug 7697 but they didn't figure out why it was happening; I'll have to let them know.

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

Is this issue still relevant as of r72571 with qt4-mac being at 4.7.0?

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

Yes, still relevant. I never did report the above fix to the developers of Qt, and the above fix is no longer working as of qt4-mac 4.7.0.

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

Owner: changed from ryandesign@… to michaelld@…
Status: assignednew

OK; r65819 is still in the Portfile unchanged, which probably won't work because I'm not using frameworks. Let me wade through some Makefiles to see how to change this patch.

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

I've attached a patch to this ticket that might work. I don't have access to a 10.4 box, so I'm asking others to try it out & provide feedback.

Changed 14 years ago by michaelld (Michael Dickens)

"svn diff" in 'qt4-mac' Portfile, to maybe allow 10.4 to build cleanly?

Changed 14 years ago by michaelld (Michael Dickens)

revision1: "svn diff" in 'qt4-mac' Portfile, to maybe allow 10.4 to build cleanly?

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

The first patch wouldn't work due to a mis-match in "{"s. revision 1 should work at least in that respect.

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

Resolution: fixed
Status: newclosed

I went ahead and checked in the patch along with the bump to 4.7.1, in r73343. So, I'm closing this ticket in the belief that it is fixed -- I don't have a 10.4 box on which to do testing. Please do reopen if the issue of this ticket is not addressed for you.

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

Resolution: fixed
Status: closedreopened

The reinplace does successfully fix each of the 4 Makefiles where -lQtHelp occurs, during the configure phase. However, once the build phase runs, it somehow regenerates the Makefiles, thus losing the change again.

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

Which Makefiles are being regenerated? I'll see if I can patch the QMake build files instead.

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

Looks like the QMake files I need to patch are:

tools/assistant/tools/assistant/assistant.pro
tools/assistant/tools/qcollectiongenerator/qcollectiongenerator.pro
tools/assistant/tools/qhelpconverter/qhelpconverter.pro
tools/assistant/tools/qhelpgenerator/qhelpgenerator.pro

Can you confirm that these directories contain the problematic Makefile's?

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

I'm attaching a patch that should add "-lQtCLucene" to the LDFLAGS for those 4 QMake build files. Please give it a try & see if it works. Add it as a patchfile-append in the "platform darwin 8" context. If that doesn't work, try changing the "LIBS_PRIVATE" to just "LIBS" in the patch file.

Changed 14 years ago by michaelld (Michael Dickens)

patch to add QtCLucene library when already linking with QtHelp.

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

Any word on this patch?

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

Sorry, I forgot. I'm trying it now.

comment:22 in reply to:  20 Changed 14 years ago by skurylo+macports@…

Replying to michaelld@…:

Any word on this patch?

Hi, I've applied this patch and the build has continued. I'll let you know if fails at some future point. Thank you.

comment:23 in reply to:  20 Changed 14 years ago by jon.dunleavy@…

Replying to michaelld@…:

Any word on this patch?

After applying the patch I now get this on 10.4.11

:info:build /usr/bin/g++-4.0 -lcrypto -ldbus-1 -ljpeg -llcms -lsqlite3 -lssl -lz -arch ppc -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -single_module -dynamiclib -o libqwebview.dylib .obj/release-shared/qwebview_plugin.o .obj/release-shared/moc_qwebview_plugin.o .obj/release-shared/qrc_qwebview_plugin.o    -L/opt/local/var/macports/build/_opt_local_var_macports_sources_www.macports.org_files_ports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.7.1/lib -lQtWebKit -lQtDesigner -lQtScript -lQtXml -lQtGui -lQtCore  
:info:build ld: warning can't open dynamic library: /Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib/libQtNetwork.4.dylib referenced from: /opt/local/var/macports/build/_opt_local_var_macports_sources_www.macports.org_files_ports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.7.1/lib/libQtWebKit.dylib (checking for undefined symbols may be affected) (Not a directory, errno = 20)
:info:build ld: Undefined symbols:
:info:build __ZN21QNetworkCacheMetaDataD1Ev referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZNK21QNetworkAccessManager5cacheEv referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZNK21QNetworkCacheMetaData7isValidEv referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZN15QNetworkRequest12setAttributeENS_9AttributeERK8QVariant referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZN15QNetworkRequest12setRawHeaderERK10QByteArrayS2_ referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZN15QNetworkRequest20setOriginatingObjectEP7QObject referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZN15QNetworkRequest6setUrlERK4QUrl referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZN15QNetworkRequestC1ERK4QUrl referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZN15QNetworkRequestD1Ev referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZN9QHostInfo10lookupHostERK7QStringP7QObjectPKc referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZN15QNetworkRequestaSERKS_ referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZN21QNetworkAccessManager14deleteResourceERK15QNetworkRequest referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZN21QNetworkAccessManager17sendCustomRequestERK15QNetworkRequestRK10QByteArrayP9QIODevice referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZN21QNetworkAccessManager3getERK15QNetworkRequest referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZN21QNetworkAccessManager3putERK15QNetworkRequestP9QIODevice referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZN21QNetworkAccessManager4headERK15QNetworkRequest referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZN21QNetworkAccessManager4postERK15QNetworkRequestP9QIODevice referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZNK13QNetworkReply14rawHeaderPairsEv referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZNK13QNetworkReply3urlEv referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZNK13QNetworkReply5errorEv referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZNK13QNetworkReply6headerEN15QNetworkRequest12KnownHeadersE referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZNK13QNetworkReply9attributeEN15QNetworkRequest9AttributeE referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZNK13QNetworkReply9rawHeaderERK10QByteArray referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZNK15QNetworkRequest3urlEv referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZN14QNetworkCookie12parseCookiesERK10QByteArray referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZN14QNetworkCookieC1ERKS_ referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZN14QNetworkCookieD1Ev referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZNK14QNetworkCookie10isHttpOnlyEv referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZNK14QNetworkCookie9toRawFormENS_7RawFormE referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZNK21QNetworkAccessManager9cookieJarEv referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZNK15QNetworkRequest13rawHeaderListEv referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZNK15QNetworkRequest9rawHeaderERK10QByteArray referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZN21QNetworkAccessManagerC1EP7QObject referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZN28QNetworkConfigurationManagerC1EP7QObject referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZNK28QNetworkConfigurationManager8isOnlineEv referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZN10QSslSocket15ignoreSslErrorsEv referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZN10QSslSocket22connectToHostEncryptedERK7QStringt6QFlagsIN9QIODevice12OpenModeFlagEE referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZN10QSslSocketC1EP7QObject referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZN10QTcpSocketC1EP7QObject referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZN15QAbstractSocket13connectToHostERK7QStringt6QFlagsIN9QIODevice12OpenModeFlagEE referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build __ZNK15QAbstractSocket5stateEv referenced from libQtWebKit expected to be defined in /opt/local/lib/libQtNetwork.4.dylib
:info:build /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: internal link edit command failed
:info:build make[6]: *** [../../../../../plugins/designer/libqwebview.dylib] Error 1
:info:build make[5]: *** [release] Error 2
:info:build make[4]: *** [sub-qwebview-make_default-ordered] Error 2
:info:build make[3]: *** [sub-plugins-make_default-ordered] Error 2
:info:build make[2]: *** [sub-src-make_default] Error 2
:info:build make[1]: *** [sub-designer-make_default-ordered] Error 2
:info:build make: *** [sub-tools-make_default-ordered] Error 2
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_www.macports.org_files_ports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.7.1" && /usr/bin/make first " returned error 2
:error:build Target org.macports.build returned: shell command failed
:debug:build Backtrace: shell command failed
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for qt4-mac): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for qt4-mac is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_www.macports.org_files_ports_aqua_qt4-mac/main.log

I think I did everything correctly but I am new to this.

comment:24 Changed 14 years ago by jon.dunleavy@…

Cc: jon.dunleavy@… added

Cc Me!

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

Thanks for trying. Let me look into some other solution ...

comment:26 Changed 14 years ago by skurylo+macports@…

Cc: skurylo+macports@… added

Cc Me!

comment:27 Changed 14 years ago by skurylo+macports@…

I guess I didn't need to open a new ticket for it since the issue ended up being similar, but with my patch the build finished: #27874

Changed 14 years ago by skurylo+macports@…

Attachment: qt4-mac.patch added

After applying patch-QtHelp_add_QtCLucene.diff, apply this patch

comment:28 Changed 14 years ago by skurylo+macports@…

After applying patch-QtHelp_add_QtCLucene.diff, apply qt4-mac.patch.

qt4-mac has finished building sucessfully for me. Thank you.

comment:29 Changed 14 years ago by jon.dunleavy@…

This now builds successfully for me as well.

Thanks!

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

Awesome! I'll take a look at the patch today & try to get it committed ASAP!.

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

Resolution: fixed
Status: reopenedclosed

Committed in r74980. Thanks for your feedback & help testing!

comment:32 Changed 14 years ago by jon.dunleavy@…

Cc: jon.dunleavy@… removed

Cc Me!

Note: See TracTickets for help on using tickets.