[rsyslog-notify] Forum Thread: FreeBSD 10.0 compiling Problem - (Mode 'post')
noreply at adiscon.com
noreply at adiscon.com
Tue Feb 25 12:14:36 CET 2014
User: thorna
Forumlink: http://kb.monitorware.com/viewtopic.php?p=24257#p24257
Message:
----------
As you probably know, default Compiler in FreeBSD is since Release 10.0,
CLANG (clang LLVM compiler). I think i have some problem withi that
Compiler, cause i cannot compile rsyslog7-stable with elasticsearch support
on my FreeBSD 10.0 Server.
This is the error i got, making through ports:
[code:1c1ozqca]....
....
....
Making all in plugins/omsnmp
Making all in plugins/omstdout
Making all in plugins/omruleset
Making all in plugins/omelasticsearch
--- omelasticsearch_la-omelasticsearch.lo ---
CC omelasticsearch_la-omelasticsearch.lo
omelasticsearch.c:153:3: warning: implicit declaration
of function 'close' is invalid in C99
[-Wimplicit-function-declaration]
close(pData->fdErrFile);
^
omelasticsearch.c:468:32: error: use of undeclared
identifier 'O_LARGEFILE'
O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE|O_CLOEXEC,
^
omelasticsearch.c:489:10: warning: implicit declaration
of function 'write' is invalid in C99
[-Wimplicit-function-declaration]
wrRet = write(pData->fdErrFile, rendered, toWrite);
^
omelasticsearch.c:776:42: warning: expression result
unused; should this cast be to 'void'? [-Wunused-value]
pData->port = (int)
pvals[i].val.d.n, NULL;
^
/usr/include/sys/_null.h:32:15: note: expanded from
macro 'NULL'
#define NULL ((void *)0)
^
3 warnings and 1 error generated.
*** [omelasticsearch_la-omelasticsearch.lo] Error code 1
make[4]: stopped in
/usr/ports/sysutils/rsyslog7/work/rsyslog-7.6.0/plugins/omelasticsearch
1 error
make[4]: stopped in
/usr/ports/sysutils/rsyslog7/work/rsyslog-7.6.0/plugins/omelasticsearch
*** [all-recursive] Error code 1
make[3]: stopped in
/usr/ports/sysutils/rsyslog7/work/rsyslog-7.6.0
1 error
make[3]: stopped in
/usr/ports/sysutils/rsyslog7/work/rsyslog-7.6.0
*** [all] Error code 2
make[2]: stopped in
/usr/ports/sysutils/rsyslog7/work/rsyslog-7.6.0
1 error
make[2]: stopped in
/usr/ports/sysutils/rsyslog7/work/rsyslog-7.6.0
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/sysutils/rsyslog7
*** Error code 1
Stop.
make: stopped in /usr/ports/sysutils/rsyslog7
[/code:1c1ozqca]
Since Port at moment has only some most important module options, i had to
add --enable-elasticsearch into Makefile. Is there any possibility of
freebsd patch so that for that new platform, compiling succeds?
Thanks in Advance,
More information about the rsyslog-notify
mailing list