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

Subversion build failure

From: Warren Falk <warren_at_warrenfalk.com>
Date: 2003-05-14 17:39:31 CEST

I'm running RedHat Linux 8.0.

I have apache 2.0.44 in /usr/local/apache2

The apr.h in /usr/local/apache2/include does not include the define for
APR_UINT64_T_FMT (it is an older version)

so I configured svn with --with-apr=<apr
directory> --with-apr-util=<apr-util directory>

when building subversion/mod_dav_svn/liveprops.lo, I get a "parse error
before APR_UINT64_T_FMT" because the apache include folder comes before the
apr include folder in the makefile which causes the old apr.h file to be
included even though I configured with the new apr folder. This was
frustrating to track down.

because apr is included in apache2 includes, the --with-apr should
"override" the apache location where possible, I believe. To do this I
altered Makefile.in ... here is the diff, this solved my build problem - I
simply moved $(INCLUDES) before $(APACHE_INCLUDES) in the search order for
mod_dav_svn destined files.

--- Makefile.in (revision 5891)
+++ Makefile.in (working copy)
@@ -121,7 +121,7 @@
 LT_COMPILE = $(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE)

 # special compilation for files destined for mod_dav_svn
-COMPILE_APACHE_MOD = $(LIBTOOL) $(LTFLAGS) --mode=compile $(CC) $(CPPFLAGS)
$(CFLAGS) $(APACHE_INCLUDES) $(INCLUDES) -o $@ -c
+COMPILE_APACHE_MOD = $(LIBTOOL) $(LTFLAGS) --mode=compile $(CC) $(CPPFLAGS)
$(CFLAGS) $(INCLUDES) $(APACHE_INCLUDES) -o $@ -c

 # special compilation for files destined for libsvn_swig_* (e.g.
swigutil_*.c)
 COMPILE_SWIG_PY = $(LIBTOOL) $(LTFLAGS) --mode=compile $(CC)
$(CPPFLAGS) -DSWIGPYTHON $(CFLAGS) $(SWIG_PY_INCLUDES) $(INCLUDES) -o $@ -c

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed May 14 17:48:09 2003

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.