develooper Front page | perl.perl5.porters | Postings from January 2001

uselargefiles + sendfile.h

From:
Doug MacEachern
Date:
January 21, 2001 10:26
Subject:
uselargefiles + sendfile.h
Message ID:
Pine.LNX.4.21.0101211021030.9324-100000@mako.covalent.net
apache-2.0 with $Config{ccflags_uselargefiles} will not compile due to
sys/sendfile.h:

#ifdef __USE_FILE_OFFSET64
# error "<sendfile.h> cannot be used with _FILE_OFFSET_BITS=64"
#endif

i can workaround by removing ccflags_uselargefiles from mod_perl's
Makefile, but then loose the #define PERL_CORE optimization as
sizeof(PerlInterpreter) changes.

any ideas howto make sendfile.h cooperate ?

Summary of my perl5 (revision 5.0 version 7 subversion 0) configuration:
  Platform:
    osname=linux, osvers=2.2.16-22, archname=i686-linux-thread-multi
    uname='linux mako.covalent.net 2.2.16-22 #5 thu jan 18 14:49:33 pst 2001 i686 unknown '
    config_args='-des -Dprefix=/usr/local/ithrperl -Uuseperlio -Dusethreads -Doptimize=-g -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 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-g',
    cppflags='-D_REENTRANT -DDEBUGGING -fno-strict-aliasing'
    ccversion='', gccversion='2.96 20000731 (Red Hat Linux 7.0)', 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 -lgdbm -ldl -lm -lpthread -lc -lcrypt -lutil
    perllibs=-lnsl -ldl -lm -lpthread -lc -lcrypt -lutil
    libc=/lib/libc-2.2.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    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
  Locally applied patches:
  	DEVEL8481
  Built under linux
  Compiled at Jan 19 2001 11:20:29
  @INC:
    /usr/local/ithrperl/lib/5.7.0/i686-linux-thread-multi
    /usr/local/ithrperl/lib/5.7.0
    /usr/local/ithrperl/lib/site_perl/5.7.0/i686-linux-thread-multi
    /usr/local/ithrperl/lib/site_perl/5.7.0
    /usr/local/ithrperl/lib/site_perl
    .




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About