I tried 9 and 10:
{husqvarna}/usr/ports/www/uwsgi# make
===> License GPLv2 accepted by the user
===> Fetching all distfiles required by uwsgi-1.9.18 for building
===> Extracting for uwsgi-1.9.18
=> SHA256 Checksum OK for uwsgi-1.9.18.tar.gz.
===> Patching for uwsgi-1.9.18
===> Applying FreeBSD patches for uwsgi-1.9.18
/usr/bin/sed -i.bak -e 's|python|/usr/local/bin/python2.7|'
/place/WRK/ports/www/uwsgi/work/uwsgi-1.9.18/Makefile
===> uwsgi-1.9.18 depends on file: /usr/local/bin/python2.7 - found
===> uwsgi-1.9.18 depends on executable: python - found
===> Configuring for uwsgi-1.9.18
===> Building for uwsgi-1.9.18
/usr/local/bin/python2.7 uwsgiconfig.py --build
In file included from core/utils.c:1:
./uwsgi.h:314:26: error: sys/sendfile.h: No such file or directory
In file included from core/protocol.c:1:
./uwsgi.h:314:26: error: sys/sendfile.h: No such file or directory
In file included from core/logging.c:2:
./uwsgi.h:314:26: error: sys/sendfile.h: No such file or directory
In file included from core/socket.c:1:
./uwsgi.h:314:26: error: sys/sendfile.h: No such file or directory
In file included from core/master_utils.c:1:
./uwsgi.h:314:26: error: sys/sendfile.h: No such file or directory
In file included from core/master.c:1:
./uwsgi.h:314:26: error: sys/sendfile.h: No such file or directory
In file included from core/emperor.c:8:
./uwsgi.h:314:26: error: sys/sendfile.h: No such file or directory
In file included from core/notify.c:1:
./uwsgi.h:314:26: error: sys/sendfile.h: No such file or directory
In file included from core/subscription.c:1:
./uwsgi.h:314:26: error: sys/sendfile.h: No such file or directory
In file included from core/mule.c:9:
./uwsgi.h:314:26: error: sys/sendfile.h: No such file or directory
In file included from core/stats.c:1:
./uwsgi.h:314:26: error: sys/sendfile.h: No such file or directory
In file included from core/master_checks.c:1:
./uwsgi.h:314:26: error: sys/sendfile.h: No such file or directory
In file included from core/io.c:1:
./uwsgi.h:314:26: error: sys/sendfile.h: No such file or directory
In file included from core/async.c:1:
./uwsgi.h:314:26: error: sys/sendfile.h: No such file or directory
In file included from core/sendfile.c:1:
./uwsgi.h:314:26: error: sys/sendfile.h: No such file or directory
In file included from core/fifo.c:1:
./uwsgi.h:314:26: error: sys/sendfile.h: No such file or directory
In file included from core/offload.c:1:
./uwsgi.h:314:26: error: sys/sendfile.h: No such file or directory
In file included from core/websockets.c:1:
./uwsgi.h:314:26: error: sys/sendfile.h: No such file or directory
In file included from core/static.c:1In file included from core/spooler.c:1:
:
./uwsgi.h:314:26:./uwsgi.h:314:26: error: error: sys/sendfile.h: No such file
or directorysys/sendfile.h: No such file or directory
core/utils.c: In function 'uwsgi_set_cpu_affinity':
core/utils.c:3459: error: 'cpu_set_t' undeclared (first use in this function)
core/utils.c:3459: error: (Each undeclared identifier is reported only once
core/utils.c:3459: error: for each function it appears in.)
core/utils.c:3459: error: expected ';' before 'cpuset'
core/utils.c:3464: error: request for member '__bits' in something not a
structure or union
core/utils.c:3469: error: request for member '__bits' in something not a
structure or union
cc1: warnings being treated as errors
core/utils.c:3480: warning: implicit declaration of function 'sched_setaffinity'
In file included from core/snmp.c:1:
./uwsgi.h:314:26: error: sys/sendfile.h: No such file or directory
cc1: warnings being treated as errors
core/offload.c: In function 'u_offload_sendfile_do':
core/offload.c:327: warning: passing argument 3 of 'sendfile' makes integer
from pointer without a cast
core/offload.c:327: error: too few arguments to function 'sendfile'
In file included from core/exceptions.c:1:
./uwsgi.h:314:26: error: sys/sendfile.h: No such file or directory
In file included from core/config.c:1:
./uwsgi.h:314:26: error: sys/sendfile.h: No such file or directory
In file included from core/setup_utils.c:1:
./uwsgi.h:314:26: error: sys/sendfile.h: No such file or directory
*** [all] Error code 1
1 error
On 11.10.2013, at 15:33, "Roberto De Ioris" <[email protected]> wrote:
>
>> FreeBSD does not have sendfile.h:
>>
>> uwsgi.h:
>> -------
>> #ifdef __linux__
>> #include <sys/sendfile.h>
>> #include <sys/epoll.h>
>> #elif defined(__FreeBSD_kernel__)
>> #include <sys/sendfile.h>
>> #include <sys/event.h>
>> #elif defined(__sun__)
>> ---------
>>
>> From sendfile(2):
>>
>> SYNOPSIS
>> #include <sys/types.h>
>> #include <sys/socket.h>
>> #include <sys/uio.h>
>>
>>
>> Now 1.9.18 does not build under FreeBSD:
>>
>> /usr/local/bin/python2.7 uwsgiconfig.py --build
>> In file included from core/protocol.c:1:
>> In file included from core/utils.c:1:
>> ./uwsgi.h:314:10: fatal error: 'sys/sendfile.h' file not found
>> #include <sys/sendfile.h>
>> ^
>> ./uwsgi.h:314:10: fatal error: 'sys/sendfile.h' file not found
>> #include <sys/sendfile.h>
>> ^
>> 1 error generated.
>>
>>
>
> which FreeBSD version ? i have tried both 8 and 9 without problems
>
>
> --
> Roberto De Ioris
> http://unbit.it
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi