Re: missing modules/perl/libperl.a

2000-04-12 Thread Stas Bekman

  In file included from mod_perl.h:41,
   from mod_perl.c:60:
  /usr/lib/perl5/5.00503/i686-linux/CORE/perl.h:2546: redefinition of `union
  semun'
  /usr/lib/perl5/5.00503/i686-linux/CORE/patchlevel.h:41: warning:
  `local_patches' defined but not use
 
 what kernel/distribution are you using?  this same problem has come up
 with older 2.0.x kernels, i'm told upgrades have cured.
 
 It's a RH6.(mumble) distribution, with a fairly recent SMP kernel.  
 
 A couple of days after I posted my last message regarding this, I got it to
 compile.  It would appear that the problem was the underscore in the
 USE_APACI call in my Makefile.pl line:
 
 perl Makefile.PL APACHE_PREFIX=/usr/local/apache-strong/
   APACHE_SRC=/usr/local/apache-strong/ \
   DO_HTTPD=1 \
   USE_APACI=1 \
   EVERYTHING=1 \
   PREP_HTTPD=1
 
 The guide seems to waver on the hyphen vs. underscore but this did the trick:
 
 perl Makefile.PL APACHE_PREFIX=/usr/local/apache-strong/ \
APACHE_SRC=../../apache-strong/src/  \
   USE-APACI=1 \
   APACI-ARGS=--prefix=/usr/local/apache-strong/ \
   DO_HTTPD=1 \
   EVERYTHING=1 \
   PREP_HTTPD=1

There is no USE-APACI parameter. The correct one is USE_APACI. Since you
have used the wrong name it was just disregarded. Of course in your case
APACHE_PREFIX was the one you needed.

The Guide has it correctly. It's not the hyphen but the underscore. No
tricks this time.

 In looking at this now, I think that my call to APACI-ARGS is redundant
 when used with the APACHE_PREFIX argument.   At any rate, it worked and the
 server is performing as advertised.
 
 Thank you very much for getting back to me, Doug.
 
 cheers,
 Todd Finney
 
 
 
 
  
 



__
Stas Bekman | JAm_pH--Just Another mod_perl Hacker
http://stason.org/  | mod_perl Guide http://perl.apache.org/guide/ 
mailto:[EMAIL PROTECTED]  | http://perl.orghttp://stason.org/TULARC/
http://singlesheaven.com| http://perlmonth.com http://sourcegarden.org
--




Re: missing modules/perl/libperl.a

2000-04-12 Thread Doug MacEachern

   USE-APACI=1 \

as stas mentioned, USE_APACI is the correct name, USE-APACI is ignored.
it could be that stronghold does not support apaci.




Re: missing modules/perl/libperl.a

2000-04-11 Thread Doug MacEachern

On Thu, 6 Apr 2000, Todd Finney wrote:

 I'm attempting to recompile Stronghold with mod_perl, and I've run into a
 problem that no set of instructions (that I've seen) seem to help with.   Any
 assistance/advice/RTFMs would be appreciated.
 
 mod_perl 1.21
 Stronghold 2.42 glibc2.1 build 2412
 Perl 5.005_03
 
 This system has an existing mod_perl enabled httpd that I compiled with no 
 problems.   It is also 1.21, with apache 1.3.9.  I'd rather not poon that
 instance while creating this one.

with the same Perl version or an older one?

 In file included from mod_perl.h:41,
  from mod_perl.c:60:
 /usr/lib/perl5/5.00503/i686-linux/CORE/perl.h:2546: redefinition of `union
 semun'
 /usr/lib/perl5/5.00503/i686-linux/CORE/patchlevel.h:41: warning:
 `local_patches' defined but not use

what kernel/distribution are you using?  this same problem has come up
with older 2.0.x kernels, i'm told upgrades have cured.




Re: missing modules/perl/libperl.a

2000-04-11 Thread Todd Finney

At 11:49 PM 4/11/00 , Doug MacEachern wrote:
On Thu, 6 Apr 2000, Todd Finney wrote:

 I'm attempting to recompile Stronghold with mod_perl, and I've run into a
 problem that no set of instructions (that I've seen) seem to help with.
 Any
 assistance/advice/RTFMs would be appreciated.
 
 mod_perl 1.21
 Stronghold 2.42 glibc2.1 build 2412
 Perl 5.005_03
 
 This system has an existing mod_perl enabled httpd that I compiled with no 
 problems.   It is also 1.21, with apache 1.3.9.  I'd rather not poon that
 instance while creating this one.

with the same Perl version or an older one?

It's the same version of Perl.  

 In file included from mod_perl.h:41,
  from mod_perl.c:60:
 /usr/lib/perl5/5.00503/i686-linux/CORE/perl.h:2546: redefinition of `union
 semun'
 /usr/lib/perl5/5.00503/i686-linux/CORE/patchlevel.h:41: warning:
 `local_patches' defined but not use

what kernel/distribution are you using?  this same problem has come up
with older 2.0.x kernels, i'm told upgrades have cured.

It's a RH6.(mumble) distribution, with a fairly recent SMP kernel.  

A couple of days after I posted my last message regarding this, I got it to
compile.  It would appear that the problem was the underscore in the
USE_APACI call in my Makefile.pl line:

perl Makefile.PL APACHE_PREFIX=/usr/local/apache-strong/
APACHE_SRC=/usr/local/apache-strong/ \
DO_HTTPD=1 \
USE_APACI=1 \
EVERYTHING=1 \
PREP_HTTPD=1

The guide seems to waver on the hyphen vs. underscore but this did the trick:

perl Makefile.PL APACHE_PREFIX=/usr/local/apache-strong/ \
 APACHE_SRC=../../apache-strong/src/  \
USE-APACI=1 \
APACI-ARGS=--prefix=/usr/local/apache-strong/ \
DO_HTTPD=1 \
EVERYTHING=1 \
PREP_HTTPD=1

In looking at this now, I think that my call to APACI-ARGS is redundant
when used with the APACHE_PREFIX argument.   At any rate, it worked and the
server is performing as advertised.

Thank you very much for getting back to me, Doug.

cheers,
Todd Finney




 



Re: missing modules/perl/libperl.a

2000-04-07 Thread Todd Finney

It would appear, from the lack of response to this message, that I've
either asked:

1) a really dumb question that's been beaten to death and I just haven't
noticed the previous thread.

or

2) a really hard question that no one has the answer to.   (Given the sheer
mass of the gray matter on this list, I find that hard to believe.)

Could someone clue me in as to which one it is?

thanks,
Todd


At 12:46 AM 4/6/00 , you wrote:
I'm attempting to recompile Stronghold with mod_perl, and I've run into a
problem that no set of instructions (that I've seen) seem to help with.   Any
assistance/advice/RTFMs would be appreciated.

mod_perl 1.21
Stronghold 2.42 glibc2.1 build 2412
Perl 5.005_03

This system has an existing mod_perl enabled httpd that I compiled with no 
problems.   It is also 1.21, with apache 1.3.9.  I'd rather not poon that
instance while creating this one.

First, I tried this:

perl Makefile.PL APACHE_PREFIX=/usr/local/apache-strong/
APACHE_SRC=/usr/local/apache-strong/ DO_HTTPD=1 USE_APACI=1 EVERYTHING=1
PREP_HTTPD=1

then a make, and a make install.  All appears to go well, but no libperl.a is
created in modules/perl under the apache tree.   So I tried this (per
INSTALL.simple.stronghold):

Makefile.PL APACHE_SRC=/usr/local/apache-strong/src/  make test
 make install

which ran along swimmingly until it got here:

=== modules/sxnet
=== modules/perl
cc -O2 -Dbool=char -DHAS_BOOL -I/usr/lib/perl5/5.00503/i686-linux/CORE 
-DMOD_PERL_VERSION=\"1.21\"
-DMOD_PERL_STRING_VERSION=\"mod_perl/1.21\" -I../.. 
-I/usr/lib/perl5/5.00503/i686-linux/CORE  -I../
../os/unix -I../../include -I../ssl/include -I../../ssl/include
-I../../../ssl/include -I/usr/i386-g
libc20-linux/include -Wall -DLINUX=2 -DTARGET=\"httpsd\" -DMOD_PERL
-DUSE_PERL_SSI -Dbool=char -DHAS
_BOOL -DSHBUILDCODE=\"C2NetEU/2412\" -DSHVERSION=\"2.4.2\" -DSTRONGHOLD
-DUSE_HSREGEX -DSTRONGHOLD -
DMOD_PERL -c mod_perl.c
In file included from mod_perl.h:41,
 from mod_perl.c:60:
/usr/lib/perl5/5.00503/i686-linux/CORE/perl.h:2546: redefinition of `union
semun'
/usr/lib/perl5/5.00503/i686-linux/CORE/patchlevel.h:41: warning:
`local_patches' defined but not use
d
make[3]: *** [mod_perl.o] Error 1
make[2]: *** [all] Error 1
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/usr/local/apache-strong/src'
make: *** [apache_httpd] Error 2

I then tried the instructions listed at C2net, here
http://www.c2net.com/external/?link=sh242/index.html

Switch to the ServerRoot/src directory:

# cd ServerRoot/src
This is the directory created during installation, and it may vary from the
default. 

Edit the Configuration file to reflect which modules or patches you want.

AddModule modules/perl/libperl.a

Save the modified Configuration file.

Run Configure:
# ./Configure

Rebuild HTTPSD:
# make

This goes along for awhile with no apparent problems until it gets here:

=== modules/sxnet
=== modules/perl
cc -O2 -Dbool=char -DHAS_BOOL -I/usr/lib/perl5/5.00503/i686-linux/CORE 
-DMOD_PERL_VERSION=\"1.21\"
-DMOD_PERL_STRING_VERSION=\"mod_perl/1.21\" -I../.. 
-I/usr/lib/perl5/5.00503/i686-linux/CORE  -I../
../os/unix -I../../include -I../ssl/include -I../../ssl/include
-I../../../ssl/include -I/usr/i386-g
libc20-linux/include -Wall -DLINUX=2 -DTARGET=\"httpsd\" -DMOD_PERL
-DUSE_PERL_SSI -Dbool=char -DHAS
_BOOL -DSHBUILDCODE=\"C2NetEU/2412\" -DSHVERSION=\"2.4.2\" -DSTRONGHOLD
-DUSE_HSREGEX  -c mod_perl.c
In file included from mod_perl.h:41,
 from mod_perl.c:60:
/usr/lib/perl5/5.00503/i686-linux/CORE/perl.h:2546: redefinition of `union
semun'
/usr/lib/perl5/5.00503/i686-linux/CORE/patchlevel.h:41: warning:
`local_patches' defined but not use
d
make[2]: *** [mod_perl.o] Error 1
make[1]: *** [all] Error 1
make: *** [subdirs] Error 1

Same as before, I believe.

Additional questions I have are:

 - Is there a danger of breaking my other Apache/mod_perl installation by
configuring mod_perl against a different source tree and doing a make install?

 - Where is libperl.a?

Any assistance would be greatly appreciated.

thanks,
Todd







--
Todd R. FinneyAlpha Geek
[EMAIL PROTECTED] (508) 879 5792
  Boy Genius Internet Development   
   http://www.boygenius.com
--