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

Reply via email to