On 09.10.2009 00:39, Michael Felt wrote: > In case the question is not obvious - why is the code not finding it's > own expat.h file? Is it not suppossed to - meaning install the expat > package?
Yes, it should. > On Thu, Oct 8, 2009 at 6:11 PM, Michael Felt <[email protected] > <mailto:[email protected]>> wrote: > > ok. build/binbuild.sh is the starting point it seems - and I get an > error. > > /bin/sh /data/prj/httpd-2.2.14/srclib/apr/libtool --silent > --mode=compile cc -qlanglvl=extc89 -g -qHALT=E -DHAVE_CONFIG_H > -U__STR__ -D_THREAD_SAFE -D_LARGEFILE64_SOURCE > -I/data/prj/httpd-2.2.14/srclib/apr-util/include > -I/data/prj/httpd-2.2.14/srclib/apr-util/include/private > -I/data/prj/httpd-2.2.14/srclib/apr/include > -I/data/prj/httpd-2.2.14/srclib/apr-util/xml/expat/include -o > xml/apr_xml.lo -c xml/apr_xml.c && touch xml/apr_xml.lo > "xml/apr_xml.c", line 35.10: 1506-296 (S) #include file <expat.h> > not found. > "xml/apr_xml.c", line 66.5: 1506-046 (S) Syntax error. > "xml/apr_xml.c", line 67.10: 1506-007 (S) "enum XML_Error" is undefined. > "xml/apr_xml.c", line 344.28: 1506-022 (S) "xp" is not a member of > "struct apr_xml_parser". > "xml/apr_xml.c", line 345.13: 1506-022 (S) "xp" is not a member of > "struct apr_xml_parser". > "xml/apr_xml.c", line 364.60: 1506-277 (S) Syntax error: possible > missing ')' or ','? > "xml/apr_xml.c", line 381.13: 1506-022 (S) "xp" is not a member of > "struct apr_xml_parser". > "xml/apr_xml.c", line 382.17: 1506-022 (S) "xp" is not a member of > "struct apr_xml_parser". > "xml/apr_xml.c", line 390.29: 1506-022 (S) "xp" is not a member of > "struct apr_xml_parser". > "xml/apr_xml.c", line 391.35: 1506-022 (S) "xp" is not a member of > "struct apr_xml_parser". > "xml/apr_xml.c", line 392.41: 1506-022 (S) "xp" is not a member of > "struct apr_xml_parser". > "xml/apr_xml.c", line 404.35: 1506-022 (S) "xp" is not a member of > "struct apr_xml_parser". > "xml/apr_xml.c", line 414.17: 1506-022 (S) "xp" is not a member of > "struct apr_xml_parser". > "xml/apr_xml.c", line 418.36: 1506-022 (S) "xp" is not a member of > "struct apr_xml_parser". > "xml/apr_xml.c", line 422.55: 1506-022 (S) "xp" is not a member of > "struct apr_xml_parser". > make[3]: *** [xml/apr_xml.lo] Error 1 > make[3]: Leaving directory `/data/prj/httpd-2.2.14/srclib/apr-util' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/data/prj/httpd-2.2.14/srclib/apr-util' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/data/prj/httpd-2.2.14/srclib' > make: *** [all-recursive] Error 1 > ERROR: Failed to build Apache. See "build.log" for details. When I do a build (not on AIX), then configure produces an output line setting APRUTIL_INCLUDES to "-I/my/apache/build/dir/srclib/apr-util/xml/expat/lib" and later setting EXTRA_INCLUDES to "-I$(top_builddir)/srclib/pcre -I. ... -I/my/apache/build/dir/srclib/apr/include -I/my/apache/build/dir/srclib/apr-util/include -I/my/apache/build/dir/srclib/apr-util/xml/expat/lib ..." Then when doing the make, /usr/bin/ksh /my/apache/build/dir/srclib/apr/libtool --silent --mode=compile ... -I/my/apache/build/dir/srclib/apr-util/include -I/my/apache/build/dir/srclib/apr-util/include/private -I/my/apache/build/dir/srclib/apr/include -I/my/apache/build/dir/srclib/apr-util/xml/expat/lib -o xml/apr_xml.lo -c xml/apr_xml.c && touch xml/apr_xml.lo So the path -I/my/apache/build/dir/srclib/apr-util/xml/expat/lib is correct and the header file gets found. In your snippet there is a -I/data/prj/httpd-2.2.14/srclib/apr-util/xml/expat/include which is wrong. Did you give explicit instructions to configure where to find expat? You don't need to. > mich...@x054:[/data/prj/httpd-2.2.14]find . -name expat.h > ./srclib/apr-util/xml/expat.h > > mich...@x054:[/data/prj/httpd-2.2.14]find . -name apr_xml.c > ./srclib/apr-util/xml/apr_xml.c > > mich...@x054:[/data/prj/httpd-2.2.14]find / -fstype jfs2 -name expat.h > /data/prj/httpd-2.2.14/srclib/apr-util/xml/expat/lib/expat.h > /data/prj/Python-2.6.3/Modules/expat/expat.h > /usr/local/apache2/include/expat.h That contradicts the result of your first find: /data/prj/httpd-2.2.14 + ./srclib/apr-util/xml/expat.h != /data/prj/httpd-2.2.14/srclib/apr-util/xml/expat/lib/expat.h Regards, Rainer
