Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Mon, 13 Apr 2009 16:04:07 +1200

vollkommen_at_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

Received on Mon Apr 13 2009 - 03:04:02 MDT

This archive was generated by hypermail 2.2.0 : Mon Apr 13 2009 - 12:00:03 MDT