On 12/02/2013 09:03 PM, David Lang wrote:
it sounds as if mmcount has not been modified to work with rsyslog 8
yet. Given that global variables work correctly and largely eliminate
the need for mmcount, this isn't surprising.

  ok, thanks!

commented out mmcount plus few other modules that had similar errors that I don't think I need:

  # --enable-mmcount \
  # --enable-mmpstrucdata \
  # --enable-mmrfc5424addhmac \

  and it compiles now,

        erik


David Lang

On Mon, 2 Dec 2013, Erik Steffl wrote:

Date: Mon, 02 Dec 2013 17:34:13 -0800
From: Erik Steffl <[email protected]>
Reply-To: rsyslog-users <[email protected]>
To: rsyslog-users <[email protected]>
Subject: Re: [rsyslog] How to build rsyslog from source

 looking around for liblogging it seems it is related to RFC 3195 so I
removed --enable-rfc3195 and ran configure like this:

./configure \
 --enable-debug \
 --enable-rtinst \
 --enable-debugless \
 --enable-valgrind \
 --enable-memcheck \
 --enable-diagtools \
 --enable-usertools \
 --enable-gnutls \
 --enable-mmjsonparse \
 --enable-mmcount \
 --enable-mmsequence \
 --enable-mmfields \
 --enable-mmpstrucdata \
 --enable-mmrfc5424addhmac \
 --enable-relp \
 --enable-testbench \
 --enable-imfile \
 --enable-imptcp \
 --enable-imttcp \
 --enable-impstats \
 --enable-omstdout \
 --enable-pmrfc3164sd \
 --enable-omruleset \
 --enable-omuxsock

This succeeds but I get the following error while compiling:

make[2]: Entering directory
`/home/erik/work/pokusy/rsyslog/rsyslog/plugins/mmcount'
 CC       mmcount_la-mmcount.lo
In file included from mmcount.c:38:0:
../../runtime/module-template.h:423:46: error: expected ')' before
'__attribute__'
static rsRetVal tryResume(wrkrInstanceData_t __attribute__((unused))
*pWrkrData)\
                                             ^
mmcount.c:203:1: note: in expansion of macro 'BEGINtryResume'
BEGINtryResume

... more mmcount.c errors...

Compiling on Ubuntu 13.10 saucy using gcc 4.8

Looked at runtime/module-template.h but it's not clear why it would
expect ')' before __attribute__. Any ideas what's going on?

Thanks!

    erik

On 12/02/2013 03:35 PM, Erik Steffl wrote:
Following

http://www.rsyslog.com/doc/build_from_repo.html
http://www.rsyslog.com/doc/install.html

  but ran into few issues. This is on Ubuntu 13.10 (aka saucy).

Here's what's happening:

git clone git://git.adiscon.com/git/rsyslog.git
cd rsyslog
autoreconf -fvi

sudo apt-get install librelp-dev

./configure \
   --enable-debug \
   --enable-rtinst \
   --enable-debugless \
   --enable-valgrind \
   --enable-memcheck \
   --enable-diagtools \
   --enable-usertools \
   --enable-gnutls \
   --enable-mmjsonparse \
   --enable-mmcount \
   --enable-mmsequence \
   --enable-mmfields \
   --enable-mmpstrucdata \
   --enable-mmrfc5424addhmac \
   --enable-relp \
   --enable-rfc3195 \
   --enable-testbench \
   --enable-imfile \
   --enable-imptcp \
   --enable-imttcp \
   --enable-impstats \
   --enable-omstdout \
   --enable-pmrfc3164sd \
   --enable-omruleset \
   --enable-omuxsock

There were few missing packages that I resolved by either removing them
form list of enabled features (don't think I need --enable-mmnormalize)
or by installing librelp-dev (it was saying relp package is missing)

Now stuck at missing package liblogging:

---------------- cut here ----------------
configure:19062: $PKG_CONFIG --exists --print-errors "liblogging >=
0.7.1"
Package liblogging was not found in the pkg-config search path.
Perhaps you should add the directory containing `liblogging.pc'
to the PKG_CONFIG_PATH environment variable
No package 'liblogging' found
configure:19065: $? = 1
configure:19079: result: no
No package 'liblogging' found
configure:19095: error: Package requirements (liblogging >= 0.7.1) were
not met:

No package 'liblogging' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBLOGGING_CFLAGS
and LIBLOGGING_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
---------------- cut here ----------------

What/where is this package? Tried:

   apt-file search liblogging.pc
   apt-file search liblogging.so
   http://ubuntu.adiscon.com/v7-devel/saucy/
   apt-cache search libloggin

But found nothing.

In another thread David Lang recommended looking at checkinstall but
can't find it (either file name or even it being mentioned anywhere in
the source tree I got from git). Any idea where to find it?

Any pointers where to look for Ubuntu package build setup or other place
where I could find list of dependencies?

Thanks!

     erik

_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a
myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST
if you DON'T LIKE THAT.

_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad
of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you
DON'T LIKE THAT.

_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to