[squid-users] 3.1.x compile errors using ssl_crtd

From: Linos <info_at_linos.es>
Date: Sun, 27 May 2012 21:31:01 +0200

Hi,
    i am using Ubuntu Server 12.04 with libssl-dev 1.0.1 and i can't compile
squid, i have downloaded the last daily auto-generated release (that should have
this bug fixed) but i still have the same problem.

./configure --enable-ssl --enable-ssl-crtd
make

....(after a while)
/bin/bash ../../libtool --tag=CXX --mode=link g++ -Wall -Wpointer-arith
-Wwrite-strings -Wcomments -Werror -fhuge-objects -D_REENTRANT -g -O2 -g -o
ssl_crtd ssl_crtd.o certificate_db.o -lssl -lcrypto -lsslutil
../../compat/libcompat.la ../../lib/libmiscutil.a
libtool: link: g++ -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror
-fhuge-objects -D_REENTRANT -g -O2 -g -o ssl_crtd ssl_crtd.o certificate_db.o
-lssl -lcrypto -lsslutil ../../compat/.libs/libcompat.a ../../lib/libmiscutil.a
g++: warning: switch '-fhuge-objects' is no longer supported
/usr/bin/ld: cannot find -lsslutil
collect2: ld returned 1 exit status

I have tried to add .libs/libsslutil.a to the linker line in src/ssl/Makefile
the direct path .libs/libsslutil.a but i get the original bug error after this
change:

libtool: link: g++ -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror
-fhuge-objects -D_REENTRANT -g -O2 -g -o ssl_crtd ssl_crtd.o certificate_db.o
-lssl -lcrypto .libs/libsslutil.a ../../compat/.libs/libcompat.a
../../lib/libmiscutil.a
g++: warning: switch '-fhuge-objects' is no longer supported
../../lib/libmiscutil.a(MemPool.o): In function `MemPools::flushMeters()':
/tmp/squid-3.1.19-20120526-r10446/lib/MemPool.cc:224: undefined reference to
`squid_curtime'
/tmp/squid-3.1.19-20120526-r10446/lib/MemPool.cc:225: undefined reference to
`squid_curtime'
/tmp/squid-3.1.19-20120526-r10446/lib/MemPool.cc:223: undefined reference to
`squid_curtime'
../../lib/libmiscutil.a(MemPoolChunked.o): In function
`MemPoolChunked::deallocate(void*, bool)':
/tmp/squid-3.1.19-20120526-r10446/lib/MemPoolChunked.cc:357: undefined reference
to `squid_curtime'
../../lib/libmiscutil.a(MemPoolChunked.o): In function
`MemPoolChunked::convertFreeCacheToChunkFreeCache()':
/tmp/squid-3.1.19-20120526-r10446/lib/MemPoolChunked.cc:380: undefined reference
to `squid_curtime'
../../lib/libmiscutil.a(MemPoolChunked.o):/tmp/squid-3.1.19-20120526-r10446/lib/MemPoolChunked.cc:406:
more undefined references to `squid_curtime' follow
collect2: ld returned 1 exit status

I don't know how to fix and i am in a hurry with this problem :(

Thanks.

Regards,
Miguel Angel.
Received on Sun May 27 2012 - 19:31:05 MDT

This archive was generated by hypermail 2.2.0 : Mon May 28 2012 - 12:00:04 MDT