<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>I have modified configure and now it went through fine</span></div><div><br><span></span></div><div><span>./configure --prefix=/opt/syslog/syslog-ng --enable-ipv6 PKG_CONFIG_PATH=/opt/syslog/glib/lib/pkgconfig:/opt/syslog/eventlog/lib/pkgconfig</span></div><div><br><span></span></div><div><span>but now I see errors while make</span></div><div><br><span></span></div><div><span><span style="font-style: italic;">bash-3.00# make</span><br style="font-style: italic;"><span style="font-style: italic;">make all-recursive</span><br style="font-style: italic;"><span style="font-style: italic;">Making all in lib</span><br style="font-style: italic;"><span style="font-style: italic;">make: Fatal error in reader: Makefile, line 641: Unexpected end of line seen</span><br style="font-style: italic;"><span style="font-style:
italic;">Current working directory /home/marya/syslog-ng-3.2.5/lib</span><br style="font-style: italic;"><span style="font-style: italic;">*** Error code 1</span><br style="font-style: italic;"><span style="font-style: italic;">The following command caused the error:</span><br style="font-style: italic;"><span style="font-style: italic;">fail= failcom='exit 1'; \</span><br style="font-style: italic;"><span style="font-style: italic;">for f in x $MAKEFLAGS; do \</span><br style="font-style: italic;"><span style="font-style: italic;"> case $f in \</span><br style="font-style: italic;"><span style="font-style: italic;"> *=* | --[!k]*);; \</span><br style="font-style: italic;"><span style="font-style: italic;"> *k*) failcom='fail=yes';; \</span><br style="font-style: italic;"><span style="font-style: italic;"> esac; \</span><br style="font-style: italic;"><span style="font-style: italic;">done; \</span><br
style="font-style: italic;"><span style="font-style: italic;">dot_seen=no; \</span><br style="font-style: italic;"><span style="font-style: italic;">target=`echo all-recursive | sed s/-recursive//`; \</span><br style="font-style: italic;"><span style="font-style: italic;">list='lib modules syslog-ng scripts tests doc contrib scl debian tgz2build'; for subdir in $list; do \</span><br style="font-style: italic;"><span style="font-style: italic;"> echo "Making $target in $subdir"; \</span><br style="font-style: italic;"><span style="font-style: italic;"> if test "$subdir" = "."; then \</span><br style="font-style: italic;"><span style="font-style: italic;"> dot_seen=yes; \</span><br style="font-style: italic;"><span style="font-style: italic;"> local_target="$target-am"; \</span><br style="font-style: italic;"><span style="font-style: italic;"> else \</span><br style="font-style: italic;"><span
style="font-style: italic;"> local_target="$target"; \</span><br style="font-style: italic;"><span style="font-style: italic;"> fi; \</span><br style="font-style: italic;"><span style="font-style: italic;"> (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make $local_target) \</span><br style="font-style: italic;"><span style="font-style: italic;"> || eval $failcom; \</span><br style="font-style: italic;"><span style="font-style: italic;">done; \</span><br style="font-style: italic;"><span style="font-style: italic;">if test "$dot_seen" = "no"; then \</span><br style="font-style: italic;"><span style="font-style: italic;"> make "$target-am" || exit 1; \</span><br style="font-style: italic;"><span style="font-style: italic;">fi; test -z "$fail"</span><br style="font-style: italic;"><span style="font-style: italic;">make: Fatal error: Command failed for target `all-recursive'</span><br
style="font-style: italic;"><span style="font-style: italic;">Current working directory /home/marya/syslog-ng-3.2.5</span><br style="font-style: italic;"><span style="font-style: italic;">*** Error code 1</span><br style="font-style: italic;"><span style="font-style: italic;">make: Fatal error: Command failed for target `all'</span><br style="font-style: italic;"><span style="font-style: italic;">bash-3.00#</span><br><br></span></div><div><br></div> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> "Arya, Manish Kumar" <m.arya@yahoo.com><br> <b><span style="font-weight: bold;">To:</span></b> "syslog-ng@lists.balabit.hu" <syslog-ng@lists.balabit.hu> <br> <b><span style="font-weight: bold;">Sent:</span></b>
Thursday, March 15, 2012 5:23 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> [syslog-ng] Compilation errors syslog-ng 3.2.5 on solaris 10<br> </font> </div> <br>
<div id="yiv791873766"><div><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></div></div><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><br><br> </div> </div> </div></body></html>