vollkom...@gmx.net wrote:
Please find the full "make" output below:

<snip>
 g++ -DHAVE_CONFIG_H -I. -I. -I../../include -I../.. -I../../include 
-I../../src -I../../include -I/usr/include/libxml2 -Werror -Wall 
-Wpointer-arith -Wwrite-strings -Wcomments -g -O2 -MT AsyncJob.lo -MD -MP -MF 
.deps/AsyncJob.Tpo -c AsyncJob.cc  -fno-common -DPIC -o .libs/AsyncJob.o
 g++ -DHAVE_CONFIG_H -I. -I. -I../../include -I../.. -I../../include -I../../src 
-I../../include -I/usr/include/libxml2 -Werror -Wall -Wpointer-arith -Wwrite-strings 
-Wcomments -g -O2 -MT AsyncJob.lo -MD -MP -MF .deps/AsyncJob.Tpo -c AsyncJob.cc -o 
AsyncJob.o >/dev/null 2>&1
/bin/sh ../../libtool --tag=CXX --mode=link g++ -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments -g -O2 -g -o libbase.la AsyncJob.lo ar cru .libs/libbase.a .libs/AsyncJob.o
ranlib .libs/libbase.a
creating libbase.la
(cd .libs && rm -f libbase.la && ln -s ../libbase.la libbase.la)
Making all in acl
if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. 
-I../../include -I../.. -I../../include -I../../src -I../../include   
-I/usr/include/libxml2  -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments  -g -O2 
-MT Acl.lo -MD -MP -MF ".deps/Acl.Tpo" -c -o Acl.lo Acl.cc; \
then mv -f ".deps/Acl.Tpo" ".deps/Acl.Plo"; else rm -f ".deps/Acl.Tpo"; exit 1; 
fi
mkdir .libs
 g++ -DHAVE_CONFIG_H -I. -I. -I../../include -I../.. -I../../include 
-I../../src -I../../include -I/usr/include/libxml2 -Werror -Wall 
-Wpointer-arith -Wwrite-strings -Wcomments -g -O2 -MT Acl.lo -MD -MP -MF 
.deps/Acl.Tpo -c Acl.cc  -fno-common -DPIC -o .libs/Acl.o
../../include/fatal.h:7: error: expected initializer before 'PRINTF_FORMAT_ARG1'

After some discussion on IRC we have come to the conclusion the cause is probably your compiler not defining __GNUC__ like we are expecting.

Are you able to test and confirm or deny that?
(attached patch -p0 temporarily forces the define)

If possible are you able to track down what alternative definition is actually being made instead of __GNU__? so we can make this a permanent build-time fix.

Thanks

Amos
--
Please be using
  Current Stable Squid 2.7.STABLE6 or 3.0.STABLE14
  Current Beta Squid 3.1.0.7
=== modified file 'include/config.h'
--- include/config.h	2009-03-03 02:52:23 +0000
+++ include/config.h	2009-04-13 04:00:08 +0000
@@ -241,7 +241,7 @@
  * the compile fail, so we must disable the check on native Windows.
  */
 
-#if __GNUC__ && !defined(_SQUID_MSWIN_)
+#if 1 // __GNUC__ && !defined(_SQUID_MSWIN_)
 #define PRINTF_FORMAT_ARG1 __attribute__ ((format (printf, 1, 2)))
 #define PRINTF_FORMAT_ARG2 __attribute__ ((format (printf, 2, 3)))
 #define PRINTF_FORMAT_ARG3 __attribute__ ((format (printf, 3, 4)))

Reply via email to