[squid-users] Building on Solaris 10.

From: Paul Duncan <pad1b06_at_soton.ac.uk>
Date: Thu, 03 Dec 2009 00:25:23 +0000

Hello,

Trying to build squid on a Sun T5120 (SPARC based server).

the INSTALL file for squid 3.0 STABLE 19 says to do the ./configure,
followed by make.

The machine came with gcc 4.0.4 and a Sun C compiler (V5.9) pre-installed.

I carefully set the path so I could try them one at a time. Neither
worked - in fact gcc gave a segmentation fault.

I had compiled an older version of Squid (back in 2006) with an older
version of gcc, and that had worked well, so I installed v3.4.6 of gcc,
and tried that. It seemed to get further, but is (I think) failing
during linking. These are the final lines of messages (apologies for the
length) :

-L/root/squid-3.0.STABLE19/lib -lmiscutil -lm -lresolv -lsocket -lnsl
Undefined first referenced
  symbol in file
__1cDstdNbasic_ostream4Ccn0ALchar_traits4Cc___2l6Mi_r1_
./.libs/libsquid.a(comm.o)
__1cDstdNbasic_ostream4Ccn0ALchar_traits4Cc___2l6Mb_r1_
./.libs/libsquid.a(comm.o)
AuthScheme::Find(char const*) cache_cf.o
__1cG__CrunKpure_error6F_v_ ./.libs/libsquid.a(comm.o)
__1cDstdNbasic_ostream4Ccn0ALchar_traits4Cc___2l6Ml_r1_
./.libs/libsquid.a(comm.o)
__1cDstdNbasic_ostream4Ccn0ALchar_traits4Cc___2l6MH_r1_
./.libs/libsquid.a(comm.o)
comm_udp_recvfrom(int, void*, unsigned int, int, sockaddr*, unsigned
int*)dns_internal.o
comm_has_pending_read_callback(int) pconn.o
AuthUser::absorb(AuthUser*) authenticate.o
__1cIeventAdd6FpkcpFpv_v2dib_v_ ./.libs/libsquid.a(comm.o)
__1cFDebugLgetDebugOut6F_rnDstdNbasic_ostream4Ccn0BLchar_traits4Cc_____
./.libs/libsquid.a(comm.o)
__1cUcbdataReferenceValid6Fpkv_i_ ./.libs/libsquid.a(comm.o)
DeferredReadManager::delayRead(DeferredRead const&) MemObject.o
__1cDstdZ__RTTI__1nDstdJbad_alloc__ ./.libs/libsquid.a(comm.o)
__1cDstdLchar_traits4Cc_Deof6F_i_ ./.libs/libsquid.a(comm.o)
__1cG__CrunRex_chk_unexpected6F_v_ ./.libs/libsquid.a(comm.o)
__1cIMemPoolsLGetInstance6F_r0_ ./.libs/libsquid.a(comm.o)
__1cScbdataInternalLock6Fpkv_v_ ./.libs/libsquid.a(comm.o)
__1cDstd2l6Frn0ANbasic_ostream4Ccn0ALchar_traits4Cc____pkc_2_
./.libs/libsquid.a(comm.o)
AuthUser::lock() authenticate.o
__1cTcbdataInternalAlloc6FnLcbdata_type__pv_ ./.libs/libsquid.a(comm.o)
__1cUcbdataInternalUnlock6Fpkv_v_ ./.libs/libsquid.a(comm.o)
__1cG__CrunKvector_del6FpvIpF1_v_1_ ./.libs/libsquid.a(comm.o)
AuthConfig::Find(char const*) cache_cf.o
AcceptLimiter::Instance() client_side.o
DeferredRead::DeferredRead(void (*)(void*, CommRead const&), void*,
CommRead const&)store.o
__1cRMemAllocatorProxyFalloc6M_pv_ ./.libs/libsquid.a(comm.o)
AuthUserRequest::tryToAuthenticateAndSetAuthUser(AuthUserRequest**,
http_hdr_type, HttpRequest*, RefCount<ConnStateData>, in_addr)ACLChecklist.o
AuthUserRequest::_lock() ACLChecklist.o
comm_listen(int) client_side.o
__1cGMemBufIfreeFunc6M_pFpv_v_ ./.libs/libsquid.a(comm.o)
_comm_close(int, char const*, int) client_side.o
AuthUser::cacheInit() authenticate.o
DeferredReadManager::~DeferredReadManager()MemObject.o
AuthUserRequest::username() const ACLProxyAuth.o
AuthUserRequest::denyMessage(char const*)client_side_request.o
comm_read_cancel(int, void (*)(int, char*, unsigned int, comm_err_t,
int, void*), void*)pconn.o
__1cFDebugFlevel_ ./.libs/libsquid.a(comm.o)
__1cFDebugLfinishDebug6F_v_ ./.libs/libsquid.a(comm.o)
authenticateValidateUser(AuthUserRequest*) ACLProxyAuth.o
comm_write(int, char const*, int, void (*)(int, char*, unsigned int,
comm_err_t, int, void*), void*, void (*)(void*))client_side.o
AcceptLimiter::defer(int, void (*)(int, int, ConnectionDetail*,
comm_err_t, int, void*), void*)client_side.o
comm_udp_recv(int, void*, unsigned int, int)ipc.o
fdc_open(int, unsigned int, char const*)ipc.o
AuthUserRequest::start(void (*)(void*, char*), void*)ACLProxyAuth.o
__1cIMemPoolsGcreate6MpkcI_pnYMemImplementingAllocator__
./.libs/libsquid.a(comm.o)
DeferredReadManager::kickReads(int) MemObject.o
authenticateFixHeader(HttpReply*, AuthUserRequest*, HttpRequest*, int,
int)client_side_reply.o
AuthUser::CachedACLsReset() authenticate.o
comm_iocallbackpending() comm_poll.o
AuthUser::unlock() authenticate.o
CommRead::CommRead(int, char*, int, void (*)(int, char*, unsigned int,
comm_err_t, int, void*), void*)store.o
AuthScheme::Schemes() authenticate.o
__1cG__CrunMex_rethrow_q6F_v_ ./.libs/libsquid.a(comm.o)
AuthUserRequest::_unlock() ACLChecklist.o
comm_has_pending_read(int) client_side.o
comm_add_close_handler(int, void (*)(int, void*), void*)client_side.o
__1cG__CrunKvector_new6FpvIIpF1_vp2_1_ ./.libs/libsquid.a(comm.o)
comm_udp_send(int, void const*, unsigned int, int)ipc.o
__1cRMemAllocatorProxyEfree6Mpv_v_ ./.libs/libsquid.a(comm.o)
authenticateUserAuthenticated(AuthUserRequest*) ACLProxyAuth.o
commMarkHalfClosed(int) client_side.o
__1cDstdNbasic_ostream4Ccn0ALchar_traits4Cc___2l6Mpkv_r1_
./.libs/libsquid.a(comm.o)
comm_accept(int, void (*)(int, int, ConnectionDetail*, comm_err_t, int,
void*), void*)client_side.o
__1cScbdataInternalFree6Fpv_0_ ./.libs/libsquid.a(comm.o)
__1cG__CrunSregister_exit_code6FpG_v_v_ ./.libs/libsquid.a(comm.o)
__1cFDebugGLevels_ ./.libs/libsquid.a(comm.o)
comm_read(int, char*, int, void (*)(int, char*, unsigned int,
comm_err_t, int, void*), void*)store.o
commIsHalfClosed(int) client_side.o
comm_remove_close_handler(int, void (*)(int, void*), void*)forward.o
comm_has_incomplete_write(int) pconn.o
__1cJPconnPoolFcount6Mi_v_ ./.libs/libsquid.a(comm.o)
__1cVcbdataInternalAddType6FnLcbdata_type_pkcipFpv_v_0_
./.libs/libsquid.a(comm.o)
__1cbGcbdataInternalReferenceDoneValid6Fppv1_i_ ./.libs/libsquid.a(comm.o)
AuthScheme::FreeAll() authenticate.o
ld: fatal: Symbol referencing errors. No output written to ufsdump
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `ufsdump'
Current working directory /root/squid-3.0.STABLE19/src
*** Error code 1
The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
   case $f in \
     *=* | --[!k]*);; \
     *k*) failcom='fail=yes';; \
   esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='fs repl auth'; for subdir in $list; do \
   echo "Making $target in $subdir"; \
   if test "$subdir" = "."; then \
     dot_seen=yes; \
     local_target="$target-am"; \
   else \
     local_target="$target"; \
   fi; \
   (cd $subdir && make $local_target) \
   || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
   make "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /root/squid-3.0.STABLE19/src
*** Error code 1
make: Fatal error: Command failed for target `all'
Current working directory /root/squid-3.0.STABLE19/src
*** Error code 1
The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
   case $f in \
     *=* | --[!k]*);; \
     *k*) failcom='fail=yes';; \
   esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='lib snmplib scripts src icons errors doc helpers test-suite
tools'; for subdir in $list; do \
   echo "Making $target in $subdir"; \
   if test "$subdir" = "."; then \
     dot_seen=yes; \
     local_target="$target-am"; \
   else \
     local_target="$target"; \
   fi; \
   (cd $subdir && make $local_target) \
   || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
   make "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'

Any ideas where I'm going wrong?

Thanks!

Paul
~~~~
Received on Thu Dec 03 2009 - 00:25:33 MST

This archive was generated by hypermail 2.2.0 : Thu Dec 03 2009 - 12:00:01 MST