You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Sean Davis <sd...@mail.nih.gov> on 2005/09/12 15:35:49 UTC

Libapreq-2.0.6 build issue

I am trying to build libapreq2 on macos 10.3.9, apache2.0.54, mod_perl 2.0.1
(perl 5.8.1).  I am  doing the following and getting these results.
libexpat is in /usr/local/apache2/lib.  Any suggestions?

Thanks,
Sean


% ./configure --with-apache2-apxs=/usr/local/apache2/bin/apxs
--enable-perl-glue
% make test

...

/bin/sh ../libtool --mode=link gcc  -g -O2   -o test_cgi
`/Users/sdavis/source/libapreq2-2.06-dev/apreq2-config --link-libtool
--libs`  /usr/local/apache2/lib/libapr-0.la
/usr/local/apache2/lib/libaprutil-0.la test_cgi.o
gcc -g -O2 -o .libs/test_cgi test_cgi.o
/Users/sdavis/source/libapreq2-2.06-dev/library/.libs/libapreq2.dylib
-lexpat -L/Users/sdavis/source/httpd-2.0.54/srclib/apr-util/xml/expat/lib
/Users/sdavis/source/httpd-2.0.54/srclib/apr-util/xml/expat/lib/.libs/libexp
at.dylib /usr/local/apache2/lib/libaprutil-0.dylib
/usr/local/apache2/lib/libexpat.dylib /usr/lib/libiconv.dylib
/usr/local/apache2/lib/libapr-0.dylib -lresolv -lpthread
ld: can't locate file for: -lexpat
make[2]: *** [test_cgi] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1




Re: Libapreq-2.0.6 build issue

Posted by Sean Davis <sd...@mail.nih.gov>.
On 9/12/05 9:47 AM, "Philip M. Gollucci" <pg...@p6m7g8.com> wrote:

> Sean Davis wrote:
>> % ./configure --with-apache2-apxs=/usr/local/apache2/bin/apxs
>> --enable-perl-glue
>> % make test
> 
> % ./configure --with-apache2-apxs=/usr/local/apache2/bin/apxs \
> --enable-perl-glue
> --with-expat=/usr/local/apache
> 
> --with-expat takes the install base for libexpat.a and the header files
> typically
> /usr or /usr/local (FreeBSD)

That was the issue.

Thanks,
Sean


Re: Libapreq-2.0.6 build issue

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Sean Davis wrote:
> % ./configure --with-apache2-apxs=/usr/local/apache2/bin/apxs
> --enable-perl-glue
> % make test

% ./configure --with-apache2-apxs=/usr/local/apache2/bin/apxs \
	--enable-perl-glue
	--with-expat=/usr/local/apache

--with-expat takes the install base for libexpat.a and the header files typically
/usr or /usr/local (FreeBSD)




-- 
END
------------------------------------------------------------
     What doesn't kill us can only make us stronger.
                 Nothing is impossible.
				
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
   http://www.liquidityservicesinc.com
        http://www.liquidation.com
        http://www.uksurplus.com
        http://www.govliquidation.com
        http://www.gowholesale.com