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

Re: Help with compiling

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Mon, 08 Apr 2013 11:16:08 +0100

Maureen Barger <mobarger_at_gmail.com> writes:

> Did svn's build use the right copy of http_log.h?
> How do I check?

If you look at the compile commad for one of the mod_dav_svn files you
should see something like:

$ rm subversion/mod_dav_svn/authz.lo
$ make mod_dav_svn
/bin/sh /home/pm/sw/subversion/obj-1.7/libtool --tag=CC --silent --mode=compile gcc -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/local/httpd-2.4/include -I../src-1.7/subversion/include -I./subversion -I/usr/local/httpd-2.4/include -I/usr/local/httpd-2.4/include -I/usr/include/neon -I/usr/local/serf/include/serf-1 -o subversion/mod_dav_svn/authz.lo -c ../src-1.7/subversion/mod_dav_svn/authz.c

You can manually invoke that same libtool command but change --silent to
-verbose:

$ /bin/sh /home/pm/sw/subversion/obj-1.7/libtool --tag=CC --verbose --mode=compile gcc -DLINUX -D_REENTRANT -D_GNU_SOURCE -DAPR_POOL_DEBUG=1 -I/usr/local/httpd-2.4/include -I../src-1.7/subversion/include -I./subversion -I/usr/local/httpd-2.4/include -I/usr/local/httpd-2.4/include -I/usr/include/neon -I/usr/local/serf/include/serf-1 -o subversion/mod_dav_svn/authz.lo -c ../src-1.7/subversion/mod_dav_svn/authz.c
libtool: compile: gcc -DLINUX -D_REENTRANT -D_GNU_SOURCE -DAPR_POOL_DEBUG=1 -I/usr/local/httpd-2.4/include -I../src-1.7/subversion/include -I./subversion -I/usr/local/httpd-2.4/include -I/usr/local/httpd-2.4/include -I/usr/include/neon -I/usr/local/serf/include/serf-1 -c ../src-1.7/subversion/mod_dav_svn/authz.c -fPIC -DPIC -o subversion/mod_dav_svn/.libs/authz.o

You can manually invoke the gcc command but add -save-temps

gcc -save-temps -DLINUX -D_REENTRANT -D_GNU_SOURCE -DAPR_POOL_DEBUG=1 -I/usr/local/httpd-2.4/include -I../src-1.7/subversion/include -I./subversion -I/usr/local/httpd-2.4/include -I/usr/local/httpd-2.4/include -I/usr/include/neon -I/usr/local/serf/include/serf-1 -c ../src-1.7/subversion/mod_dav_svn/authz.c -fPIC -DPIC -o subversion/mod_dav_svn/.libs/authz.o

Then look for http_log.h in the authz.i file:

$ grep http_log.h authz.i | head -1
# 1 "/usr/local/httpd-2.4/include/http_log.h" 1

-- 
Certified & Supported Apache Subversion Downloads:
http://www.wandisco.com/subversion/download
Received on 2013-04-08 12:16:46 CEST

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

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