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

Problems building trunk (and probably 1.8.x) on FreeBSD 9.0

From: Ben Reser <ben_at_reser.org>
Date: Fri, 10 May 2013 13:55:16 -0700

I was trying to build trunk on some ASF Infrastructure machines that
have FreeBSD 9.0 on them.

I ran into the following error:
/bin/sh /home/breser/trunk/libtool --tag=CC --silent --mode=compile
gcc -std=c89 -g -O2 -g -O2 -I./subversion/include -I./subversion
-I/usr/local/include/apr-1 -I/usr/local/include/apr-1
-I/usr/local/include -I/usr/local/include/db48
-I/home/breser/trunk/sqlite-amalgamation -o
subversion/libsvn_subr/sqlite.lo -c subversion/libsvn_subr/sqlite.c
subversion/libsvn_subr/sqlite.c:65:2: error: #error SQLite is too old
-- version 3.7.12 is the minimum required version
*** Error code 1

The problem is happening because the machine has the FreeBSD 9.0
sqlite package installed, which happens to be 3.7.10. Not a problem
I'll just use an amalgamation build so I run `./get-dep.sh sqlite`.

The problem is that FreeBSD's `apu-1-config --includes` has
-I/usr/local/include included in the output (which is where
sqlite3ext.h is installed). I'm not sure what the precise reason for
this is but I'm assuming there's some legit reason.

Putting SVN_SQLITE_INCLUDES earlier in the INCLUDES list solves the problem:
Index: Makefile.in
--- Makefile.in (revision 1481158)
+++ Makefile.in (working copy)
@@ -121,10 +121,11 @@

 INCLUDES = -I$(top_srcdir)/subversion/include -I$(top_builddir)/subversion \

Does that seem like a reasonable change for us to make?
Received on 2013-05-10 22:55:54 CEST

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.