[syslog-ng] Compilation errors syslog-ng 3.2.5 on solaris 10

Arya, Manish Kumar m.arya at yahoo.com
Thu Mar 15 12:53:11 CET 2012


Hi Guys,

     I have compiled 


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 


./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

I see this error 


checking for GLIB... yes
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


here is the errors o/p from config.log

bash-3.00# grep -i error config.log
/usr/include/stdbool.h:42:2: #error "Use of <stdbool.h> is valid only in a c99 compilation environment."
conftest.c:59: error: syntax error before "text"
conftest.c:64: error: 'for' loop initial declaration used outside C99 mode
conftest.c:64: error: `text' undeclared (first use in this function)
conftest.c:64: error: (Each undeclared identifier is reported only once
conftest.c:64: error: for each function it appears in.)
conftest.c:108: error: `false' undeclared (first use in this function)
conftest.c:112: error: `true' undeclared (first use in this function)
conftest.c:113: error: syntax error before "newvar"
conftest.c:123: error: 'for' loop initial declaration used outside C99 mode
conftest.c:139: error: `newvar' undeclared (first use in this function)
ld: fatal: Symbol referencing errors. No output written to conftest
| static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
|               if ( c == EOF && ferror( yyin ) ) \
|                       YY_FATAL_ERROR( "input in flex scanner failed" ); \
|                 && ferror( yyin ) ) \
|               YY_FATAL_ERROR( "input in flex scanner failed" );
| /* Report a fatal error. */
| #ifndef YY_FATAL_ERROR
| #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
|               YY_FATAL_ERROR(
|                       "fatal flex scanner internal error--no action found" );
|               YY_FATAL_ERROR(
|               "fatal flex scanner internal error--end of buffer missed" );
|                       YY_FATAL_ERROR(
|                               YY_FATAL_ERROR(
|                               "fatal error - scanner input buffer overflow" );
|                       YY_FATAL_ERROR( "flex scanner push-back overflow" );
|               YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
|               YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
|               YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
|               YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
|               YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
|                       YY_FATAL_ERROR(
|               YY_FATAL_ERROR( "start-condition stack underflow" );
| static void yy_fatal_error( yyconst char msg[] )
| static void yy_fatal_error( msg )
ld: fatal: Symbol referencing errors. No output written to conftest
| /* Override any GCC internal prototype to avoid an error.
ld: fatal: File processing errors. No output written to conftest
| /* Override any GCC internal prototype to avoid an error.
configure:12119: gcc -std=gnu99 -c -g -O2 -Wall -pedantic -Werror  -Wno-pointer-sign  conftest.c >&5
cc1: error: unrecognized command line option "-Wno-pointer-sign"
cc1: error: unrecognized command line option "-Wno-pointer-sign"
conftest.c:30: error: size of array `off_t_is_large' is negative
conftest.c:41: error: structure has no member named `tm_gmtoff'
conftest.c:41: error: structure has no member named `tm_gmtoff'
ld: fatal: File processing errors. No output written to conftest
| /* Override any GCC internal prototype to avoid an error.
ld: fatal: File processing errors. No output written to conftest
| /* Override any GCC internal prototype to avoid an error.
ld: fatal: Symbol referencing errors. No output written to conftest
| /* Override any GCC internal prototype to avoid an error.
ld: fatal: Symbol referencing errors. No output written to conftest
| /* Override any GCC internal prototype to avoid an error.
ld: fatal: Symbol referencing errors. No output written to conftest
| /* Override any GCC internal prototype to avoid an error.
ld: fatal: Symbol referencing errors. No output written to conftest
| /* Override any GCC internal prototype to avoid an error.
ld: fatal: Symbol referencing errors. No output written to conftest
| /* Override any GCC internal prototype to avoid an error.
configure:13336: $PKG_CONFIG --exists --print-errors "dbi >= $LIBDBI_MIN_VERSION"
configure:13352: $PKG_CONFIG --exists --print-errors "dbi >= $LIBDBI_MIN_VERSION"
ld: fatal: File processing errors. No output written to conftest
| /* Override any GCC internal prototype to avoid an error.
conftest.c:46: error: `GLIB_SIZEOF_LONG' undeclared (first use in this function)
conftest.c:46: error: (Each undeclared identifier is reported only once
conftest.c:46: error: for each function it appears in.)
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
bash-3.00#


help me !!

Regards,
-Manish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20120315/b9c34009/attachment.htm 


More information about the syslog-ng mailing list