[syslog-ng] syslog-ng Digest, Vol 130, Issue 35

Ho, Ming Mingho at visa.com
Wed Feb 24 20:32:17 CET 2016


Hi Peter,

Thanks for the suggestion. I am now able to run "configure" to include Java for complication. But I ran into the following error when I executed "make" command:

In file included from modules/java/native/java-destination.h:36,
                 from modules/java/native/java-parser.h:29,
                 from modules/java/native/java-grammar.y:26:
./modules/java/proxies/java-destination-proxy.h:46: error: expected declaration specifiers or '...' before 'JNIEnv'
make[2]: *** [modules/java/native/modules_java_libmod_java_la-java-grammar.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Appreciate your help.

Ming

-----Original Message-----
From: syslog-ng-bounces at lists.balabit.hu [mailto:syslog-ng-bounces at lists.balabit.hu] On Behalf Of syslog-ng-request at lists.balabit.hu
Sent: Tuesday, February 23, 2016 8:49 AM
To: syslog-ng at lists.balabit.hu
Subject: syslog-ng Digest, Vol 130, Issue 35

Send syslog-ng mailing list submissions to
	syslog-ng at lists.balabit.hu

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.balabit.hu/mailman/listinfo/syslog-ng
or, via email, send a message with subject or body 'help' to
	syslog-ng-request at lists.balabit.hu

You can reach the person managing the list at
	syslog-ng-owner at lists.balabit.hu

When replying, please edit your Subject line so it is more specific than "Re: Contents of syslog-ng digest..."


Today's Topics:

   1. Re:  syslog-ng Digest, Vol 130, Issue 27 (Czanik)
   2. Re:  Cross Compiling syslog-ng 3.7.2 on power-pc architecture
      (Girish Kumar)


----------------------------------------------------------------------

Message: 1
Date: Tue, 23 Feb 2016 13:15:33 +0100
From: Czanik, P?ter <peter.czanik at balabit.com>
Subject: Re: [syslog-ng] syslog-ng Digest, Vol 130, Issue 27
To: "Ho, Ming" <Mingho at visa.com>
Cc: "syslog-ng at lists.balabit.hu" <syslog-ng at lists.balabit.hu>
Message-ID:
	<CANcUavtb3iKWG3Kr9RKOvwLYF5JcO7mPqomfAnuxoUwqsEWTHw at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi,

Gradle needs to be available in the PATH during configure. If it's not there, you should update your PATH variable, like this:

export PATH=/usr/share/java/gradle-2.11/bin:$PATH

Gradle can download you all the necessary JAR files. If you want to use the local files from another directory, you need to edit modules/java-modules/build.gradle before compilation.

Bye,

Peter Czanik (CzP) <peter.czanik at balabit.com> Balabit / syslog-ng upstream http://czanik.blogs.balabit.com/ https://twitter.com/PCzanik

On Mon, Feb 22, 2016 at 7:14 PM, Ho, Ming <Mingho at visa.com> wrote:

> Hi Peter,
>
> Thanks for the quick response. The admin guide and your blog only 
> mentioned to install gradle, which I did, but no mention of how to use 
> it to build Java modules. I am not a software developer and have not 
> heard/use gradle before. It will be very kind and helpful of you if 
> you can provide me the steps how to do so. And any additional steps I 
> need to do for compilation after the Java modules created.
>
> I also try your syslog-ng-java-hack-1.0-1.el6.x86_64.rpm. I copy all 
> the jars files to /usr/local/lib/syslog-ng/java-modules and then run 
> "configure" but the Java module is still not included. What is the 
> correct steps if I use the provided jar files?
>
> Thanks.
> Ming
>
> -----Original Message-----
> From: syslog-ng-bounces at lists.balabit.hu [mailto:
> syslog-ng-bounces at lists.balabit.hu] On Behalf Of 
> syslog-ng-request at lists.balabit.hu
> Sent: Saturday, February 20, 2016 3:00 AM
> To: syslog-ng at lists.balabit.hu
> Subject: syslog-ng Digest, Vol 130, Issue 27
>
> Send syslog-ng mailing list submissions to
>         syslog-ng at lists.balabit.hu
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://lists.balabit.hu/mailman/listinfo/syslog-ng
> or, via email, send a message with subject or body 'help' to
>         syslog-ng-request at lists.balabit.hu
>
> You can reach the person managing the list at
>         syslog-ng-owner at lists.balabit.hu
>
> When replying, please edit your Subject line so it is more specific 
> than
> "Re: Contents of syslog-ng digest..."
>
>
> Today's Topics:
>
>    1. Re:  Not able to compile syslog-ng OSE with Java support (Czanik)
>    2.  ECONNREFUSED on /dev/log (?rp?d Magos?nyi)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 20 Feb 2016 07:47:23 +0100
> From: Czanik, P?ter <peter.czanik at balabit.com>
> Subject: Re: [syslog-ng] Not able to compile syslog-ng OSE with Java
>         support
> To: "Syslog-ng users' and developers' mailing list"
>         <syslog-ng at lists.balabit.hu>
> Message-ID:
>         <
> CANcUavtxRVrSQwcaAB0WV27uO+gsR1T7kT8rQqq63Rev+ns+Ag at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> You will also need gradle to build Java modules: http://gradle.org/ 
> Bye,
>
> Peter Czanik (CzP) <peter.czanik at balabit.com> Balabit / syslog-ng 
> upstream http://czanik.blogs.balabit.com/ https://twitter.com/PCzanik
>
> On Sat, Feb 20, 2016 at 7:02 AM, 'Ho, Ming' via SYSLOG-NG < 
> syslog-ng at balabit.com> wrote:
>
> > Hello,
> >
> > I am able to compile syslog-ng 3.7.2 without the Java-based modules 
> > included successfully and the syslog-ng run fine. Now I need to 
> > re-compile again with the Java-based modules included. I execute the 
> > following steps listed in the syslog-ng-3.7-ose-admin guide:
> >
> > Installed openjdk version "1.8.0_71"
> > Installed gradle version 2.11
> > export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
> > export
> > LD_LIBRARY_PATH=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.71-1.b15.el6_7
> > .x 86_64/jre/lib/amd64/server:$LD_LIBRARY_PATH
> >
> > When I run ./configure, I notice the java module option is set to "no"
> > in the summary:
> > Modules:
> >   Module search path          : ${exec_prefix}/lib/syslog-ng
> >   Sun STREAMS support (module): no
> >   SQL support (module)        : no
> >   PACCT module (EXPERIMENTAL) : no
> >   MongoDB destination (module): yes
> >   JSON support (module)       : no
> >   SMTP support (module)       : no
> >   AMQP destination (module)   : yes
> >   STOMP destination (module)  : yes
> >   GEOIP support (module)      : no
> >   Redis support (module)      : no
> >   Riemann destination (module): no
> >   python                      : yes (pkg-config package: python)
> >   java                        : no
> >
> > I go ahead to execute "make" and "make install" without error. But I 
> > don't see the "java-modules" directory is created in 
> > /usr/local/lib/syslog-ng directory.
> > When I include the following declaration in my syslog-ng.conf to 
> > start syslog-ng, I got the following error:
> > [2016-02-20T05:46:59.039466] Plugin module not found in 
> > 'module-path'; module-path='/usr/local/lib/syslog-ng', module='mod-java'
> >
> > Why Java modules is not included? What steps am I missing?
> > Any help is appreciated
> >
> > Ming
> >
> >
> >
> > ____________________________________________________________________
> > __
> > ________ Member info:
> > https://lists.balabit.hu/mailman/listinfo/syslog-ng
> > Documentation:
> > http://www.balabit.com/support/documentation/?product=syslog-ng
> > FAQ: http://www.balabit.com/wiki/syslog-ng-faq
> >
> >
> >
> -------------- next part -------------- An HTML attachment was 
> scrubbed...
> URL:
> http://lists.balabit.hu/pipermail/syslog-ng/attachments/20160220/e2a92
> c57/attachment.html
>
> ------------------------------
>
> Message: 2
> Date: Sat, 20 Feb 2016 11:24:24 +0100
> From: ?rp?d Magos?nyi <mag at magwas.rulez.org>
> Subject: [syslog-ng] ECONNREFUSED on /dev/log
> To: syslog-ng at lists.balabit.hu
> Message-ID: <56C83ED8.4080305 at magwas.rulez.org>
> Content-Type: text/plain; charset=utf-8
>
> Hi!
>
> "strace logger hello" output contains this line:
> connect(3, {sa_family=AF_LOCAL, sun_path="/dev/log"}, 110) = -1 
> ECONNREFUSED (Connection refused)
>
> I see logs in /dev/xconsole, just cannot emit a log line with logger.
> What could be the cause?
>
> additional info:
>
> # cat /etc/syslog-ng/syslog-ng.conf
> @version: 3.3
> @include "scl.conf"
> # First, set some global options.
> options { chain_hostnames(off); flush_lines(0); use-dns(persist_only); 
> dns-cache-hosts(/etc/hosts);use_fqdn(no);
>       owner("root"); group("adm"); perm(0640); stats_freq(0); 
> time_reap(1000);
>       bad_hostname("^gconfd$");
> };
> source s_src {
>        system();
>        internal();
> };
>
> #destination d_net { tcp("91.143.88.140" port(10000)
> tls(ca-dir("/etc/ssl") cert-file("/etc/ssl/newcert.pem")
> key_file("/etc/ssl/private/newkey.pem") )); }; destination d_net { tcp("
> infra.edemokraciagep.org" port(10000)
> tls(ca-dir("/etc/ssl") peer-verify(optional-untrusted))); };
>
> destination d_messages { file("/var/log/messages");};
>
> destination d_xconsole { pipe("/dev/xconsole"); }; destination 
> d_apache_console { pipe("/dev/apacheconsole"); };
>
>
> filter apache_log { program("apache"); }; filter non_apache_log { not 
> program("apache"); };
>
> destination d_vhost_gepnarancs { file("/var/log/vhost_gepnarancs"); }; 
> filter f_gepnarancs { program("apache:php:gepnarancs") or 
> message("gepnarancs"); }; log { source(s_src); filter(f_gepnarancs); 
> destination(d_vhost_gepnarancs); };
>
> log { source(s_src); destination(d_messages); };
>
> log { source(s_src); filter(non_apache_log) ; destination(d_xconsole); 
> };
>
> log { source(s_src); filter(apache_log); 
> destination(d_apache_console); };
>
> log { source(s_src); destination(d_net); };
>
> @include "/etc/syslog-ng/conf.d/"
>
> ---------------------------------
> # lsof |grep /dev/xconsole
> syslog-ng  2608            root   15u     FIFO                0,5
> 0t0      19564 /dev/xconsole
> cat        2641            root    3r     FIFO                0,5
> 0t0      19564 /dev/xconsole
> ---------------------------------
> # lsof |grep /dev/log
> [no output]
> ---------------------------------
> # dpkg -l syslog-ng
> Desired=Unknown/Install/Remove/Purge/Hold
> |
>
> Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Tri
> g-pend
> |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
> ||/ Name
> Version                       Architecture                  Description
> +++-================================================-=================
> +++== 
> +++==========-=============================-==========================
> +++== 
> +++===================================================================
> +++==
> +++=====
> ii  syslog-ng
> 3.5.6-2                       all                           Enhanced
> system logging daemon (metapackage)
> --------------------------------
> # ls -l /dev/log
> srw-rw-rw- 1 root root 0 Feb 20 11:03 /dev/log
> --------------------------------
>
>
>
> ------------------------------
>
> _______________________________________________
> syslog-ng maillist  -  syslog-ng at lists.balabit.hu 
> https://lists.balabit.hu/mailman/listinfo/syslog-ng
>
>
> End of syslog-ng Digest, Vol 130, Issue 27
> ******************************************
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20160223/168d90d2/attachment-0001.htm 

------------------------------

Message: 2
Date: Tue, 23 Feb 2016 16:48:35 +0000
From: Girish Kumar <girish.kumar at al-enterprise.com>
Subject: Re: [syslog-ng] Cross Compiling syslog-ng 3.7.2 on power-pc
	architecture
To: Syslog-ng users' and developers' mailing list
	<syslog-ng at lists.balabit.hu>
Message-ID:
	<AM2PR08MB0177E517A4E3FAF5A6034DDEC0A40 at AM2PR08MB0177.eurprd08.prod.outlook.com>
	
Content-Type: text/plain; charset="iso-8859-1"

Please let me know whether comment on following line has no impact(below mail).
After compilation and install is done. I am copying the following to ramdisk path. Meaning this will be present in my host system.
Please let me know if this is fine or anything else has to copied

cp -rf / % INSTALL PATH% /lib/syslog-ng / %RAMDISK PATH% /lib   //complete directory is copied
cp -f / % INSTALL PATH% /lib/libsyslog-ng-3.7.so.0 / %RAMDISK PATH% /lib cp -f / % INSTALL PATH% /sbin/syslog-ng / %RAMDISK PATH% /sbin cp -f / % INSTALL PATH% /etc/syslog-ng.conf / %RAMDISK PATH% /etc/

Regards,
Girish

-----Original Message-----
From: Girish Kumar
Sent: Monday, February 22, 2016 4:50 PM
To: 'Syslog-ng users' and developers' mailing list'
Subject: RE: [syslog-ng] Cross Compiling syslog-ng 3.7.2 on power-pc architecture

Thanks Chris for the information.

I commented following line in "syslog-ng-3.7.2/ltmain.sh" (at line 2967). With this my make install worked fine. Please let me know if this is ok to comment

test "$inst_prefix_dir" = "$destdir" && \
    #func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"


I will explain my Makefile

configure  --prefix=/ --host=$(CCPREFIX) --disable-python  --disable-json --enable-ssl --enable-glib make make install prefix=$(BUILT_BASE)

Here BUILT_BASE= /home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-gg/engr/sw/tps/built/46/7.X.X.R01/ppc_common
As I  am cross compiling, this is the path in my build system After compilation generated exe and lib are copied to ramdisk path

Regards,
Girish


-----Original Message-----
From: syslog-ng-bounces at lists.balabit.hu [mailto:syslog-ng-bounces at lists.balabit.hu] On Behalf Of Herzig, Christian
Sent: Friday, February 19, 2016 5:56 PM
To: 'Syslog-ng users' and developers' mailing list'
Subject: Re: [syslog-ng] Cross Compiling syslog-ng 3.7.2 on power-pc architecture

Hi Girish,

%PATH-TO-POWERPC-ROOTFS% is a path. In my setup, (I'm using the eldk from denx), the powerpc's rootfs is mounted over nfs to /opt/eldk/ppc_6xx.

For eventlog:
./configure --host=powerpc-linux-gnu
make
DESTDIR=/opt/eldk/ppc_6xx/ make install

For syslog-ng 3.7.2:
./configure --host=powerpc-linux-gnu --with-libtool-sysroot=/opt/eldk/ppc_6xx/
make
DESTDIR=/opt/eldk/ppc_6xx/ make install

What is your prefix? Try with the default prefix for eventlog and syslog-ng.
Is /sw/tps/built/46/7.X.X.R01/ppc_common/ the path on your host machine to your target rootfs?

Cheers,
Chris

-----Original Message-----
From: syslog-ng-bounces at lists.balabit.hu [mailto:syslog-ng-bounces at lists.balabit.hu] On Behalf Of Girish Kumar
Sent: Thursday, February 18, 2016 4:40 PM
To: Syslog-ng users' and developers' mailing list
Subject: Re: [syslog-ng] Cross Compiling syslog-ng 3.7.2 on power-pc architecture

Hi Chris,

Could you please let me know  what is /%PATH-TO-POWERPC-ROOTFS%/ Is it flag or path.

In my case my lib path is  "/sw/tps/built/46/7.X.X.R01/ppc_common/lib"
Should I replace with that?

Regards,
Girish

-----Original Message-----
From: syslog-ng-bounces at lists.balabit.hu [mailto:syslog-ng-bounces at lists.balabit.hu] On Behalf Of Herzig, Christian
Sent: Thursday, February 18, 2016 7:44 PM
To: 'Syslog-ng users' and developers' mailing list'
Subject: Re: [syslog-ng] Cross Compiling syslog-ng 3.7.2 on power-pc architecture

Hi Girish

I've successfully cross-compiled syslog-ng 3.7.2 for powerpc using:
$ ./configure --host=powerpc-linux-gnu --with-libtool-sysroot=/%PATH-TO-POWERPC-ROOTFS%/
$ make
$ DESTDIR=/%PATH-TO-POWERPC-ROOTFS% make install

Cheers, Chris

From: syslog-ng-bounces at lists.balabit.hu [mailto:syslog-ng-bounces at lists.balabit.hu] On Behalf Of Girish Kumar
Sent: Thursday, February 18, 2016 2:54 PM
To: Syslog-ng users' and developers' mailing list
Subject: [syslog-ng] Cross Compiling syslog-ng 3.7.2 on power-pc architecture

Hi All,

I ?am successful in configure ??and? make . All compilation is successful.
"Make install "is giving following problem. Could you please help me on this

Is there any workaround for this?

/bin/mkdir -p '/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-gg/engr/sw/tps/built/46/7.X.X.R01/ppc_common/lib/syslog-ng'
/bin/sh ./libtool?? --mode=install /usr/bin/install -c?? modules/syslogformat/libsyslogformat.la modules/afsocket/libafsocket.la modules/affile/libaffile.la modules/afprog/libafprog.la modules/afuser/libafuser.la modules/afamqp/libafamqp.la modules/afmongodb/libafmongodb.la modules/csvparser/libcsvparser.la modules/confgen/libconfgen.la modules/system-source/libsystem-source.la modules/linux-kmsg-format/liblinux-kmsg-format.la modules/basicfuncs/libbasicfuncs.la modules/cryptofuncs/libcryptofuncs.la modules/dbparser/libdbparser.la modules/afstomp/libafstomp.la modules/pseudofile/libpseudofile.la modules/graphite/libgraphite.la modules/systemd-journal/libsdjournal.la modules/kvformat/libkvformat.la '/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-gg/engr/sw/tps/built/46/7.X.X.R01/ppc_common/lib/syslog-ng'
libtool: install: error: cannot install `modules/syslogformat/libsyslogformat.la' to a directory not ending in //lib/syslog-ng
make[5]: *** [install-moduleLTLIBRARIES] Error 1
make[4]: *** [install-am] Error 2
make[3]: *** [install-recursive] Error 1
make[2]: *** [install] Error 2
make[2]: Leaving directory `/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-gg/engr/sw/tps/objs/46/7.X.X.R01/ppc_common/syslog-ng'
make[1]: *** [/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-gg/engr/sw/tps/built/46/7.X.X.R01/ppc_common/sbin/syslog-ng] Error 2
make[1]: Leaving directory `/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-gg/engr/sw/tps'
make: *** [tps-build] Error 2

Regards,
Girish
______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq

______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq

______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq



------------------------------

_______________________________________________
syslog-ng maillist  -  syslog-ng at lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng


End of syslog-ng Digest, Vol 130, Issue 35
******************************************



More information about the syslog-ng mailing list