Re: mod_perl/mod_ssl: fine in isolation, install woes when together

2003-10-25 Thread Stas Bekman
Bryn Dyment wrote: Stas "Mr. Clever, Helpful & Persistent" Bekman wrote... I think I know what your problem is. The failing command includes: -L/usr/lib, so it finds /usr/lib/libperl.so.3 instead of /usr/local/lib/perl5/5.8.1/i386-freebsd/CORE/libperl.so. I bet that if you remove temporary /usr/

RE: mod_perl/mod_ssl: fine in isolation, install woes when together

2003-10-24 Thread Bryn Dyment
Stas "Mr. Clever, Helpful & Persistent" Bekman wrote... > I think I know what your problem is. The failing command includes: > -L/usr/lib, so it finds /usr/lib/libperl.so.3 instead of > /usr/local/lib/perl5/5.8.1/i386-freebsd/CORE/libperl.so. I bet > that if you remove temporary /usr/lib/libperl.

Re: mod_perl/mod_ssl: fine in isolation, install woes when together

2003-10-22 Thread Stas Bekman
Bryn Dyment wrote: (All the below tests are with dynamic Perl.) OK, what if you take the original (with dynamic perl) and replace -L/usr/local/lib/perl5/5.8.1/i386-freebsd/CORE -lperl with -Wl,-L/usr/local/lib/perl5/5.8.1/i386-freebsd/CORE -Wl,-lperl Same problem. What if you add -Wl,-i

Re: mod_perl/mod_ssl: fine in isolation, install woes when together

2003-10-22 Thread Stas Bekman
Vivek Khera wrote: "SB" == Stas Bekman <[EMAIL PROTECTED]> writes: I'm all set (using your patch). However, if the consensus is that I'd be better off with Perl built shared, then how do I "link perl's libperl.so to mod_perl's libperl.a"? SB> I'm not familiar with FreeBSD to give the right adv

Re: mod_perl/mod_ssl: fine in isolation, install woes when together

2003-10-22 Thread Vivek Khera
> "SB" == Stas Bekman <[EMAIL PROTECTED]> writes: >> I'm all set (using your patch). However, if the consensus is that I'd be >> better off with Perl built shared, then how do I "link perl's libperl.so to >> mod_perl's libperl.a"? SB> I'm not familiar with FreeBSD to give the right advice. I

RE: mod_perl/mod_ssl: fine in isolation, install woes when together

2003-10-21 Thread Bryn Dyment
(All the below tests are with dynamic Perl.) > OK, what if you take the original (with dynamic perl) and replace > > -L/usr/local/lib/perl5/5.8.1/i386-freebsd/CORE -lperl > > with > > -Wl,-L/usr/local/lib/perl5/5.8.1/i386-freebsd/CORE -Wl,-lperl Same problem. > What if you add -Wl,-i to t

Re: mod_perl/mod_ssl: fine in isolation, install woes when together

2003-10-21 Thread Stas Bekman
Bryn Dyment wrote: I'd appreciate if you test that patch I did another fresh install of the OS, re-installed Perl w/o the '-Duseshrplib' option, and built SSL/mod_perl/Apache (after applying your patch). Worked! Now I wonder whether apply that patch for freebsd only or all. does it work if you

RE: mod_perl/mod_ssl: fine in isolation, install woes when together

2003-10-21 Thread Bryn Dyment
> I'd appreciate if you test that patch I did another fresh install of the OS, re-installed Perl w/o the '-Duseshrplib' option, and built SSL/mod_perl/Apache (after applying your patch). Worked! > does it work if you remove the -Wl,-E part? Didn't work (this was with the earlier, shared Perl v

Re: mod_perl/mod_ssl: fine in isolation, install woes when together

2003-10-21 Thread Stas Bekman
Bryn Dyment wrote: Thanks for the detailed explanation. ;) I did a fresh install of the OS, and re-installed Perl 5.8.1, but this time with the '-Duseshrplib' option. After installation, I confirmed that I had 'libperl.so' in '/usr/local/lib/perl5/5.8.1/i386-freebsd/CORE'. wow, that was quick! T

RE: mod_perl/mod_ssl: fine in isolation, install woes when together

2003-10-21 Thread Bryn Dyment
Thanks for the detailed explanation. I did a fresh install of the OS, and re-installed Perl 5.8.1, but this time with the '-Duseshrplib' option. After installation, I confirmed that I had 'libperl.so' in '/usr/local/lib/perl5/5.8.1/i386-freebsd/CORE'. Then I re-installed SSL/mod_perl/Apache (wit

Re: mod_perl/mod_ssl: fine in isolation, install woes when together

2003-10-20 Thread Stas Bekman
Stas Bekman wrote: 4. Could you explain a little more about the change you made? Let's say your perl is build using a shared library libperl.so, which normally resides at /usr/local/lib/perl5/5.8.0/i386-freebsd/CORE/libperl.so. When you are linking a shared perl library you need to specify: -

Re: mod_perl/mod_ssl: fine in isolation, install woes when together

2003-10-20 Thread Stas Bekman
Bryn Dyment wrote: 1. Should I be able to safely run 'make install' now? Yup. I noticed when omitting SSL from the Apache build (which resulted in a successful 'make') that a bunch of Apache 'utility' binaries are linked after httpd is built (a half-dozen or so). So, I'm assuming 'make install'

RE: mod_perl/mod_ssl: fine in isolation, install woes when together

2003-10-20 Thread Bryn Dyment
>> 1. Should I be able to safely run 'make install' now? > > Yup. I noticed when omitting SSL from the Apache build (which resulted in a successful 'make') that a bunch of Apache 'utility' binaries are linked after httpd is built (a half-dozen or so). So, I'm assuming 'make install' will install

Re: mod_perl/mod_ssl: fine in isolation, install woes when together

2003-10-20 Thread Stas Bekman
Stas Bekman wrote: Bryn Dyment wrote: and you don't have: /usr/local/lib/perl5/5.8.0/i386-freebsd/CORE/libperl.so Right. I assume that when you run: perl Makefile.PL APACHE_SRC=../apache_1.3.28/src \ perl == /usr/local/bin/perl5.8.0, right? Right. (Perl 5.8.1's installation doesn

Re: mod_perl/mod_ssl: fine in isolation, install woes when together

2003-10-20 Thread Stas Bekman
Bryn Dyment wrote: and you don't have: /usr/local/lib/perl5/5.8.0/i386-freebsd/CORE/libperl.so Right. I assume that when you run: perl Makefile.PL APACHE_SRC=../apache_1.3.28/src \ perl == /usr/local/bin/perl5.8.0, right? Right. (Perl 5.8.1's installation doesn't automatically rep

RE: mod_perl/mod_ssl: fine in isolation, install woes when together

2003-10-20 Thread Bryn Dyment
> and you don't have: > /usr/local/lib/perl5/5.8.0/i386-freebsd/CORE/libperl.so Right. > I assume that when you run: > > perl Makefile.PL APACHE_SRC=../apache_1.3.28/src \ > > perl == /usr/local/bin/perl5.8.0, right? Right. (Perl 5.8.1's installation doesn't automatically replace the

Re: mod_perl/mod_ssl: fine in isolation, install woes when together

2003-10-20 Thread Stas Bekman
Bryn Dyment wrote: >>Next check that it has those symbols defined. > > % nm /usr/local/lib/perl5/5.8.0/i386-freebsd/CORE/libperl.a | grep > Perl_get_sv > 21ac T Perl_get_sv why libperl.a and not libperl.so. Do you have a static perl build? Before any Apache stuff, but after upgrading Pe

RE: mod_perl/mod_ssl: fine in isolation, install woes when together

2003-10-20 Thread Bryn Dyment
>>Next check that it has those symbols defined. > > % nm /usr/local/lib/perl5/5.8.0/i386-freebsd/CORE/libperl.a | grep > Perl_get_sv > 21ac T Perl_get_sv >why libperl.a and not libperl.so. Do you have a static perl build? Before any Apache stuff, but after upgrading Perl, I have libperl

Re: mod_perl/mod_ssl: fine in isolation, install woes when together

2003-10-20 Thread Stas Bekman
Bryn Dyment wrote: Hi, Stas Bekman wrote: You do have it in the apache tree, the problem is that you overwrite it later on. See: http://perl.apache.org/docs/1.0/guide/install.html#mod_perl_and_mod_ssl___op enssl This link describes a similar build process to the one I'm using (although I'm not h

RE: mod_perl/mod_ssl: fine in isolation, install woes when together

2003-10-20 Thread Bryn Dyment
Hi, Stas Bekman wrote: > You do have it in the apache tree, the problem is that you overwrite > it later on. See: > http://perl.apache.org/docs/1.0/guide/install.html#mod_perl_and_mod_ssl___op enssl This link describes a similar build process to the one I'm using (although I'm not having mod_per

Re: mod_perl/mod_ssl: fine in isolation, install woes when together

2003-10-20 Thread Stas Bekman
Bryn Dyment wrote: I have no httpd, since it failed to build (correct?). Also, I'm building in mod_perl statically, so I assume there will be no 'libperl.so' file (correct?). You do have it in the apache tree, the problem is that you overwrite it later on. See: http://perl.apache.org/docs/1.0/gu

RE: mod_perl/mod_ssl: fine in isolation, install woes when together

2003-10-20 Thread Bryn Dyment
se symbols defined. % nm /usr/local/lib/perl5/5.8.0/i386-freebsd/CORE/libperl.a | grep Perl_get_sv 21ac T Perl_get_sv -Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2003 3:08 PM To: Bryn Dyment Cc: [EMAIL PROTECTED] Subject: Re: mod_perl/mod_

Re: mod_perl/mod_ssl: fine in isolation, install woes when together

2003-10-20 Thread Stas Bekman
Bryn Dyment wrote: I've isolated this pretty well... hope someone has some insight: After a fresh* install of FreeBSD 4.8, I can build Apache alone with mod_ssl, and Apache alone with mod_perl (static). However, I'm getting errors when trying to install both together. Here are my steps:

mod_perl/mod_ssl: fine in isolation, install woes when together

2003-10-20 Thread Bryn Dyment
I've isolated this pretty well... hope someone has some insight: After a fresh* install of FreeBSD 4.8, I can build Apache alone with mod_ssl, and Apache alone with mod_perl (static). However, I'm getting errors when trying to install both together. Here are my steps: tar -xzf apache_1.