configure will fails with error: checking for PSPELL support... no checking for QtDOM support... yes configure: error: qdom.h not found. !!! ERROR: dev-php/php-4.3.1-r1 failed. !!! Function src_compile, Line 131, Exitcode 1 this is caused by the line: export QTDIR=/usr/qt/2 #hope this helps - danarmak in the ebuild, which will cause configure searching for qdom.h in the wrong dir if qt-3.x is installed instead of qt-2.x.y please fix :) bye, Alessandro !!! bad ./configure Reproducible: Always Steps to Reproduce: 1. try to build with qt and xml2 use flags enable 2. 3. Actual Results: error in configure Expected Results: successful compilation
I would like to add that this is common to _ALL_ the 4.3.x ebuild, not only 4.3.1-r1. It also affects mod_php 4.3.x ebuilds.
the fix: replace the export line with: if [ -d /usr/qt/2 ]; then export QTDIR=/usr/qt/2 elif [ -d /usr/qt/3 ]; then export QTDIR=/usr/qt/3 fi can you please fix this asap? thank you :) bye, Alessandro
since 3 is newer than 2, you should probably have: if [ -d /usr/qt/3 ]; then export QTDIR=/usr/qt/3 elif [ -d /usr/qt/2 ]; then export QTDIR=/usr/qt/2 fi
diff: --- /usr/portage/dev-php/php/php-4.3.1-r1.ebuild 2003-02-24 13:55:22.000000000 -0800 +++ /usr/local/portage/dev-php/php/php-4.3.1-r2.ebuild 2003-02-25 06:23:00.000000000 -0800 @@ -124,7 +124,11 @@ fi use qt && { - export QTDIR=/usr/qt/2 #hope this helps - danarmak + if [ -d /usr/qt/3 ]; then + export QTDIR=/usr/qt/3 + elif [ -d /usr/qt/2 ]; then + export QTDIR=/usr/qt/2 + fi myconf="${myconf} --with-qtdom" }
diff for mod_php: --- /usr/portage/dev-php/mod_php/mod_php-4.3.1-r1.ebuild 2003-02-24 13:53:03.000000000 -0800 +++ mod_php-4.3.1-r2.ebuild 2003-02-25 06:35:07.000000000 -0800 @@ -153,7 +153,11 @@ fi use qt && { - export QTDIR=/usr/qt/2 #hope this helps - danarmak + if [ -d /usr/qt/3 ]; then + export QTDIR=/usr/qt/3 + elif [ -d /usr/qt/2 ]; then + export QTDIR=/usr/qt/2 + fi myconf="${myconf} --with-qtdom" }
*** Bug 16377 has been marked as a duplicate of this bug. ***
*** Bug 16438 has been marked as a duplicate of this bug. ***
The mod_php ebuilds all set QTDIR=/usr/qt/2, which breaks horribly when only qt-3.* is installed. I managed to get a correct build by removing the above line, since QTDIR is already set correctly by /etc/env.d/50qtdir3.
Ok, so I need to read farther before replying. Sorry about the last comment. Can I recommed the following: QTDIR=/usr/qt/`ls /usr/qt|sort -rn|head -1` That way we don't need to go through this again when qt/4 (or qt/10) comes out.
The proposed sollutions above do not work for my configuration. I'm using an almost completely default make.conf.
Forrest: very weird... all the above solution works for me :| can you please give us some details about the steps you're doing and your settings? thank you bye, Alessandro
should be all set, have fun
Closing bug properly.