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
Related
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
Problem: I need to install Cepstral (tts engine) into Freeswitch running Debian 8. Freeswitch is already up and running, but I needed to build it from source in order for it create the mod_cepstral module.
When I run make this is the error I get:
In file included from ./crypto/include/prng.h:17:0,
from ./crypto/include/crypto_kernel.h:50,
from ./include/srtp.h:53,
from srtp/srtp.c:46:
./crypto/include/aes_icm_ossl.h:66:20: error: field ‘ctx’ has incomplete type
EVP_CIPHER_CTX ctx;
^~~
In file included from srtp/srtp.c:50:0:
./crypto/include/aes_gcm_ossl.h:58:18: error: field ‘ctx’ has incomplete type
EVP_CIPHER_CTX ctx;
^~~
Makefile:646: recipe for target 'srtp.lo' failed
make[1]: *** [srtp.lo] Error 1
make[1]: Leaving directory '/usr/src/freeswitch/libs/srtp'
Makefile:3931: recipe for target 'libs/srtp/libsrtp.la' failed
make: *** [libs/srtp/libsrtp.la] Error 2
I have been scouring the internet for solutions, but I am not a developer and this is way over my head. Any help would be appreciated.
cause newer OpenSSL don't expose struct EVP_CIPHER_CTX ,
try this
EVP_CIPHER_CTX *ctx = EVP_CIPHER_CTX_new();
EVP_CIPHER_CTX_init(ctx);
//do sth here
//...
EVP_CIPHER_CTX_free(ctx);
wget https://github.com/cisco/libsrtp/archive/v2.1.0.tar.gz
tar xfv v2.1.0.tar.gz
cd libsrtp-2.1.0
./configure --prefix=/usr --enable-openssl
make shared_library && sudo make install
Get the latest version of libsrtp.
It appears that there is a dependency on OpenSSL, but the version of OpenSSL you are using is incompatible. You are using OpenSSL 1.1.0 but you need to use OpenSSL 1.0.2
After talking with support at Cepstral, we determined that Jessie (Debian 8) is not yet fully compatible. I rebuilt the server with Debian 7 and it is working fine now.
I am trying to compile QT 5.5.1 on Amazon AMI 2015.09, which looks la lot like Centos 6.5.
I keep getting this error:
Project ERROR: Unknown module(s) in QT: quick
However, there is no quick module that I can find, and no obvious way to enable to disable it from looking at the ./configure script.
My procedure:
I downloaded qt-everywhere-opensource-src-5.5.1.tar.gz
I unpacked it.
I ran ./configure
Confirmed that I want the opensource license and agreed to the LGPL.
Ran gmake -j4 (but I get the same behavior with gmake.
Interestingly, make distclean gives me this error:
Project ERROR: Unknown module(s) in QT: quick-private
Here are all of the errors sent to STDERR:
Checking for openal... Checking for bluez... no
Checking for bluez_le... no
Checking for btapi10_2_1... no
/home/ec2-user/qt-everywhere-opensource-src-5.5.1/qtmultimedia/qtmultimedia.pro:28: Variable GST_VERSION is not defined.
Checking for resourcepolicy... no
Checking for gpu_vivante... no
Checking for libbb2... no
no
Project MESSAGE: Unsupported Bluetooth platform, will not build a working QtBluetooth library.
Project MESSAGE: Either no Qt D-Bus found or no BlueZ headers.
qbluetoothdevicediscoveryagent_p.h:0: Note: No relevant classes found. No output generated.
qbluetoothservicediscoveryagent_p.h:0: Note: No relevant classes found. No output generated.
qbluetoothserver_p.h:0: Note: No relevant classes found. No output generated.
qbluetoothlocaldevice_p.h:0: Note: No relevant classes found. No output generated.
Checking for assimp... no
Project ERROR: Unknown module(s) in QT: quick
gmake[4]: *** [sub-textureandlight-make_first] Error 3
gmake[3]: *** [sub-canvas3d-make_first] Error 2
gmake[2]: *** [sub-canvas3d-make_first] Error 2
gmake[1]: *** [sub-examples-make_first] Error 2
gmake: *** [module-qtcanvas3d-make_first] Error 2
gmake: *** Waiting for unfinished jobs....
At another poster's suggestion I tried ./configure -skip qtquick but that didn't work:
$ ./configure -skip qtquick
+ cd qtbase
+ /home/ec2-user/qt-everywhere-opensource-src-5.5.1/qtbase/configure -top-level -skip qtquick
Attempting to skip non-existent module qtquick.
$
this is what I think will solve your problems:
You have use `make confclean' instead of making distclean for deleting the previous configuration.
Configure in verbose mode — more information will be provided, sorry, I don't remember exact flag, if I'm not mistaken, it's -v.
If you don't need quick, add -skip qtquick to the configure.
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
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