[squid-users] Compiling squid 3.0 on AIX

From: Perry Smith <pedzsan_at_gmail.com>
Date: Mon, 19 Oct 2009 20:07:26 -0500

Hi,

I'm trying to build squid 3.0 on AIX 5.3 using GCC 4.3.1. It appears
to forget to build many files. One example is src/cbdata.o

My link fails with:

g++ -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments -g -O2 -g
-o cf_gen cf_gen.o debug.o time.o globals.o ./.libs/
libsquid.a ./.libs/libauth.a -L/usr/local/lib -lstdc++ -L/usr/local/
build/squid-3.0.S
TABLE19/lib -lmiscutil -lm -lbind -lnsl -Wl,-blibpath:/usr/local/
lib:/usr/local/lib/gcc/powerpc-ibm-aix5.3.0.0/4.3.1:/usr/local/lib/gcc/
powerpc-ibm-aix5.3.0.0/4.3.1/../../..:/usr/lib:/lib
ld: 0711-317 ERROR: Undefined symbol: .cbdataInternalLock(void const*)
ld: 0711-317 ERROR: Undefined symbol: .cbdataInternalUnlock(void const*)
ld: 0711-317 ERROR: Undefined symbol: .cbdataInternalFree(void*)
ld: 0711-317 ERROR: Undefined symbol: .cbdataReferenceValid(void const*)
ld: 0711-317 ERROR: Undefined
symbol: .cbdataInternalAddType(cbdata_type, char const*, int, void (*)
(void*))
ld: 0711-317 ERROR: Undefined symbol: .cbdataInternalAlloc(cbdata_type)
ld: 0711-317 ERROR: Undefined symbol: .eventAdd(char const*, void (*)
(void*), void*, double, int, bool)
ld: 0711-317 ERROR: Undefined symbol: .commSetSelect
ld: 0711-317 ERROR: Undefined symbol: .fd_close
ld: 0711-317 ERROR: Undefined symbol: .fd_open
ld: 0711-317 ERROR: Undefined symbol: .ipcache_nbgethostbyname
ld: 0711-317 ERROR: Undefined symbol: .dlinkDelete
ld: 0711-317 ERROR: Undefined symbol: .dlinkAddTail
ld: 0711-317 ERROR: Undefined symbol: .fatalf
ld: 0711-317 ERROR: Undefined symbol: .MemBuf::freeFunc()
ld: 0711-317 ERROR: Undefined
symbol: .cbdataInternalReferenceDoneValid(void**, void**)
ld: 0711-317 ERROR: Undefined symbol: .fd_bytes
ld: 0711-317 ERROR: Undefined symbol: .fdNFree
ld: 0711-317 ERROR: Undefined symbol: .PconnPool::count(int)
ld: 0711-317 ERROR: Undefined symbol: .comm_select
ld: 0711-317 ERROR: Undefined symbol: .fatal_dump
ld: 0711-317 ERROR: Undefined symbol: .fdAdjustReserved
ld: 0711-317 ERROR: Undefined symbol: .commResetSelect
ld: 0711-317 ERROR: Undefined symbol: .ipcacheMarkBadAddr
ld: 0711-317 ERROR: Undefined symbol: .ipcacheMarkGoodAddr
ld: 0711-317 ERROR: Undefined symbol: .netdbDeleteAddrNetwork
ld: 0711-317 ERROR: Undefined symbol: .ipcacheCycleAddr
ld: 0711-317 ERROR: Undefined symbol: .fatal
ld: 0711-317 ERROR: Undefined
symbol: .AuthUserHashPointer::AuthUserHashPointer(AuthUser*)
ld: 0711-317 ERROR: Undefined symbol: .AuthUserHashPointer::user() const
ld: 0711-317 ERROR: Undefined symbol: .aclCacheMatchFlush
ld: 0711-317 ERROR: Undefined symbol: .dlinkNodeDelete
ld: 0711-317 ERROR: Undefined
symbol: .authenticateAuthUserInuse(AuthUser*)
ld: 0711-317 ERROR: Undefined
symbol: .HttpHeader::getStr(http_hdr_type) const
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.

If I compile src/cbdata by hand and add it to the link line, the first
few symbols become defined. It appears as if many files (cbdata being
one of them) are not being compiled at all.

Often with AIX, that can be caused by AIX's sed. I am using GNU's sed
and GNU's make. And GNU's bash to process the configure.

I'm fairly good at tracking this sort of thing down but I thought I
would ask for any suggestions first.

Thank you,
Perry Smith
Ease Software, Inc. ( http://www.easesoftware.com )

Low cost SATA Disk Systems for IBMs p5, pSeries, and RS/6000 AIX systems
Received on Tue Oct 20 2009 - 01:07:38 MDT

This archive was generated by hypermail 2.2.0 : Tue Oct 20 2009 - 12:00:03 MDT