On Tue, Mar 06, 2007, PLI wrote: > I'm trying to package perl-axkit, from axkit.org. > I have successfully build perl-axkit and upload it. > > When i'm trying to run it under apache/mod_perl as described on: > > http://www.axkit.org/wiki/view/AxKit/QuickStart > > apache output an error on loading the shared library libapreq.so from > Apache/Request/Request.so > > Apache::Request is built against libapreq.so which both are provided by > perl-apache. > > # openpkg rpm -ql perl-apache |grep libapreq.so > /opkg/lib/perl/vendor_perl/5.8.8/i686-linux/auto/libapreq/libapreq.so > > But at run time apache/mod_perl does'nt find libapreq.so. > # ldd > /opkg/lib/perl/vendor_perl/5.8.8/i686-linux/auto/Apache/Request/Request.so > |grep found > libapreq.so => not found > > My huggly solution, is moving: > > # mv > /opkg/lib/perl/vendor_perl/5.8.8/i686-linux/auto/libapreq/libapreq.so > /opkg/lib/ > and restart apache. > > After his, perl-axkit work fine ! > > Did you have any idea how to make my huggly solution in a cleaner way? > > perhaps building Apache::Request static ? > or by moving libapreq.so under %l_prefix/lib ?
The problem is that although Apache::Request _HAS_ to be a DSO, the contained libapreq has to be a static library and also statically linked _INTO_ the DSO of Apache::Request (Request.so). There seems to be some support for this in Apache::Request's c/Makefile.PL but I was not able to get it running quickly now. Please investigate how we can force Apache::Request to keep everything as is but build only a libapreq.a _AND_ link its Request.so against this libapreq.a only. That will solve the problem and is our usual trick to resolve those mixed shared/static environents... Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com ______________________________________________________________________ OpenPKG http://openpkg.org Developer Communication List openpkg-dev@openpkg.org