Mod_Perl on AIX

2001-09-06 Thread Jim Cox

Can someone point me to the docs for compiling latest mod_perl 1.26 for apache 1.3.20
on AIX 4.3.3 using gcc.

Or if docs don't exist, or if I missed something, Just slap me.

The docs I've found result in a broken build enviromnent.  
I suspect that the problem is related to using gcc+ and not the 
distributed AIX cc. 

I just wanted to ask before I tried to modify the distributed Makefile.PL.
Expesially centz I'za perl newbi. :o 
-- 
Jim Cox (mailto:[EMAIL PROTECTED]) 
(817) 315-8134   (888) 834-7656 Toll Free
(817) 315-8253 FAX
(817) 233-8567 Mobile



RE: Mod_Perl on AIX

2001-09-06 Thread Christian Gilmore

It greatly depends upon how you built perl. If you're using the
OS-provided perl installation, you'll have to use IBM C for AIX to compile
apache/mod_perl. Also, other problems/pitfalls exist if you wish to use
mod_perl as a DSO. These problems can be overcome, but you'll need
specific versions to do so...

Regards,
Christian

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Jim Cox
 Sent: Sunday, May 06, 2001 2:07 PM
 To: [EMAIL PROTECTED]
 Subject: Mod_Perl on AIX


 Can someone point me to the docs for compiling latest
 mod_perl 1.26 for apache 1.3.20
 on AIX 4.3.3 using gcc.

 Or if docs don't exist, or if I missed something,
 Just slap me.

 The docs I've found result in a broken build enviromnent.
 I suspect that the problem is related to using gcc+ and not the
 distributed AIX cc.

 I just wanted to ask before I tried to modify the distributed
 Makefile.PL.
 Expesially centz I'za perl newbi. :o
 --
 Jim Cox (mailto:[EMAIL PROTECTED])
 (817) 315-8134   (888) 834-7656 Toll Free
 (817) 315-8253 FAX
 (817) 233-8567 Mobile





Re: Mod_Perl on AIX

2001-09-06 Thread Jim Cox


Therein lies the problem. I currently do not have the IBM supplied cc on 
the system. If the answer is to use only the IBM cc I'm not sure there will
be an answer. 

Everything else compiles fine, Apache, as well as the other modules.

Thanks.

Christian Gilmore wrote:
 
 It greatly depends upon how you built perl. If you're using the
 OS-provided perl installation, you'll have to use IBM C for AIX to compile
 apache/mod_perl. Also, other problems/pitfalls exist if you wish to use
 mod_perl as a DSO. These problems can be overcome, but you'll need
 specific versions to do so...
 
 Regards,
 Christian
 

-- 
Jim Cox (mailto:[EMAIL PROTECTED]) 
(817) 315-8134   (888) 834-7656 Toll Free
(817) 315-8253 FAX
(817) 233-8567 Mobile



RE: Mod_Perl on AIX

2001-09-06 Thread Christian Gilmore

You'll need to compile and install your own perl, then, using gcc.

Regards,
Christian

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Jim Cox
 Sent: Sunday, May 06, 2001 5:19 PM
 Cc: [EMAIL PROTECTED]
 Subject: Re: Mod_Perl on AIX
 
 
 
 Therein lies the problem. I currently do not have the IBM 
 supplied cc on 
 the system. If the answer is to use only the IBM cc I'm not 
 sure there will
 be an answer. 
 
 Everything else compiles fine, Apache, as well as the 
 other modules.
 
 Thanks.
 
 Christian Gilmore wrote:
  
  It greatly depends upon how you built perl. If you're using the
  OS-provided perl installation, you'll have to use IBM C for 
 AIX to compile
  apache/mod_perl. Also, other problems/pitfalls exist if you 
 wish to use
  mod_perl as a DSO. These problems can be overcome, but you'll need
  specific versions to do so...
  
  Regards,
  Christian
  
 
 -- 
 Jim Cox (mailto:[EMAIL PROTECTED]) 
 (817) 315-8134   (888) 834-7656 Toll Free
 (817) 315-8253 FAX
 (817) 233-8567 Mobile
 



Re: Unable to build apache + mod_perl on AIX

2001-06-20 Thread Jens-Uwe Mager

On Tue, Jun 19, 2001 at 10:02:55PM -0500, Steven Lembark wrote:
  apache_1.3.20  mod_perl-1.25
 AIX kbs80 3 4 000C30CD4C00 unknown
 
 Problem:  regardless of what arg's I've tried or all-in-one, one-step I 
 keep getting
 xlC as the compier and CFLAGS which include -qlonglong -q32 -maxmem'.   xlC
 then fails to compile apache.
 
 Running ./configure --blah in the apache directory w/ CC=/path/to/gcc and
 CFLAGS='-O2 -I/blah -L/blah' gives me a working copy of apache -- sans 
 mod_perl.
 
 Running find . -type f | xargs grep -il qlonglong and '... grep -il xlC' 
 in the mod_perl
 and apache directories gets me NADA.   This includes the documentation, 
 source,
 Makefiles, inputs, you-name-it.
 
 Question:  What is a way to run some combination of perl Makefile.PL with 
 or
 without ./configure for apache that will cause the result to use $CC and 
 $CFLAGS
 in my envoronment -- or which piece of code can I hack that is finding xlC 
 in hte
 first place (sorry, I don't have time to perl -d Makefile.pl at this 
 point).

The problem is perl itself here - it is probably compiled using xlc.
Just run perl -V and look at the output. If you want to build Apache and
modperl using gcc than you _must_ also build perl using gcc. This means
you can not use the perl which is part of AIX, as this is built using
xlc.

-- 
Jens-Uwe Mager

HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany

Phone:  +49 5131 709320
FAX:+49 5131 709325
Internet:   [EMAIL PROTECTED]



Unable to build apache + mod_perl on AIX

2001-06-19 Thread Steven Lembark

 apache_1.3.20  mod_perl-1.25
AIX kbs80 3 4 000C30CD4C00 unknown

Problem:  regardless of what arg's I've tried or all-in-one, one-step I 
keep getting
xlC as the compier and CFLAGS which include -qlonglong -q32 -maxmem'.   xlC
then fails to compile apache.

Running ./configure --blah in the apache directory w/ CC=/path/to/gcc and
CFLAGS='-O2 -I/blah -L/blah' gives me a working copy of apache -- sans 
mod_perl.

Running find . -type f | xargs grep -il qlonglong and '... grep -il xlC' 
in the mod_perl
and apache directories gets me NADA.   This includes the documentation, 
source,
Makefiles, inputs, you-name-it.

Question:  What is a way to run some combination of perl Makefile.PL with 
or
without ./configure for apache that will cause the result to use $CC and 
$CFLAGS
in my envoronment -- or which piece of code can I hack that is finding xlC 
in hte
first place (sorry, I don't have time to perl -d Makefile.pl at this 
point).

thanx.



anyone had luck compiling apache-1.3.14 w/ mod_perl-1.24_01on aix 4.3.3?

2000-12-12 Thread Steven Lembark


the Makefile.PL doesn't even work...  can't find any references
to specific problems, figured i'd check before getting into the
gory details...

-- 
 Steven Lembark   2930 W. Palmer St.
 Chicago, IL  60647
 [EMAIL PROTECTED]   800-762-1582



Problem building mod_perl on AIX with apxs DSO style

2000-09-15 Thread MJ M

Hello,

I am trying to build mod_perl on AIX with the apxs DSO style but get an 
error on link time.

My config is:

AIX-4.1.5
Perl-5.6.0 with AIX patch distributed by Jens-Uwe Mager on this list
a few months ago.
Apache-1.3.12
mod_perl-1.24

I configured mod_perl with the command:
perl Makefile.PL \
   USE_APXS=1 \
   EVERYTHING=1 \
   WITH_APXS=/usr/local/apache/bin/apxs

And I got the following error message after issuing a make:

ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more 
information.
ld: 0711-317 ERROR: Undefined symbol: ap_configtestonly
make[1]: *** [libperl.so] Error 8
make[1]: Leaving directory `/u/mijmm/apache/mod_perl-1.24/apaci'
make: *** [apxs_libperl] Error 2


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.




Re: Problem building mod_perl on AIX with apxs DSO style

2000-09-15 Thread Jens-Uwe Mager

On Fri, Sep 15, 2000 at 10:42:19AM +, MJ M wrote:
 Hello,
 
 I am trying to build mod_perl on AIX with the apxs DSO style but get an 
 error on link time.
 
 My config is:
 
 AIX-4.1.5

Make sure that you apply the following for AIX  4.2.1, you will get
strange errors otherwise:

--- src/support/httpd.exp.orig  Wed Mar  1 16:35:34 2000
+++ src/support/httpd.exp   Wed Mar  1 16:35:42 2000
@@ -1,4 +1,4 @@
-#! .
+#!
 ap_MD5Encode
 ap_MD5Final
 ap_MD5Init

 Perl-5.6.0 with AIX patch distributed by Jens-Uwe Mager on this list
 a few months ago.
 Apache-1.3.12
 mod_perl-1.24
 
 I configured mod_perl with the command:
 perl Makefile.PL \
USE_APXS=1 \
EVERYTHING=1 \
WITH_APXS=/usr/local/apache/bin/apxs
 
 And I got the following error message after issuing a make:
 
 ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more 
 information.
 ld: 0711-317 ERROR: Undefined symbol: ap_configtestonly
 make[1]: *** [libperl.so] Error 8
 make[1]: Leaving directory `/u/mijmm/apache/mod_perl-1.24/apaci'
 make: *** [apxs_libperl] Error 2

There was some discussion about this on the new-httpd mailing list, and
the consensus I think was to remove the reference to that symbol from
mod_perl.  I would believe if you use the current CVS sources of
mod_perl then you do not see a reference to the symbol any more.
Otherwise you can temporarily patch Apache like this:

--- apache_1.3.12/src/support/httpd.exp.orig1   Mon Jun 12 01:01:11 2000
+++ apache_1.3.12/src/support/httpd.exp Mon Jun 12 01:01:53 2000
@@ -74,6 +74,7 @@
 ap_clear_pool
 ap_clear_table
 ap_close_piped_log
+ap_configtestonly
 ap_construct_server
 ap_construct_url
 ap_content_type_tolower

-- 
Jens-Uwe Mager

HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany

Phone:  +49 5131 709320
FAX:+49 5131 709325
Internet:   [EMAIL PROTECTED]