Re: test failed; ... t/httpd.conf

2003-02-08 Thread Vicki Brown
At 14:05 +1100 2003-02-09, Stas Bekman wrote:
>what happens if you do:
>
>cd ../apache_1.3.27/src
>make

At this point, I get a "probably harmless" note and a make error.

I ran:
 configure \
--server-uid=www \
--server-gid=www \
--with-perl=/usr/bin/perl \
--with-layout=Apache \
--enable-module=most \
--enable-shared=max \
--enable-module=auth_db \
--enable-module=mmap_static \
--activate-module=src/modules/perl/libperl.a \
--disable-module=auth_dbm \
--disable-rule=EXPAT


I may have things wrong with the shared libraries. My instructions for the
package I ultimately want to run (Bricolage) tell me to build mod_perl in
statically, not as a DSO. So I removed "--enable-shared=perl"

The configure worked except I got a complaint:
Note (probably harmless): No library found for -lbind

Suggestions for solving this would be appreciated. In my experience, things
that are 'probably" harmless often bite anyway.


The make then ran to here:

   gcc -c -I../.. -I/usr/local/lib/perl5/5.6.1/i386-freebsd/CORE
   -I../../os/unix -I../../include   -funsigned-char -DMOD_PERL
   -DUSE_PERL_SSI -fno-strict-aliasing -I/usr/local/include
   `../../apaci` -fpic -DSHARED_MODULE mod_auth_db.c && mv mod_auth_db.o
   mod_auth_db.lo

   mod_auth_db.c: In function `get_db_pw':
   mod_auth_db.c:175: warning: passing arg 2 of pointer to function from
 incompatible pointer type
   mod_auth_db.c:175: warning: passing arg 4 of pointer to function makes
 pointer from integer without a cast
   mod_auth_db.c:175: too few arguments to function
   *** Error code 1

   Stop in /ad4/ENV/common/src/WWW/apache_1.3.27/src/modules/standard.


Sigh.

This was following the mod_perl instructions in the _Apache_ INSTALL file,
which say to
   configure mod_perl
   make
   make install
   ...
   configure Apache
   make
   make install

Said instructions leave out the test steps entirely, which doesn't give me
warm fuzzies anywhere...
-- 
- Vicki

Vicki Brown ZZZ  Journeyman Sourceror:
P.O. Box 1269  zz  |\ _,,,---,,_Scripts & Philtres
San Bruno, CA   zz /,`.-'`'-.  ;-;;,_Perl, Unix, MacOS
94066 USA |,4-  ) )-,_. ,\ ( `'-'
mailto:[EMAIL PROTECTED]  '---''(_/--'  `-'\_)  http://www.cfcl.com/~vlb



Re: test failed; ... t/httpd.conf

2003-02-08 Thread Vicki Brown
At 12:34 +1100 2003-02-09, Stas Bekman wrote:
>Vicki, you are obviously missing some build steps.

Obviously :/

>How about starting from
>scratch again following the guide and get this frustration over?

Sadly, I started from scratch the first time.

>Thousands of people have simply followed the instructions at:
>http://perl.apache.org/docs/1.0/guide/getwet.html#Installing_mod_perl_in_Three_Steps

Those are the same steps I have been following. I reiterate:

Following the instructions in INSTALL-apaci (essentially identical to the web
page you supplied above)  I ran

  perl Makefile.PL APACHE_PREFIX=/usr/local/apache \
  APACHE_SRC=../apache_1.3.26/src DO_HTTPD=1 USE_APACI=1 EVERYTHING=1

  make

  make test

"The latter did many things" (meaning "printed many bytes of make output, cc
stuff, and cp commands to the screen...") and eventually complained

  Syntax error on line 3 of
  /ad4/ENV/common/src/WWW/mod_perl-1.27/t/conf/httpd.conf:
  Invalid command '=pod', perhaps mis-spelled or defined by a module not
  included in the server configuration

So, obviously, I needed to do a make clean in the apache tree... OK. I did
that. In fact, I downloaded a newer version of Apache.  I also added the
configure options I used to build Apache last time.

Then I tried again:

perl Makefile.PL APACHE_PREFIX=/usr/local/apache  \
APACHE_SRC=../apache_1.3.27/src DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 \
APACI_ARGS='--server-uid=www \
--server-gid=www \
--with-perl=/usr/bin/perl \
--with-layout=Apache \
--enable-module=most \
--enable-shared=max \
--enable-module=auth_db \
--enable-module=mmap_static \
--activate-module=src/modules/perl/libperl.a \
--enable-shared=perl \
--disable-module=auth_dbm \
--disable-rule=EXPAT  \
'

Now I get (at the end of the make test)
 ../apache_1.3.27/src/httpd: not found


This would seem to indicate that the "1 2 3" step process doesn't build
Apache (as it claims: "If your goal is just to build and install Apache 1.3
with mod_perl out of their source trees and have no special interests in
further adjusting or enhancing Apache... the following... builds Apache
statically with mod_perl, installs Apache under 
and mod_perl into the  hierarchy of your existing Perl
installation. All in one step.")


Ideas appreciated...  In the meantime, I will add a "4th step" and configure
Apache "by hand".
-- 
- Vicki

Vicki Brown ZZZ  Journeyman Sourceror:
P.O. Box 1269  zz  |\ _,,,---,,_Scripts & Philtres
San Bruno, CA   zz /,`.-'`'-.  ;-;;,_Perl, Unix, MacOS
94066 USA |,4-  ) )-,_. ,\ ( `'-'
mailto:[EMAIL PROTECTED]  '---''(_/--'  `-'\_)  http://www.cfcl.com/~vlb



Re: test failed; ... t/httpd.conf

2003-02-08 Thread Vicki Brown
At 23:52 + 2003-02-08, Ged Haywood wrote:
>> It's very clear, actually, since I did nothing before these steps :)
>
>Then please ask of the person who logged on and started the shell
>what was the working directory when he left the building?

Come again?

>
>And so you
>
>> chown -R
>
>Hmmm.  Are you by any chance female?  :)

No. I AM THE SYSTEM ADMINISTRATOR OF THIS MACHINE.


-- 
- Vicki

Vicki Brown ZZZ  Journeyman Sourceror:
P.O. Box 1269  zz  |\ _,,,---,,_Scripts & Philtres
San Bruno, CA   zz /,`.-'`'-.  ;-;;,_Perl, Unix, MacOS
94066 USA |,4-  ) )-,_. ,\ ( `'-'
mailto:[EMAIL PROTECTED]  '---''(_/--'  `-'\_)  http://www.cfcl.com/~vlb



test failed; ... t/httpd.conf

2003-02-08 Thread Vicki Brown
At 09:27 + 2003-02-08, Ged Haywood wrote:
>Maybe you'll keep some records this time? :)

I kept records last time. But in between we upgraded FreeBSD and it's never
possible to keep ALL possible records. I _did_ have mod_perl. I tested it.
That was 8 months ago. Things morph.

At 09:27 + 2003-02-08, Ged Haywood wrote:
>It's not clear to me what you did BEFORE these steps, and that's
>important.

It's very clear, actually, since I did nothing before these steps :)

OK, I thought about this overnight and realized the =pod stuff _should_ work
if Apache has mod_perl built into it.  Since I am supposedly building Apache
and mod_perl concurrently,  it occurred to me I should "make clean" in my
Apache source and try again. Just in case.  And I pulled out my Apache
configure ops from last time (see, I _do_ keep notes) and stuck them where
the docs said to put "APACI_ARGS".  Presuming that's what "APACI_ARGS" means.
That isn't so clear...

At 09:27 + 2003-02-08, Ged Haywood wrote:
>Don't build as root, use a non-privileged account to configure

Well, that is an interesting suggestion. I usually don't but this time the
installation somehow made everything owned by root.  That said, back I go for
a chown -R

At 09:27 + 2003-02-08, Ged Haywood wrote:
>Note that I suggested using Apache 1.3.27 here,

Not a problem. We happened to be running 1.3.26 already.

At 09:27 + 2003-02-08, Ged Haywood wrote:
>You know, this is not very helpful at all.  Next time you post, let us
>know what OS you're using, stuff like that huh?

I usually do. "The later did many things and eventually" doesn't cover my OS
version; it covers several hundred lines of make output. Surely you can't be
asking me to post _that_?!

At 09:27 + 2003-02-08, Ged Haywood wrote:
>> Please Cc: me on replies so I don't miss them; I get the digest of this
>>list.
>
>Might be time to subscribe.  :)

Please re-read what I wrote. I _do_ subscribe. I subscribe to the digest. My
mail box does not need an additional hundred messages a day for each list I
subscribe to. The digest comes once a day. So I will rephrase - "Please do me
the courtesy of Cc:ing me directly on any reply so that I get your response
in a timely manner. Thank you."

-

This time I tried:
* download apache 1.3.27
* make clean in mod_perl directory
* all files are owneed by me

perl Makefile.PL APACHE_PREFIX=/usr/local/apache  \
APACHE_SRC=../apache_1.3.27/src DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 \
APACI_ARGS='--server-uid=www \
--server-gid=www \
--with-perl=/usr/bin/perl \
--with-layout=Apache \
--enable-module=most \
--enable-shared=max \
--enable-module=auth_db \
--enable-module=mmap_static \
--activate-module=src/modules/perl/libperl.a \
--enable-shared=perl \
--disable-module=auth_dbm \
--disable-rule=EXPAT  \
'

This time I am including all of the Apache configure options I used
previously.
I admit that I may not be understanding which ones to use. The list came with
assistance from others the _last_ time I tried to build mod_perl and Apache.

Disclaimer: I am _not_ a "C person". I do Perl. I rarely get these weird
configure options all correct without help.  Sigh.

Then I ran make in the mod_perl directory and this time "make test" says
 ../apache_1.3.27/src/httpd: not found


According to the  mod_perl INSTALL.apaci file, "If your goal is just to build
and install Apache 1.3 with mod_perl out of their source trees and have no
special interests in further adjusting or enhancing Apache... the following...
builds Apache statically with mod_perl, installs Apache under
 and mod_perl into the  hierarchy
of your existing Perl installation. All in one step."

But somehow it seems to be missing the "builds Apache" step.

What am _I_ missing?

For Ged, specifics -
This is FreeBSD 4.7, Mod_perl 1.27, Apache 1.3.27

-- 
- Vicki

Vicki Brown ZZZ  Journeyman Sourceror:
P.O. Box 1269  zz  |\ _,,,---,,_Scripts & Philtres
San Bruno, CA   zz /,`.-'`'-.  ;-;;,_Perl, Unix, MacOS
94066 USA |,4-  ) )-,_. ,\ ( `'-'
mailto:[EMAIL PROTECTED]  '---''(_/--'  `-'\_)  http://www.cfcl.com/~vlb



test failed; =pod directive in t/httpd.conf

2003-02-07 Thread Vicki Brown
I'm trying to build (rebuild) mod_perl for Apache 1.3.26. I swear I did this
before but it was over a year ago maybe it wasn't a static build.
Anyway...

Following the instructions in INSTALL-apaci  I ran

  perl Makefile.PL APACHE_PREFIX=/usr/local/apache \
  APACHE_SRC=../apache_1.3.26/src DO_HTTPD=1 USE_APACI=1 EVERYTHING=1

  make

  make test


The later did many things and eventually came to


  ../apache_1.3.26/src/httpd -f `pwd`/t/conf/httpd.conf -X -d `pwd`/t &
  httpd listening on port 8529
  will write error_log to: t/logs/error_log
  letting apache warm up...\c
  Syntax error on line 3 of
  /ad4/ENV/common/src/WWW/mod_perl-1.27/t/conf/httpd.conf:
  Invalid command '=pod', perhaps mis-spelled or defined by a module not
  included in the server configuration
  done
  /usr/local/bin/perl t/TEST 0
  still waiting for server to warm up...not ok
  server failed to start! (please examine t/logs/error_log) at t/TEST line 95.
  *** Error code 61

  Stop in /ad4/ENV/common/src/WWW/mod_perl-1.27.

t/logs/error_log was not written


I have Perl 5.6.1 installed.  Help?
If this is meant to be an Apache httpd.conf, why does it have Perl stuff in
it? If Perl was meant to use this to create an Apache-readable file,
something seems to have failed.

Pointers? Sugestions?

Please Cc: me on replies so I don't miss them; I get the digest of this list.
Thanks!

-- 
- Vicki

Vicki Brown ZZZ  Journeyman Sourceror:
P.O. Box 1269  zz  |\ _,,,---,,_Scripts & Philtres
San Bruno, CA   zz /,`.-'`'-.  ;-;;,_Perl, Unix, MacOS
94066 USA |,4-  ) )-,_. ,\ ( `'-'
mailto:[EMAIL PROTECTED]  '---''(_/--'  `-'\_)  http://www.cfcl.com/~vlb



can't make test for mod_perl 1.27

2002-06-09 Thread Vicki Brown

/usr/ports/www/apache13/work/apache_1.3.24/src/httpd -f
`pwd`/t/conf/httpd.conf -X -d `pwd`/t &
httpd listening on port 8529
will write error_log to: t/logs/error_log
letting apache warm up...\c
Syntax error on line 3 of
/ad4/ENV/common/src/Perl/mod_perl-1.27/t/conf/httpd.conf:
Invalid command '=pod', perhaps mis-spelled or defined by a module not
included in the server configuration
done


Is this a buggy test or something I've missed/  make worked fine. I built and
installed mod_perl into apache as a DSO.

(please Cc: me directly as I subscribe to the digest form of this list)
-- 
- Vicki

Vicki Brown ZZZ  Journeyman Sourceror:
P.O. Box 1269  zz  |\ _,,,---,,_Scripts & Philtres
San Bruno, CA   zz /,`.-'`'-.  ;-;;,_ Perl, Unix, MacOS
94066 USA |,4-  ) )-,_. ,\ ( `'-'
mailto:[EMAIL PROTECTED]  '---''(_/--'  `-'\_)  http://www.cfcl.com/~vlb



Trouble installing mod_perl module files

2002-05-21 Thread Vicki Brown

I just installed Apache 1.3.22 (that's what's in the FreeBSD ports
collection).  We were previously running 1.3.14

I installed mod_perl-1.26 into this with

 perl Makefile.PL \
APACHE_SRC=/usr/ports/www/apache13/work/apache_1.3.22/src \
DO_HTTPD=1 \
USE_APACI=1 \
PREP_HTTPD=1 \
EVERYTHING=1
  make
  make install

Then I (re)built and (re)installed Apache. When I finished, I ran
/usr/local/apache/bin/apachectl configtest and I get

 Syntax error on line 207 of /usr/local/apache/conf/httpd.conf:
 Cannot load /usr/local/apache/libexec/apache/mod_mmap_static.so into server:
 Cannot open "/usr/local/apache/libexec/apache/mod_mmap_static.so"

It's true; there are no modules in /usr/local/apache/libexec/ - nothing much
is
in that directory. I've rebuild and re-installed both mod_perl and apache to
no avail.

The LoadModule lines are being added to httpd.conf

  LoadModule mmap_static_module libexec/apache/mod_mmap_static.so
  ...

  ClearModuleList
  AddModule mod_mmap_static.c
  ...

But the files aren't being installed into libexec/

Do I have to move the files manually?!
Am I doing something / not doing something that should be obvious?
-- 
- Vicki

Vicki Brown ZZZ  Journeyman Sourceror:
P.O. Box 1269  zz  |\ _,,,---,,_Scripts & Philtres
San Bruno, CA   zz /,`.-'`'-.  ;-;;,_ Perl, Unix, MacOS
94066 USA |,4-  ) )-,_. ,\ ( `'-'
mailto:[EMAIL PROTECTED]  '---''(_/--'  `-'\_)  http://www.cfcl.com/~vlb