Re: problems building apache + mod_perl + mod_ssl on FreeBSD 4.3

2001-09-09 Thread Doug MacEachern

On 12 Aug 2001, Wayne Pascoe wrote:
 
 cc  -funsigned-char -DMOD_SSL=208104 -DMOD_PERL -DUSE_PERL_SSI -fno-strict-aliasing 
-I/usr/local/include -DEAPI -DNO_DL_NEEDED -fno-strict-aliasing -I/usr/local/include 
`./apaci` -L/usr/lib-o httpd buildmark.o modules.o  
modules/standard/libstandard.a  modules/ssl/libssl.a  modules/perl/libperl.a  
main/libmain.a  ./os/unix/libos.a  ap/libap.a-lcrypt   -lssl -lcrypto   -Wl,-E  
-L/usr/local/lib /usr/local/lib/perl5/5.6.1/i386-freebsd/auto/DynaLoader/DynaLoader.a 
-L/usr/local/lib/perl5/5.6.1/i386-freebsd/CORE -lperl -lm -lc -lcrypt -liconv -lutil
 /usr/local/lib/perl5/5.6.1/i386-freebsd/auto/DynaLoader/DynaLoader.a(DynaLoader.o): 
In function `SaveError':
 DynaLoader.o(.text+0x159): undefined reference to `Perl_vmess'
 *** Error code 1

sounds like -lperl is being picked up from somewhere else (like /usr/lib),
rather than /usr/local/lib/perl5/5.6.1/i386-freebsd/CORE
look for a libperl.so in /usr/lib, if you find one, get rid of it.
libperl.so should always in the perl version/arch install path. 





Re: problems building apache + mod_perl + mod_ssl on FreeBSD 4.3

2001-09-09 Thread The Doctor

On Sun, Sep 09, 2001 at 11:46:33AM -0700, Doug MacEachern wrote:
 On 12 Aug 2001, Wayne Pascoe wrote:
  
  cc  -funsigned-char -DMOD_SSL=208104 -DMOD_PERL -DUSE_PERL_SSI 
-fno-strict-aliasing -I/usr/local/include -DEAPI -DNO_DL_NEEDED -fno-strict-aliasing 
-I/usr/local/include `./apaci` -L/usr/lib-o httpd buildmark.o modules.o  
modules/standard/libstandard.a  modules/ssl/libssl.a  modules/perl/libperl.a  
main/libmain.a  ./os/unix/libos.a  ap/libap.a-lcrypt   -lssl -lcrypto   -Wl,-E  
-L/usr/local/lib /usr/local/lib/perl5/5.6.1/i386-freebsd/auto/DynaLoader/DynaLoader.a 
-L/usr/local/lib/perl5/5.6.1/i386-freebsd/CORE -lperl -lm -lc -lcrypt -liconv -lutil
  
/usr/local/lib/perl5/5.6.1/i386-freebsd/auto/DynaLoader/DynaLoader.a(DynaLoader.o): 
In function `SaveError':
  DynaLoader.o(.text+0x159): undefined reference to `Perl_vmess'
  *** Error code 1
 
 sounds like -lperl is being picked up from somewhere else (like /usr/lib),
 rather than /usr/local/lib/perl5/5.6.1/i386-freebsd/CORE
 look for a libperl.so in /usr/lib, if you find one, get rid of it.
 libperl.so should always in the perl version/arch install path. 
 
 


THAT is the problem, and thanks to you Doug, the same problemed appeared in
BSD/OS and the above FIXES the problem!!!

You arethe man Dou!  You are the man.



Re: problems building apache + mod_perl + mod_ssl on FreeBSD 4.3

2001-09-09 Thread Doug MacEachern

On Sun, 9 Sep 2001, The Doctor wrote:
 
 THAT is the problem, and thanks to you Doug, the same problemed appeared in
 BSD/OS and the above FIXES the problem!!!

great news.  this has come up a bunch in the past, but nothing was done
about it.  i've added the following sanity check to Makefile.PL...

Index: Makefile.PL
===
RCS file: /home/cvs/modperl/Makefile.PL,v
retrieving revision 1.195
diff -u -r1.195 Makefile.PL
--- Makefile.PL 2001/07/17 15:54:05 1.195
+++ Makefile.PL 2001/09/09 21:55:06
@@ -2410,6 +2410,7 @@
 malloc_check();
 uselargefiles_check();
 dynaloader_check();
+shrplib_check();
 
 if ($USE_APXS and $Config{libs} =~ /($thrlib)/) {
 my $lib = $1;
@@ -2560,4 +2561,32 @@
  /* Added by Wayne Scott 
 
 EOF
+}
+
+sub shrplib_check {
+return unless $Config{'useshrplib'} and
+  $Config{'useshrplib'} eq 'define';
+
+my $libperl = $Config{'libperl'} || 'libperl.so';
+
+for my $dir (qw(/lib /usr/lib /usr/local/lib)) {
+next unless -e $dir/$libperl;
+
+my $coredir = $Config{'archlibexp'}/CORE;
+my $corelib = $coredir/$libperl;
+
+phat_warn(EOF);
+$dir/$libperl might override
+$corelib
+
+This may cause build or runtime errors with mod_perl.
+Consider removing $dir/$libperl, it should not be there.
+
+If your vendor has installed $libperl there, complain to them and install
+Perl from source if needed.
+
+$libperl should only exist in Perl version/arch directories, for example:
+$coredir
+EOF
+}
 }




Re: problems building apache + mod_perl + mod_ssl on FreeBSD 4.3

2001-09-09 Thread The Doctor

On Sun, Sep 09, 2001 at 03:02:55PM -0700, Doug MacEachern wrote:
 On Sun, 9 Sep 2001, The Doctor wrote:
  
  THAT is the problem, and thanks to you Doug, the same problemed appeared in
  BSD/OS and the above FIXES the problem!!!
 
 great news.  this has come up a bunch in the past, but nothing was done
 about it.  i've added the following sanity check to Makefile.PL...
 
 Index: Makefile.PL
 ===
 RCS file: /home/cvs/modperl/Makefile.PL,v
 retrieving revision 1.195
 diff -u -r1.195 Makefile.PL
 --- Makefile.PL   2001/07/17 15:54:05 1.195
 +++ Makefile.PL   2001/09/09 21:55:06
 @@ -2410,6 +2410,7 @@
  malloc_check();
  uselargefiles_check();
  dynaloader_check();
 +shrplib_check();
  
  if ($USE_APXS and $Config{libs} =~ /($thrlib)/) {
  my $lib = $1;
 @@ -2560,4 +2561,32 @@
   /* Added by Wayne Scott 
  
  EOF
 +}
 +
 +sub shrplib_check {
 +return unless $Config{'useshrplib'} and
 +  $Config{'useshrplib'} eq 'define';
 +
 +my $libperl = $Config{'libperl'} || 'libperl.so';
 +
 +for my $dir (qw(/lib /usr/lib /usr/local/lib)) {
 +next unless -e $dir/$libperl;
 +
 +my $coredir = $Config{'archlibexp'}/CORE;
 +my $corelib = $coredir/$libperl;
 +
 +phat_warn(EOF);
 +$dir/$libperl might override
 +$corelib
 +
 +This may cause build or runtime errors with mod_perl.
 +Consider removing $dir/$libperl, it should not be there.
 +
 +If your vendor has installed $libperl there, complain to them and install
 +Perl from source if needed.
 +
 +$libperl should only exist in Perl version/arch directories, for example:
 +$coredir
 +EOF
 +}
  }
 

Doug, the problem lies in the fact that some release uses /usr/lib and
/usr/cotnrib/lib in their libpath.

all I did was to replace the libperl.so in both directories and
got perl to behave.

This COULD be a BSD release problem.

Again Doug, you are the man.



Re: problems building apache + mod_perl + mod_ssl on FreeBSD 4.3

2001-08-12 Thread Stas Bekman

On 12 Aug 2001, Wayne Pascoe wrote:

   Hi all,
  
   I am trying to build mod_perl-1.26 for Apache 1.3.20 with mod_ssl
   2.8.4 on FreeBSD. The version of perl that I have installed on this
   machine is 5.6.1
  
   If I build just mod_perl and Apache, the build goes fine. The problem
   only exists if I add mod_ssl to the mix.
 
  see
 
  http://perl.apache.org/guide/install.html#mod_perl_and_mod_ssl_openssl_
 

 Thanks for the link. I have followed the instructions there, and it
 looks to me like the mod_perl configuration does the Apache
 configuration for me if I use these instructions. Is this correct?

yup, via APACI_ARGS

 In any event, doing a make in the mod_perl-1.26 directory still
 produces this error :

I don't have freebsd to try, but have you tried first to follow exactly
the steps as they are in the guide, without changing anything? Does it
work for you? It does work for me on linux.


_
Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
http://stason.org/   mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/