Menu

#348 sys/sendfile.h conflict aborts compilation

0.95
closed-fixed
Build (61)
1
2005-05-06
2004-11-27
msak
No

compiling error (Version 0.95):

gcc -c -I.. -I. -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include -DCURDIR=src -O
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 main.c
In file included from common.h:78,
from main.c:26:
/usr/include/sys/sendfile.h:26:3: #error
"<sys/sendfile.h> cannot be used with _FILE_OFFSET_BITS=64"

Operating System is Suse 8.1

Discussion

  • Raphael Manfredi

    Logged In: YES
    user_id=13887

    Call Configure with:

    -Ud_sendfile -Ui_syssendfile

    It will work. Offhand, why didn't you report this during
    the BETA testing? Now that the release is out, it's a
    little bit late for me to fix.

     
  • Raphael Manfredi

    • priority: 5 --> 9
    • assigned_to: nobody --> rmanfredi
    • status: open --> open-later
     
  • joost helberg

    joost helberg - 2004-11-29

    Logged In: YES
    user_id=1168367

    on a plain Linux-2.6.0 system (no distribution brand) and
    gtk-gnutella 0.95 this happens too. somehow it is not
    necessary to include these files.

     
  • Raphael Manfredi

    Logged In: YES
    user_id=13887

    It does not happen here with linux-2.4.x and libc6 on Debian.

    It looks like it's not possible to use sendfile() with
    64-bit filesize then, which is a shame really.

    I'll fix the compilation problem for 0.96.

     
  • Christian Biere

    Christian Biere - 2004-12-02
    • summary: Compiler error Suse 8.1 --> Compile error Suse 8.1
     
  • Bassam

    Bassam - 2004-12-08

    Logged In: YES
    user_id=1174045

    Sorry, I somehow missed this one before
    filing 1081176.

    As detailed there, the sendfile.h conflict
    can happen with Debian 3.0 "Woody" and
    Linux 2.4.26 -- I think rmanfredi is
    using Potato.

    :)

     
  • Raphael Manfredi

    Logged In: YES
    user_id=13887

    No, I'm using "sarge".

     
  • Christian Biere

    Christian Biere - 2004-12-12
    • summary: Compile error Suse 8.1 --> sys/sendfile.h conflict aborts compilation
     
  • Pierre

    Pierre - 2004-12-25

    Logged In: YES
    user_id=512388

    Same error here.
    LFS kernel 2.6.9 gcc 3.4.3

     
  • Raphael Manfredi

    • priority: 9 --> 1
    • status: open-later --> open-fixed
     
  • Raphael Manfredi

    Logged In: YES
    user_id=13887

    Fixed in CVS.

     
  • Christian Biere

    Christian Biere - 2005-05-06
    • status: open-fixed --> closed-fixed
     
  • Christian Biere

    Christian Biere - 2005-05-06

    Logged In: YES
    user_id=643728

    Closed as it's fixed in the current stable release 0.95.1.

     

Log in to post a comment.