<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi Guys,</div><div><br></div><div> I have compiled <br></div><div><br></div><div>eventlog-0.2.12 and glib-2.12.12 in /opt/syslog/eventlog and /opt/syslog/glib directories. now when I try to compile syslog-ng with following options in configure <br></div><div><br></div><div>./configure --prefix=/opt/syslog/syslog-ng --enable-ipv6 EVTLOG_LIBS=/opt/syslog/eventlog/lib EVTLOG_CFLAGS=/opt/syslog/eventlog/include GLIB_CFLAGS=/opt/syslog/glib/include GLIB_LIBS=/opt/syslog/glib/lib PKG_CONFIG_PATH=/opt/syslog/glib/lib/pkgconfig</div><div><br></div><div>I see this error <br></div><div><br></div><div><span style="font-style: italic;">checking for GLIB... yes</span><br style="font-style: italic;"><span style="font-style: italic;">checking sanity checking Glib headers... no</span><br style="font-style:
italic;"><span style="font-style: italic;">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</span><br></div><div><br></div><div>here is the errors o/p from config.log</div><div><br></div><div><span style="font-style: italic;">bash-3.00# grep -i error config.log</span><br style="font-style: italic;"><span style="font-style: italic;">/usr/include/stdbool.h:42:2: #error "Use of <stdbool.h> is valid only in a c99 compilation environment."</span><br style="font-style: italic;"><span style="font-style: italic;">conftest.c:59: error: syntax error before "text"</span><br style="font-style: italic;"><span style="font-style: italic;">conftest.c:64: error: 'for' loop initial declaration used outside C99 mode</span><br style="font-style: italic;"><span style="font-style: italic;">conftest.c:64: error: `text' undeclared (first use in this function)</span><br
style="font-style: italic;"><span style="font-style: italic;">conftest.c:64: error: (Each undeclared identifier is reported only once</span><br style="font-style: italic;"><span style="font-style: italic;">conftest.c:64: error: for each function it appears in.)</span><br style="font-style: italic;"><span style="font-style: italic;">conftest.c:108: error: `false' undeclared (first use in this function)</span><br style="font-style: italic;"><span style="font-style: italic;">conftest.c:112: error: `true' undeclared (first use in this function)</span><br style="font-style: italic;"><span style="font-style: italic;">conftest.c:113: error: syntax error before "newvar"</span><br style="font-style: italic;"><span style="font-style: italic;">conftest.c:123: error: 'for' loop initial declaration used outside C99 mode</span><br style="font-style: italic;"><span style="font-style: italic;">conftest.c:139: error: `newvar' undeclared (first use in this
function)</span><br style="font-style: italic;"><span style="font-style: italic;">ld: fatal: Symbol referencing errors. No output written to conftest</span><br style="font-style: italic;"><span style="font-style: italic;">| static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));</span><br style="font-style: italic;"><span style="font-style: italic;">| if ( c == EOF && ferror( yyin ) ) \</span><br style="font-style: italic;"><span style="font-style: italic;">| YY_FATAL_ERROR( "input in flex scanner failed" ); \</span><br style="font-style: italic;"><span style="font-style: italic;">| && ferror( yyin ) ) \</span><br
style="font-style: italic;"><span style="font-style: italic;">| YY_FATAL_ERROR( "input in flex scanner failed" );</span><br style="font-style: italic;"><span style="font-style: italic;">| /* Report a fatal error. */</span><br style="font-style: italic;"><span style="font-style: italic;">| #ifndef YY_FATAL_ERROR</span><br style="font-style: italic;"><span style="font-style: italic;">| #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )</span><br style="font-style: italic;"><span style="font-style: italic;">| YY_FATAL_ERROR(</span><br style="font-style: italic;"><span style="font-style: italic;">| "fatal flex scanner internal error--no action found" );</span><br
style="font-style: italic;"><span style="font-style: italic;">| YY_FATAL_ERROR(</span><br style="font-style: italic;"><span style="font-style: italic;">| "fatal flex scanner internal error--end of buffer missed" );</span><br style="font-style: italic;"><span style="font-style: italic;">| YY_FATAL_ERROR(</span><br style="font-style: italic;"><span style="font-style: italic;">| YY_FATAL_ERROR(</span><br style="font-style: italic;"><span style="font-style:
italic;">| "fatal error - scanner input buffer overflow" );</span><br style="font-style: italic;"><span style="font-style: italic;">| YY_FATAL_ERROR( "flex scanner push-back overflow" );</span><br style="font-style: italic;"><span style="font-style: italic;">| YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );</span><br style="font-style: italic;"><span style="font-style: italic;">| YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );</span><br
style="font-style: italic;"><span style="font-style: italic;">| YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );</span><br style="font-style: italic;"><span style="font-style: italic;">| YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );</span><br style="font-style: italic;"><span style="font-style: italic;">| YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );</span><br style="font-style: italic;"><span style="font-style: italic;">| YY_FATAL_ERROR(</span><br style="font-style: italic;"><span style="font-style:
italic;">| YY_FATAL_ERROR( "start-condition stack underflow" );</span><br style="font-style: italic;"><span style="font-style: italic;">| static void yy_fatal_error( yyconst char msg[] )</span><br style="font-style: italic;"><span style="font-style: italic;">| static void yy_fatal_error( msg )</span><br style="font-style: italic;"><span style="font-style: italic;">ld: fatal: Symbol referencing errors. No output written to conftest</span><br style="font-style: italic;"><span style="font-style: italic;">| /* Override any GCC internal prototype to avoid an error.</span><br style="font-style: italic;"><span style="font-style: italic;">ld: fatal: File processing errors. No output written to conftest</span><br style="font-style: italic;"><span style="font-style: italic;">| /* Override any GCC internal prototype to avoid an error.</span><br style="font-style: italic;"><span
style="font-style: italic;">configure:12119: gcc -std=gnu99 -c -g -O2 -Wall -pedantic -Werror -Wno-pointer-sign conftest.c >&5</span><br style="font-style: italic;"><span style="font-style: italic;">cc1: error: unrecognized command line option "-Wno-pointer-sign"</span><br style="font-style: italic;"><span style="font-style: italic;">cc1: error: unrecognized command line option "-Wno-pointer-sign"</span><br style="font-style: italic;"><span style="font-style: italic;">conftest.c:30: error: size of array `off_t_is_large' is negative</span><br style="font-style: italic;"><span style="font-style: italic;">conftest.c:41: error: structure has no member named `tm_gmtoff'</span><br style="font-style: italic;"><span style="font-style: italic;">conftest.c:41: error: structure has no member named `tm_gmtoff'</span><br style="font-style: italic;"><span style="font-style: italic;">ld: fatal: File processing errors. No output written to
conftest</span><br style="font-style: italic;"><span style="font-style: italic;">| /* Override any GCC internal prototype to avoid an error.</span><br style="font-style: italic;"><span style="font-style: italic;">ld: fatal: File processing errors. No output written to conftest</span><br style="font-style: italic;"><span style="font-style: italic;">| /* Override any GCC internal prototype to avoid an error.</span><br style="font-style: italic;"><span style="font-style: italic;">ld: fatal: Symbol referencing errors. No output written to conftest</span><br style="font-style: italic;"><span style="font-style: italic;">| /* Override any GCC internal prototype to avoid an error.</span><br style="font-style: italic;"><span style="font-style: italic;">ld: fatal: Symbol referencing errors. No output written to conftest</span><br style="font-style: italic;"><span style="font-style: italic;">| /* Override any GCC internal prototype to avoid an error.</span><br
style="font-style: italic;"><span style="font-style: italic;">ld: fatal: Symbol referencing errors. No output written to conftest</span><br style="font-style: italic;"><span style="font-style: italic;">| /* Override any GCC internal prototype to avoid an error.</span><br style="font-style: italic;"><span style="font-style: italic;">ld: fatal: Symbol referencing errors. No output written to conftest</span><br style="font-style: italic;"><span style="font-style: italic;">| /* Override any GCC internal prototype to avoid an error.</span><br style="font-style: italic;"><span style="font-style: italic;">ld: fatal: Symbol referencing errors. No output written to conftest</span><br style="font-style: italic;"><span style="font-style: italic;">| /* Override any GCC internal prototype to avoid an error.</span><br style="font-style: italic;"><span style="font-style: italic;">configure:13336: $PKG_CONFIG --exists --print-errors "dbi >=
$LIBDBI_MIN_VERSION"</span><br style="font-style: italic;"><span style="font-style: italic;">configure:13352: $PKG_CONFIG --exists --print-errors "dbi >= $LIBDBI_MIN_VERSION"</span><br style="font-style: italic;"><span style="font-style: italic;">ld: fatal: File processing errors. No output written to conftest</span><br style="font-style: italic;"><span style="font-style: italic;">| /* Override any GCC internal prototype to avoid an error.</span><br style="font-style: italic;"><span style="font-style: italic;">conftest.c:46: error: `GLIB_SIZEOF_LONG' undeclared (first use in this function)</span><br style="font-style: italic;"><span style="font-style: italic;">conftest.c:46: error: (Each undeclared identifier is reported only once</span><br style="font-style: italic;"><span style="font-style: italic;">conftest.c:46: error: for each function it appears in.)</span><br style="font-style: italic;"><span style="font-style: italic;">configure:13605: error:
Glib headers inconsistent with current compiler setting. You might be using 32 bit Glib with a 64 bit compiler, check PKG_CONFIG_PATH</span><br style="font-style: italic;"><span style="font-style: italic;">bash-3.00#</span><br></div><div><br></div><div>help me !!</div><div><br></div><div>Regards,</div><div>-Manish</div><div><br></div><div><br></div><div></div></div></body></html>