Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16323 - php-4.3.x and mod_php-4.3.x FAILS to build with qt and xml2 use flags enabled
Summary: php-4.3.x and mod_php-4.3.x FAILS to build with qt and xml2 use flags enabled
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
: 16377 16438 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-02-24 18:46 UTC by Alessandro Pisani
Modified: 2003-08-12 01:23 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Pisani 2003-02-24 18:46:09 UTC
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
Comment 1 Alessandro Pisani 2003-02-24 18:47:30 UTC
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.

Comment 2 Alessandro Pisani 2003-02-24 18:53:28 UTC
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
Comment 3 SpanKY gentoo-dev 2003-02-24 20:43:44 UTC
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 
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-02-25 09:23:35 UTC
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"
        }

Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-02-25 09:36:15 UTC
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"
        }
Comment 6 SpanKY gentoo-dev 2003-02-25 20:09:32 UTC
*** Bug 16377 has been marked as a duplicate of this bug. ***
Comment 7 SpanKY gentoo-dev 2003-02-26 21:02:47 UTC
*** Bug 16438 has been marked as a duplicate of this bug. ***
Comment 8 Dave Love 2003-02-27 10:54:20 UTC
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.  
Comment 9 Dave Love 2003-02-27 11:02:23 UTC
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.

Comment 10 Forrest Rae 2003-02-27 14:13:44 UTC
The proposed sollutions above do not work for my configuration.  I'm using an almost completely default make.conf.
Comment 11 Alessandro Pisani 2003-02-27 16:02:07 UTC
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
Comment 12 SpanKY gentoo-dev 2003-03-03 04:23:39 UTC
should be all set, have fun
Comment 13 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-08-12 01:23:48 UTC
Closing bug properly.