"interesting" build failure using SunStudio CC

From: Kinkie <gkinkie_at_gmail.com>
Date: Thu, 1 Oct 2009 16:47:25 +0200

Hi,
  I'm working on compiling squid 3.0 on non-gcc compilers. There's
this nice error coming out of SunStudio c++:

/opt/SunStudioExpress/prod/bin/CC -I/usr/include/libxml2 -g -g -o
ufsdump debug.o int.o mem.o store_key_md5.o StoreMeta.o StoreMetaMD5.o
StoreMetaSTD.o StoreMetaSTDLFS.o StoreMetaUnpacker.o StoreMetaURL.o
StoreMetaVary.o String.o time.o ufsdump.o url.o AsyncCall.o BodyPipe.o
ConfigParser.o store.o StoreFileSystem.o StoreSwapLogData.o
access_log.o acl.o acl_noncore.o ACLChecklist.o ACLProxyAuth.o
ACLUserData.o ACLRegexData.o ACLStringData.o authenticate.o cache_cf.o
cache_manager.o CacheDigest.o carp.o cbdata.o ChunkedCodingParser.o
client_db.o client_side.o client_side_reply.o client_side_request.o
clientStream.o comm_select.o comm_select_win32.o comm_poll.o
comm_epoll.o comm_kqueue.o ConfigOption.o disk.o dns_internal.o
errorpage.o ETag.o event.o external_acl.o ExternalACLEntry.o fd.o
fde.o filemap.o forward.o fqdncache.o ftp.o gopher.o helper.o htcp.o
http.o HttpStatusLine.o HttpHdrCc.o HttpHdrRange.o HttpHdrSc.o
HttpHdrScTarget.o HttpHdrContRange.o HttpHeader.o HttpHeaderTools.o
HttpBody.o HttpMsg.o HttpReply.o HttpRequest.o HttpRequestMethod.o
icmp.o icp_v2.o icp_v3.o ACLIdent.o ident.o internal.o ipc.o ipcache.o
list.o logfile.o mem_node.o MemBuf.o MemObject.o mime.o multicast.o
neighbors.o net_db.o Packer.o Parsing.o pconn.o peer_digest.o
peer_select.o peer_sourcehash.o peer_userhash.o redirect.o referer.o
refresh.o RemovalPolicy.o send-announce.o snmp_core.o snmp_agent.o
tunnel.o Server.o SquidNew.o stat.o StatHist.o stmem.o store_io.o
StoreIOState.o store_client.o store_digest.o store_dir.o store_log.o
store_rebuild.o store_swapin.o store_swapmeta.o store_swapout.o
SwapDir.o TextException.o tools.o unlinkd.o URLScheme.o urn.o
useragent.o wccp.o wccp2.o whois.o wordlist.o repl_modules.o globals.o
string_arrays.o ./.libs/libsquid.a ./.libs/libauth.a repl/liblru.a
fs/libufs.a auth/libntlm.a auth/libbasic.a auth/libdigest.a
auth/libnegotiate.a -lcrypt -lmd5 ../snmplib/libsnmp.a
-L/export/home/slave/squid-3.0/btlayer-00-default/lib -lmiscutil -lm
-lresolv -lsocket -lnsl
ld: fatal: symbol `void operator delete[](void*)' is multiply-defined:
        (file store.o type=FUNC; file SquidNew.o type=FUNC);
ld: fatal: symbol `void*operator new[](unsigned)' is multiply-defined:
        (file store.o type=FUNC; file SquidNew.o type=FUNC);
ld: fatal: symbol `void operator delete(void*)' is multiply-defined:
        (file debug.o type=FUNC; file SquidNew.o type=FUNC);
ld: fatal: symbol `void*operator new(unsigned)' is multiply-defined:
        (file debug.o type=FUNC; file SquidNew.o type=FUNC);
ld: fatal: file processing errors. No output written to ufsdump

I can't find WHERE those may be multiply-defined. Any ideas?

-- 
    /kinkie
Received on Thu Oct 01 2009 - 14:47:35 MDT

This archive was generated by hypermail 2.2.0 : Fri Oct 02 2009 - 12:00:04 MDT