[uWSGI] [ANNOUNCE] uWSGI 1.9.18

Dmitry Sivachenko trtrmitya at gmail.com
Fri Oct 11 14:11:58 CEST 2013


From sys/param.h:

/*
 * __FreeBSD_kernel__ indicates that this system uses the kernel of FreeBSD,
 * which by definition is always true on FreeBSD. This macro is also defined
 * on other systems that use the kernel of FreeBSD, such as GNU/kFreeBSD.
 *    
 * It is tempting to use this macro in userland code when we want to enable
 * kernel-specific routines, and in fact it's fine to do this in code that
 * is part of FreeBSD itself.  However, be aware that as presence of this  
 * macro is still not widespread (e.g. older FreeBSD versions, 3rd party
 * compilers, etc), it is STRONGLY DISCOURAGED to check for this macro in
 * external applications without also checking for __FreeBSD__ as an
 * alternative.
 */


On 11.10.2013, at 16:02, "Roberto De Ioris" <roberto at unbit.it> wrote:

> 
>> 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
>> 
>> 
> 
> 
> Is __FreeBSD_kernel__ defined on plain FreeBSD systems ???
> 
> 
> -- 
> Roberto De Ioris
> http://unbit.it
> _______________________________________________
> uWSGI mailing list
> uWSGI at lists.unbit.it
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi



More information about the uWSGI mailing list