[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: cannot build httpd-2.0

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-02-12 19:29:55 CET

On Tue, Feb 12, 2002 at 12:12:16PM -0600, Karl Fogel wrote:
>...
> $ make distclean
> $ ./buildconf

If you're going to be running buildconf, then "make extraclean" rather than
distclean.

> $ ./configure --enable-dav --enable-so --prefix=/usr/local/apache2
> $ make
>
> At the very end of this mail is the entire output of `make'. But
> before that, here are the two bits that seem problematic. The first I
> believe is a non-fatal error we've seen before (anyone know how to fix
> this, though? It keeps cropping up):
>
> gcc -E -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 \
> -D_BSD_SOURCE -D_SVID_SOURCE -I./include -I../include \
> exports.c | grep "ap_hack_" | sed -e 's/^.*[)]\(.*\);$/\1/' >> apr.exp
> exports.c:31:23: apr_shmem.h: No such file or directory

Remove exports.c. It will be regenerated. If it still has a problem, then
you may have a file (somehow) that still refers to the bogus header. And I
wouldn't know what that is, nor (obviously) how to rectify that.

> But the second error is the one that prevents the build:
>...
> -I/usr/local/include -export-dynamic -o dftables dftables.lo \
> -lm -lcrypt -lnsl -ldl -lgdbm -ldb1 /usr/local/lib/libexpat.la
> libtool: link: cannot find the library `/usr/local/lib/libexpat.la'
> make[3]: *** [dftables] Error 1
>...
> make[3]: Leaving directory `/home/kfogel/src/httpd-2.0/srclib/pcre'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/kfogel/src/httpd-2.0/srclib/pcre'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/kfogel/src/httpd-2.0/srclib'
> make: *** [all-recursive] Error 1
>
> Compilation exited abnormally with code 2 at Tue Feb 12 12:46:27
>
> Can't find libexpat.la, hm? Okay, so then I tried building and
> installing apr and apr-util independently (in that order), and *then*
> building httpd-2.0, but httpd-2.0 still failed with the same error.

Shouldn't be necessary. apr-util's handling of expat is independent of
whether it is embedded or not.

> Note that when I built and installed apr-util independently, I didn't
> see anything about src/httpd-2.0/srclib/apr-util/xml/expat/lib/ being
> compiled or installed, even though apr-util/configure.in seems to
> indicate that expat is supposed to be built and installed (?).

Not sure that I follow. I'd need to see your configure output.

> Anyone else seen this? I haven't bothered the apache dev list or bug
> tracker with this yet, want to see if anyone here knows what's going
> on first.

Haven't seen it yet, but will go and grab a fresh copy of httpd and see if
it is horked for me.

>
> -Karl
>
> Here's the full output of "make":

We don't want this. We know it is broken. Why didn't it build expat? Why did
it refer to /usr/local? Let's see the apr-util portion of your configure
script.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:37:07 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.