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

Arya, Manish Kumar m.arya at yahoo.com
Thu Mar 15 13:34:08 CET 2012


I have modified configure and now it went through fine

./configure --prefix=/opt/syslog/syslog-ng --enable-ipv6 PKG_CONFIG_PATH=/opt/syslog/glib/lib/pkgconfig:/opt/syslog/eventlog/lib/pkgconfig

but now I see errors while make

bash-3.00# make
make  all-recursive
Making all in lib
make: Fatal error in reader: Makefile, line 641: Unexpected end of line seen
Current working directory /home/marya/syslog-ng-3.2.5/lib
*** Error code 1
The following command caused the error:
fail= failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
  case $f in \
    *=* | --[!k]*);; \
    *k*) failcom='fail=yes';; \
  esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='lib modules syslog-ng scripts tests doc contrib scl debian tgz2build'; for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /home/marya/syslog-ng-3.2.5
*** Error code 1
make: Fatal error: Command failed for target `all'
bash-3.00#




________________________________
 From: "Arya, Manish Kumar" <m.arya at yahoo.com>
To: "syslog-ng at lists.balabit.hu" <syslog-ng at lists.balabit.hu> 
Sent: Thursday, March 15, 2012 5:23 PM
Subject: [syslog-ng] Compilation errors syslog-ng 3.2.5 on solaris 10
 

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


______________________________________________________________________________
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/20120315/f5146e48/attachment-0001.htm 


More information about the syslog-ng mailing list