Opened 17 years ago
Closed 17 years ago
#14865 closed defect (fixed)
poppler 0.8.0 fails to build under tiger 10.4.11 on Intel
Reported by: | jwhowse4 | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | Cc: | ||
Port: |
Description
I am running Tiger 10.4.11 on an Intel based machine. Poppler 0.8.0 fails to build with the following error message. I think something like this was reported before and it turned out to be a QT problem, but I can not remember. Any suggestions on how to fix this?
Error: Target org.macports.build returned: shell command " cd "/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_graphics_poppler/work/poppler-0.8.0" && make all " returned error 2
Command output: /usr/bin/g++-4.0 -DHAVE_CONFIG_H -I. -I../.. -I../../poppler -I../.. -I../../poppler -I../../qt4/src -I../../qt -I/opt/macports/include -DQT_SHARED -I/opt/macports/include/qt4 -I/opt/macports/include/qt4/QtCore -I/opt/macports/include/qt4/QtGui -I/opt/macports/include/qt4/QtXml -I/opt/macports/include -Wall -Wno-write-strings -O2 -MT main_viewer.o -MD -MP -MF .deps/main_viewer.Tpo -c -o main_viewer.o main_viewer.cpp
mv -f .deps/main_viewer.Tpo .deps/main_viewer.Po
moc -i metadata.h -o metadata.moc
/usr/bin/g++-4.0 -DHAVE_CONFIG_H -I. -I../.. -I../../poppler -I../.. -I../../poppler -I../../qt4/src -I../../qt -I/opt/macports/include -DQT_SHARED -I/opt/macports/include/qt4 -I/opt/macports/include/qt4/QtCore -I/opt/macports/include/qt4/QtGui -I/opt/macports/include/qt4/QtXml -I/opt/macports/include -Wall -Wno-write-strings -O2 -MT metadata.o -MD -MP -MF .deps/metadata.Tpo -c -o metadata.o metadata.cpp
mv -f .deps/metadata.Tpo .deps/metadata.Po
moc -i navigationtoolbar.h -o navigationtoolbar.moc
/usr/bin/g++-4.0 -DHAVE_CONFIG_H -I. -I../.. -I../../poppler -I../.. -I../../poppler -I../../qt4/src -I../../qt -I/opt/macports/include -DQT_SHARED -I/opt/macports/include/qt4 -I/opt/macports/include/qt4/QtCore -I/opt/macports/include/qt4/QtGui -I/opt/macports/include/qt4/QtXml -I/opt/macports/include -Wall -Wno-write-strings -O2 -MT navigationtoolbar.o -MD -MP -MF .deps/navigationtoolbar.Tpo -c -o navigationtoolbar.o navigationtoolbar.cpp
mv -f .deps/navigationtoolbar.Tpo .deps/navigationtoolbar.Po
moc -i optcontent.h -o optcontent.moc
/usr/bin/g++-4.0 -DHAVE_CONFIG_H -I. -I../.. -I../../poppler -I../.. -I../../poppler -I../../qt4/src -I../../qt -I/opt/macports/include -DQT_SHARED -I/opt/macports/include/qt4 -I/opt/macports/include/qt4/QtCore -I/opt/macports/include/qt4/QtGui -I/opt/macports/include/qt4/QtXml -I/opt/macports/include -Wall -Wno-write-strings -O2 -MT optcontent.o -MD -MP -MF .deps/optcontent.Tpo -c -o optcontent.o optcontent.cpp
mv -f .deps/optcontent.Tpo .deps/optcontent.Po
moc -i pageview.h -o pageview.moc
/usr/bin/g++-4.0 -DHAVE_CONFIG_H -I. -I../.. -I../../poppler -I../.. -I../../poppler -I../../qt4/src -I../../qt -I/opt/macports/include -DQT_SHARED -I/opt/macports/include/qt4 -I/opt/macports/include/qt4/QtCore -I/opt/macports/include/qt4/QtGui -I/opt/macports/include/qt4/QtXml -I/opt/macports/include -Wall -Wno-write-strings -O2 -MT pageview.o -MD -MP -MF .deps/pageview.Tpo -c -o pageview.o pageview.cpp
mv -f .deps/pageview.Tpo .deps/pageview.Po
moc -i permissions.h -o permissions.moc
/usr/bin/g++-4.0 -DHAVE_CONFIG_H -I. -I../.. -I../../poppler -I../.. -I../../poppler -I../../qt4/src -I../../qt -I/opt/macports/include -DQT_SHARED -I/opt/macports/include/qt4 -I/opt/macports/include/qt4/QtCore -I/opt/macports/include/qt4/QtGui -I/opt/macports/include/qt4/QtXml -I/opt/macports/include -Wall -Wno-write-strings -O2 -MT permissions.o -MD -MP -MF .deps/permissions.Tpo -c -o permissions.o permissions.cpp
mv -f .deps/permissions.Tpo .deps/permissions.Po
moc -i toc.h -o toc.moc
/usr/bin/g++-4.0 -DHAVE_CONFIG_H -I. -I../.. -I../../poppler -I../.. -I../../poppler -I../../qt4/src -I../../qt -I/opt/macports/include -DQT_SHARED -I/opt/macports/include/qt4 -I/opt/macports/include/qt4/QtCore -I/opt/macports/include/qt4/QtGui -I/opt/macports/include/qt4/QtXml -I/opt/macports/include -Wall -Wno-write-strings -O2 -MT toc.o -MD -MP -MF .deps/toc.Tpo -c -o toc.o toc.cpp
mv -f .deps/toc.Tpo .deps/toc.Po
moc -i viewer.h -o viewer.moc
/usr/bin/g++-4.0 -DHAVE_CONFIG_H -I. -I../.. -I../../poppler -I../.. -I../../poppler -I../../qt4/src -I../../qt -I/opt/macports/include -DQT_SHARED -I/opt/macports/include/qt4 -I/opt/macports/include/qt4/QtCore -I/opt/macports/include/qt4/QtGui -I/opt/macports/include/qt4/QtXml -I/opt/macports/include -Wall -Wno-write-strings -O2 -MT viewer.o -MD -MP -MF .deps/viewer.Tpo -c -o viewer.o viewer.cpp
mv -f .deps/viewer.Tpo .deps/viewer.Po
/bin/sh ../../libtool --tag=CXX --mode=link /usr/bin/g++-4.0 -Wall -Wno-write-strings -O2 -L/opt/macports/lib -o poppler_qt4viewer abstractinfodock.o documentobserver.o embeddedfiles.o fonts.o info.o main_viewer.o metadata.o navigationtoolbar.o optcontent.o pageview.o permissions.o toc.o viewer.o ../../poppler/libpoppler.la ../../qt4/src/libpoppler-qt4.la -L/opt/macports/lib -lfontconfig -lexpat -framework ApplicationServices -framework Carbon -framework AppKit -L/opt/macports/lib -L/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-mac-opensource-src-4.3.4/lib -lQtGui -lpng -lQtXml -lQtTest -lQtCore -lz -lm -lz
mkdir .libs
libtool: link: cannot find the library ' or unhandled argument
Carbon'
make[3]: * [poppler_qt4viewer] Error 1
make[2]: * [all-recursive] Error 1
make[1]: * [all-recursive] Error 1
make: * [all] Error 2
Warning: the following items did not execute (for poppler): org.macports.destroot org.macports.build Error: Unable to upgrade port: 1
Attachments (1)
Change History (8)
comment:1 Changed 17 years ago by dershow
comment:2 Changed 17 years ago by dershow
I found a work around, that is also a clue to the problem. The following worked for me:
sudo port deactivate qt4-mac sudo port clean poppler sudo port install poppler sudo port activate qt4-mac
So, it seems that if qt4-mac is installed that the poppler install tries to build some additional applications (qt4viewer?) but looks in the wrong place. On the other hand, if qt4-mac is not installed, then poppler seems to ignore this, so it builds fine.
I see that the poppler port file does refer to ${worksrcpath}/qt4/Makefile.in
I would think that the correct solution is to have the poppler port somehow point the poppler configure to correctly find qt4-mac stuff. But I am really not sure how to do that. Suggestions?
comment:3 Changed 17 years ago by jwhowse4
Using the above comments and the portfile from fink, I realized that the problem can be fixed by adding the flag --disable-poppler-qt4 to configure.args. The complete modified Portfile is attached.
comment:4 Changed 17 years ago by jwhowse4
Of course my solution does not build qt4viewer, but as far as I can tell the only macports program that depends on poppler is gimp, and gimp does not appear to use qt4viewer.
comment:5 follow-up: 6 Changed 17 years ago by simon@…
Thanks for that hint :) I had a problem building poppler 0.8.0 on 15.0.2. It wasn't able to find -lQtCore though it even forced an install of qt4-mac when it was not installed or deactivated. With --disable-poppler-qt4 as configure flag it works like a charm.
comment:6 Changed 17 years ago by jwhowse4
Replying to simon@hitzemann.org:
Happy to help. I am glad to hear the fix worked for someone besides me.
Thanks for that hint :) I had a problem building poppler 0.8.0 on 15.0.2. It wasn't able to find -lQtCore though it even forced an install of qt4-mac when it was not installed or deactivated. With --disable-poppler-qt4 as configure flag it works like a charm.
comment:7 Changed 17 years ago by rhwood@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fix committed in r36532
I am seeing the same problem with 10.5.2 on Intel.
I never had this problem with the earlier version of poppler (I had 0.6.4_0 installed). This bug report looks similar, although not identical: Ticket #13595
It looks to me like Poppler is trying to build qt4viewer, and is looking in a qt working directory that doesn't exist. That raises two question, that perhaps someone else can answer:
1) What is qt4viewer and why is poppler trying to build it?
2) Why is it trying to find something in a (qt) work directory? It seems to be looking for a working directory and ../../qt4/src.
I see that I don't have this working directory, but I do have qt installed. Shouldn't poppler be trying to find anything that it needs in the appropriate installed directory, not in work directory? As I understand it (correct me if I am wrong) working directories are temporary and get deleted after a successful build? So another port should not be counting on them to exist.