stefanocasazza / ULib

C++ application development framework, to help developers create and deploy applications quickly and simply
GNU Lesser General Public License v3.0
943 stars 107 forks source link

Do not compile on OS X #8

Closed mingodad closed 9 years ago

mingodad commented 9 years ago

Hello !

I was trying to test ULIB on OS X and after a half success with "configure" I've got this error:

In file included from all_c.c:77:
In file included from ./replace/sendfile.c:7:
/usr/include/sys/socket.h:585:5: error: conflicting types for 'sendfile'
int     sendfile(int, int, off_t, off_t *, struct sf_hdtr *, int);
        ^
../../include/ulib/base/replace/replace.h:31:9: note: previous declaration is
      here
ssize_t sendfile(int out_fd, int in_fd, off_t* poffset, size_t count);
        ^
79 warnings and 1 error generated.
make[1]: *** [all_c.lo] Error 1
make: *** [all-recursive] Error 1
stefanocasazza commented 9 years ago

Hi, unfortunately I do not have a suitable environment to try compiling ULib on OS X and I am aware of the problem of sendfile ... http://stackoverflow.com/questions/8252698/sys-sendfile-h-not-found-gcc I do not know how to deal with it, it takes time and work closely with someone who has this kind of environment...

Cheers !

EDIT: I make some change to incorporate the different semantic of sendfile for OS X, if someone can test it I will much appreciate...

2015-05-16 21:25 GMT+02:00 Domingo Alvarez Duarte notifications@github.com :

Hello !

I was trying to test ULIB on OS X and after a half success with "configure" I've got this error:

In file included from all_c.c:77: In file included from ./replace/sendfile.c:7: /usr/include/sys/socket.h:585:5: error: conflicting types for 'sendfile' int sendfile(int, int, off_t, offt , struct sf_hdtr *, int); ^ ../../include/ulib/base/replace/replace.h:31:9: note: previous declaration is here ssize_t sendfile(int out_fd, int in_fd, offt poffset, size_t count); ^ 79 warnings and 1 error generated. make[1]: * [all_c.lo] Error 1 make: * [all-recursive] Error 1

— Reply to this email directly or view it on GitHub https://github.com/stefanocasazza/ULib/issues/8.