Re: Building on Darwin (Mac OS X)

2001-05-15 Thread David Ranney

On 5/14/01 10:25 PM, Ken Williams [EMAIL PROTECTED] wrote:

 So perhaps I'll try compiling just the mod_perl DSO and see whether that
 works.  I've never gone that route before because of the historic DSO
 problems with mod_perl.

Ken,

I too tried compiling statically on OS X, and got similar error messages. I
did however compile and install the DSO against the pre-installed Apache,
and was able to run some basic test Registry scripts with no problems.

Still, it would be nice to be able to recompile at will. Hope you have luck
figuring out the problem.

-Dave

--
David Ranney
[EMAIL PROTECTED]





Re: Building on Darwin (Mac OS X)

2001-05-15 Thread Ken Williams

[EMAIL PROTECTED] (David Ranney) wrote:
I too tried compiling statically on OS X, and got similar error messages. I
did however compile and install the DSO against the pre-installed Apache,
and was able to run some basic test Registry scripts with no problems.

Still, it would be nice to be able to recompile at will. Hope you have luck
figuring out the problem.

I suppose if nobody has a known fix, this is a topic for the modperl-dev
list.  I'll move it over there.


  ------
  Ken Williams Last Bastion of Euclidity
  [EMAIL PROTECTED]The Math Forum



Building on Darwin (Mac OS X)

2001-05-14 Thread Ken Williams

Hi,

I can successfully build on Darwin, but a couple problems remain.
Although I can compile Apache using APACI, and I can compile
apache/mod_perl with manual configuration, I can't compile
apache/mod_perl with APACI.   Here's a transcript (apache was built with
exact same APACI args):


---
[localhost:~/Downloads/mod_perl-1.25] ken% perl Makefile.PL EVERYTHING=1 USE_APACI=1 
APACI_ARGS='--with-layout=Darwin'
Will configure via APACI
Enter `q' to stop search
Please tell me where I can find your apache src
 [] /Users/ken/src/apache_1.3.19/src
Configure mod_perl with /Users/ken/src/apache_1.3.19/src ? [y] 
Shall I build httpd in /Users/ken/src/apache_1.3.19/src for you? [y] 
cp apaci/Makefile.libdir /Users/ken/src/apache_1.3.19/src/modules/perl/Makefile.libdir
cp apaci/Makefile.tmpl /Users/ken/src/apache_1.3.19/src/modules/perl/Makefile.tmpl

[snip]

env LD_RUN_PATH=/System/Library/Perl/darwin/CORE cc -c -I.. 
-I/System/Library/Perl/darwin/CORE -I../os/unix -I../include   -DDARWIN -DMOD_PERL
-DUSE_PERL_SSI -g -pipe -pipe -fno-common -DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing 
-DUSE_HSREGEX -DNO_DL_NEEDED -g -pipe -pipe -fno-common
-DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing `../apaci` ap_getpass.c
ap_getpass.c: In function `ap_getpass':
ap_getpass.c:191: warning: assignment makes pointer from integer without a cast
env LD_RUN_PATH=/System/Library/Perl/darwin/CORE cc -c -I.. 
-I/System/Library/Perl/darwin/CORE -I../os/unix -I../include   -DDARWIN -DMOD_PERL
-DUSE_PERL_SSI -g -pipe -pipe -fno-common -DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing 
-DUSE_HSREGEX -DNO_DL_NEEDED -g -pipe -pipe -fno-common
-DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing `../apaci` ap_md5c.c

[snip]

./gen_test_char test_char.h
env LD_RUN_PATH=/System/Library/Perl/darwin/CORE cc -c -I.. 
-I/System/Library/Perl/darwin/CORE -I../os/unix -I../include   -DDARWIN -DMOD_PERL
-DUSE_PERL_SSI -g -pipe -pipe -fno-common -DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing 
-DUSE_HSREGEX -DNO_DL_NEEDED -g -pipe -pipe -fno-common
-DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing `../apaci` alloc.c
alloc.c: In function `spawn_child_core':
alloc.c:2291: `STDOUT_FILENO' undeclared (first use in this function)
alloc.c:2291: (Each undeclared identifier is reported only once
alloc.c:2291: for each function it appears in.)
alloc.c:2297: `STDIN_FILENO' undeclared (first use in this function)
alloc.c:2303: `STDERR_FILENO' undeclared (first use in this function)
make[4]: *** [alloc.o] Error 1
make[3]: *** [subdirs] Error 1
make[2]: *** [build-std] Error 2
make[1]: *** [build] Error 2
make: *** [apaci_httpd] Error 2
[localhost:~/Downloads/mod_perl-1.25] ken% 
---

Pointers are appreciated.

Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
  Platform:
osname=darwin, osvers=1.0, archname=darwin
uname='darwin negative 1.0 darwin kernel version 1.3: wed jan 3 16:05:51 pst 2001; 
aramesh:buildobjrelease_ppc power macintosh powerpc '
config_args='-ds -e -Dprefix=/usr -Dccflags=-g  -pipe  -Dldflags='
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define 
use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
  Compiler:
cc='cc', optimize='-O3', gccversion=Apple DevKit-based CPP 6.0alpha
cppflags='-g -pipe -pipe -fno-common -DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing'
ccflags ='-g -pipe -pipe -fno-common -DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing'
stdchar='char', d_stdstdio=undef, usevfork=true
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
ld='cc', ldflags =''
libpth=/usr/lib
libs=-lm -lc
libc=/System/Library/Frameworks/System.framework/System, so=dylib, 
useshrplib=true, libperl=libperl.dylib
  Dynamic Linking:
dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-bundle -undefined suppress'


Characteristics of this binary (from libperl): 
  Compile-time options: USE_LARGE_FILES
  Built under darwin
  Compiled at 02/16/01 17:02:42
  @INC:
/System/Library/Perl/darwin
/System/Library/Perl
/Library/Perl/darwin
/Library/Perl
/Library/Perl
/Network/Library/Perl/darwin
/Network/Library/Perl
/Network/Library/Perl
.



  ------
  Ken Williams Last Bastion of Euclidity
  [EMAIL PROTECTED]The Math Forum



Re: Building on Darwin (Mac OS X)

2001-05-14 Thread Ken Williams

[EMAIL PROTECTED] (Charlie Garrison) wrote:
G'day,

I can successfully build on Darwin, but a couple problems remain.

Why not use the mod_perl that was installed with the system? You'll 
need to add the modules to your httpd.conf (see list archives for 
more details, search for 'Installation on MAC OS X').


I do a lot of recompiling and reconfiguring of mod_perl and various
Apache:: modules, so it's pretty important that I figure out how to get
compilation  installation working properly.  I also just want to debug
whatever was going wrong, so it can get fixed.

I was under the impression from your original post in that thread that
you were talking about the old Mac OS X Server system, but I see now
from poking around that it was Darwin after all.

So perhaps I'll try compiling just the mod_perl DSO and see whether that
works.  I've never gone that route before because of the historic DSO
problems with mod_perl.


  ------
  Ken Williams Last Bastion of Euclidity
  [EMAIL PROTECTED]The Math Forum