From owner-freebsd-questions@FreeBSD.ORG Wed Sep 20 08:09:47 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD6A416A47E for ; Wed, 20 Sep 2006 08:09:47 +0000 (UTC) (envelope-from pgollucci@p6m7g8.com) Received: from piccollo.p6m7g8.net (c66-236-219-70.ip.panth.com [66.236.219.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4515F43D5C for ; Wed, 20 Sep 2006 08:09:46 +0000 (GMT) (envelope-from pgollucci@p6m7g8.com) Received: from [192.168.0.210] ([69.244.240.212]) (authenticated bits=0) by piccollo.p6m7g8.net (8.13.6/8.13.6) with ESMTP id k8K88vkn015594 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Wed, 20 Sep 2006 04:08:58 -0400 (EDT) (envelope-from pgollucci@p6m7g8.com) Message-ID: <4510F72A.2030601@p6m7g8.com> Date: Wed, 20 Sep 2006 01:09:14 -0700 From: "Philip M. Gollucci" Organization: P6M7G8 Inc. User-Agent: Thunderbird 1.5.0.4 (X11/20060627) MIME-Version: 1.0 To: Foo JH References: <4510EDE5.4040305@extracktor.com> In-Reply-To: <4510EDE5.4040305@extracktor.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: modperl_users List , freebsd-questions@freebsd.org Subject: Re: Unable to compile libapreq2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Sep 2006 08:09:47 -0000 Foo JH wrote: > Hi guys, > > I'm using FBSD6.0. I've done the latest cvsup on the ports, installed > apache 2.0.59 and mod_perl 2.0.2,3 and and trying to install > libapreq2-2.0.08. Unfortunately its something in your local setup. I do the FAMP stack ports compile almost daily. > cc -shared .libs/util.o .libs/version.o .libs/cookie.o .libs/param.o > .libs/parser.o .libs/parser_urlencoded.o .libs/parser_header.o > .libs/parser_multipart.o .libs/module.o .libs/module_custom.o > .libs/module_cgi.o .libs/error.o -Wl,--rpath -Wl,/usr/local/lib/apache2 > -Wl,--rpath -Wl,/usr/local/lib/apache2 > /usr/local/lib/apache2/libapr-0.so > /usr/local/lib/apache2/libaprutil-0.so -lexpat -liconv -lm -lcrypt > -L/usr/local -Wl,-soname -Wl,libapreq2.so.8 -o .libs/libapreq2.so.8 > /usr/bin/ld: cannot find -lexpat First of all, in FBSD libexpat ins in /usr/local which is not in the default search path hence: --with-expat=/usr/local should be in your configure line. FreeBSD ports should do this for you. I know this version works I'm currently using it. expat-2.0.0_1(/usr/ports/textproc/expat2) /usr/local/include/expat.h /usr/local/include/expat_external.h /usr/local/lib/libexpat.a /usr/local/lib/libexpat.la /usr/local/lib/libexpat.so /usr/local/lib/libexpat.so.6 I tend to compile like such: cd /usr/ports/www/p5-libapreq2 sudo make APACHE_PORT=www/apache20WITH_PERL=yes \ WITH_MODPERL2=yes WITH_APACHE2_APR=yes \ WITH_AUTH_CATEGORY=yes \ WITH_AUTHN_CATEGORY=yes \ WITH_AUTHZ_CATEGORY=yes \ WITH_CACHE_CATEGORY=yes \ WITH_DAV_CATEGORY=yes \ WITH_LDAP_CATEGORY=yes \ WITH_MISC_CATEGORY=yes \ WITH_PROXY_CATEGORY=yes \ WITH_SSL_CATEGORY=yes \ WITH_SUEXEC_CATEGORY=yes \ which should build: perl, httpd 2.0.x and its bundled apr/apr-util, mod_perl 2, mod_apreq2 AND all available mod_* that come bundled with httpd. + and dependencies. -- ------------------------------------------------------------------------ Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708 Consultant / http://p6m7g8.net/Resume/resume.shtml Senior Software Engineer - TicketMaster - http://ticketmaster.com 1024D/A79997FA F357 0FDD 2301 6296 690F 6A47 D55A 7172 A799 97F "In all that I've done wrong I know I must have done something right to deserve a hug every morning and butterfly kisses at night." __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / / /|_/ / // /\ \/ /_/ / /__ /_/ /_/\_, /___/\___\_\___/ <___/