Amos Jeffries wrote: > On 19/04/11 21:19, cc wrote: >> Hi, >> >> I tried building 3.1.12 today and came across the following >> errors: >> >> make[3]: Leaving directory `/st/always/squid-3.1.12/src/ip' >> Making all in icmp >> make[3]: Entering directory `/st/always/squid-3.1.12/src/icmp' >> g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=NULL -I../.. -I../../include >> -I../../src -I../../include -I../../libltdl -I/usr/local/ssl/include >> -I../ipfilter -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror >> -D_REENTRANT -m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -MT >> Icmp4.o -MD -MP -MF .deps/Icmp4.Tpo -c -o Icmp4.o Icmp4.cc >> Icmp4.cc: In member function `virtual void Icmp4::SendEcho(IpAddress&, >> int,const char*, int)': >> Icmp4.cc:96: error: invalid application of `sizeof' to an incomplete type >> Icmp4.cc:100: error: invalid application of `sizeof' to an incomplete >> type >> Icmp4.cc:103: error: invalid application of `sizeof' to an incomplete >> type >> Icmp4.cc:116: error: invalid use of undefined type `struct icmphdr' >> Icmp4.cc:96: error: forward declaration of `struct icmphdr' > <snip many repetitions on the problem> >> >> Am I missing something? > > Some required header is not being found. during ./configure wouldn't it tell me what header is missing and not let me continue? > > What operating system and compiler is this happening with please? > Slackware 12.0 (2.6.38 kernel) Compiler : GCC 3.3.5 Thanks Ed