[MacPorts] #20314: defect: qca-2.0.0 missing -L/opt/local/lib when building examples?
#20314: defect: qca-2.0.0 missing -L/opt/local/lib when building examples? ---------------------------------+------------------------------------------ Reporter: rechner@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: qca ---------------------------------+------------------------------------------ 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... -- Ticket URL: <http://trac.macports.org/ticket/20314> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20314: defect: qca-2.0.0 missing -L/opt/local/lib when building examples? ---------------------------------+------------------------------------------ Reporter: rechner@… | Owner: rowue@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: qca ---------------------------------+------------------------------------------ Changes (by macsforever2000@…): * owner: macports-tickets@… => rowue@… Old description:
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...
New description: 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... -- -- Ticket URL: <http://trac.macports.org/ticket/20314#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20314: defect: qca-2.0.0 missing -L/opt/local/lib when building examples? ---------------------------------+------------------------------------------ Reporter: rechner@… | Owner: rowue@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: qca ---------------------------------+------------------------------------------ Comment(by macsforever2000@…): See also #20241. -- Ticket URL: <http://trac.macports.org/ticket/20314#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20314: defect: qca-2.0.0 missing -L/opt/local/lib when building examples? ----------------------------------+----------------------------------------- Reporter: rechner@… | Owner: rowue@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Resolution: fixed | Keywords: Port: qca | ----------------------------------+----------------------------------------- Changes (by macsforever2000@…): * status: new => closed * resolution: => fixed Comment: This should be fixed now. Please clean the port and try again. -- Ticket URL: <http://trac.macports.org/ticket/20314#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20314: defect: qca-2.0.0 missing -L/opt/local/lib when building examples? ----------------------------------+----------------------------------------- Reporter: rechner@… | Owner: rowue@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Resolution: fixed | Keywords: Port: qca | ----------------------------------+----------------------------------------- Comment(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. -- Ticket URL: <http://trac.macports.org/ticket/20314#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20314: defect: qca-2.0.0 missing -L/opt/local/lib when building examples? ----------------------------------+----------------------------------------- Reporter: rechner@… | Owner: rowue@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Resolution: fixed | Keywords: Port: qca | ----------------------------------+----------------------------------------- Comment(by macsforever2000@…): Replying to [comment:5 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?
Yes. I did try installing qca after rebuilding qt4-mac and it works for me. -- Ticket URL: <http://trac.macports.org/ticket/20314#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20314: defect: qca-2.0.0 missing -L/opt/local/lib when building examples? ----------------------------------+----------------------------------------- Reporter: rechner@… | Owner: rowue@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Resolution: fixed | Keywords: Port: qca | ----------------------------------+----------------------------------------- Comment(by rechner@…): Replying to [comment:6 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. -- Ticket URL: <http://trac.macports.org/ticket/20314#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts