Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Help me compiling squid on 10.2.3 again!

Help me compiling squid on 10.2.3 again!
Thread Tools
Dedicated MacNNer
Join Date: Apr 2001
Status: Offline
Reply With Quote
Jan 18, 2003, 06:13 PM
 
The squid proxy people apparently made some changes in the source code that broke compiling on 10.2.3. The latest squid-2.5 source I "made" successfully was squid/2.5.STABLE1-20030108. Source after that (probably after 01/08-09/2003) has invariably failed during the "make" stage with the following error:

<snipped>
depmode=gcc /bin/sh ../cfgaux/depcomp \
gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/squid/etc/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include -g -O2 -Wall -c `test -f stat.c || echo './'`stat.c
stat.c: In function `info_get':
stat.c:547: invalid operands to binary -
make[3]: *** [stat.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

Here're my "configure" options:

./configure \
--host powerpc-apple-bsd \
--disable-ident-lookups \
--enable-filters \
--enable-snmp \
--enable-auth=basic \
--enable-storeio=null \
--enable-basic-auth-helpers=NCSA \

Another question on trying to "configure" the squid 2.6/3.0-DEV sources before "make". Using the same options as above, "configure" always fails with the following:

configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets ${MAKE}... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for powerpc-apple-bsd-gcc... no
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc
checking for powerpc-apple-bsd-g++... no
checking for powerpc-apple-bsd-c++... no
checking for powerpc-apple-bsd-gpp... no
checking for powerpc-apple-bsd-aCC... no
checking for powerpc-apple-bsd-CC... no
checking for powerpc-apple-bsd-cxx... no
checking for powerpc-apple-bsd-cc++... no
checking for powerpc-apple-bsd-cl... no
checking for powerpc-apple-bsd-FCC... no
checking for powerpc-apple-bsd-KCC... no
checking for powerpc-apple-bsd-RCC... no
checking for powerpc-apple-bsd-xlC_r... no
checking for powerpc-apple-bsd-xlC... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking build system type... config.sub: missing argument
Try `config.sub --help' for more information.
configure: error: /bin/sh cfgaux/config.sub failed

I mucked around in cfgaux/ but have no clue. How do I fix this?

Finally, what's the shortest CLI command to decompress tar.bz2 files in one shot? For example, I type "tar xzvf file.name" to decompress tar.gz files.

Thanks!

PS: I've the Dec 2002 Apple DevTools update applied.
(Last edited by legionare; Jan 18, 2003 at 06:18 PM. )
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Jan 18, 2003, 09:17 PM
 
I downloaded it to see if I could replicate the problem. I did:

Code:
./configure --prefix=/usr/local/squid make
and it built fine. So the problem is with one of your config flags.
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Jan 18, 2003, 09:28 PM
 
OK, I went back and di it almost like you did, and it still worked:

Code:
./configure --prefix=/usr/local/squid \ --disable-ident-lookups \ --enable-filters --enable-snmp \ --enable-auth=basic \ --enable-storeio=null \ --enable-basic-auth-helpers=NCSA make
It still built fine. Try it my way. This is with the squid-2.5.STABLE1 release BTW.
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
Dedicated MacNNer
Join Date: Apr 2001
Status: Offline
Reply With Quote
Jan 18, 2003, 10:25 PM
 
Ack. No luck here still, with today's source (http://www.squid-cache.org/Versions/...0030119.tar.gz)

Tried this:

./configure \
--disable-ident-lookups \
--enable-filters \
--enable-snmp \
--enable-auth=basic \
--enable-storeio=null \
--enable-basic-auth-helpers=NCSA \

and this:

./configure \
--prefix=/usr/local/squid \
--disable-ident-lookups \
--enable-filters \
--enable-snmp \
--enable-auth=basic \
--enable-storeio=null \
--enable-basic-auth-helpers=NCSA \

Both not surprisingly failed during "make" at the exact same point:

gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/squid/etc/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include -g -O2 -Wall -c `test -f stat.c || echo './'`stat.c
stat.c: In function `info_get':
stat.c:547: invalid operands to binary -
make[3]: *** [stat.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

PS: I think you must have used the "STABLE releases, suitable for production use" from Sep 25 2002

squid-2.5.STABLE1
http://www.squid-cache.org/Versions/...STABLE1.tar.gz

rather than the "Daily auto-generated release.
This is the most recent code committed to the SQUID_2_5 branch." from Jan 18 2003

squid-2.5.STABLE1-20030119
http://www.squid-cache.org/Versions/...0030119.tar.gz

For verification, I downloaded the former (9/25/2002 source) and it compiled fine. This is not the case with recent source though (01/10-19/2003). That's the problem.
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Jan 18, 2003, 10:56 PM
 
Have you tried doing a diff on the source file in question? Or maybe checking out from cvs and doing a "cvs log" on the file to see the checkin comments?
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
Dedicated MacNNer
Join Date: Apr 2001
Status: Offline
Reply With Quote
Jan 26, 2003, 12:10 PM
 
Update: On a whim, downloaded and compiled squid-2.5.STABLE1-20030126 source code (posted last night) successfully, with the same old configure options I've always used. I've no idea what got fixed, certainly nothing obvious in bugzilla.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:29 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2