[prev in list] [next in list] [prev in thread] [next in thread]
List: syslog-ng
Subject: Re: [syslog-ng] [libsyslog_ng_la-afinter.lo] Error 1, syslog-ng-3.4.1 on x86_64
From: Balazs Scheidler <bazsi77 () gmail ! com>
Date: 2013-06-15 5:22:21
Message-ID: CAKcfE+b7d186Tqy-NuA_gGdMU-7WT2rrJPykmV88uyp941Pfig () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
As it seems syslog-ng is not linked against the eventlog library. The
includes are there. But event log has .pc files too, why aren't you using
those?
On Jun 12, 2013 7:09 AM, "fblubr" <fblubr@gmail.com> wrote:
>
> HI, thx, indeed your suggestion worked like a charm,
> [export PKG_CONFIG_PATH=/apps/cactiprod/syslog-ng/glib/lib/pkgconfig]
> but another error shows up, configure runs fine as follows:
> ./configure --prefix=/apps/cactiprod/syslog-ng/syslog-ng --enable-ipv6
> --enable-sql --build=x86_64-pc-linux-gnu --host=i686-pc-linux-gnu
> rabbitmq-c build options:
> Host: i686-pc-linux-gnu
> Version: 0.2.0
> 64-bit: no
> Tools: no
> Documentation: no
>
> syslog-ng Open Source Edition 3.4.2 configured
> Compiler options:
> compiler : gcc -std=gnu99
> compiler options : -I/apps/cactiprod/mariadb/include/mysql
> -Wall -pthread -pthread
> -I/apps/cactiprod/syslog-ng/glib/include/glib-2.0
> -I/apps/cactiprod/syslog-ng/glib/lib/glib-2.0/include
> -I/apps/cactiprod/syslog-ng/eventlog/include/eventlog/
> -I/apps/cactiprod/syslog-ng/libdbi/include/
> -I$(top_srcdir)/lib/ivykis/src/include
> -I$(top_builddir)/lib/ivykis/src/include -D_GNU_SOURCE
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> linker flags : -L/apps/cactiprod/mariadb/lib
> prefix : /apps/cactiprod/syslog-ng/syslog-ng
> linking mode : dynamic
> embedded crypto : no
> __thread keyword : yes
> Submodules:
> ivykis : internal
> libmongo-client : internal
> librabbitmq : internal
> Features:
> Debug symbols : no
> GCC profiling : no
> Memtrace : no
> IPV6 support : yes
> spoof-source support : no
> tcp-wrapper support : no
> Linux capability support : yes
> PCRE support : no
> Env wrapper support : no
> systemd support : no (unit dir: none)
> Modules:
> Module search path :
> /apps/cactiprod/syslog-ng/syslog-ng/lib/syslog-ng
> Sun STREAMS support (module): no
> SSL support (module) : no
> SQL support (module) : yes
> PACCT module (EXPERIMENTAL) : no
> MongoDB destination (module): yes
> JSON support (module) : no
> SMTP support (module) : no
> AMQP destination (module) : yes
> GEOIP support (module) : no
> -----
> but "make" is failing:
> patternize.c:(.text+0x10d8): undefined reference to `evt_tag_int'
> ../../../lib/.libs/libsyslog-ng.so: undefined reference to
> `evt_rec_get_syslog_pri'
> ../../../lib/.libs/libsyslog-ng.so: undefined reference to `evt_format'
> ../../../lib/.libs/libsyslog-ng.so: undefined reference to `evt_ctx_init'
> ../../../lib/.libs/libsyslog-ng.so: undefined reference to `evt_rec_init'
> ../../../lib/.libs/libsyslog-ng.so: undefined reference to
> `evt_rec_add_tag'
> ../../../lib/.libs/libsyslog-ng.so: undefined reference to `evt_ctx_free'
> ../../../lib/.libs/libsyslog-ng.so: undefined reference to `evt_tag_printf'
> ../../../lib/.libs/libsyslog-ng.so: undefined reference to `evt_rec_free'
> ../../../lib/.libs/libsyslog-ng.so: undefined reference to
> `evt_rec_add_tagsv'
> collect2: ld returned 1 exit status
> make[5]: *** [pdbtool] Error 1
> make[5]: Leaving directory
> `/apps/cactiprod/syslog-ng/syslog-ng-3.4.2/modules/dbparser/pdbtool'
> make[4]: *** [all-recursive] Error 1
> make[4]: Leaving directory
> `/apps/cactiprod/syslog-ng/syslog-ng-3.4.2/modules/dbparser'
> make[3]: *** [all] Error 2
> make[3]: Leaving directory
> `/apps/cactiprod/syslog-ng/syslog-ng-3.4.2/modules/dbparser'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> `/apps/cactiprod/syslog-ng/syslog-ng-3.4.2/modules'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/apps/cactiprod/syslog-ng/syslog-ng-3.4.2'
> make: *** [all] Error 2
> ---
> Config.log
> http://pastebin.com/n4kQGsTW
> Output of make:
> http://pastebin.com/bdbWvxe5
> Please advice.
>
> Regards
> Michal
>
>
> On 06/09/2013 11:17 AM, Balazs Scheidler wrote:
> >
> > Glib has two include directories one under $prefix/lib/glib-2.0 the
> > other under $prefix/include
> >
> > Try exporting both in GLIB_CFLAGS.
> >
> > BTW why aren't you using pkg-config?
> >
> > Setting PKG_CONFIG_PATH should find the .pc file properly. And that
> > contains all the required information.
> >
> > On Jun 7, 2013 12:51 PM, "Flur Blubr" <fblubr@gmail.com
> > <mailto:fblubr@gmail.com>> wrote:
> >
> > Hi, thx for response,
> > I have tryid to rm -f all and build all dependencies again, well
> > no an guru but this is how it looks like and I cant see there any
> > mismatch:
> > pwd
> > /apps/cactiprod/syslog-ng/syslog-ng-3.4.2
> > ls
> > eventlog glib libnet syslog-ng
> > eventlog-0.2.12 glib-2.15.4 libnet-1.2-rc2
> > syslog-ng-3.4.2
> > eventlog_0.2.12.tar.gz glib-2.15.4.tar.gz libnet-1.2-rc2.tar.gz
> > syslog-ng_3.4.2.tar.gz
> > Eventlog, Glib, Libnet compiled from scratch and exported:
> >
> > export
> > EVTLOG_CFLAGS=-I/apps/cactiprod/syslog-ng/eventlog/include/eventlog/
> >
> > export EVTLOG_LIBS="-L/apps/cactiprod/syslog-ng/eventlog/lib/"
> >
> > export LIBNET_LIBS="-L/apps/cactiprod/syslog-ng/libnet/lib"
> >
> > export LIBNET_CFLAGS=-I/apps/cactiprod/syslog-ng/libnet/include/
> >
> > This is is how my export of "problematic" glib looks like:
> >
> > export
> > GLIB_CFLAGS=I/apps/cactiprod/syslog-ng/glib/lib/glib-2.0/include/
> >
> > export GLIB_LIBS="-L/apps/cactiprod/syslog-ng/glib/lib"
> >
> > - and the missing glibconfig.h is here:
> >
> > ls /apps/cactiprod/syslog-ng/glib/lib/glib-2.0/include
> > glibconfig.h
> >
> > ls /apps/cactiprod/syslog-ng/glib/lib
> > glib-2.0 libglib-2.0.so <http://libglib-2.0.so>
> > libgmodule-2.0.so.0.1504.0 libgthread-2.0.so
> > <http://libgthread-2.0.so>
> > libgio-2.0.la <http://libgio-2.0.la> libglib-2.0.so.0
> > libgobject-2.0.la <http://libgobject-2.0.la> libgthread-2.0.so.0
> > libgio-2.0.so <http://libgio-2.0.so> libglib-2.0.so.0.1504.0
> > libgobject-2.0.so <http://libgobject-2.0.so>
> > libgthread-2.0.so.0.1504.0
> > libgio-2.0.so.0 libgmodule-2.0.la <http://libgmodule-2.0.la>
> > libgobject-2.0.so.0 pkgconfig
> > libgio-2.0.so.0.0.0 libgmodule-2.0.so <http://libgmodule-2.0.so>
> > libgobject-2.0.so.0.1504.0
> > libglib-2.0.la <http://libglib-2.0.la> libgmodule-2.0.so.0
> > libgthread-2.0.la <http://libgthread-2.0.la>
> >
> > ./configure --prefix=/apps/cactiprod/syslog-ng/syslog-ng
> >
> > checking for GLIB... yes
> > checking for g_mapped_file_unref... no
> > checking sanity checking Glib headers... no
> > configure: error: Glib headers inconsistent with current compiler
> > setting. You might be using 32 bit Glib with a 64 bit compiler,
> > check PKG_CONFIG_PATH
> >
> > FAIL
> > --
> >
> > Another try with "compiler tunning":
> >
> > ./configure --prefix=/apps/cactiprod/syslog-ng/syslog-ng
> > --build=x86_64-pc-linux-gnu --host=i686-pc-linux-gnu
> >
> > Will pass ./configure stage:
> >
> > syslog-ng Open Source Edition 3.4.2 configured
> > Compiler options:
> > compiler : gcc -std=gnu99
> > compiler options : -g -O2 -Wall -pthread
> > I/apps/cactiprod/syslog-ng/glib/lib/glib-2.0/include/
> > -I/apps/cactiprod/syslog-ng/eventlog/include/eventlog/
> > -I$(top_srcdir)/lib/ivykis/src/include
> > -I$(top_builddir)/lib/ivykis/src/include -D_GNU_SOURCE
> > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> > linker flags :
> > prefix : /apps/cactiprod/syslog-ng/syslog-ng
> > linking mode : dynamic
> > embedded crypto : no
> > __thread keyword : yes
> > Submodules:
> > ivykis : internal
> > libmongo-client : internal
> > librabbitmq : internal
> > Features:
> > Debug symbols : no
> > GCC profiling : no
> > Memtrace : no
> > IPV6 support : yes
> > spoof-source support : no
> > tcp-wrapper support : no
> > Linux capability support : yes
> > PCRE support : yes
> > Env wrapper support : no
> > systemd support : no (unit dir: none)
> > Modules:
> > Module search path :
> > /apps/cactiprod/syslog-ng/syslog-ng/lib/syslog-ng
> > Sun STREAMS support (module): no
> > SSL support (module) : yes
> > SQL support (module) : no
> > PACCT module (EXPERIMENTAL) : no
> > MongoDB destination (module): yes
> > JSON support (module) : no
> > SMTP support (module) : no
> > AMQP destination (module) : yes
> > GEOIP support (module) : no
> >
> > ---
> >
> > but make fails in the same way as previous attempt.
> >
> > cat makelog.txt | grep gint
> > atomic.h:31: error: expected specifier-qualifier-list before 'gint'
> > atomic.h:69: error: expected declaration specifiers or '...'
> > before 'gint'
> > logstamp.h:45: error: expected declaration specifiers or '...'
> > before 'gint'
> > logstamp.h:45: error: expected declaration specifiers or '...'
> > before 'gint'
> > logstamp.h:46: error: expected declaration specifiers or '...'
> > before 'gint'
> > logstamp.h:46: error: expected declaration specifiers or '...'
> > before 'gint'
> > nvtable.h:55: error: expected specifier-qualifier-list before 'gint'
> > nvtable.h:221: error: expected declaration specifiers or '...'
> > before 'gint'
> > logtransport.h:35: error: expected specifier-qualifier-list before
> > 'gint'
> > logtransport.h:54: error: expected declaration specifiers or '...'
> > before 'gint'
> > logmsg.h:141: error: expected specifier-qualifier-list before 'gint'
> > logmsg.h:230: error: expected declaration specifiers or '...'
> > before 'gint'
> > logmsg.h:231: error: expected declaration specifiers or '...'
> > before 'gint'
> > templates.h:48: error: expected specifier-qualifier-list before
> 'gint'
> > templates.h:120: error: expected specifier-qualifier-list before
> > 'gint'
> > templates.h:142: error: expected specifier-qualifier-list before
> > 'gint'
> > templates.h:146: error: expected declaration specifiers or '...'
> > before 'gint'
> > templates.h:192: error: expected declaration specifiers or '...'
> > before 'gint'
> > templates.h:192: error: expected declaration specifiers or '...'
> > before 'gint32'
> > templates.h:193: error: expected declaration specifiers or '...'
> > before 'gint'
> > templates.h:193: error: expected declaration specifiers or '...'
> > before 'gint32'
> > templates.h:194: error: expected declaration specifiers or '...'
> > before 'gint'
> > templates.h:194: error: expected declaration specifiers or '...'
> > before 'gint'
> > templates.h:194: error: expected declaration specifiers or '...'
> > before 'gint32'
> > templates.h:195: error: expected declaration specifiers or '...'
> > before 'gint'
> > templates.h:195: error: expected declaration specifiers or '...'
> > before 'gint'
> > templates.h:195: error: expected declaration specifiers or '...'
> > before 'gint32'
> > cfg-lexer.h:62: error: expected specifier-qualifier-list before
> 'gint'
> > cfg-lexer.h:94: error: expected declaration specifiers or '...'
> > before 'gint'
> > cfg-lexer.h:172: error: expected declaration specifiers or '...'
> > before 'gint'
> > cfg-tree.h:99: error: expected specifier-qualifier-list before
> > 'gint16'
> > cfg-tree.h:161: error: expected declaration specifiers or '...'
> > before 'gint'
> > cfg-parser.h:36: error: expected specifier-qualifier-list before
> > 'gint'
> > cfg.h:56: error: expected specifier-qualifier-list before 'gint'
> > cfg.h:123: error: expected declaration specifiers or '...' before
> > 'gint'
> > cfg.h:130: error: expected declaration specifiers or '...' before
> > 'gint'
> > cfg.h:134: error: expected declaration specifiers or '...' before
> > 'gint'
> > logpipe.h:211: error: expected specifier-qualifier-list before
> > 'gint32'
> > logpipe.h:238: error: expected declaration specifiers or '...'
> > before 'gint'
> > logpipe.h:337: error: expected declaration specifiers or '...'
> > before 'gint'
> > stats.h:82: error: expected specifier-qualifier-list before 'gint'
> > stats.h:127: error: expected declaration specifiers or '...'
> > before 'gint'
> > logqueue.h:41: error: expected specifier-qualifier-list before 'gint'
> > logqueue.h:106: error: expected declaration specifiers or '...'
> > before 'gint'
> > logqueue.h:126: error: expected declaration specifiers or '...'
> > before 'gint'
> > driver.h:135: error: expected specifier-qualifier-list before 'gint'
> > logsource.h:34: error: expected specifier-qualifier-list before
> 'gint'
> > logsource.h:90: error: expected declaration specifiers or '...'
> > before 'gint'
> > logsource.h:90: error: expected declaration specifiers or '...'
> > before 'gint'
> > logreader.h:59: error: expected declaration specifiers or '...'
> > before 'gint'
> > logreader.h:59: error: expected declaration specifiers or '...'
> > before 'gint'
> > logreader.h:63: error: expected declaration specifiers or '...'
> > before 'gint'
> > logreader.h:63: error: expected declaration specifiers or '...'
> > before 'gint'
> > afinter.c:90: error: expected specifier-qualifier-list before 'gint'
> > ---
> >
> > cat makelog.txt | grep glib.
> >
> >
> > /bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99
> > -DHAVE_CONFIG_H -I. -I..
> > I/apps/cactiprod/syslog-ng/glib/lib/glib-2.0/include/
> > -I/apps/cactiprod/syslog-ng/eventlog/include/eventlog/
> > -I../lib/ivykis/src/include -I../lib/ivykis/src/include
> > -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
> > -Wall -pthread -MT libsyslog_ng_la-afinter.lo -MD -MP -MF
> > .deps/libsyslog_ng_la-afinter.Tpo -c -o libsyslog_ng_la-afinter.lo
> > `test -f 'afinter.c' || echo './'`afinter.c
> > libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..
> > I/apps/cactiprod/syslog-ng/glib/lib/glib-2.0/include/
> > -I/apps/cactiprod/syslog-ng/eventlog/include/eventlog/
> > -I../lib/ivykis/src/include -I../lib/ivykis/src/include
> > -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -Wall
> > -pthread -MT libsyslog_ng_la-afinter.lo -MD -MP -MF
> > .deps/libsyslog_ng_la-afinter.Tpo -c afinter.c -fPIC -DPIC -o
> > .libs/libsyslog_ng_la-afinter.o
> > gcc: I/apps/cactiprod/syslog-ng/glib/lib/glib-2.0/include/: No
> > such file or directory
> > syslog-ng.h:39:18: error: glib.h: No such file or directory
> >
> > ---
> >
> > This one is complaining about missing glib.h so:
> >
> > find /apps/cactiprod/syslog-ng -name glib.h
> > /apps/cactiprod/syslog-ng/glib-2.15.4/glib/glib.h
> > /apps/cactiprod/syslog-ng/glib/include/glib-2.0/glib.h
> >
> > - Another export to try:
> >
> > export GLIB_CFLAGS=I/apps/cactiprod/syslog-ng/glib/include/glib-2.0/
> >
> > and ./configure --prefix=/apps/cactiprod/syslog-ng/syslog-ng
> > --build=x86_64-pc-linux-gnu --host=i686-pc-linux-gnu
> >
> > will pass, then make is failing again with "glib.h: No such file
> > or directory:
> >
> > cat makelog.txt | grep glib
> >
> >
> > /bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99
> > -DHAVE_CONFIG_H -I. -I..
> > I/apps/cactiprod/syslog-ng/glib/include/glib-2.0/
> > -I/apps/cactiprod/syslog-ng/eventlog/include/eventlog/
> > -I../lib/ivykis/src/include -I../lib/ivykis/src/include
> > -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2
> > -Wall -pthread -MT libsyslog_ng_la-afinter.lo -MD -MP -MF
> > .deps/libsyslog_ng_la-afinter.Tpo -c -o libsyslog_ng_la-afinter.lo
> > `test -f 'afinter.c' || echo './'`afinter.c
> > libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..
> > I/apps/cactiprod/syslog-ng/glib/include/glib-2.0/
> > -I/apps/cactiprod/syslog-ng/eventlog/include/eventlog/
> > -I../lib/ivykis/src/include -I../lib/ivykis/src/include
> > -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2
> > -Wall -pthread -MT libsyslog_ng_la-afinter.lo -MD -MP -MF
> > .deps/libsyslog_ng_la-afinter.Tpo -c afinter.c -fPIC -DPIC -o
> > .libs/libsyslog_ng_la-afinter.o
> > gcc: I/apps/cactiprod/syslog-ng/glib/include/glib-2.0/: No such
> > file or directory
> > syslog-ng.h:39:18: error: glib.h: No such file or directory
> >
> >
> > I am missing something trivial? Dooing everything as root so it
> > shouldnt be a permission problem. For many many days without
> > sucess. Any hints are always wellcome!
> >
> > Thx for your support
> >
> > Regards
> >
> > Michal
> >
> >
> >
> > 2013/6/6 Balazs Scheidler <bazsi77@gmail.com
> > <mailto:bazsi77@gmail.com>>
> >
> > Hmmm that line misses the definition of gint, which is a very
> > basic int type provided by glib.
> >
> > Wild guess: are you sure glibconfig.h is reachable by
> > syslog-ng via -I options? Is it pulling the proper file?
> >
> > On May 31, 2013 6:46 AM, "Flur Blubr" <fblubr@gmail.com
> > <mailto:fblubr@gmail.com>> wrote:
> >
> > Dear all,
> > looking for help, for 4 days trying to compile
> > syslog-ng-3.4.1 on some kind of custom RED HAT
> > derivate and still failing. RPMs and YUM are forbidden and
> > system has libraries spread around all directories / using
> > exports export EVTLOG_CFLAGS, export EVTLOG_LIBS, export
> > GLIB_CFLAGS, export GLIB_LIBS to overwrite PKG CONFIG .
> > uname -a
> > Linux 2.6.32-279.1.1.el6.x86_64 #1 SMP Wed Jun 20 11:41:22
> > EDT 2012 x86_64 x86_64 x86_64 GNU/Linux
> > cat /etc/redhat-release
> > Red Hat Enterprise Linux Server release 6.3 (Santiago)
> > Configuration:
> >
> > ./configure --prefix=/my-prefix/syslog-ng --enable-sql
> > --enable-ipv6 --enable-dynamic-linking
> > --build=x86_64-pc-linux-gnu --host=i686-pc-linux-gnu
> > --enable-shared --disable-static CFLAGS=-O2
> >
> > Getting this:
> > syslog-ng Open Source Edition 3.4.1 configured
> > Compiler options:
> > compiler : gcc -std=gnu99
> > compiler options : -O2 -Wall -pthread
> > -I/my-prefix/sources/glib-2.15.4/
> > -I/my-prefix/eventlog/include/eventlog/
> > -I$(top_srcdir)/lib/ivykis/src/include
> > -I$(top_builddir)/lib/ivykis/src/include -D_GNU_SOURCE
> > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> > linker flags :
> > prefix : /my-prefix/syslog-ng
> > linking mode : dynamic
> > embedded crypto : no
> > __thread keyword : yes
> > Submodules:
> > ivykis : internal
> > libmongo-client : internal
> > librabbitmq : internal
> > Features:
> > Debug symbols : no
> > GCC profiling : no
> > Memtrace : no
> > IPV6 support : yes
> > spoof-source support : no
> > tcp-wrapper support : no
> > Linux capability support : yes
> > PCRE support : yes
> > Env wrapper support : no
> > systemd support : no (unit dir: none)
> > Modules:
> > Module search path :
> > /my-prefix/syslog-ng/lib/syslog-ng
> > Sun STREAMS support (module): no
> > SSL support (module) : yes
> > SQL support (module) : yes
> > PACCT module (EXPERIMENTAL) : no
> > MongoDB destination (module): yes
> > JSON support (module) : no
> > SMTP support (module) : no
> > AMQP destination (module) : yes
> > GEOIP support (module) : no
> > But make is failing no matter what I do:
> > afinter.c: At top level:
> > afinter.c:385: error: expected ')' before 'mark_freq'
> > afinter.c: In function 'afinter_message_posted':
> > afinter.c:404: error: 'internal_msg_lock' undeclared
> > (first use in this function)
> > afinter.c:405: error: 'internal_msg_queue' undeclared
> > (first use in this function)
> > afinter.c:407: warning: implicit declaration of function
> > 'g_queue_new'
> > afinter.c:409: warning: implicit declaration of function
> > 'g_queue_push_tail'
> > afinter.c:411: error: 'AFInterSource' has no member named
> > 'post'
> > afinter.c: At top level:
> > afinter.c:416: error: expected ')' before 'hook_type'
> > afinter.c: In function 'afinter_global_init':
> > afinter.c:424: warning: implicit declaration of function
> > 'register_application_hook'
> > afinter.c:424: error: 'afinter_register_posted_hook'
> > undeclared (first use in this function)
> > make[4]: *** [libsyslog_ng_la-afinter.lo] Error 1
> > make[4]: Leaving directory `/my-prefix/syslog-ng-3.4.1/lib'
> > make[3]: *** [all-recursive] Error 1
> > make[3]: Leaving directory `/my-prefix/syslog-ng-3.4.1/lib'
> > make[2]: *** [all] Error 2
> > make[2]: Leaving directory `/my-prefix/syslog-ng-3.4.1/lib'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/my-prefix/syslog-ng-3.4.1'
> > make: *** [all] Error 2
> > Can somebody advice?
> > Thx for your time.
> > Regards
> > Michal
> >
> >
> ______________________________________________________________________________
> > 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
> >
> >
> >
> >
> >
> ______________________________________________________________________________
> > 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
>
>
[Attachment #5 (text/html)]
<p dir="ltr">As it seems syslog-ng is not linked against the eventlog library. The \
includes are there. But event log has .pc files too, why aren't you using \
those?</p> <div class="gmail_quote">On Jun 12, 2013 7:09 AM, "fblubr" \
<<a href="mailto:fblubr@gmail.com">fblubr@gmail.com</a>> wrote:<br \
type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"> <br>
HI, thx, indeed your suggestion worked like a charm,<br>
[export PKG_CONFIG_PATH=/apps/cactiprod/syslog-ng/glib/lib/pkgconfig]<br>
but another error shows up, configure runs fine as follows:<br>
./configure --prefix=/apps/cactiprod/syslog-ng/syslog-ng --enable-ipv6<br>
--enable-sql --build=x86_64-pc-linux-gnu --host=i686-pc-linux-gnu<br>
rabbitmq-c build options:<br>
Host: i686-pc-linux-gnu<br>
Version: 0.2.0<br>
64-bit: no<br>
Tools: no<br>
Documentation: no<br>
<br>
syslog-ng Open Source Edition 3.4.2 configured<br>
Compiler options:<br>
compiler : gcc -std=gnu99<br>
compiler options : -I/apps/cactiprod/mariadb/include/mysql<br>
-Wall -pthread -pthread<br>
-I/apps/cactiprod/syslog-ng/glib/include/glib-2.0<br>
-I/apps/cactiprod/syslog-ng/glib/lib/glib-2.0/include<br>
-I/apps/cactiprod/syslog-ng/eventlog/include/eventlog/<br>
-I/apps/cactiprod/syslog-ng/libdbi/include/<br>
-I$(top_srcdir)/lib/ivykis/src/include<br>
-I$(top_builddir)/lib/ivykis/src/include -D_GNU_SOURCE<br>
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64<br>
linker flags : -L/apps/cactiprod/mariadb/lib<br>
prefix : /apps/cactiprod/syslog-ng/syslog-ng<br>
linking mode : dynamic<br>
embedded crypto : no<br>
__thread keyword : yes<br>
Submodules:<br>
ivykis : internal<br>
libmongo-client : internal<br>
librabbitmq : internal<br>
Features:<br>
Debug symbols : no<br>
GCC profiling : no<br>
Memtrace : no<br>
IPV6 support : yes<br>
spoof-source support : no<br>
tcp-wrapper support : no<br>
Linux capability support : yes<br>
PCRE support : no<br>
Env wrapper support : no<br>
systemd support : no (unit dir: none)<br>
Modules:<br>
Module search path :<br>
/apps/cactiprod/syslog-ng/syslog-ng/lib/syslog-ng<br>
Sun STREAMS support (module): no<br>
SSL support (module) : no<br>
SQL support (module) : yes<br>
PACCT module (EXPERIMENTAL) : no<br>
MongoDB destination (module): yes<br>
JSON support (module) : no<br>
SMTP support (module) : no<br>
AMQP destination (module) : yes<br>
GEOIP support (module) : no<br>
-----<br>
but "make" is failing:<br>
patternize.c:(.text+0x10d8): undefined reference to `evt_tag_int'<br>
../../../lib/.libs/libsyslog-ng.so: undefined reference to<br>
`evt_rec_get_syslog_pri'<br>
../../../lib/.libs/libsyslog-ng.so: undefined reference to `evt_format'<br>
../../../lib/.libs/libsyslog-ng.so: undefined reference to `evt_ctx_init'<br>
../../../lib/.libs/libsyslog-ng.so: undefined reference to `evt_rec_init'<br>
../../../lib/.libs/libsyslog-ng.so: undefined reference to `evt_rec_add_tag'<br>
../../../lib/.libs/libsyslog-ng.so: undefined reference to `evt_ctx_free'<br>
../../../lib/.libs/libsyslog-ng.so: undefined reference to `evt_tag_printf'<br>
../../../lib/.libs/libsyslog-ng.so: undefined reference to `evt_rec_free'<br>
../../../lib/.libs/libsyslog-ng.so: undefined reference to<br>
`evt_rec_add_tagsv'<br>
collect2: ld returned 1 exit status<br>
make[5]: *** [pdbtool] Error 1<br>
make[5]: Leaving directory<br>
`/apps/cactiprod/syslog-ng/syslog-ng-3.4.2/modules/dbparser/pdbtool'<br>
make[4]: *** [all-recursive] Error 1<br>
make[4]: Leaving directory<br>
`/apps/cactiprod/syslog-ng/syslog-ng-3.4.2/modules/dbparser'<br>
make[3]: *** [all] Error 2<br>
make[3]: Leaving directory<br>
`/apps/cactiprod/syslog-ng/syslog-ng-3.4.2/modules/dbparser'<br>
make[2]: *** [all-recursive] Error 1<br>
make[2]: Leaving directory<br>
`/apps/cactiprod/syslog-ng/syslog-ng-3.4.2/modules'<br>
make[1]: *** [all-recursive] Error 1<br>
make[1]: Leaving directory `/apps/cactiprod/syslog-ng/syslog-ng-3.4.2'<br>
make: *** [all] Error 2<br>
---<br>
Config.log<br>
<a href="http://pastebin.com/n4kQGsTW" \
target="_blank">http://pastebin.com/n4kQGsTW</a><br> Output of make:<br>
<a href="http://pastebin.com/bdbWvxe5" \
target="_blank">http://pastebin.com/bdbWvxe5</a><br> Please advice.<br>
<br>
Regards<br>
Michal<br>
<br>
<br>
On 06/09/2013 11:17 AM, Balazs Scheidler wrote:<br>
><br>
> Glib has two include directories one under $prefix/lib/glib-2.0 the<br>
> other under $prefix/include<br>
><br>
> Try exporting both in GLIB_CFLAGS.<br>
><br>
> BTW why aren't you using pkg-config?<br>
><br>
> Setting PKG_CONFIG_PATH should find the .pc file properly. And that<br>
> contains all the required information.<br>
><br>
> On Jun 7, 2013 12:51 PM, "Flur Blubr" <<a \
href="mailto:fblubr@gmail.com">fblubr@gmail.com</a><br> > <mailto:<a \
href="mailto:fblubr@gmail.com">fblubr@gmail.com</a>>> wrote:<br> ><br>
> Hi, thx for response,<br>
> I have tryid to rm -f all and build all dependencies again, well<br>
> no an guru but this is how it looks like and I cant see there any<br>
> mismatch:<br>
> pwd<br>
> /apps/cactiprod/syslog-ng/syslog-ng-3.4.2<br>
> ls<br>
> eventlog glib libnet syslog-ng<br>
> eventlog-0.2.12 glib-2.15.4 libnet-1.2-rc2<br>
> syslog-ng-3.4.2<br>
> eventlog_0.2.12.tar.gz glib-2.15.4.tar.gz libnet-1.2-rc2.tar.gz<br>
> syslog-ng_3.4.2.tar.gz<br>
> Eventlog, Glib, Libnet compiled from scratch and exported:<br>
><br>
> export<br>
> EVTLOG_CFLAGS=-I/apps/cactiprod/syslog-ng/eventlog/include/eventlog/<br>
><br>
> export EVTLOG_LIBS="-L/apps/cactiprod/syslog-ng/eventlog/lib/"<br>
><br>
> export LIBNET_LIBS="-L/apps/cactiprod/syslog-ng/libnet/lib"<br>
><br>
> export LIBNET_CFLAGS=-I/apps/cactiprod/syslog-ng/libnet/include/<br>
><br>
> This is is how my export of "problematic" glib looks like:<br>
><br>
> export<br>
> GLIB_CFLAGS=I/apps/cactiprod/syslog-ng/glib/lib/glib-2.0/include/<br>
><br>
> export GLIB_LIBS="-L/apps/cactiprod/syslog-ng/glib/lib"<br>
><br>
> - and the missing glibconfig.h is here:<br>
><br>
> ls /apps/cactiprod/syslog-ng/glib/lib/glib-2.0/include<br>
> glibconfig.h<br>
><br>
> ls /apps/cactiprod/syslog-ng/glib/lib<br>
> glib-2.0 <a href="http://libglib-2.0.so" target="_blank">libglib-2.0.so</a> \
<<a href="http://libglib-2.0.so" target="_blank">http://libglib-2.0.so</a>><br> \
> libgmodule-2.0.so.0.1504.0 <a href="http://libgthread-2.0.so" \
target="_blank">libgthread-2.0.so</a><br> > <<a \
href="http://libgthread-2.0.so" target="_blank">http://libgthread-2.0.so</a>><br> \
> <a href="http://libgio-2.0.la" target="_blank">libgio-2.0.la</a> <<a \
href="http://libgio-2.0.la" target="_blank">http://libgio-2.0.la</a>> \
libglib-2.0.so.0<br> > <a href="http://libgobject-2.0.la" \
target="_blank">libgobject-2.0.la</a> <<a href="http://libgobject-2.0.la" \
target="_blank">http://libgobject-2.0.la</a>> libgthread-2.0.so.0<br> > <a \
href="http://libgio-2.0.so" target="_blank">libgio-2.0.so</a> <<a \
href="http://libgio-2.0.so" target="_blank">http://libgio-2.0.so</a>> \
libglib-2.0.so.0.1504.0<br> > <a href="http://libgobject-2.0.so" \
target="_blank">libgobject-2.0.so</a> <<a href="http://libgobject-2.0.so" \
target="_blank">http://libgobject-2.0.so</a>><br> > \
libgthread-2.0.so.0.1504.0<br> > libgio-2.0.so.0 <a \
href="http://libgmodule-2.0.la" target="_blank">libgmodule-2.0.la</a> <<a \
href="http://libgmodule-2.0.la" target="_blank">http://libgmodule-2.0.la</a>><br> \
> libgobject-2.0.so.0 pkgconfig<br> > libgio-2.0.so.0.0.0 <a \
href="http://libgmodule-2.0.so" target="_blank">libgmodule-2.0.so</a> <<a \
href="http://libgmodule-2.0.so" target="_blank">http://libgmodule-2.0.so</a>><br> \
> libgobject-2.0.so.0.1504.0<br> > <a href="http://libglib-2.0.la" \
target="_blank">libglib-2.0.la</a> <<a href="http://libglib-2.0.la" \
target="_blank">http://libglib-2.0.la</a>> libgmodule-2.0.so.0<br> > <a \
href="http://libgthread-2.0.la" target="_blank">libgthread-2.0.la</a> <<a \
href="http://libgthread-2.0.la" target="_blank">http://libgthread-2.0.la</a>><br> \
><br> > ./configure --prefix=/apps/cactiprod/syslog-ng/syslog-ng<br>
><br>
> checking for GLIB... yes<br>
> checking for g_mapped_file_unref... no<br>
> checking sanity checking Glib headers... no<br>
> configure: error: Glib headers inconsistent with current compiler<br>
> setting. You might be using 32 bit Glib with a 64 bit compiler,<br>
> check PKG_CONFIG_PATH<br>
><br>
> FAIL<br>
> --<br>
><br>
> Another try with "compiler tunning":<br>
><br>
> ./configure --prefix=/apps/cactiprod/syslog-ng/syslog-ng<br>
> --build=x86_64-pc-linux-gnu --host=i686-pc-linux-gnu<br>
><br>
> Will pass ./configure stage:<br>
><br>
> syslog-ng Open Source Edition 3.4.2 configured<br>
> Compiler options:<br>
> compiler : gcc -std=gnu99<br>
> compiler options : -g -O2 -Wall -pthread<br>
> I/apps/cactiprod/syslog-ng/glib/lib/glib-2.0/include/<br>
> -I/apps/cactiprod/syslog-ng/eventlog/include/eventlog/<br>
> -I$(top_srcdir)/lib/ivykis/src/include<br>
> -I$(top_builddir)/lib/ivykis/src/include -D_GNU_SOURCE<br>
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64<br>
> linker flags :<br>
> prefix : /apps/cactiprod/syslog-ng/syslog-ng<br>
> linking mode : dynamic<br>
> embedded crypto : no<br>
> __thread keyword : yes<br>
> Submodules:<br>
> ivykis : internal<br>
> libmongo-client : internal<br>
> librabbitmq : internal<br>
> Features:<br>
> Debug symbols : no<br>
> GCC profiling : no<br>
> Memtrace : no<br>
> IPV6 support : yes<br>
> spoof-source support : no<br>
> tcp-wrapper support : no<br>
> Linux capability support : yes<br>
> PCRE support : yes<br>
> Env wrapper support : no<br>
> systemd support : no (unit dir: none)<br>
> Modules:<br>
> Module search path :<br>
> /apps/cactiprod/syslog-ng/syslog-ng/lib/syslog-ng<br>
> Sun STREAMS support (module): no<br>
> SSL support (module) : yes<br>
> SQL support (module) : no<br>
> PACCT module (EXPERIMENTAL) : no<br>
> MongoDB destination (module): yes<br>
> JSON support (module) : no<br>
> SMTP support (module) : no<br>
> AMQP destination (module) : yes<br>
> GEOIP support (module) : no<br>
><br>
> ---<br>
><br>
> but make fails in the same way as previous attempt.<br>
><br>
> cat makelog.txt | grep gint<br>
> atomic.h:31: error: expected specifier-qualifier-list before \
'gint'<br> > atomic.h:69: error: expected declaration specifiers or \
'...'<br> > before 'gint'<br>
> logstamp.h:45: error: expected declaration specifiers or '...'<br>
> before 'gint'<br>
> logstamp.h:45: error: expected declaration specifiers or '...'<br>
> before 'gint'<br>
> logstamp.h:46: error: expected declaration specifiers or '...'<br>
> before 'gint'<br>
> logstamp.h:46: error: expected declaration specifiers or '...'<br>
> before 'gint'<br>
> nvtable.h:55: error: expected specifier-qualifier-list before \
'gint'<br> > nvtable.h:221: error: expected declaration specifiers or \
'...'<br> > before 'gint'<br>
> logtransport.h:35: error: expected specifier-qualifier-list before<br>
> 'gint'<br>
> logtransport.h:54: error: expected declaration specifiers or \
'...'<br> > before 'gint'<br>
> logmsg.h:141: error: expected specifier-qualifier-list before \
'gint'<br> > logmsg.h:230: error: expected declaration specifiers or \
'...'<br> > before 'gint'<br>
> logmsg.h:231: error: expected declaration specifiers or '...'<br>
> before 'gint'<br>
> templates.h:48: error: expected specifier-qualifier-list before \
'gint'<br> > templates.h:120: error: expected specifier-qualifier-list \
before<br> > 'gint'<br>
> templates.h:142: error: expected specifier-qualifier-list before<br>
> 'gint'<br>
> templates.h:146: error: expected declaration specifiers or '...'<br>
> before 'gint'<br>
> templates.h:192: error: expected declaration specifiers or '...'<br>
> before 'gint'<br>
> templates.h:192: error: expected declaration specifiers or '...'<br>
> before 'gint32'<br>
> templates.h:193: error: expected declaration specifiers or '...'<br>
> before 'gint'<br>
> templates.h:193: error: expected declaration specifiers or '...'<br>
> before 'gint32'<br>
> templates.h:194: error: expected declaration specifiers or '...'<br>
> before 'gint'<br>
> templates.h:194: error: expected declaration specifiers or '...'<br>
> before 'gint'<br>
> templates.h:194: error: expected declaration specifiers or '...'<br>
> before 'gint32'<br>
> templates.h:195: error: expected declaration specifiers or '...'<br>
> before 'gint'<br>
> templates.h:195: error: expected declaration specifiers or '...'<br>
> before 'gint'<br>
> templates.h:195: error: expected declaration specifiers or '...'<br>
> before 'gint32'<br>
> cfg-lexer.h:62: error: expected specifier-qualifier-list before \
'gint'<br> > cfg-lexer.h:94: error: expected declaration specifiers or \
'...'<br> > before 'gint'<br>
> cfg-lexer.h:172: error: expected declaration specifiers or '...'<br>
> before 'gint'<br>
> cfg-tree.h:99: error: expected specifier-qualifier-list before<br>
> 'gint16'<br>
> cfg-tree.h:161: error: expected declaration specifiers or '...'<br>
> before 'gint'<br>
> cfg-parser.h:36: error: expected specifier-qualifier-list before<br>
> 'gint'<br>
> cfg.h:56: error: expected specifier-qualifier-list before 'gint'<br>
> cfg.h:123: error: expected declaration specifiers or '...' \
before<br> > 'gint'<br>
> cfg.h:130: error: expected declaration specifiers or '...' \
before<br> > 'gint'<br>
> cfg.h:134: error: expected declaration specifiers or '...' \
before<br> > 'gint'<br>
> logpipe.h:211: error: expected specifier-qualifier-list before<br>
> 'gint32'<br>
> logpipe.h:238: error: expected declaration specifiers or '...'<br>
> before 'gint'<br>
> logpipe.h:337: error: expected declaration specifiers or '...'<br>
> before 'gint'<br>
> stats.h:82: error: expected specifier-qualifier-list before \
'gint'<br> > stats.h:127: error: expected declaration specifiers or \
'...'<br> > before 'gint'<br>
> logqueue.h:41: error: expected specifier-qualifier-list before \
'gint'<br> > logqueue.h:106: error: expected declaration specifiers or \
'...'<br> > before 'gint'<br>
> logqueue.h:126: error: expected declaration specifiers or '...'<br>
> before 'gint'<br>
> driver.h:135: error: expected specifier-qualifier-list before \
'gint'<br> > logsource.h:34: error: expected specifier-qualifier-list \
before 'gint'<br> > logsource.h:90: error: expected declaration \
specifiers or '...'<br> > before 'gint'<br>
> logsource.h:90: error: expected declaration specifiers or '...'<br>
> before 'gint'<br>
> logreader.h:59: error: expected declaration specifiers or '...'<br>
> before 'gint'<br>
> logreader.h:59: error: expected declaration specifiers or '...'<br>
> before 'gint'<br>
> logreader.h:63: error: expected declaration specifiers or '...'<br>
> before 'gint'<br>
> logreader.h:63: error: expected declaration specifiers or '...'<br>
> before 'gint'<br>
> afinter.c:90: error: expected specifier-qualifier-list before \
'gint'<br> > ---<br>
><br>
> cat makelog.txt | grep glib.<br>
><br>
><br>
> /bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99<br>
> -DHAVE_CONFIG_H -I. -I..<br>
> I/apps/cactiprod/syslog-ng/glib/lib/glib-2.0/include/<br>
> -I/apps/cactiprod/syslog-ng/eventlog/include/eventlog/<br>
> -I../lib/ivykis/src/include -I../lib/ivykis/src/include<br>
> -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2<br>
> -Wall -pthread -MT libsyslog_ng_la-afinter.lo -MD -MP -MF<br>
> .deps/libsyslog_ng_la-afinter.Tpo -c -o libsyslog_ng_la-afinter.lo<br>
> `test -f 'afinter.c' || echo './'`afinter.c<br>
> libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..<br>
> I/apps/cactiprod/syslog-ng/glib/lib/glib-2.0/include/<br>
> -I/apps/cactiprod/syslog-ng/eventlog/include/eventlog/<br>
> -I../lib/ivykis/src/include -I../lib/ivykis/src/include<br>
> -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -Wall<br>
> -pthread -MT libsyslog_ng_la-afinter.lo -MD -MP -MF<br>
> .deps/libsyslog_ng_la-afinter.Tpo -c afinter.c -fPIC -DPIC -o<br>
> .libs/libsyslog_ng_la-afinter.o<br>
> gcc: I/apps/cactiprod/syslog-ng/glib/lib/glib-2.0/include/: No<br>
> such file or directory<br>
> syslog-ng.h:39:18: error: glib.h: No such file or directory<br>
><br>
> ---<br>
><br>
> This one is complaining about missing glib.h so:<br>
><br>
> find /apps/cactiprod/syslog-ng -name glib.h<br>
> /apps/cactiprod/syslog-ng/glib-2.15.4/glib/glib.h<br>
> /apps/cactiprod/syslog-ng/glib/include/glib-2.0/glib.h<br>
><br>
> - Another export to try:<br>
><br>
> export GLIB_CFLAGS=I/apps/cactiprod/syslog-ng/glib/include/glib-2.0/<br>
><br>
> and ./configure --prefix=/apps/cactiprod/syslog-ng/syslog-ng<br>
> --build=x86_64-pc-linux-gnu --host=i686-pc-linux-gnu<br>
><br>
> will pass, then make is failing again with "glib.h: No such file<br>
> or directory:<br>
><br>
> cat makelog.txt | grep glib<br>
><br>
><br>
> /bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99<br>
> -DHAVE_CONFIG_H -I. -I..<br>
> I/apps/cactiprod/syslog-ng/glib/include/glib-2.0/<br>
> -I/apps/cactiprod/syslog-ng/eventlog/include/eventlog/<br>
> -I../lib/ivykis/src/include -I../lib/ivykis/src/include<br>
> -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2<br>
> -Wall -pthread -MT libsyslog_ng_la-afinter.lo -MD -MP -MF<br>
> .deps/libsyslog_ng_la-afinter.Tpo -c -o libsyslog_ng_la-afinter.lo<br>
> `test -f 'afinter.c' || echo './'`afinter.c<br>
> libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..<br>
> I/apps/cactiprod/syslog-ng/glib/include/glib-2.0/<br>
> -I/apps/cactiprod/syslog-ng/eventlog/include/eventlog/<br>
> -I../lib/ivykis/src/include -I../lib/ivykis/src/include<br>
> -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2<br>
> -Wall -pthread -MT libsyslog_ng_la-afinter.lo -MD -MP -MF<br>
> .deps/libsyslog_ng_la-afinter.Tpo -c afinter.c -fPIC -DPIC -o<br>
> .libs/libsyslog_ng_la-afinter.o<br>
> gcc: I/apps/cactiprod/syslog-ng/glib/include/glib-2.0/: No such<br>
> file or directory<br>
> syslog-ng.h:39:18: error: glib.h: No such file or directory<br>
><br>
><br>
> I am missing something trivial? Dooing everything as root so it<br>
> shouldnt be a permission problem. For many many days without<br>
> sucess. Any hints are always wellcome!<br>
><br>
> Thx for your support<br>
><br>
> Regards<br>
><br>
> Michal<br>
><br>
><br>
><br>
> 2013/6/6 Balazs Scheidler <<a \
href="mailto:bazsi77@gmail.com">bazsi77@gmail.com</a><br> > <mailto:<a \
href="mailto:bazsi77@gmail.com">bazsi77@gmail.com</a>>><br> ><br>
> Hmmm that line misses the definition of gint, which is a very<br>
> basic int type provided by glib.<br>
><br>
> Wild guess: are you sure glibconfig.h is reachable by<br>
> syslog-ng via -I options? Is it pulling the proper file?<br>
><br>
> On May 31, 2013 6:46 AM, "Flur Blubr" <<a \
href="mailto:fblubr@gmail.com">fblubr@gmail.com</a><br> > <mailto:<a \
href="mailto:fblubr@gmail.com">fblubr@gmail.com</a>>> wrote:<br> ><br>
> Dear all,<br>
> looking for help, for 4 days trying to compile<br>
> syslog-ng-3.4.1 on some kind of custom RED HAT<br>
> derivate and still failing. RPMs and YUM are forbidden and<br>
> system has libraries spread around all directories / using<br>
> exports export EVTLOG_CFLAGS, export EVTLOG_LIBS, export<br>
> GLIB_CFLAGS, export GLIB_LIBS to overwrite PKG CONFIG .<br>
> uname -a<br>
> Linux 2.6.32-279.1.1.el6.x86_64 #1 SMP Wed Jun 20 11:41:22<br>
> EDT 2012 x86_64 x86_64 x86_64 GNU/Linux<br>
> cat /etc/redhat-release<br>
> Red Hat Enterprise Linux Server release 6.3 (Santiago)<br>
> Configuration:<br>
><br>
> ./configure --prefix=/my-prefix/syslog-ng --enable-sql<br>
> --enable-ipv6 --enable-dynamic-linking<br>
> --build=x86_64-pc-linux-gnu --host=i686-pc-linux-gnu<br>
> --enable-shared --disable-static CFLAGS=-O2<br>
><br>
> Getting this:<br>
> syslog-ng Open Source Edition 3.4.1 configured<br>
> Compiler options:<br>
> compiler : gcc -std=gnu99<br>
> compiler options : -O2 -Wall -pthread<br>
> -I/my-prefix/sources/glib-2.15.4/<br>
> -I/my-prefix/eventlog/include/eventlog/<br>
> -I$(top_srcdir)/lib/ivykis/src/include<br>
> -I$(top_builddir)/lib/ivykis/src/include -D_GNU_SOURCE<br>
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64<br>
> linker flags :<br>
> prefix : /my-prefix/syslog-ng<br>
> linking mode : dynamic<br>
> embedded crypto : no<br>
> __thread keyword : yes<br>
> Submodules:<br>
> ivykis : internal<br>
> libmongo-client : internal<br>
> librabbitmq : internal<br>
> Features:<br>
> Debug symbols : no<br>
> GCC profiling : no<br>
> Memtrace : no<br>
> IPV6 support : yes<br>
> spoof-source support : no<br>
> tcp-wrapper support : no<br>
> Linux capability support : yes<br>
> PCRE support : yes<br>
> Env wrapper support : no<br>
> systemd support : no (unit dir: none)<br>
> Modules:<br>
> Module search path :<br>
> /my-prefix/syslog-ng/lib/syslog-ng<br>
> Sun STREAMS support (module): no<br>
> SSL support (module) : yes<br>
> SQL support (module) : yes<br>
> PACCT module (EXPERIMENTAL) : no<br>
> MongoDB destination (module): yes<br>
> JSON support (module) : no<br>
> SMTP support (module) : no<br>
> AMQP destination (module) : yes<br>
> GEOIP support (module) : no<br>
> But make is failing no matter what I do:<br>
> afinter.c: At top level:<br>
> afinter.c:385: error: expected ')' before \
'mark_freq'<br> > afinter.c: In function \
'afinter_message_posted':<br> > afinter.c:404: error: \
'internal_msg_lock' undeclared<br> > (first use in this \
function)<br> > afinter.c:405: error: 'internal_msg_queue' \
undeclared<br> > (first use in this function)<br>
> afinter.c:407: warning: implicit declaration of function<br>
> 'g_queue_new'<br>
> afinter.c:409: warning: implicit declaration of function<br>
> 'g_queue_push_tail'<br>
> afinter.c:411: error: 'AFInterSource' has no member \
named<br> > 'post'<br>
> afinter.c: At top level:<br>
> afinter.c:416: error: expected ')' before \
'hook_type'<br> > afinter.c: In function \
'afinter_global_init':<br> > afinter.c:424: warning: implicit \
declaration of function<br> > 'register_application_hook'<br>
> afinter.c:424: error: 'afinter_register_posted_hook'<br>
> undeclared (first use in this function)<br>
> make[4]: *** [libsyslog_ng_la-afinter.lo] Error 1<br>
> make[4]: Leaving directory `/my-prefix/syslog-ng-3.4.1/lib'<br>
> make[3]: *** [all-recursive] Error 1<br>
> make[3]: Leaving directory `/my-prefix/syslog-ng-3.4.1/lib'<br>
> make[2]: *** [all] Error 2<br>
> make[2]: Leaving directory `/my-prefix/syslog-ng-3.4.1/lib'<br>
> make[1]: *** [all-recursive] Error 1<br>
> make[1]: Leaving directory `/my-prefix/syslog-ng-3.4.1'<br>
> make: *** [all] Error 2<br>
> Can somebody advice?<br>
> Thx for your time.<br>
> Regards<br>
> Michal<br>
><br>
> ______________________________________________________________________________<br>
> Member info:<br>
> <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" \
target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br> > \
Documentation:<br> > <a \
href="http://www.balabit.com/support/documentation/?product=syslog-ng" \
target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
> FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" \
target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br> ><br>
><br>
><br>
> ______________________________________________________________________________<br>
> Member info: <a \
href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" \
target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br> > \
Documentation:<br> > <a \
href="http://www.balabit.com/support/documentation/?product=syslog-ng" \
target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
> FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" \
target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br> ><br>
><br>
><br>
><br>
> ______________________________________________________________________________<br>
> Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" \
target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br> > \
Documentation:<br> > <a \
href="http://www.balabit.com/support/documentation/?product=syslog-ng" \
target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
> FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" \
target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br> ><br>
><br>
><br>
><br>
> ______________________________________________________________________________<br>
> Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" \
target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br> > \
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" \
target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
> FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" \
target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br> ><br>
<br>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" \
target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" \
target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" \
target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br> <br>
</blockquote></div>
______________________________________________________________________________
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic