yaberger_at_ca.ibm.com wrote:
> Hi
>
> I'm having some trouble while compiling squid 3.0 STABLE24 on AIX 5.3 with
> IBM XL C/C++ 8.0
> We've been using squid 2.6 and 2.7 and have always been able to compile
> them in this environment.
Greetings,
before we go further please try the 3.1.0.18 release just out.
3.0 is fast approaching end-of-life and 3.1 would be the better one to
get debugged now.
>
>
> Here is some more details:
>
>
> AIX 5300-09-05-0943
> IBM XL C/C++ 8.0.0.13
>
> gzip -cd squid-3.0.STABLE24.tar.gz |tar xf -
> cd squid-3.0.STABLE24
> ./configure --prefix=/usr/local/squid
> make
>
> source='rfc1738.c' object='rfc1738.o' libtool=no DEPDIR=.deps
> depmode=aix /bin/sh ../cfgaux/depcomp cc -qlanglvl=extc89 -DHAVE_CONFIG_H
> -I. -I../include -I../include -I../include -g -c rfc1738.c
> "rfc1738.c", line 184.1: 1506-277 (S) Syntax error: possible missing ';'
> or ','?
> "rfc1738.c", line 182.8: 1506-485 (S) Parameter declaration list is
> incompatible with declarator for inline.
> "rfc1738.c", line 198.21: 1506-045 (S) Undeclared identifier s.
> make: 1254-004 The error code from the last command is 1.
>
<snip>
>
> removing the inline allow me to go a bit farther
Thanks. The better fix seems to be removing the static than the inline.
Does that still work
>
> but then I hit the same kind of issue that have been reported on this
> topic
> http://www.mail-archive.com/squid-users@squid-cache.org/msg67948.html
>
> Making all in src
> /bin/sh ../libtool --tag=CXX --mode=link xlC_r -g -g -o
> cf_gen cf_gen.o debug.o time.o globals.o libsquid.la libauth.la -L../lib
> -lmiscutil -lm -lbind -lnsl
> xlC_r -g -g -o cf_gen cf_gen.o debug.o time.o globals.o ./.libs/libsquid.a
> ./.libs/libauth.a -L/usr/src/squid-3.0.STABLE24/lib -lmiscutil -lm -lbind
> -lnsl
> ld: 0711-317 ERROR: Undefined symbol: .cbdataInternalLock(const void*)
> ld: 0711-317 ERROR: Undefined symbol: .cbdataInternalUnlock(const void*)
> ld: 0711-317 ERROR: Undefined symbol: .cbdataInternalFree(void*)
> ld: 0711-317 ERROR: Undefined symbol:
> .cbdataInternalAddType(cbdata_type,const char*,int,void(*)(void*))
> ld: 0711-317 ERROR: Undefined symbol: .cbdataInternalAlloc(cbdata_type)
> ld: 0711-317 ERROR: Undefined symbol: .commSetSelect
> ld: 0711-317 ERROR: Undefined symbol: .cbdataReferenceValid(const void*)
> ld: 0711-317 ERROR: Undefined symbol: .dlinkDelete
> ld: 0711-317 ERROR: Undefined symbol:
> .cbdataInternalReferenceDoneValid(void**,void**)
> ld: 0711-317 ERROR: Undefined symbol: .dlinkAddTail
> ld: 0711-317 ERROR: Undefined symbol: .PconnPool::count(int)
> ld: 0711-317 ERROR: Undefined symbol: .fd_close
> ld: 0711-317 ERROR: Undefined symbol: .fdNFree
> ld: 0711-317 ERROR: Undefined symbol: .comm_select
> ld: 0711-317 ERROR: Undefined symbol: .fatal_dump
> ld: 0711-317 ERROR: Undefined symbol: .eventAdd(const
> char*,void(*)(void*),void*,double,int,bool)
> ld: 0711-317 ERROR: Undefined symbol: .fd_open
> ld: 0711-317 ERROR: Undefined symbol: .clientdbEstablished
> ld: 0711-317 ERROR: Undefined symbol: .fatalf
> ld: 0711-317 ERROR: Undefined symbol: .MemBuf::freeFunc()
> ld: 0711-317 ERROR: Undefined symbol: .fd_bytes
> ld: 0711-317 ERROR: Undefined symbol: .ipcache_nbgethostbyname
> ld: 0711-317 ERROR: Undefined symbol: .fdAdjustReserved
> ld: 0711-317 ERROR: Undefined symbol: .commResetSelect
> ld: 0711-317 ERROR: Undefined symbol: .ipcacheMarkGoodAddr
> ld: 0711-317 ERROR: Undefined symbol: .ipcacheMarkBadAddr
> ld: 0711-317 ERROR: Undefined symbol: .netdbDeleteAddrNetwork
> ld: 0711-317 ERROR: Undefined symbol: .ipcacheCycleAddr
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
> information.
> make: 1254-004 The error code from the last command is 8.
>
<snip>
Ah cf_gen. This may change with 3.1 builds. At least I hope so.
>
>
> also, when adding configuration flags that we need, other errors occur but
> maybe we should begin to get a successful compilation without them
>
> gzip -cd squid-3.0.STABLE24.tar.gz |tar xf -
> cd squid-3.0.STABLE24
> ./configure --prefix=/usr/local/squid --with-large-files
> make
>
> source='xusleep.c' object='xusleep.o' libtool=no DEPDIR=.deps
> depmode=aix /bin/sh ../cfgaux/depcomp cc -qlanglvl=extc89 -DHAVE_CONFIG_H
> -I. -I../include -I../include -I../include -q64 -g -c xusleep.c
> rm -f libmiscutil.a
> /usr/bin/ar cru libmiscutil.a MemPool.o base64.o getfullhostname.o
> hash.o heap.o html_quote.o iso3307.o md5.o radix.o rfc1035.o rfc1123.o
> rfc1738.o rfc2617.o safe_inet_addr.o Splay.o strnstr.o stub_memaccount.o
> util.o uudecode.o assert.o xusleep.o libTrie/src/Trie.o
> libTrie/src/TrieNode.o
> ar: 0707-126 MemPool.o is not valid with the current object file mode.
> Use the -X option to specify the desired object mode.
> ar: 0707-126 base64.o is not valid with the current object file mode.
> Use the -X option to specify the desired object mode.
> ar: 0707-126 getfullhostname.o is not valid with the current object file
> mode.
> Use the -X option to specify the desired object mode.
> ar: 0707-126 hash.o is not valid with the current object file mode.
> Use the -X option to specify the desired object mode.
> ar: 0707-126 heap.o is not valid with the current object file mode.
<snip>
> Stop.
>
I think that may have something to do with the 32/64 bit differences
involved with large-files.
>
> these are the options we would like to use for the final result:
> ./configure --prefix=/usr/local/squid --with-large-files
> --enable-auth=basic --enable-err-languages="French English"
> --disable-snmp --disable-wccpv2 --disable-wccp --disable-carp
>
These should work for you. Disabled components just removes potential
problems you may hit in the default build :)
On the languages side, please use the Squid language package
(http://www.squid-cache.org/Versions/langpack/) bundles now if possible.
The texts and display are more complete than the 3.0 ones.
Amos
-- Please be using Current Stable Squid 2.7.STABLE8 or 3.0.STABLE24 Current Beta Squid 3.1.0.17Received on Sun Mar 14 2010 - 07:56:40 MDT
This archive was generated by hypermail 2.2.0 : Sun Mar 14 2010 - 12:00:06 MDT