#20314 closed defect (fixed)
defect: qca-2.0.0 missing -L/opt/local/lib when building examples?
Reported by: | rechner@… | Owned by: | rowue (Rolf Würdemann) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.1 |
Keywords: | Cc: | mf2k (Frank Schima) | |
Port: | qca |
Description (last modified by mf2k (Frank Schima))
When I tried to install kdegraphics4 the building of qca failed:
---> Building qca Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_qca/work/qca-2.0.0" && make all " returned error 2 Command output: /opt/local/libexec/qt4-mac/bin/uic keyselect.ui -o ui_keyselect.h /opt/local/libexec/qt4-mac/bin/uic mainwin.ui -o ui_mainwin.h [snip] /usr/bin/g++-4.0 -headerpad_max_install_names -arch ppc -o cmssigner.app/Contents/MacOS/cmssigner pkcs11configdlg.o prompter.o certviewdlg.o keyselectdlg.o certitem.o main.o moc_prompter.o moc_certviewdlg.o moc_keyselectdlg.o moc_certitem.o qrc_cmssigner.o -F/opt/local/libexec/qt4-mac/lib -L/opt/local/libexec/qt4-mac/lib -L../../lib -lqca -framework QtGui -L/opt/local/libexec/qt4-mac/lib -F/opt/local/libexec/qt4-mac/lib -framework Carbon -framework AppKit -lpng -framework QtCore -lz -lm -framework ApplicationServices ld: library not found for -lpng collect2: ld returned 1 exit status make[2]: *** [cmssigner.app/Contents/MacOS/cmssigner] Error 1 make[1]: *** [sub-cmssigner-all] Error 2 make: *** [sub-examples-all] Error 2 Error: The following dependencies failed to build: kdegraphics4 qca Error: Status 1 encountered during processing.
So I went to the build directory
/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/qca/work/qca-2.0.0/examples
and called the long last command with an added "-L/opt/local/lib" as the first option to "g++-4.0". After that "port install qca" completed without problems.
By the way: "-I/opt/local/lib" is in my "CFLAGS" environment and many other ports compiled without problems. But I don't know much about compiling C programs, maybe I'm on the wrong track here...
Change History (7)
comment:1 Changed 15 years ago by mf2k (Frank Schima)
Description: | modified (diff) |
---|---|
Owner: | changed from macports-tickets@… to rowue@… |
comment:2 Changed 15 years ago by mf2k (Frank Schima)
Cc: | macsforever2000@… added |
---|
comment:4 Changed 15 years ago by mf2k (Frank Schima)
Resolution: | → fixed |
---|---|
Status: | new → closed |
This should be fixed now. Please clean the port and try again.
comment:5 follow-up: 6 Changed 15 years ago by rechner@…
As I understand it from looking at #20241 this is fixed due to a change in qt4-mac? So I would have to recompile qt4-mac just to test the fix? It takes about a full day (24 h) to compile that package on my G4 iMac (and I never leave it running at night, since it is in my bedroom). So I think I'll wait with that until there are KDE 4.3 Portfiles (maybe in a week or two?), so I can try them with the then latest qt4-mac.
I did try to "port -d sync ; port clean qca ; port -f build qca", but since the qca Portfile still dates 14 May it was to expect that it would still fail with the missing "-lpng", which it did.
comment:6 follow-up: 7 Changed 15 years ago by mf2k (Frank Schima)
comment:7 Changed 15 years ago by rechner@…
Replying to macsforever2000@…:
Yes. I did try installing qca after rebuilding qt4-mac and it works for me.
Ok, good. I'm sure it would work for me too, and this bug is rightly closed. I will keep an eye on the problem when I reinstall qt4-mac, though.
Cc Me!