Compiling with RFC3195

General discussions here

Moderator: rgerhards

Compiling with RFC3195

Postby jsingh on Tue Jan 29, 2008 3:58 pm

I get the following error while trying to compile rsyslog-3.10.3. How do I proceed?

make all-recursive
make[1]: Entering directory `/home/iron/Desktop/rsyslog-3.10.3'
Making all in doc
make[2]: Entering directory `/home/iron/Desktop/rsyslog-3.10.3/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/iron/Desktop/rsyslog-3.10.3/doc'
Making all in plugins/immark
make[2]: Entering directory `/home/iron/Desktop/rsyslog-3.10.3/plugins/immark'
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -pthread -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT immark_la-immark.lo -MD -MP -MF .deps/immark_la-immark.Tpo -c -o immark_la-immark.lo `test -f 'immark.c' || echo './'`immark.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -pthread -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT immark_la-immark.lo -MD -MP -MF .deps/immark_la-immark.Tpo -c immark.c -fPIC -DPIC -o .libs/immark_la-immark.o
mv -f .deps/immark_la-immark.Tpo .deps/immark_la-immark.Plo
/bin/sh ../../libtool --tag=CC --mode=link gcc -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -module -avoid-version -o immark.la -rpath /usr/local/lib/rsyslog immark_la-immark.lo
gcc -shared .libs/immark_la-immark.o -Wl,-soname -Wl,immark.so -o .libs/immark.so
creating immark.la
(cd .libs && rm -f immark.la && ln -s ../immark.la immark.la)
make[2]: Leaving directory `/home/iron/Desktop/rsyslog-3.10.3/plugins/immark'
Making all in plugins/imuxsock
make[2]: Entering directory `/home/iron/Desktop/rsyslog-3.10.3/plugins/imuxsock'
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -pthread -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT imuxsock_la-imuxsock.lo -MD -MP -MF .deps/imuxsock_la-imuxsock.Tpo -c -o imuxsock_la-imuxsock.lo `test -f 'imuxsock.c' || echo './'`imuxsock.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -pthread -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT imuxsock_la-imuxsock.lo -MD -MP -MF .deps/imuxsock_la-imuxsock.Tpo -c imuxsock.c -fPIC -DPIC -o .libs/imuxsock_la-imuxsock.o
mv -f .deps/imuxsock_la-imuxsock.Tpo .deps/imuxsock_la-imuxsock.Plo
/bin/sh ../../libtool --tag=CC --mode=link gcc -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -module -avoid-version -o imuxsock.la -rpath /usr/local/lib/rsyslog imuxsock_la-imuxsock.lo
gcc -shared .libs/imuxsock_la-imuxsock.o -Wl,-soname -Wl,imuxsock.so -o .libs/imuxsock.so
creating imuxsock.la
(cd .libs && rm -f imuxsock.la && ln -s ../imuxsock.la imuxsock.la)
make[2]: Leaving directory `/home/iron/Desktop/rsyslog-3.10.3/plugins/imuxsock'
Making all in plugins/imtcp
make[2]: Entering directory `/home/iron/Desktop/rsyslog-3.10.3/plugins/imtcp'
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -pthread -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT imtcp_la-imtcp.lo -MD -MP -MF .deps/imtcp_la-imtcp.Tpo -c -o imtcp_la-imtcp.lo `test -f 'imtcp.c' || echo './'`imtcp.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -pthread -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT imtcp_la-imtcp.lo -MD -MP -MF .deps/imtcp_la-imtcp.Tpo -c imtcp.c -fPIC -DPIC -o .libs/imtcp_la-imtcp.o
mv -f .deps/imtcp_la-imtcp.Tpo .deps/imtcp_la-imtcp.Plo
/bin/sh ../../libtool --tag=CC --mode=link gcc -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -module -avoid-version -o imtcp.la -rpath /usr/local/lib/rsyslog imtcp_la-imtcp.lo
gcc -shared .libs/imtcp_la-imtcp.o -Wl,-soname -Wl,imtcp.so -o .libs/imtcp.so
creating imtcp.la
(cd .libs && rm -f imtcp.la && ln -s ../imtcp.la imtcp.la)
make[2]: Leaving directory `/home/iron/Desktop/rsyslog-3.10.3/plugins/imtcp'
Making all in plugins/imudp
make[2]: Entering directory `/home/iron/Desktop/rsyslog-3.10.3/plugins/imudp'
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -pthread -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT imudp_la-imudp.lo -MD -MP -MF .deps/imudp_la-imudp.Tpo -c -o imudp_la-imudp.lo `test -f 'imudp.c' || echo './'`imudp.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -pthread -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT imudp_la-imudp.lo -MD -MP -MF .deps/imudp_la-imudp.Tpo -c imudp.c -fPIC -DPIC -o .libs/imudp_la-imudp.o
mv -f .deps/imudp_la-imudp.Tpo .deps/imudp_la-imudp.Plo
/bin/sh ../../libtool --tag=CC --mode=link gcc -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -module -avoid-version -o imudp.la -rpath /usr/local/lib/rsyslog imudp_la-imudp.lo
gcc -shared .libs/imudp_la-imudp.o -Wl,-soname -Wl,imudp.so -o .libs/imudp.so
creating imudp.la
(cd .libs && rm -f imudp.la && ln -s ../imudp.la imudp.la)
make[2]: Leaving directory `/home/iron/Desktop/rsyslog-3.10.3/plugins/imudp'
Making all in plugins/omtesting
make[2]: Entering directory `/home/iron/Desktop/rsyslog-3.10.3/plugins/omtesting'
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -pthread -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT omtesting_la-omtesting.lo -MD -MP -MF .deps/omtesting_la-omtesting.Tpo -c -o omtesting_la-omtesting.lo `test -f 'omtesting.c' || echo './'`omtesting.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -pthread -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT omtesting_la-omtesting.lo -MD -MP -MF .deps/omtesting_la-omtesting.Tpo -c omtesting.c -fPIC -DPIC -o .libs/omtesting_la-omtesting.o
mv -f .deps/omtesting_la-omtesting.Tpo .deps/omtesting_la-omtesting.Plo
/bin/sh ../../libtool --tag=CC --mode=link gcc -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -module -avoid-version -o omtesting.la -rpath /usr/local/lib/rsyslog omtesting_la-omtesting.lo
gcc -shared .libs/omtesting_la-omtesting.o -Wl,-soname -Wl,omtesting.so -o .libs/omtesting.so
creating omtesting.la
(cd .libs && rm -f omtesting.la && ln -s ../omtesting.la omtesting.la)
make[2]: Leaving directory `/home/iron/Desktop/rsyslog-3.10.3/plugins/omtesting'
Making all in plugins/imklog
make[2]: Entering directory `/home/iron/Desktop/rsyslog-3.10.3/plugins/imklog'
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -pthread -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT imklog_la-imklog.lo -MD -MP -MF .deps/imklog_la-imklog.Tpo -c -o imklog_la-imklog.lo `test -f 'imklog.c' || echo './'`imklog.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -pthread -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT imklog_la-imklog.lo -MD -MP -MF .deps/imklog_la-imklog.Tpo -c imklog.c -fPIC -DPIC -o .libs/imklog_la-imklog.o
imklog.c: In function 'writeSyslogV':
imklog.c:129: warning: function might be possible candidate for 'printf' format attribute
imklog.c:129: warning: function might be possible candidate for 'printf' format attribute
mv -f .deps/imklog_la-imklog.Tpo .deps/imklog_la-imklog.Plo
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -pthread -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT imklog_la-ksym.lo -MD -MP -MF .deps/imklog_la-ksym.Tpo -c -o imklog_la-ksym.lo `test -f 'ksym.c' || echo './'`ksym.c
gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -pthread -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT imklog_la-ksym.lo -MD -MP -MF .deps/imklog_la-ksym.Tpo -c ksym.c -fPIC -DPIC -o .libs/imklog_la-ksym.o
mv -f .deps/imklog_la-ksym.Tpo .deps/imklog_la-ksym.Plo
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -pthread -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT imklog_la-ksym_mod.lo -MD -MP -MF .deps/imklog_la-ksym_mod.Tpo -c -o imklog_la-ksym_mod.lo `test -f 'ksym_mod.c' || echo './'`ksym_mod.c
gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -pthread -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT imklog_la-ksym_mod.lo -MD -MP -MF .deps/imklog_la-ksym_mod.Tpo -c ksym_mod.c -fPIC -DPIC -o .libs/imklog_la-ksym_mod.o
mv -f .deps/imklog_la-ksym_mod.Tpo .deps/imklog_la-ksym_mod.Plo
/bin/sh ../../libtool --tag=CC --mode=link gcc -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -module -avoid-version -o imklog.la -rpath /usr/local/lib/rsyslog imklog_la-imklog.lo imklog_la-ksym.lo imklog_la-ksym_mod.lo
gcc -shared .libs/imklog_la-imklog.o .libs/imklog_la-ksym.o .libs/imklog_la-ksym_mod.o -Wl,-soname -Wl,imklog.so -o .libs/imklog.so
creating imklog.la
(cd .libs && rm -f imklog.la && ln -s ../imklog.la imklog.la)
make[2]: Leaving directory `/home/iron/Desktop/rsyslog-3.10.3/plugins/imklog'
make[2]: Entering directory `/home/iron/Desktop/rsyslog-3.10.3'
gcc -DHAVE_CONFIG_H -I. -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT rfc3195d.o -MD -MP -MF .deps/rfc3195d.Tpo -c -o rfc3195d.o rfc3195d.c
rfc3195d.c:46:24: error: liblogging.h: No such file or directory
rfc3195d.c:47:19: error: srAPI.h: No such file or directory
rfc3195d.c:48:27: error: syslogmessage.h: No such file or directory
rfc3195d.c:54: error: static declaration of 'Debug' follows non-static declaration
debug.h:31: error: previous declaration of 'Debug' was here
rfc3195d.c:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
rfc3195d.c: In function 'usage':
rfc3195d.c:76: warning: implicit declaration of function 'exit'
rfc3195d.c:76: warning: incompatible implicit declaration of built-in function 'exit'
rfc3195d.c: In function 'openlog':
rfc3195d.c:94: warning: implicit declaration of function 'strncpy'
rfc3195d.c:94: warning: incompatible implicit declaration of built-in function 'strncpy'
rfc3195d.c:100: warning: implicit declaration of function 'strerror_r'
rfc3195d.c:100: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
rfc3195d.c:105: warning: implicit declaration of function 'strlen'
rfc3195d.c:105: warning: incompatible implicit declaration of built-in function 'strlen'
rfc3195d.c:110: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
rfc3195d.c: At top level:
rfc3195d.c:125: error: expected ')' before '*' token
rfc3195d.c: In function 'doShutdown':
rfc3195d.c:194: warning: implicit declaration of function 'srAPIShutdownListener'
rfc3195d.c:194: error: 'pAPI' undeclared (first use in this function)
rfc3195d.c:194: error: (Each undeclared identifier is reported only once
rfc3195d.c:194: error: for each function it appears in.)
rfc3195d.c:191: warning: unused parameter 'i'
rfc3195d.c: In function 'main':
rfc3195d.c:201: error: 'srRetVal' undeclared (first use in this function)
rfc3195d.c:201: error: expected ';' before 'iRet'
rfc3195d.c:220: warning: implicit declaration of function 'atoi'
rfc3195d.c:229: error: 'PATCHLEVEL' undeclared (first use in this function)
rfc3195d.c:230: error: 'LIBLOGGING_VERSION_MAJOR' undeclared (first use in this function)
rfc3195d.c:230: error: 'LIBLOGGING_VERSION_MINOR' undeclared (first use in this function)
rfc3195d.c:231: error: 'LIBLOGGING_VERSION_SUBMINOR' undeclared (first use in this function)
rfc3195d.c:233: warning: incompatible implicit declaration of built-in function 'exit'
rfc3195d.c:241: warning: implicit declaration of function 'memset'
rfc3195d.c:241: warning: incompatible implicit declaration of built-in function 'memset'
rfc3195d.c:253: error: 'pAPI' undeclared (first use in this function)
rfc3195d.c:253: warning: implicit declaration of function 'srAPIInitLib'
rfc3195d.c:256: warning: incompatible implicit declaration of built-in function 'exit'
rfc3195d.c:259: error: 'iRet' undeclared (first use in this function)
rfc3195d.c:259: warning: implicit declaration of function 'srAPISetOption'
rfc3195d.c:259: error: 'srOPTION_BEEP_LISTENPORT' undeclared (first use in this function)
rfc3195d.c:259: error: 'SR_RET_OK' undeclared (first use in this function)
rfc3195d.c:262: warning: incompatible implicit declaration of built-in function 'exit'
rfc3195d.c:265: warning: implicit declaration of function 'srAPISetupListener'
rfc3195d.c:265: error: 'OnReceive' undeclared (first use in this function)
rfc3195d.c:268: warning: incompatible implicit declaration of built-in function 'exit'
rfc3195d.c:274: warning: implicit declaration of function 'srAPIRunListener'
rfc3195d.c:277: warning: incompatible implicit declaration of built-in function 'exit'
rfc3195d.c:282: warning: implicit declaration of function 'srAPIExitLib'
make[2]: *** [rfc3195d.o] Error 1
make[2]: Leaving directory `/home/iron/Desktop/rsyslog-3.10.3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/iron/Desktop/rsyslog-3.10.3'
make: *** [all] Error 2
jsingh
New
 
Posts: 3
Joined: Tue Jan 29, 2008 3:56 pm

RE: Compiling with RFC3195

Postby rgerhards on Tue Jan 29, 2008 4:11 pm

argh, I feared that rfc 3195d was not yet fully included in autotools. Do you actually need 3195? I ask becaus e you would be the first one I see who actually does ;). If you don't need it, simply turn 3195 off. That fixes the issue. I have planned to look into 3195, but as nobody ever was interested in that option, I didn't so far bother looking into it...

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 901
Joined: Thu Feb 13, 2003 11:57 am

RE: Compiling with RFC3195

Postby jsingh on Tue Jan 29, 2008 4:28 pm

haha sorry! Didn't mean to open a can of worms!

I'm working on a project that may require implementing ATNA (an IHE standard), I'm not sure if you're familiar. Anyway, the standard requires support for RAW and COOKED syslog formats. We thought we'd 'give it a shot' so to speak, but we're somewhat reluctant because the standard seems to be partially implemented and moving slowly.
jsingh
New
 
Posts: 3
Joined: Tue Jan 29, 2008 3:56 pm

RE: Compiling with RFC3195

Postby rgerhards on Tue Jan 29, 2008 4:45 pm

Ah, I see! IHE triggers something in me. You wouldn't be happy even if it worked. It is a conservative implementation of 3195 and conservative means that it abides to the 1024 character limit that there *is* in 3195 (I know someone in IHE found a loophole where it is not 100% clearly stated that 1K is the max size).

But... that was the bad news. The good news is that there is now work on 3195 and I think this time it will be gotten right. At least I plan to base almost all *future* protocol work on 3195 (or more precisiely BEEP, rfc 3080+3081). But there are some things to be done in the core engine first. So, again bad news: I think it will be at least late spring before we see great and real native 3195 support in rsyslogd. But I am sure it'll be there if nothing totally unexpected happens.

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 901
Joined: Thu Feb 13, 2003 11:57 am

Postby jsingh on Tue Jan 29, 2008 5:49 pm

Thanks for the reply Rainer. I'll discuss with my superiors if it's feasible to continue on this path, use what's available and hope for better support down the road, or start looking into an alternative.

Thanks!
jsingh
New
 
Posts: 3
Joined: Tue Jan 29, 2008 3:56 pm


Return to General

Who is online

Users browsing this forum: No registered users and 0 guests

cron