Re: Unable to compile libapreq2

2006-10-03 Thread Foo JH

Hi all,

With Philip's encouragement and some extra work thrown in, I've made the 
following conclusion:
1. If I install Apache 2 + MP2 + libapreq2 using the existing port tree 
in FBSD6.1, it's fine.
2. If I install FBSD6.1 + cvsup-without-gui + updated port tree + 
Apache2 + MP2 + libapreq2, it reports 'cannot find -lexpat' error.
3. If I install FBSD6.1 + cvsup-without-gui + Apache2 + MP2 + libapreq2, 
it reports 'cannot find -lexpat' error.


Is there something in cvsup-without-gui that screws up expat?


Philip M. Gollucci wrote:

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.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Unable to compile libapreq2

2006-09-20 Thread Philip M. Gollucci
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 ([EMAIL PROTECTED]) 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."
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /
 / /|_/ / // /\ \/ /_/ / /__
/_/  /_/\_, /___/\___\_\___/
   <___/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Unable to compile libapreq2

2006-09-20 Thread Foo JH

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.


Halfway through the compilation, I get this error:
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
gmake[2]: *** [libapreq2.la] Error 1
gmake[2]: Leaving directory 
`/usr/ports/www/libapreq2/work/libapreq2-2.08/library'

gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory 
`/usr/ports/www/libapreq2/work/libapreq2-2.08/library'

gmake: *** [all-recursive] Error 1

I've tried recompiling expat, but that did not change the problem.

Can any kind soul please drop some hints as to what may be the problem? 
Thanks.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"