You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-dev@httpd.apache.org by Marc Lambrichs <ml...@melange-it.nl> on 2005/05/23 08:40:33 UTC

expat install libapreq2-2.0.5-dev

I'm trying to install libapreq2-2.0.5-dev on freebsd 5.4 box. Error 
"/usr/bin/ld: cannot find -lexpat" pops up. I've checked 
/usr/local/lib/libexpat.a exists and in the Makefile
libdir is ok ( /usr/local/lib ) and
APR_LDFLAGS contains -L/usr/local/lib
What's wrong?

Cheers,
Marc


Re: expat install libapreq2-2.0.5-dev

Posted by Marc Lambrichs <ml...@melange-it.nl>.
Marc Lambrichs wrote:
> Randy Kobes wrote:
> 
>> On Mon, 23 May 2005, Philip M. Gollucci wrote:
>>
>>
>>> Marc Lambrichs wrote:
>>
>>
>> [ ... ]
>>
>>>> But wait, there's more.
>>>> In file included from Apache2.xs:39
>>>> /home/mlambrichs/libapreq2-2.05-dev/glue/perl/xsbuilder/apreq_xs_postperl.h:21:34: 
>>>>
>>>> modperl_unembed.h: No such file or directory
>>>>
>>>> Somehow I'm under the impression that the Makefile isn't fit for my
>>>> system.
>>
>>
>>
>> That's strange - glue/perl/xsbuilder/apreq_xs_postperl.h
>> of my copy is including modperl_perl_unembed.h,
>> not modperl_unembed.h. Was this a cut-n-paste error,
>> or is it really trying to include modperl_unembed.h?
>>
>> Also, do you have modperl_perl_unembed.h under your Apache2
>> include/ subdirectory? It should get installed there upon
>> installing mod_perl-2.
>>
> 
> Probably a cut-n-paste error. Sorry about that. And 
> yes...modperl_perl_unembed.h is under include directory.
> I think my freebsd system is a bit mixed up. I've changed the ports to a 
> manual install in /usr/local/httpd_2.0.54. Made a manual install of 
> libapreq2. Now I get:
> 
> /libexec/ld-elf.so.1: 
> /usr/local/lib/perl5/site_perl/5.8.5/mach/auto/APR/Request/Apache2/Apache2.so: 
> Undefined symbol "apreq_handle_apache2"
> 
> 
simple case of RTFM. I didn't activate mod_apreq2. Sorry.


Re: expat install libapreq2-2.0.5-dev

Posted by Joe Schaefer <jo...@sunstarsys.com>.
Marc Lambrichs <ml...@melange-it.nl> writes:

> Undefined symbol "apreq_handle_apache2"

When you do a manual install, be sure to add

LoadModule  modules/mod_apreq2.so

to httpd.conf.  mod_apreq2.so provides that particular symbol,
not libapreq2.

-- 
Joe Schaefer


Re: expat install libapreq2-2.0.5-dev

Posted by Marc Lambrichs <ml...@melange-it.nl>.
Randy Kobes wrote:
> On Mon, 23 May 2005, Philip M. Gollucci wrote:
> 
> 
>>Marc Lambrichs wrote:
> 
> [ ... ]
> 
>>>But wait, there's more.
>>>In file included from Apache2.xs:39
>>>/home/mlambrichs/libapreq2-2.05-dev/glue/perl/xsbuilder/apreq_xs_postperl.h:21:34:
>>>modperl_unembed.h: No such file or directory
>>>
>>>Somehow I'm under the impression that the Makefile isn't fit for my
>>>system.
> 
> 
> That's strange - glue/perl/xsbuilder/apreq_xs_postperl.h
> of my copy is including modperl_perl_unembed.h,
> not modperl_unembed.h. Was this a cut-n-paste error,
> or is it really trying to include modperl_unembed.h?
> 
> Also, do you have modperl_perl_unembed.h under your Apache2
> include/ subdirectory? It should get installed there upon
> installing mod_perl-2.
> 

Probably a cut-n-paste error. Sorry about that. And 
yes...modperl_perl_unembed.h is under include directory.
I think my freebsd system is a bit mixed up. I've changed the ports to a 
manual install in /usr/local/httpd_2.0.54. Made a manual install of 
libapreq2. Now I get:

/libexec/ld-elf.so.1: 
/usr/local/lib/perl5/site_perl/5.8.5/mach/auto/APR/Request/Apache2/Apache2.so: 
Undefined symbol "apreq_handle_apache2"


Re: expat install libapreq2-2.0.5-dev

Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Mon, 23 May 2005, Philip M. Gollucci wrote:

> Marc Lambrichs wrote:
[ ... ]
> > But wait, there's more.
> > In file included from Apache2.xs:39
> > /home/mlambrichs/libapreq2-2.05-dev/glue/perl/xsbuilder/apreq_xs_postperl.h:21:34:
> > modperl_unembed.h: No such file or directory
> >
> > Somehow I'm under the impression that the Makefile isn't fit for my
> > system.

That's strange - glue/perl/xsbuilder/apreq_xs_postperl.h
of my copy is including modperl_perl_unembed.h,
not modperl_unembed.h. Was this a cut-n-paste error,
or is it really trying to include modperl_unembed.h?

Also, do you have modperl_perl_unembed.h under your Apache2
include/ subdirectory? It should get installed there upon
installing mod_perl-2.

-- 
best regards,
randy kobes

Re: expat install libapreq2-2.0.5-dev

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Marc Lambrichs wrote:

> Marc Lambrichs wrote:
>
>> I'm trying to install libapreq2-2.0.5-dev on freebsd 5.4 box. Error 
>> "/usr/bin/ld: cannot find -lexpat" pops up. I've checked 
>> /usr/local/lib/libexpat.a exists and in the Makefile
>> libdir is ok ( /usr/local/lib ) and
>> APR_LDFLAGS contains -L/usr/local/lib
>> What's wrong?
>>
>> Cheers,
>> Marc
>>
>>
> Creating links in /usr/local/lib/apache2 solved that problem.
>
> But wait, there's more.
> In file included from Apache2.xs:39
> /home/mlambrichs/libapreq2-2.05-dev/glue/perl/xsbuilder/apreq_xs_postperl.h:21:34: 
> modperl_unembed.h: No such file or directory
>
> Somehow I'm under the impression that the Makefile isn't fit for my 
> system.
>
> Marc

Use gmake not make.

Also, there is an option to ./configure --with-expat=[DIR]
you should use it. I added it for FBSD :)  I've only tested in 6-x 
current though.

./configure --with-expat=/usr/local


Also make sure you're using
/usr/ports/textproc/expat2


-- 
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/resume.shtml
Senior Developer / Liquidity Services, Inc.  
     http://www.liquidityservicesinc.com


Re: [PATCH] Makefile.PL

Posted by Joe Schaefer <jo...@sunstarsys.com>.
"Philip M. Gollucci" <pg...@p6m7g8.com> writes:

> Here's an official patch based on this to complete my --with-expat to
> ./configure from before.

Thanks, applied.

-- 
Joe Schaefer


[PATCH] Makefile.PL

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
>
>> Glenn Gallien wrote:
>>
>>> Thanks, that's what I was looking for,  --with-expat=/usr/local did 
>>> the trick.
>>> Works fine with ./configure, but not with Makefile.PL.  Adding 
>>> --with-expat
>>> to @opts in Makefile.PL worked.
>>
>> Score one for me :)
>
Here's an official patch based on this to complete my --with-expat to 
./configure from before.

Thanks Glen.

Index: Makefile.PL
===================================================================
--- Makefile.PL (revision 202418)
+++ Makefile.PL (working copy)
@@ -18,7 +18,8 @@
 my %opts;
 undef @opts{qw(with-apache2-apxs with-apache1-apxs with-apache2-src
                with-perl with-apache2-httpd
-               with-apr-config with-apu-config apxs)};
+               with-apr-config with-apu-config apxs
+               with-expat)};
 undef @opts{qw(with-apache2)} if (WIN32);
 
 my @flags = qw/enable-maintainer-mode enable-perl-glue disable-perl-glue/;


-- 
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/resume.shtml
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



Re: expat install libapreq2-2.0.5-dev

Posted by Jonathan Vanasco <jv...@mastersofbranding.com>.
Just so its google-able for the next person with the issue:

Installing libapreq2-2.0.5-dev on Mac OSX ( OS X ) 10.3 jaguar and 10.4 
tiger

	cd LIBAPREQ2
	./configure --enable-perl-glue --with-expat=/usr/local/apr  
--with-apache2-apxs=/usr/local/apache2/bin/apxs
	make
	make test
	make install



On Jun 19, 2005, at 11:32 PM, Philip M. Gollucci wrote:

> Glenn Gallien wrote:
>> Thanks, that's what I was looking for,  --with-expat=/usr/local did 
>> the trick.
>> Works fine with ./configure, but not with Makefile.PL.  Adding 
>> --with-expat
>> to @opts in Makefile.PL worked.
> Score one for me :)


Re: expat install libapreq2-2.0.5-dev

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Glenn Gallien wrote:
> Thanks, that's what I was looking for,  --with-expat=/usr/local did the 
> trick.
> Works fine with ./configure, but not with Makefile.PL.  Adding --with-expat
> to @opts in Makefile.PL worked.
Score one for me :)

-- 
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/resume.shtml
Senior Developer / Liquidity Services, Inc.
	http://www.liquidityservicesinc.com

Re: expat install libapreq2-2.0.5-dev

Posted by Glenn Gallien <gl...@gallien.net>.
Joe Schaefer wrote:

>Glenn Gallien <gl...@gallien.net> writes:
>
>  
>
>>I'm having the same problem while installing libapreq2-2.0.5-dev on
>>FreeBSD 5.4. Error: /usr/bin/ld: cannot find -lexpat
>>
>>Apache 2 and mod_perl are installed from souce.  Libtool, autoconf and
>>automake where installed from ports.  I've tried creating links to
>>libexpat.a, but it didn't help. 
>>
>>Any suggestions?
>>    
>>
>
>  ./configure --help | grep expat
>
>  
>
Thanks, that's what I was looking for,  --with-expat=/usr/local did the 
trick.
Works fine with ./configure, but not with Makefile.PL.  Adding --with-expat
to @opts in Makefile.PL worked.

Thanks,
Glenn

Re: expat install libapreq2-2.0.5-dev

Posted by Joe Schaefer <jo...@sunstarsys.com>.
Glenn Gallien <gl...@gallien.net> writes:

> I'm having the same problem while installing libapreq2-2.0.5-dev on
> FreeBSD 5.4. Error: /usr/bin/ld: cannot find -lexpat
>
> Apache 2 and mod_perl are installed from souce.  Libtool, autoconf and
> automake where installed from ports.  I've tried creating links to
> libexpat.a, but it didn't help. 
>
> Any suggestions?

  ./configure --help | grep expat

-- 
Joe Schaefer


Re: expat install libapreq2-2.0.5-dev

Posted by Glenn Gallien <gl...@gallien.net>.
Marc Lambrichs wrote:

> Marc Lambrichs wrote:
>
>> I'm trying to install libapreq2-2.0.5-dev on freebsd 5.4 box. Error 
>> "/usr/bin/ld: cannot find -lexpat" pops up. I've checked 
>> /usr/local/lib/libexpat.a exists and in the Makefile
>> libdir is ok ( /usr/local/lib ) and
>> APR_LDFLAGS contains -L/usr/local/lib
>> What's wrong?
>>
>> Cheers,
>> Marc
>>
>>
> Creating links in /usr/local/lib/apache2 solved that problem.

I'm having the same problem while installing libapreq2-2.0.5-dev on 
FreeBSD 5.4.
Error: /usr/bin/ld: cannot find -lexpat

Apache 2 and mod_perl are installed from souce.  Libtool, autoconf and 
automake where installed
from ports.  I've tried creating links to libexpat.a, but it didn't help.

Any suggestions?

Thanks,
Glenn

Re: expat install libapreq2-2.0.5-dev

Posted by Marc Lambrichs <ml...@melange-it.nl>.
Marc Lambrichs wrote:
> I'm trying to install libapreq2-2.0.5-dev on freebsd 5.4 box. Error 
> "/usr/bin/ld: cannot find -lexpat" pops up. I've checked 
> /usr/local/lib/libexpat.a exists and in the Makefile
> libdir is ok ( /usr/local/lib ) and
> APR_LDFLAGS contains -L/usr/local/lib
> What's wrong?
> 
> Cheers,
> Marc
> 
> 
Creating links in /usr/local/lib/apache2 solved that problem.

But wait, there's more.
In file included from Apache2.xs:39
/home/mlambrichs/libapreq2-2.05-dev/glue/perl/xsbuilder/apreq_xs_postperl.h:21:34: 
modperl_unembed.h: No such file or directory

Somehow I'm under the impression that the Makefile isn't fit for my system.

Marc