I just ran the build/binbuild.sh script - unchanged. Never had it respond
with a LIBPATH like this before.

In any case, without expat installed the build/binbuild.sh script failed -
cannot find expat.

For the next test I downloaded, compiled, and make installed expat to
/usr/local (actually /usr/local is a symbolic link to /data/local and I am
beginning to think that some of these tools are reacting to the symbolic
link in some way).

On Fri, Oct 9, 2009 at 10:51 PM, Rainer Jung <rainer.j...@kippdata.de>wrote:

> 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 <mamf...@gmail.com
> > <mailto:mamf...@gmail.com>> 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.
>

Reminder: I ran build/binbuild.sh unmodified from the 2.2.14 distribution.


>
> >     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
>

Well, maybe I made a cut/paste error - as I have the 2.2.6, 2.2.10 and
several test of those directories with various extensions.

The current 2.2.14 directory is:

mich...@x054:[/data/prj/httpd-2.2.14]find . -name expat.h
./srclib/apr-util/xml/expat/lib/expat.h

And from root - note expat 2.0.1 is now installed: and /usr/local is a
symbolic link to /data/local...

mich...@x054:[/data/prj/httpd-2.2.14]find / -fstype jfs2  -name expat.h
/data/prj/httpd-2.2.6/srclib/apr-util/xml/expat/lib/expat.h
/data/prj/httpd-2.2.10/srclib/apr-util/xml/expat/lib/expat.h
/data/prj/httpd-2.2.6.proxy/srclib/apr-util/xml/expat/lib/expat.h
/data/prj/httpd-2.2.14/srclib/apr-util/xml/expat/lib/expat.h
/data/prj/httpd-2.2.6.err/srclib/apr-util/xml/expat/lib/expat.h
/data/prj/expat-2.0.1/lib/expat.h
/data/prj/expat-2.0.1/amiga/include/inline4/expat.h
/data/prj/expat-2.0.1/amiga/include/proto/expat.h
/data/prj/expat-2.0.1/amiga/include/libraries/expat.h
/data/prj/expat-2.0.1/amiga/include/interfaces/expat.h
/data/prj/httpd-2.2.10.bad/srclib/apr-util/xml/expat/lib/expat.h
/data/prj/Python-2.6.3/Modules/expat/expat.h
/data/prj/php-4.4.7/ext/xml/expat/expat.h
/data/local/include/expat.h
/data/local/apache2/include/expat.h




>
> Regards,
>
> Rainer
>

Reply via email to