On Tue, Mar 19, 2002 at 02:36:30PM +0100, Andreas J. Koenig wrote:
> Sarathy,
> 
> in patch 15141 you introduced _GNU_SOURCE in the linux hints file for
> threaded builds. Now I discover that mod_perl compilation breaks for
> me with this change with the following message:
> 
> cc -c -I.. -I/usr/local/perl-5.7.3@15141/lib/5.7.3/i686-linux-thread-multi/CORE 
>-I../os/unix -I../include -I/usr/local/ssl/include   -DLINUX=22 -DTARGET=\"httpsd\" 
>-DMOD_PERL -DUSE_PERL_SSI -D_GNU_SOURCE -D_REENTRANT -DDEBUGGING -fno-strict-aliasing 
>-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm 
>-DUSE_HSREGEX -DNO_DL_NEEDED -DAPACHE_SSL -D_GNU_SOURCE -D_REENTRANT -DDEBUGGING 
>-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
>-I/usr/include/gdbm `../apaci` -DAPACHE_SSL http_protocol.c
> http_protocol.c:861: conflicting types for `getline'
> /usr/include/stdio.h:436: previous declaration of `getline'
> make[4]: *** [http_protocol.o] Error 1
> make[3]: *** [subdirs] Error 1
> 
> 
> What would you recommend as a solution? Note, that http_protocol.c is
> not part of mod_perl but part of apache. Note also, that mod_perl is
> broken currently anyway, but that should not matter for this problem.

I would suggest editig hints/linux.sh to try without the _GNU_SOURCE,
then Configuring -Dusethreads -Duseithreads, and seeing how bad it
looks.  Here "bad" translates as "how many WHOAs do you get from
missing prototypes" (of the _r variants).  We can hint away some of
them, other platforms do it too (since the prototypes of the _r
variants seem often to be well hidden).

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Reply via email to