On Sunday, March 11, 2001, at 02:22 PM, Rodent of Unusual Size wrote:
> Greg Stein wrote:
> >
> > From your log, it would appear that an expat header file was
> > found in /usr/include
>
> No.
>
> > but the corresponding library is not in /usr/lib. Either you
> > have an inconsistency (partial install)
>
> No. There is some expat stuff in /usr/local/include, put there
> as part of a full PHP4 install. It is not partial.
>
> > there is a bug in our detection of an already-installed expat
>
> This looks like the prime candidate.
>
> > and/or we need to make our detection of the system expat smarter
> > (e.g. don't assume a lib exists just because we saw the
> > header, maybe other combos of installations, etc)
>
> Uh huh.
>
I'm also seeing what Ken sees. So it would seem prudent to check for the
lib itself before deciding to link it in.
Ken, this might be not quite golden, since I'm no expat maven,
but it works for me:
Index: apu-conf.m4
===================================================================
RCS file: /home/cvs/apr-util/build/apu-conf.m4,v
retrieving revision 1.6
diff -u -d -b -r1.6 apu-conf.m4
--- apu-conf.m4 2001/03/09 14:37:20 1.6
+++ apu-conf.m4 2001/03/11 21:03:05
@@ -298,12 +298,14 @@
expat_include_dir="$1"
expat_libs="$1/libexpat.la"
expat_old=yes
- elif test -r "$1/include/xmlparse.h"; then
+ elif test -r "$1/include/xmlparse.h" -a \
+ -r "$1/lib/libexpat.a"; then
dnl ### who is this?
expat_include_dir="$1/include"
expat_libs="-L$1/lib -lexpat"
expat_old=yes
- elif test -r "$1/include/xml/xmlparse.h"; then
+ elif test -r "$1/include/xml/xmlparse.h" -a \
+ -r "$1/lib/xml/libexpat.a"; then
dnl ### who is this?
expat_include_dir="$1/include/xml"
expat_libs="-L$1/lib -lexpat"
@@ -313,7 +315,8 @@
expat_include_dir="$1/include/xmltok"
expat_libs="-L$1/lib -lxmlparse -lxmltok"
expat_old=yes
- elif test -r "$1/xmlparse/xmlparse.h"; then
+ elif test -r "$1/xmlparse/xmlparse.h" -a \
+ -r "$1/lib/xmlparse/libexpat.a"; then
dnl Expat 1.0 or 1.1 source directory
expat_include_dir="$1/xmlparse"
Chuck Murcko
Topsail Group
http://www.topsail.org/