SLES build error, what to do?

From: Eliezer Croitoru <eliezer_at_ngtech.co.il>
Date: Mon, 23 Dec 2013 01:08:52 +0200

I am trying to build squid on SLES node to at least make sure that it
can run on it.
SLES offers (as much as I can tell) squid(2.7.STABLE5-2.12.16.1) and
squid3(3.1.12-8.12.1) packages.

I am trying to make sure that squid 3.4(and maybe others) can be
compiled and run on a SLES system.

The basic problem I have seen on a basic compilation(./configure &&
make) is:
libtool: link: ranlib .libs/libipc.a
libtool: link: ( cd ".libs" && rm -f "libipc.la" && ln -s "../libipc.la"
"libipc.la" )
make[3]: Leaving directory `/opt/src/squid-3.4.1/src/ipc'
Making all in mgr
make[3]: Entering directory `/opt/src/squid-3.4.1/src/mgr'
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-I../.. -I../../include -I../../lib -I../../src -I../../include
-I../../libltdl -Wall -Wpointer-arith -Wwrite-strings -Wcomments
-Wshadow -Werror -pipe -D_REENTRANT -g -O2 -march=native -std=c++0x -MT
Action.lo -MD -MP -MF .deps/Action.Tpo -c -o Action.lo Action.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include
-I../../lib -I../../src -I../../include -I../../libltdl -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe
-D_REENTRANT -g -O2 -march=native -std=c++0x -MT Action.lo -MD -MP -MF
.deps/Action.Tpo -c Action.cc -fPIC -DPIC -o .libs/Action.o
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include
-I../../lib -I../../src -I../../include -I../../libltdl -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe
-D_REENTRANT -g -O2 -march=native -std=c++0x -MT Action.lo -MD -MP -MF
.deps/Action.Tpo -c Action.cc -o Action.o >/dev/null 2>&1
mv -f .deps/Action.Tpo .deps/Action.Plo
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-I../.. -I../../include -I../../lib -I../../src -I../../include
-I../../libltdl -Wall -Wpointer-arith -Wwrite-strings -Wcomments
-Wshadow -Werror -pipe -D_REENTRANT -g -O2 -march=native -std=c++0x -MT
ActionParams.lo -MD -MP -MF .deps/ActionParams.Tpo -c -o ActionParams.lo
ActionParams.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include
-I../../lib -I../../src -I../../include -I../../libltdl -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe
-D_REENTRANT -g -O2 -march=native -std=c++0x -MT ActionParams.lo -MD -MP
-MF .deps/ActionParams.Tpo -c ActionParams.cc -fPIC -DPIC -o
.libs/ActionParams.o
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include
-I../../lib -I../../src -I../../include -I../../libltdl -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe
-D_REENTRANT -g -O2 -march=native -std=c++0x -MT ActionParams.lo -MD -MP
-MF .deps/ActionParams.Tpo -c ActionParams.cc -o ActionParams.o
>/dev/null 2>&1
mv -f .deps/ActionParams.Tpo .deps/ActionParams.Plo
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-I../.. -I../../include -I../../lib -I../../src -I../../include
-I../../libltdl -Wall -Wpointer-arith -Wwrite-strings -Wcomments
-Wshadow -Werror -pipe -D_REENTRANT -g -O2 -march=native -std=c++0x -MT
ActionPasswordList.lo -MD -MP -MF .deps/ActionPasswordList.Tpo -c -o
ActionPasswordList.lo ActionPasswordList.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include
-I../../lib -I../../src -I../../include -I../../libltdl -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe
-D_REENTRANT -g -O2 -march=native -std=c++0x -MT ActionPasswordList.lo
-MD -MP -MF .deps/ActionPasswordList.Tpo -c ActionPasswordList.cc -fPIC
-DPIC -o .libs/ActionPasswordList.o
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include
-I../../lib -I../../src -I../../include -I../../libltdl -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe
-D_REENTRANT -g -O2 -march=native -std=c++0x -MT ActionPasswordList.lo
-MD -MP -MF .deps/ActionPasswordList.Tpo -c ActionPasswordList.cc -o
ActionPasswordList.o >/dev/null 2>&1
mv -f .deps/ActionPasswordList.Tpo .deps/ActionPasswordList.Plo
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-I../.. -I../../include -I../../lib -I../../src -I../../include
-I../../libltdl -Wall -Wpointer-arith -Wwrite-strings -Wcomments
-Wshadow -Werror -pipe -D_REENTRANT -g -O2 -march=native -std=c++0x -MT
ActionWriter.lo -MD -MP -MF .deps/ActionWriter.Tpo -c -o ActionWriter.lo
ActionWriter.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include
-I../../lib -I../../src -I../../include -I../../libltdl -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe
-D_REENTRANT -g -O2 -march=native -std=c++0x -MT ActionWriter.lo -MD -MP
-MF .deps/ActionWriter.Tpo -c ActionWriter.cc -fPIC -DPIC -o
.libs/ActionWriter.o
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include
-I../../lib -I../../src -I../../include -I../../libltdl -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe
-D_REENTRANT -g -O2 -march=native -std=c++0x -MT ActionWriter.lo -MD -MP
-MF .deps/ActionWriter.Tpo -c ActionWriter.cc -o ActionWriter.o
>/dev/null 2>&1
mv -f .deps/ActionWriter.Tpo .deps/ActionWriter.Plo
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-I../.. -I../../include -I../../lib -I../../src -I../../include
-I../../libltdl -Wall -Wpointer-arith -Wwrite-strings -Wcomments
-Wshadow -Werror -pipe -D_REENTRANT -g -O2 -march=native -std=c++0x -MT
BasicActions.lo -MD -MP -MF .deps/BasicActions.Tpo -c -o BasicActions.lo
BasicActions.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include
-I../../lib -I../../src -I../../include -I../../libltdl -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe
-D_REENTRANT -g -O2 -march=native -std=c++0x -MT BasicActions.lo -MD -MP
-MF .deps/BasicActions.Tpo -c BasicActions.cc -fPIC -DPIC -o
.libs/BasicActions.o
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include
-I../../lib -I../../src -I../../include -I../../libltdl -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe
-D_REENTRANT -g -O2 -march=native -std=c++0x -MT BasicActions.lo -MD -MP
-MF .deps/BasicActions.Tpo -c BasicActions.cc -o BasicActions.o
>/dev/null 2>&1
mv -f .deps/BasicActions.Tpo .deps/BasicActions.Plo
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-I../.. -I../../include -I../../lib -I../../src -I../../include
-I../../libltdl -Wall -Wpointer-arith -Wwrite-strings -Wcomments
-Wshadow -Werror -pipe -D_REENTRANT -g -O2 -march=native -std=c++0x -MT
Command.lo -MD -MP -MF .deps/Command.Tpo -c -o Command.lo Command.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include
-I../../lib -I../../src -I../../include -I../../libltdl -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe
-D_REENTRANT -g -O2 -march=native -std=c++0x -MT Command.lo -MD -MP -MF
.deps/Command.Tpo -c Command.cc -fPIC -DPIC -o .libs/Command.o
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include
-I../../lib -I../../src -I../../include -I../../libltdl -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe
-D_REENTRANT -g -O2 -march=native -std=c++0x -MT Command.lo -MD -MP -MF
.deps/Command.Tpo -c Command.cc -o Command.o >/dev/null 2>&1
mv -f .deps/Command.Tpo .deps/Command.Plo
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-I../.. -I../../include -I../../lib -I../../src -I../../include
-I../../libltdl -Wall -Wpointer-arith -Wwrite-strings -Wcomments
-Wshadow -Werror -pipe -D_REENTRANT -g -O2 -march=native -std=c++0x -MT
CountersAction.lo -MD -MP -MF .deps/CountersAction.Tpo -c -o
CountersAction.lo CountersAction.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include
-I../../lib -I../../src -I../../include -I../../libltdl -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe
-D_REENTRANT -g -O2 -march=native -std=c++0x -MT CountersAction.lo -MD
-MP -MF .deps/CountersAction.Tpo -c CountersAction.cc -fPIC -DPIC -o
.libs/CountersAction.o
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include
-I../../lib -I../../src -I../../include -I../../libltdl -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe
-D_REENTRANT -g -O2 -march=native -std=c++0x -MT CountersAction.lo -MD
-MP -MF .deps/CountersAction.Tpo -c CountersAction.cc -o
CountersAction.o >/dev/null 2>&1
mv -f .deps/CountersAction.Tpo .deps/CountersAction.Plo
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-I../.. -I../../include -I../../lib -I../../src -I../../include
-I../../libltdl -Wall -Wpointer-arith -Wwrite-strings -Wcomments
-Wshadow -Werror -pipe -D_REENTRANT -g -O2 -march=native -std=c++0x -MT
Filler.lo -MD -MP -MF .deps/Filler.Tpo -c -o Filler.lo Filler.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include
-I../../lib -I../../src -I../../include -I../../libltdl -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe
-D_REENTRANT -g -O2 -march=native -std=c++0x -MT Filler.lo -MD -MP -MF
.deps/Filler.Tpo -c Filler.cc -fPIC -DPIC -o .libs/Filler.o
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include
-I../../lib -I../../src -I../../include -I../../libltdl -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe
-D_REENTRANT -g -O2 -march=native -std=c++0x -MT Filler.lo -MD -MP -MF
.deps/Filler.Tpo -c Filler.cc -o Filler.o >/dev/null 2>&1
mv -f .deps/Filler.Tpo .deps/Filler.Plo
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-I../.. -I../../include -I../../lib -I../../src -I../../include
-I../../libltdl -Wall -Wpointer-arith -Wwrite-strings -Wcomments
-Wshadow -Werror -pipe -D_REENTRANT -g -O2 -march=native -std=c++0x -MT
Forwarder.lo -MD -MP -MF .deps/Forwarder.Tpo -c -o Forwarder.lo Forwarder.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include
-I../../lib -I../../src -I../../include -I../../libltdl -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe
-D_REENTRANT -g -O2 -march=native -std=c++0x -MT Forwarder.lo -MD -MP
-MF .deps/Forwarder.Tpo -c Forwarder.cc -fPIC -DPIC -o .libs/Forwarder.o
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include
-I../../lib -I../../src -I../../include -I../../libltdl -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe
-D_REENTRANT -g -O2 -march=native -std=c++0x -MT Forwarder.lo -MD -MP
-MF .deps/Forwarder.Tpo -c Forwarder.cc -o Forwarder.o >/dev/null 2>&1
mv -f .deps/Forwarder.Tpo .deps/Forwarder.Plo
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-I../.. -I../../include -I../../lib -I../../src -I../../include
-I../../libltdl -Wall -Wpointer-arith -Wwrite-strings -Wcomments
-Wshadow -Werror -pipe -D_REENTRANT -g -O2 -march=native -std=c++0x -MT
FunAction.lo -MD -MP -MF .deps/FunAction.Tpo -c -o FunAction.lo FunAction.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include
-I../../lib -I../../src -I../../include -I../../libltdl -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe
-D_REENTRANT -g -O2 -march=native -std=c++0x -MT FunAction.lo -MD -MP
-MF .deps/FunAction.Tpo -c FunAction.cc -fPIC -DPIC -o .libs/FunAction.o
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include
-I../../lib -I../../src -I../../include -I../../libltdl -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe
-D_REENTRANT -g -O2 -march=native -std=c++0x -MT FunAction.lo -MD -MP
-MF .deps/FunAction.Tpo -c FunAction.cc -o FunAction.o >/dev/null 2>&1
mv -f .deps/FunAction.Tpo .deps/FunAction.Plo
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-I../.. -I../../include -I../../lib -I../../src -I../../include
-I../../libltdl -Wall -Wpointer-arith -Wwrite-strings -Wcomments
-Wshadow -Werror -pipe -D_REENTRANT -g -O2 -march=native -std=c++0x -MT
InfoAction.lo -MD -MP -MF .deps/InfoAction.Tpo -c -o InfoAction.lo
InfoAction.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include
-I../../lib -I../../src -I../../include -I../../libltdl -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe
-D_REENTRANT -g -O2 -march=native -std=c++0x -MT InfoAction.lo -MD -MP
-MF .deps/InfoAction.Tpo -c InfoAction.cc -fPIC -DPIC -o .libs/InfoAction.o
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include
-I../../lib -I../../src -I../../include -I../../libltdl -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe
-D_REENTRANT -g -O2 -march=native -std=c++0x -MT InfoAction.lo -MD -MP
-MF .deps/InfoAction.Tpo -c InfoAction.cc -o InfoAction.o >/dev/null 2>&1
mv -f .deps/InfoAction.Tpo .deps/InfoAction.Plo
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-I../.. -I../../include -I../../lib -I../../src -I../../include
-I../../libltdl -Wall -Wpointer-arith -Wwrite-strings -Wcomments
-Wshadow -Werror -pipe -D_REENTRANT -g -O2 -march=native -std=c++0x -MT
Inquirer.lo -MD -MP -MF .deps/Inquirer.Tpo -c -o Inquirer.lo Inquirer.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include
-I../../lib -I../../src -I../../include -I../../libltdl -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe
-D_REENTRANT -g -O2 -march=native -std=c++0x -MT Inquirer.lo -MD -MP -MF
.deps/Inquirer.Tpo -c Inquirer.cc -fPIC -DPIC -o .libs/Inquirer.o
cc1plus: warnings being treated as errors
Inquirer.cc: In member function 'virtual void Mgr::Inquirer::start()':
Inquirer.cc:90: error: 'auto_ptr' is deprecated (declared at
/usr/include/c++/4.3/backward/auto_ptr.h:91)
make[3]: *** [Inquirer.lo] Error 1
make[3]: Leaving directory `/opt/src/squid-3.4.1/src/mgr'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/src/squid-3.4.1/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/opt/src/squid-3.4.1/src'
make: *** [all-recursive] Error 1

Which have been seen before and someone have suggested using:
"--disable-strict-error-checking"
option while running "configure".

The problem that I see is that not one CentOS Ubuntu Debina or any
distribution I have been using before had the need for using this option
to compile.

I am still not sure what it means and why it happens.
But before I even try to dig I would be happy to maybe get a tiny answer
from someone that might know this issue better then me.

But after using the mentioned option the results seems like:
# tail -f /usr/local/squid/var/logs/access.log
1387753634.690 305 192.168.10.100 TCP_REFRESH_UNMODIFIED/304 306 GET
http://docs.fedoraproject.org/en-US/index.html -
HIER_DIRECT/80.239.156.215 -

and it seems like it works but will maybe have some problems at runtime?

Thanks,
Eliezer
Received on Sun Dec 22 2013 - 23:09:25 MST

This archive was generated by hypermail 2.2.0 : Mon Dec 23 2013 - 12:00:13 MST