httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Kobes <ra...@theoryx5.uwinnipeg.ca>
Subject Re: apreq_xs_tables.h w/o USE_ITHREADS
Date Thu, 05 Aug 2004 19:35:11 GMT
On Thu, 5 Aug 2004, Joe Schaefer wrote:

> Randy Kobes <randy@theoryx5.uwinnipeg.ca> writes:
>
> > In the latest cvs httpd-apreq-2 on a linux machine w/o
> > USE_ITHREADS defined, I've run into a couple of problems in
> > the perl glue, specifically with apreq_xs_tables.h. One
> > problem, in apreq_xs_table_keys, is that *d is declared
> > within an #ifdef USE_ITHREADS/#endif block, so should be
> > moved out.
>
> +1.  It was originally put in there to evade a silly compiler
> warning.  We now always require *d for the tainting mechanics,
> so it needs to come out of the ifdef.
>
> > However, another problem is that both within
> > APREQ_XS_DEFINE_TABLE_GET() and APREQ_XS_DEFINE_TABLE_DO, there's a
> > dTHXa() call, which I think should be within #ifdef
> > USE_ITHREADS/#endif.
>
> Why?  Doesn't our ppport.h header define this to dNOOP?

You're right - it's a different problem I'm having. Here's
what happens in compiling the perl glue (after
fixing the declaration of *d above):
============================================================
/home/randy/httpd-apreq-2/glue/perl/xsbuilder/Apache/Cookie/Apache__Cookie.h:
In function `apreq_xs_jar_get':
/home/randy/httpd-apreq-2/glue/perl/xsbuilder/Apache/Cookie/Apache__Cookie.h:94:
parse error before ',' token
In file included from Cookie.xs:38:
/home/randy/httpd-apreq-2/glue/perl/xsbuilder/Apache/Cookie/Apache__Cookie.h:
In function `apreq_xs_table_get':
/home/randy/httpd-apreq-2/glue/perl/xsbuilder/Apache/Cookie/Apache__Cookie.h:95:
parse error before ',' token
In file included from Cookie.xs:38:
/home/randy/httpd-apreq-2/glue/perl/xsbuilder/Apache/Cookie/Apache__Cookie.h:
In function `apreq_xs_table_do':
/home/randy/httpd-apreq-2/glue/perl/xsbuilder/Apache/Cookie/Apache__Cookie.h:97:
parse error before ',' token
=================================================================
This is with perl -V:
=================================================================
Summary of my perl5 (revision 5 version 8 subversion 5) configuration:
  Platform:
    osname=linux, osvers=2.4.20-31.9, archname=i686-linux
    uname='linux theoryx5.uwinnipeg.ca 2.4.20-31.9 #1 tue apr 13 18:04:23 edt 2004 i686 i686
i386 gnulinux '
    config_args='-Dprefix=/opt'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
    optimize='-O2',
    cppflags='-fno-strict-aliasing -pipe -I/usr/local/include -I/usr/include/gdbm'
    ccversion='', gccversion='3.2.2 20030222 (Red Hat Linux 3.2.2-5)', 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, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib/libc-2.3.2.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.3.2'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under linux
  Compiled at Jul 26 2004 10:53:57
  @INC:
    /opt/lib/perl5/5.8.5/i686-linux
    /opt/lib/perl5/5.8.5
    /opt/lib/perl5/site_perl/5.8.5/i686-linux
    /opt/lib/perl5/site_perl/5.8.5
    /opt/lib/perl5/site_perl/5.8.4/i686-linux
    /opt/lib/perl5/site_perl/5.8.4
    /opt/lib/perl5/site_perl/5.8.3/i686-linux
    /opt/lib/perl5/site_perl/5.8.3
    /opt/lib/perl5/site_perl
    .

-- 
best regards,
randy

Mime
View raw message