[syslog-ng] [libsyslog_ng_la-afinter.lo] Error 1, syslog-ng-3.4.1 on x86_64
Flur Blubr
fblubr at gmail.com
Fri Jun 7 12:51:31 CEST 2013
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 libgmodule-2.0.so.0.1504.0
libgthread-2.0.so
libgio-2.0.la libglib-2.0.so.0 libgobject-2.0.la
libgthread-2.0.so.0
libgio-2.0.so libglib-2.0.so.0.1504.0 libgobject-2.0.so
libgthread-2.0.so.0.1504.0
libgio-2.0.so.0 libgmodule-2.0.la libgobject-2.0.so.0
pkgconfig
libgio-2.0.so.0.0.0 libgmodule-2.0.so libgobject-2.0.so.0.1504.0
libglib-2.0.la libgmodule-2.0.so.0 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 at 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 at 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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20130607/4b85a758/attachment-0001.htm
More information about the syslog-ng
mailing list