Bug 54301
Summary: | libxml2 dir structure breaks dependencies in other programs | ||
---|---|---|---|
Product: | [Retired] Red Hat Raw Hide | Reporter: | nobody+ctolley |
Component: | php | Assignee: | Phil Copeland <copeland> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 1.0 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2001-12-07 23:57:57 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
nobody+ctolley
2001-10-03 21:35:11 UTC
Unless I misunderstood the report, this is not a bug, this is a feature. The PHP script MUST use xml2-config --cflags to get the preprocessor flags for libxml2. The code MUST use #include <libxml/xxx.h> . The includes are *on purpose* expected to be stored in /usr/include/libxml2/libxml . There should be NO /usr/include/libxml directory or symlink. The libxml version 1 headers are expected to be stored in /usr/include/gnome-xml . If the PHP configuration doesn't use xml2-config to get the include flags it is broken. If it doesn't include libxml2 files using #include <libxml/xxx.h> it is broken too. Get them to fix it. Daniel Ok, fine, but I'm using SRPMS directly from the RawHide distro off of RedHat's FTP site. When I first started this, I was trying to use everthing as it was, but the PHP SRPM that is there won't rebuild as-is with libxml2 installed where it was, and I installed the libxml2-2.4.5 SRPM from RedHat's FTP site as well. As you closed both the GNOME and RedHat's bug reports, please provide me with some advice on how RedHat got this to compile properly using the libxml2-2.4.5 RPM. As RedHat has RPMS available on their FTP site for PHP, RedHat obviously managed to get it to compile against the libxml2 libraries...I just don't know how it worked. Am I missing something else? It wasn't until I modified the libxml2 install paths that it would work. I'm trying to stick as close to the original RedHat configuration as possible, but I'm either missing some dependency that isn't clearly indicated, or possibly the SRPM of PHP I have has a typo/bug in the spec file. Any assistance would be greatly appreciated. Okay, this then becomes a PHP bug. The PHP package should be updated to use xml2-config to grab its libxml2 CFLAGS and LIBS. I tried to look at php-4.0.6/configure.in but was unable to find out where XML compile and link informations were set. Daniel While I was awaiting your reply, I opened a bug against the PHP SRPM. It is 54351. I don't know how you want to handle this current bug report. I'm guessing you'll close it or link it to the other, but I'll let you decide on the best course. I'm curious as to how the pre-made RPMs for PHP, that are available in the RawHide download directories, were created. Was a work-around done to make the compile work? In PHP4.1.0RC1 this problem is correct This should be fixed in php 4.1.2-5. For the record you want ext/*/config.m4 -- configure is built from configure.in + the config.m4s |