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.
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.
Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
removing the inline allow me to go a bit farther
diff lib/rfc1738.c lib/rfc1738.c.orig
182c182
< static int
---
> static inline int
but then I hit the same kind of issue that have been reported on this
topic
http://www.mail-archive.com/[email protected]/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.
Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
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.
Use the -X option to specify the desired object mode.
ar: 0707-126 html_quote.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 iso3307.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 md5.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 radix.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 rfc1035.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 rfc1123.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 rfc1738.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 rfc2617.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 safe_inet_addr.o is not valid with the current object file
mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 Splay.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 strnstr.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 stub_memaccount.o is not valid with the current object file
mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 util.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 uudecode.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 assert.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 xusleep.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
make: 1254-004 The error code from the last command is 21.
Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
but if I run make right after:
Making all in lib
Making all in libTrie
make all-recursive
Making all in src
Target "all" is up to date.
Making all in test
Target "all" is up to date.
Target "all-am" is up to date.
source='ntlmauth.c' object='ntlmauth.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 ntlmauth.c
rm -f libntlmauth.a
/usr/bin/ar cru libntlmauth.a ntlmauth.o
ar: 0707-126 ntlmauth.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
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
Regards,
Yannick Bergeron
[email protected]
IT Specialist
AIX / Samba / Load Balancer / DCE/DFS / SCM / Apache / Security / Perl
scripting / etc.