Re: [squid-users] compilation errors on rhel 5

From: Mario Remy Almeida <malmeida_at_isaaviation.ae>
Date: Wed, 26 Nov 2008 15:14:04 +0400

Thanks JD,

after installing compat-libstdc++-* the debug.o errors were solved
was able to compile it
but what about the errors of missing files in config.log

conftest.c:11:28: error: ac_nonexistent.h: No such file or directory
conftest.c:11:28: error: ac_nonexistent.h: No such file or directory
conftest.cpp:22:28: error: ac_nonexistent.h: No such file or directory
conftest.cpp:22:28: error: ac_nonexistent.h: No such file or directory
conftest.c:92:18: error: sasl.h: No such file or directory
conftest.c:59:18: error: sasl.h: No such file or directory
conftest.c:67:28: error: ac_nonexistent.h: No such file or directory
conftest.c:105:21: error: bstring.h: No such file or directory
conftest.c:72:21: error: bstring.h: No such file or directory
conftest.c:113:23: error: gnumalloc.h: No such file or directory
conftest.c:80:23: error: gnumalloc.h: No such file or directory
conftest.c:114:23: error: ip_compat.h: No such file or directory
conftest.c:81:23: error: ip_compat.h: No such file or directory
conftest.c:114:27: error: ip_fil_compat.h: No such file or directory
conftest.c:81:27: error: ip_fil_compat.h: No such file or directory
conftest.c:114:20: error: ip_fil.h: No such file or directory
conftest.c:81:20: error: ip_fil.h: No such file or directory
conftest.c:114:20: error: ip_nat.h: No such file or directory
conftest.c:81:20: error: ip_nat.h: No such file or directory
conftest.c:114:17: error: ipl.h: No such file or directory
conftest.c:81:17: error: ipl.h: No such file or directory
conftest.c:114:18: error: libc.h: No such file or directory
conftest.c:81:18: error: libc.h: No such file or directory
conftest.c:118:19: error: mount.h: No such file or directory
conftest.c:85:19: error: mount.h: No such file or directory
conftest.c:121:35: error: netinet/ip_fil_compat.h: No such file or
directory
conftest.c:88:35: error: netinet/ip_fil_compat.h: No such file or
directory
conftest.c:140:23: error: sys/bswap.h: No such file or directory
conftest.c:107:23: error: sys/bswap.h: No such file or directory
conftest.c:140:24: error: sys/endian.h: No such file or directory
conftest.c:107:24: error: sys/endian.h: No such file or directory
conftest.c:144:21: error: sys/md5.h: No such file or directory
conftest.c:111:21: error: sys/md5.h: No such file or directory
conftest.c:162:18: error: glib.h: No such file or directory
conftest.c:129:18: error: glib.h: No such file or directory
conftest.c:165:24: error: nss_common.h: No such file or directory
conftest.c:132:24: error: nss_common.h: No such file or directory
conftest.c:168:28: error: sys/capability.h: No such file or directory
conftest.c:135:28: error: sys/capability.h: No such file or directory
conftest.c:171:44: error: linux/netfilter_ipv4/ip_tproxy.h: No such file
or directory
conftest.c:194:31: error: netinet/ip_compat.h: No such file or directory
conftest.c:194:28: error: netinet/ip_fil.h: No such file or directory
conftest.c:195:28: error: netinet/ip_nat.h: No such file or directory
conftest.c:195:25: error: netinet/ipl.h: No such file or directory
conftest.c:195:23: error: net/pfvar.h: No such file or directory
conftest.c:177:27: error: libxml/parser.h: No such file or directory
conftest.c:144:27: error: libxml/parser.h: No such file or directory
conftest.c:177:27: error: libxml/parser.h: No such file or directory
conftest.c:144:27: error: libxml/parser.h: No such file or directory

2nd any idea where am i failing to compile it in ubuntu 8.10

errors

 g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/etc/squid/squid.conf\" -I.
-I. -I../include -I. -I. -I../include -I../include
-I../lib/libTrie/include -I../lib -I../lib -I/usr/include/libxml2
-Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments
-DDEFAULT_SQUID_CONFIG_DIR=\"/etc/squid\" -DDEFAULT_SQUID_DATA_DIR=
\"/share/squid\" -g -O2 -MT ICAP/AsyncJob.lo -MD -MP -MF
ICAP/.deps/AsyncJob.Tpo -c ICAP/AsyncJob.cc -fPIC -DPIC -o
ICAP/.libs/AsyncJob.o
cc1plus: warnings being treated as errors
ICAP/AsyncJob.cc: In member function ‘virtual const char*
AsyncJob::status() const’:
ICAP/AsyncJob.cc:158: error: format not a string literal and no format
arguments
make[1]: *** [ICAP/AsyncJob.lo] Error 1
make[1]: Leaving directory `/home/remy/rnd/squid-3.1.0.2/src'
make: *** [all-recursive] Error 1

Regards,
Remy

On Wed, 2008-11-26 at 02:12 -0800, John Doe wrote:
> Maybe missing a c++ lib?
> But I never tried Squid 3.x, only 2.x...
> On my CentOS I have those ( rpm -qa | grep "++" ):
>
> libstdc++-4.1.2-42.el5
> libstdc++-devel-4.1.2-42.el5
> libsigc++20-2.0.17-1.el5.rf
> gcc-c++-4.1.2-42.el5
> compat-libstdc++-296-2.96-138
> compat-libstdc++-33-3.2.3-61
>
> JD
>
>
>
> ----- Original Message ----
> > From: Mario Remy Almeida <malmeida_at_isaaviation.ae>
> > To: Squid Users <squid-users_at_squid-cache.org>
> > Sent: Wednesday, November 26, 2008 6:42:08 AM
> > Subject: [squid-users] compilation errors on rhel 5
> >
> > Hi All
> >
> > Since compilation failed on Ubuntu 8.10 thought to give a try on rhel 5
> > 32bit
> >
> > but no luck
> >
> > had all the No such file or directory error message posted in the early
> > mail and also got this error message
> >
> > run make and got the below errors
> >
> > debug.o: In function `operator<< >':
> > /usr/include/c++/4.3/ostream:517: undefined reference to
> > `std::basic_ostream>&
> > std::__ostream_insert
> > >(std::basic_ostream>&, char const*, int)'
> > /usr/include/c++/4.3/ostream:517: undefined reference to
> > `std::basic_ostream>&
> > std::__ostream_insert
> > >(std::basic_ostream>&, char const*, int)'
> > debug.o: In function `operator<< >':
> > /home/remy/rnd/squid-3.1.0.2/src/debug.cc:776: undefined reference to
> > `std::basic_ostream>&
> > std::__ostream_insert
> > >(std::basic_ostream>&, char const*, int)'
> > debug.o: In function `operator<< >':
> > /usr/include/c++/4.3/ostream:517: undefined reference to
> > `std::basic_ostream>&
> > std::__ostream_insert
> > >(std::basic_ostream>&, char const*, int)'
> > /usr/include/c++/4.3/ostream:517: undefined reference to
> > `std::basic_ostream>&
> > std::__ostream_insert
> > >(std::basic_ostream>&, char const*, int)'
> > debug.o:/home/remy/rnd/squid-3.1.0.2/src/debug.cc:778: more undefined
> > references to `std::basic_ostream>&
> > std::__ostream_insert
> > >(std::basic_ostream>&, char const*, int)'
> > follow
> > collect2: ld returned 1 exit status
> > make[1]: *** [cf_gen] Error 1
> > make[1]: Leaving directory `/root/squid-3.1.0.2/src'
> > make: *** [all-recursive] Error 1
> >
> > need help
> >
> > what should i do next to solve the above errors?
> >
> > Regards
> > Remy
>
>
>
>
>
Received on Wed Nov 26 2008 - 11:14:22 MST

This archive was generated by hypermail 2.2.0 : Wed Nov 26 2008 - 12:00:03 MST