In all XS files we disable prototypes in the boot section, but not in the
rest of the file, which means that by default the prototyping is enabled.
However with a stock 5.6.1 perl the prototypes are missing and therefore
in maintainer mode it won't build. I've even tried to explicitly specify
-prototypes in xsubpp args, but it ignores it.

cc1: warnings being treated as errors
Base64.c:35: warning: no previous prototype for
`XS_APR__Base64_decode_len'
Base64.c:51: warning: no previous prototype for
`XS_APR__Base64_encode_len'
Base64.c:70: warning: no previous prototype for `boot_APR__Base64'

with MP_MAINTAINER=0, it builds ignoring the warnings.

Building mod_perl with:

*** using lib/Apache/BuildConfig.pm
*** Makefile.PL options:
  MP_APXS        => /home/stas/httpd/prefork/bin/apxs
  MP_CCOPTS      => -DMP_IOBUFSIZE=16384 -Werror
  MP_DEBUG       => 1
  MP_GENERATE_XS => 1
  MP_LIBNAME     => libmodperl
  MP_MAINTAINER  => 1
  MP_TRACE       => 1
  MP_USE_DSO     => 1
  MP_USE_GTOP    => 1


*** /home/stas/httpd/prefork/bin/httpd -V
Server version: Apache/2.0.26-dev
Server built:   Sep 29 2001 01:53:12
Server's Module Magic Number: 20010825:0
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_FILE_BASED_SHM
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6
 -D APR_USE_FCNTL_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT="/home/stas/httpd/prefork"
 -D SUEXEC_BIN="/home/stas/httpd/prefork/sbin/suexec"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"


*** /home/stas/perl/5.6.1-ithread/bin/perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
  Platform:
    osname=linux, osvers=2.4.8-19mdk, archname=i686-linux-thread-multi
    uname='linux hope.stason.org 2.4.8-19mdk #1 wed sep 5 16:41:25 cest 2001 i686 
unknown '
    config_args='-des -Dprefix=/home/stas/perl/5.6.1-ithread -Dusethreads 
-Doptimize=-g -Duseshrplib -Dusedevel'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
    cc='cc', ccflags ='-D_REENTRANT -DDEBUGGING -fno-strict-aliasing 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-g',
    cppflags='-D_REENTRANT -DDEBUGGING -fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='2.96 20000731 (Mandrake Linux 8.1 2.96-0.62mdk)', 
gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lndbm -lgdbm -ldl -lm -lpthread -lc -lcrypt -lutil
    perllibs=-lnsl -ldl -lm -lpthread -lc -lcrypt -lutil
    libc=/lib/libc-2.2.4.so, so=so, useshrplib=true, libperl=libperl.so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic 
-Wl,-rpath,/home/stas/perl/5.6.1-ithread/lib/5.6.1/i686-linux-thread-multi/CORE'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS USE_LARGE_FILES 
PERL_IMPLICIT_CONTEXT
  Built under linux
  Compiled at Oct  2 2001 21:45:35
  @INC:
    /home/stas/perl/5.6.1-ithread/lib/5.6.1/i686-linux-thread-multi
    /home/stas/perl/5.6.1-ithread/lib/5.6.1
    /home/stas/perl/5.6.1-ithread/lib/site_perl/5.6.1/i686-linux-thread-multi
    /home/stas/perl/5.6.1-ithread/lib/site_perl/5.6.1
    /home/stas/perl/5.6.1-ithread/lib/site_perl
    .

_____________________________________________________________________
Stas Bekman             JAm_pH      --   Just Another mod_perl Hacker
http://stason.org/      mod_perl Guide   http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to