Branko Čibej <br...@wandisco.com> writes:

> Can you post the actual compiler-via-libtool invocation, so that I can
> see which options came through to confuse the compiler?

This is the working line (with a number of compiler flags from my normal
build):

/bin/sh /home/pm/sw/subversion/obj/libtool --tag=CC --silent --mode=compile 
gcc-4.6  -g -DSVN_DEPRECATED= -DAPR_POOL_DEBUG -Wpointer-arith 
-Wdeclaration-after-statement   -Wold-style-definition -Wwrite-strings 
-Wbad-function-cast -Wstrict-overflow -pthread 
-Werror=implicit-function-declaration -DSVN_DEBUG -DAP_DEBUG 
-Wno-int-to-pointer-cast  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE 
-I/home/pm/sw/subversion/obj/subversion 
-I/home/pm/sw/subversion/obj/../src/subversion/include 
-I/home/pm/sw/subversion/obj/../src/subversion/bindings/swig 
-I/home/pm/sw/subversion/obj/../src/subversion/bindings/swig/include 
-I/home/pm/sw/subversion/obj/../src/subversion/bindings/swig/proxy 
-I/home/pm/sw/subversion/obj/subversion/bindings/swig/proxy 
-I/usr/include/apr-1.0  -I/usr/include/apr-1.0 -I/usr/include -I. 
-I/usr/lib/ruby/1.8/x86_64-linux 
-I/home/pm/sw/subversion/obj/../src/subversion/bindings/swig/ruby/libsvn_swig_ruby
 -prefer-pic -c -o subversion/bindings/swig/ruby/svn_client.lo 
subversion/bindings/swig/ruby/svn_client.c

This is the failing line:

/bin/sh /home/pm/sw/subversion/obj2/libtool --tag=CC --silent --mode=compile 
gcc-4.6  -g -DSVN_DEPRECATED= -DAPR_POOL_DEBUG -std=c89 -Wall -Wshadow 
-Wpointer-arith -Wdeclaration-after-statement -Wstrict-prototypes 
-Wmissing-prototypes -Wold-style-definition -Wwrite-strings -Wbad-function-cast 
-Wstrict-overflow -pthread  -DSVN_DEBUG -DAP_DEBUG -Wno-int-to-pointer-cast  
-DLINUX=2 -D_REENTRANT -D_GNU_SOURCE  -I/home/pm/sw/subversion/obj2/subversion 
-I/home/pm/sw/subversion/obj2/../src2/subversion/include 
-I/home/pm/sw/subversion/obj2/../src2/subversion/bindings/swig 
-I/home/pm/sw/subversion/obj2/../src2/subversion/bindings/swig/include 
-I/home/pm/sw/subversion/obj2/../src2/subversion/bindings/swig/proxy 
-I/home/pm/sw/subversion/obj2/subversion/bindings/swig/proxy 
-I/usr/include/apr-1.0  -I/usr/include/apr-1.0 -I/usr/include -I. 
-I/usr/lib/ruby/1.8/x86_64-linux 
-I/home/pm/sw/subversion/obj2/../src2/subversion/bindings/swig/ruby/libsvn_swig_ruby
 -prefer-pic -c -o subversion/bindings/swig/ruby/svn_client.lo 
subversion/bindings/swig/ruby/svn_client.c

So the build system used to strip -std=c89 and now does not.  If I
remove -std=c89 from SWIG_RB_COMPILE in Makefile the build works.

-- 
Certified & Supported Apache Subversion Downloads:
http://www.wandisco.com/subversion/download

Reply via email to