Cant install uwsgi in windows10 using cygwin - python-3.x

I tried installing uwsgi using cygwin in windows10 by following the below steps which i found in another question of stackoverflow.
Can't install uwsgi on cygwin
uwsgi version : 2.0.18
I am getting the below error.
$ python setup.py install
using profile: buildconf/default.ini
detected include path: ['/usr/include', '/usr/local/include']
running install
core/event.c: In function ‘event_queue_read’:
core/event.c:1420:9: error: ‘UWSGI_EVENT_IN’ undeclared (first use in this function); did you mean ‘UWSGI_VERSION’?
return UWSGI_EVENT_IN;
^~~~~~~~~~~~~~
UWSGI_VERSION
core/event.c:1420:9: note: each undeclared identifier is reported only once for each function it appears in
core/event.c: In function ‘event_queue_write’:
core/event.c:1424:9: error: ‘UWSGI_EVENT_OUT’ undeclared (first use in this function); did you mean ‘UWSGI_END_CODE’?
return UWSGI_EVENT_OUT;
^~~~~~~~~~~~~~~
UWSGI_END_CODE
core/event.c: In function ‘event_queue_read’:
core/event.c:1421:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
core/event.c: In function ‘event_queue_write’:
core/event.c:1425:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1: all warnings being treated as errors
Please help me

Related

Issue with installing PyLucene 6.5.0 on Linux

I recently moved to python3, so I'm trying to install the recent version of Pylucene (version 6.5.0) which is compatible with python3.
jcc3/sources/jcc.cpp: In function ‘PyObject* t_jccenv_strhash(PyObject*, PyObject*)’:
jcc3/sources/jcc.cpp:214:27: error: expected ‘)’ before ‘PRIxMAX’
sprintf(buffer, "%0*" PRIxMAX, (int) hexdig, hash);
^
jcc3/sources/jcc.cpp:214:54: warning: conversion lacks type at end of format [-Wformat=]
sprintf(buffer, "%0*" PRIxMAX, (int) hexdig, hash);
^
jcc3/sources/jcc.cpp:214:54: warning: too many arguments for format [-Wformat-extra-args]
error: command 'gcc' failed with exit status 1
But, to install the jcc I get the following error which I have no idea why it occurs:
Do you have any idea about this issue?
Thank you in advance,
Amin
I had the same problem, was solved by setting __STDC_FORMAT_MACROS:
My JCC_CFLAGS is set to:
export JCC_CFLAGS="-v;-fno-strict-aliasing;-Wno-write-strings;-D__STDC_FORMAT_MACROS"
An example of an automated build script of JCC for conda is available at:
https://github.com/conda-forge/jcc-feedstock/blob/master/recipe/build.sh

Error while compiling mDNSResponder on ubuntu linux

I'm trying to compile mDNSResponder-320.10.80 on ubuntu 14.04. But I am getting following error. Same has been compiled on fedora successfully. Please suggest me with a possible solution for it.
../mDNSShared/dnsextd_parser.y: In function ‘yyparse’:
../mDNSShared/dnsextd_parser.y:188:22: error: ‘context’ undeclared (first use in this function)
( ( DaemonInfo* ) context )->private_port = mDNSOpaque16fromIntVal( $3 );
^
../mDNSShared/dnsextd_parser.y:188:22: note: each undeclared identifier is reported only once for each function it appears in
../mDNSShared/dnsextd_parser.y: In function ‘ParseConfig’:
../mDNSShared/dnsextd_parser.y:448:2: error: too many arguments to function ‘yyparse’
err = yyparse( ( void* ) d );
^
objects/prod/dnsextd_parser.c:1125:1: note: declared here
yyparse (void)
^
make: *** [objects/prod/dnsextd_parser.y.o] Error 1
Br
Gaurav Singla
Ubuntu 14.04 upgraded to bison 3 which dropped support for YYPARSE_PARAM which had been deprecated a while ago. See news section in: http://savannah.gnu.org/forum/forum.php?forum_id=7663
This is why dnsextd_parser.y fails on Ubuntu 14.04.
There are a few patches around (search for "patch dnsextd_parser.y") that will make dnsextd_parser.y compatible with bison 3. I used the one from: http://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/net/mDNSResponder/patches/patch-mDNSShared_dnsextd__parser.y

building mDNSResponder-master fails on linux machine (ubuntu 32-bit)

I am building mDNSResponder-master on my linux machine (ubuntu 32-bit).
I did the following steps:
1. cd ./mDNSPosix
2. make os=linux
I get the following error message:
mDNSPosix.c: In function ‘mDNSPlatformTCPAccept’:
mDNSPosix.c:364:13: **error: ‘fd’ undeclared** (first use in this function)
mDNSPosix.c:364:13: note: each undeclared identifier is reported only once for each function it appears in
mDNSPosix.c:359:71: warning: unused parameter ‘sd’ [-Wunused-parameter]
mDNSPosix.c: In function ‘mDNSPlatformTCPConnect’:
mDNSPosix.c:375:115: warning: unused parameter ‘hostname’ [-Wunused-parameter]
make: *** [objects/prod/mDNSPosix.c.o] Error 1
When I look into ‘mDNSPlatformTCPAccept() function in mDNSPosix.c, I find the following affestation: sock->fd = fd; while fd isn't a global variable so the compiler seems to have right.
How can I fix such error while I shouldn't modify the source code?
Thanks in advance.
Regards,
Problem fixed when using the latest version of DNS Server provided here:
http://opensource.apple.com/tarballs/mDNSResponder/
Thanks for all

Unable to make Mod_mono in Red Hat even after configure has completed without errors

I have successfully run the configure script for mod_mono, but get multiple error messages while making mod_mono in my RHEL 5 server. I ran configure with the following options: ./configure --with-apr-config=/usr/local/bin/apr-1-config --with-apu-config=/usr/local/bin/apu-1-config --with-apxs=/usr/local/bin/apxs --prefix=/usr/local
I have apache 2.4.6 installed along with mono 2.10.2. These are my error messages from make:
mod_mono.c: In function âapache_get_useridâ:
mod_mono.c:389: error: âunixd_configâ undeclared (first use in this function)
mod_mono.c:389: error: (Each undeclared identifier is reported only once
mod_mono.c:389: error: for each function it appears in.)
mod_mono.c: In function âapache_get_groupidâ:
mod_mono.c:399: error: âunixd_configâ undeclared (first use in this function)
mod_mono.c: In function âapache_get_usernameâ:
mod_mono.c:409: error: âunixd_configâ undeclared (first use in this function)
mod_mono.c: In function âensure_dashboard_initializedâ:
mod_mono.c:488: warning: implicit declaration of function âunixd_set_global_mutex_permsâ
mod_mono.c: In function âconnection_get_remote_portâ:
mod_mono.c:854: warning: implicit declaration of function âapr_sockaddr_port_getâ
mod_mono.c:854: error: âconn_recâ has no member named âremote_addrâ
make[1]: *** [mod_mono_la-mod_mono.lo] Error 1
I am totally stuck at this point and have been searching for a solution for days, but to no avail. Any help in this regard would be much appreciated.
I have resolved my issue. The easiest way is to install monodevelop using yum by following the steps mentioned in the below url :
http://mostlylinux.com/tmp/?p=91

module_main.c:43: error: invalid use of undefined type ‘struct nf_hook_ops’

I am creating a Manet using the protocol ARAN. To install the protocol I'm using this manual, but the first step, the creation of trace_route, I received errors such as:
module_main.c:43: error: invalid use of undefined type ‘struct nf_hook_ops’
module_main.c:45:'KERNEL_INFO' undeclared (first use in this function)
I searched the web and found out that the problem is in the netfilter, but I do not find the solution ...
P.S. I am using Ubuntu 10.04 LTS Kernel 2.6.33 recompiled

Resources