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