Re: Compiling libapreq 1.1 on Mac OS 10.2.4

2003-03-21 Thread Michael Maibaum
On Thursday, March 20, 2003, at 06:22 PM, David Wheeler wrote:

On Thursday, March 20, 2003, at 08:17  PM, R. Hannes Niedner wrote:

I have tried it hard and long with all kinds of recipes and always 
got the
same error messages with make test. Remember you checked the output 
of the
make and the verbose test... It looks that the tests screw up big 
time on
mac os x (at least for me with perl 5.8). I forced the install so far 
no
trouble but I would need a killer script to test it though :-).
My suggestion force make install in cpan or just make install without 
it.
Well, not in cpan, but manually. Just go ahead and 'make install' and 
see if it works with your own code.
FWIW, Darwinports has apache with a static mod_perl variant, perl 
5.8.0, and libapreq in ports you should get a clean, working set up 
after you've installed darwinports by doing

#  port install -v -d apache +mod_perl

here you should probably set the /usr/bin/perl to be a symlink to 
/opt/local/bin/perl, or have /opt/local/bin in your path before /usr/bin

# port install -v -d libapreq-perl

at some point in the near future I intend to make a .mpkg so you can 
have a double clickable installer of apache+ mod_perl, perl 5.8.0 and 
libapreq... but I'm about to move continents so that might have to wait 
a week or 2.

However, I'd love to have more people testing the above ports for 
me (One thing, fink shouldn't screw things up, but it is 
possible...so if there are problems, remove fink from you environment 
(stop sourcing the init scripts) and try again.

HTH

Michael

--
Michael Maibaum
internet: [EMAIL PROTECTED]|http://mike.maibaum.org
voice: [h] (415) 626-6733   |[w] (415) 561-1682


Re: Compiling libapreq 1.1 on Mac OS 10.2.4

2003-03-20 Thread David Wheeler
On Thursday, March 20, 2003, at 03:52  PM, Ken Y. Clark wrote:

The patch (http://www.apache.org/~joes/apreq.patch) mentioned in
http://www.macdevcenter.com/pub/a/mac/2002/11/05/apache_osx.html (is
that the right article?) seems to have gone missing now.  Is there
another place to get it?  I don't really care whether Apache::Request
is compiled into Apache or by itself, I just want to get this working!
Don't use that patch with Jaguar. We should be able to get your 
libapreq working on jaguar without it.

David

--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED]  ICQ: 15726394
   Yahoo!: dew7e
   Jabber: [EMAIL PROTECTED]
Kineticode. Setting knowledge in motion.[sm]


Re: Compiling libapreq 1.1 on Mac OS 10.2.4

2003-03-20 Thread Ken Y. Clark
On Fri, 21 Mar 2003, Christian Schneider wrote:

> Date: Fri, 21 Mar 2003 01:38:51 +0100
> From: Christian Schneider <[EMAIL PROTECTED]>
> To: Ken Y. Clark <[EMAIL PROTECTED]>
> Cc: Christian Schneider <[EMAIL PROTECTED]>
> Subject: Re: Compiling libapreq 1.1 on Mac OS 10.2.4
>
> Ken,
>
> On Freitag, März 21, 2003, at 01:12  Uhr, Ken Y. Clark wrote:
>
> >
> >> but you didn't mention it: Did you rebuild the Perl modules as
> >> detailed
> >> in INSTALL.MacOSX in the libapreq source directory?
> >
> > When I was going that route, yes, I did follow those directions.  See
> > my first e-mail about the whole g?libtool(ize)? problems.
> >
>
> what do you mean when you were going that road? I'm afraid I forgot
> most of what I did but I think I remember you have to remake the Perl
> modules after patching as well as the apache compile doesn't install
> them. That's in that INSTALL file in any case. Or am I misunderstanding
> you?
>
> Chris

Hmm, I think I'm the one who's a little confused.  I didn't realize
that I still had to run "perl Makefile.PL; make; make install" on the
libapreq source tree -- I thought that the libapreq modules were being
somehow built into the Apache binary and that would be it.  I see now
that I was mistaken.  I just now followed the direction in the
"patches/README" file like so:

Then build and install apache (+modperl) as normal.  If you want to
use Apache::Request and Apache::Cookie, you'll also need to remove
the -lapreq linking flags within Request/Makefile.PL and
Cookie/Makefile.PL, before doing the perl build of libapreq.
The following commands should do the trick:

% cd ..
% perl -pi.bak -e 's/-lapreq//' Request/Makefile.PL
% Cookie/Makefile.PL
% perl Makefile.PL
...
% make && make test && make install

At "make test," I get the same "undefined symbols" error.  Argh!  Why
is this so difficult!?  I'm not a dummy, I swear!

ky


Re: Compiling libapreq 1.1 on Mac OS 10.2.4

2003-03-20 Thread Ken Y. Clark
On Fri, 21 Mar 2003, Christian Schneider wrote:

> Date: Fri, 21 Mar 2003 00:38:08 +0100
> From: Christian Schneider <[EMAIL PROTECTED]>
> To: Ken Y. Clark <[EMAIL PROTECTED]>
> Cc: Christian Schneider <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
> Subject: Re: Compiling libapreq 1.1 on Mac OS 10.2.4
>
> Ken,
>
> On Freitag, März 21, 2003, at 12:14  Uhr, Ken Y. Clark wrote:
>
> >
> > "make install" went fine for Apache, but I still get the "undefined
> > symbols" when "use Apache::Request;" occurs in my Perl startup file.
> >
> > Any other suggestions?
> >
>
> please forgive my asking stupid questions (yikes - English grammar !)

That's perfectly fine English.  Take it from an English major.  :-)

> but you didn't mention it: Did you rebuild the Perl modules as detailed
> in INSTALL.MacOSX in the libapreq source directory?

When I was going that route, yes, I did follow those directions.  See
my first e-mail about the whole g?libtool(ize)? problems.

> If so I'm afraid I have any further ideas.
>
> It's bedtime for me anyway, good night,

Well, guten nacht.  Thanks anyway!

ky


Re: Compiling libapreq 1.1 on Mac OS 10.2.4

2003-03-20 Thread Christian Schneider
Ken,

On Freitag, März 21, 2003, at 12:14  Uhr, Ken Y. Clark wrote:

"make install" went fine for Apache, but I still get the "undefined
symbols" when "use Apache::Request;" occurs in my Perl startup file.
Any other suggestions?

please forgive my asking stupid questions (yikes - English grammar !) 
but you didn't mention it: Did you rebuild the Perl modules as detailed 
in INSTALL.MacOSX in the libapreq source directory?

If so I'm afraid I have any further ideas.

It's bedtime for me anyway, good night,

Chris



Re: Compiling libapreq 1.1 on Mac OS 10.2.4

2003-03-20 Thread Ken Y. Clark
On Thu, 20 Mar 2003, Christian Schneider wrote:

> Date: Thu, 20 Mar 2003 23:23:05 +0100
> From: Christian Schneider <[EMAIL PROTECTED]>
> To: Ken Y. Clark <[EMAIL PROTECTED]>
> Cc: Christian Schneider <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
> Subject: Re: Compiling libapreq 1.1 on Mac OS 10.2.4
>
> Ken,
>
> the patch seems to be part of the libapreq distribution. There's a
> directory called patches (at least in the distribution I have, I can
> e-mail the patch to you if you don't have it).
>
> However, I found one detail missing in the README. It says one should
> do:
> patch -p0 < ../apreq.patch (or the appropriate path to it).
>
> But you also have to do the following:
> cp libapreq/c/*.[ch] apache/src/lib/apreq (you might have to change the
> name of the directories)
>
> Hope that helps,
>
> chris
>
> PS: Please note that I am not subscribed to the apreq-dev list and
> cannot send replies to that list.

Chris,

Thanks for the tip.  I hadn't tried that yet.  I freshly unpacked
libapreq, mod_perl and Apache, built mod_perl like so:

perl Makefile.PL \
APACHE_SRC=../apache_1.3.27/src/ \
DO_HTTPD=1 \
USE_APACI=1 \
PREP_HTTPD=1 \
EVERYTHING=1

Then I moved to the Apache source tree and applied the patch and
copied the necessary files (the latest "patches/README" in libapreq do
mention both steps now) and built Apache.  I was rather hopeful that
this would work when I saw this:

[EMAIL PROTECTED]:/usr/local/src/apache_1.3.27]# ./configure
--prefix=/usr/local/apache --enable-module=rewrite
--enable-module=proxy --activate-module=src/modules/perl/libperl.a
Configuring for Apache, Version 1.3.27
 + using installation path layout: Darwin (config.layout)
 + activated perl module (modules/perl/libperl.a)
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
 + configured for Darwin platform
 + setting C compiler to gcc
 + setting C pre-processor to gcc -E -traditional-cpp
 + checking for system header files
 + adding selected modules
o rewrite_module uses ConfigStart/End
  enabling DBM support for mod_rewrite
o perl_module uses ConfigStart/End
  + mod_perl build type: OBJ
  + id: mod_perl/1.27
  + id: Perl/v5.8.0 (darwin) [perl]
  + setting up mod_perl build environment
  + adjusting Apache build environment
  + enabling Perl support for SSI (mod_include)
 + using system Expat
 + building with static apreq
 + checking sizeof various data types
 + doing sanity check on compiler and options
Creating Makefile in src/support
Creating Makefile in src/regex
Creating Makefile in src/os/unix
Creating Makefile in src/ap
Creating Makefile in src/main
Creating Makefile in src/lib/apreq  < looks OK, right?
Creating Makefile in src/modules/standard
Creating Makefile in src/modules/proxy
Creating Makefile in src/modules/perl

"make install" went fine for Apache, but I still get the "undefined
symbols" when "use Apache::Request;" occurs in my Perl startup file.

Any other suggestions?

ky


Re: Compiling libapreq 1.1 on Mac OS 10.2.4

2003-03-20 Thread Christian Schneider
Ken,

the patch seems to be part of the libapreq distribution. There's a 
directory called patches (at least in the distribution I have, I can 
e-mail the patch to you if you don't have it).

However, I found one detail missing in the README. It says one should 
do:
patch -p0 < ../apreq.patch (or the appropriate path to it).

But you also have to do the following:
cp libapreq/c/*.[ch] apache/src/lib/apreq (you might have to change the 
name of the directories)

Hope that helps,

chris

PS: Please note that I am not subscribed to the apreq-dev list and 
cannot send replies to that list.