[squid-users] Failure to compile Squid3 Port on FreeBSD 6.2-STABLE

From: Washington Odhiambo <odhiambo@dont-contact.us>
Date: Wed, 26 Sep 2007 18:07:51 +0300

Hello pple,

I am using the ports to install squid3. below is how it fails.

<snip>
ar cru .libs/libauth.a .libs/AuthConfig.o .libs/AuthScheme.o
.libs/AuthUser.o .libs/AuthUserRequest.o
ranlib .libs/libauth.a
creating libauth.la
(cd .libs && rm -f libauth.la && ln -s ../libauth.la libauth.la)
/bin/sh /usr/local/bin/libtool --tag=CXX --mode=link c++ -Werror -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -D_REENTRANT -O2
-fno-strict-
aliasing -pipe -I/usr/include -g -rpath=/usr/lib:/usr/local/lib
-L/usr/lib -o cf_gen cf_gen.o debug.o time.o globals.o libsquid.la
libauth.la -
L../lib -lmiscutil -lexpat -lxml2 -lpthread -lm
c++ -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments
-D_REENTRANT -O2 -fno-strict-aliasing -pipe -I/usr/include -g
-rpath=/usr/lib:/usr/l
ocal/lib -o cf_gen cf_gen.o debug.o time.o globals.o -L/usr/lib
./.libs/libsquid.a ./.libs/libauth.a
-L/usr/ports/www/squid30/work/squid-3.0.PRE
6/lib -lmiscutil -lexpat -lxml2 -lpthread -lm
/usr/bin/ld: cannot find -lexpat
*** Error code 1

Stop in /usr/ports/www/squid30/work/squid-3.0.PRE6/src.
*** Error code 1

Stop in /usr/ports/www/squid30/work/squid-3.0.PRE6.
*** Error code 1

Stop in /usr/ports/www/squid30.
*** Error code 1

Stop in /usr/ports/www/squid30.
** Command failed [exit code 1]: /usr/bin/script -qa
/tmp/portinstall.56923.0 env make
** Fix the problem and try again.
** Listing the failed packages (*:skipped / !:failed)
        ! www/squid30 (unknown build error)
---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
</snip>

What do I need to do prior to the installation so that the compile succeeds?

./Wash
Received on Wed Sep 26 2007 - 09:07:59 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Oct 01 2007 - 12:00:03 MDT