Error while compiling mDNSResponder on ubuntu linux - 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

Related

How can I compile simpleScalar in cygwin using alpha configuration?

I need to install simplescalar on windows 7. For that reason, I installed cygwin. I need to use simplescalar because I need to do a lab about Benchmarks.
I already installed SimpleScalar on Debian and I compiled it using the alpha configuration without any problem. However, when I try to do the same on windows using cygwin, I'm having issues.
I am trying to compile simplescalar using alpha configuration. since I'm using windows 7, cygwin and I used the following steps:
make config-alpha
make
When I run the make command to compile the simulator, it shows me a lot of errors.
syscall.c: 805:25: error: 'TCP_NODELAY' undeclared here (not in a function); did you mean 'O_NDEALY'?
804 { OSF_TCP_NODELAY, TCP_NODELAY},
O_NDEALY
syscall.c: 805:25: error: 'TCP_MAXSEG' undeclared here (not in a function); did you mean 'TMP_MAX'?
804 { OSF_TCP_MAXSEG, TCP_MAXSEG},
TMP_MAX
syscall.c:2636:56 error: invalid use of undefined type 'struct dirent' i++, cnt < regs -> regs_R[MD_REG_V0] && p->d_reclen > 0;
syscall.c:2637:35 error: invalid use of undefined type 'struct dirent' i++, cnt = p->d_reclen, p=(struct dirent *)(buf+cn 2637)
However, if I use pisa configuration, I can compile the simulator without any problem.
Is there any additional steps I need to do or any additional packages I need to download in cygwin in order to compile simplescala using alpha configuration?
Some of the packages that I have downloaded to do my lab in cygwin have been wget, nano and devel.

Cant install uwsgi in windows10 using cygwin

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

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

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

Resources