<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7036.0">
<TITLE>2.0.9 Solaris 10 x86 compilation error: loggen/yylex issue</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">I see in the archives that someone else, in a prior version, had encountered the problem of not being able to get a good compile on Solaris 10, but I never saw any resolution to that issue. I'm having the same problem now with 2.0.9. The last request (from bazsi, in the email of Wed Mar 12 11:08:36 CET 2008) was to check the cfg-lex.c file, to ensure that it was not zero length. I checked mine, and it is 56023 in size (slightly larger than the one used with my successful 2.0.5 compilation).</FONT></P>
<P><FONT SIZE=2 FACE="Arial">In short, I guess I'm just looking for some input/guidance as to what may not be "quite right" in 2.0.9, that would make it no longer compile on my server (where 2.0.5 obviously did compile).</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Any and all help appreciated! Obviously, I'll gladly feed you any files or information that would assist in problem solving. Below, is the portion of the make output at the point where things fall apart.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">As further input, I'm using libnet (for source-spoofing) and obviously using the most current EventLog (that hasn't changed since my 2.0.5 compilation). I'm using the glib components delivered with Solaris 10 (again, as was done in 2.0.5).</FONT></P>
<P><FONT SIZE=2 FACE="Arial">THANKS for your input and help!</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Portion of the make that failed……………….</FONT>
<BR><FONT SIZE=2 FACE="Arial">gcc -g -O2 -Wall -o loggen loggen.o -lpthread -lresolv -lnsl -lrt -lsocket -ldoor -lfl -lglib-2.0 -L/usr/local/lib -levtlog -lsocket -lnsl -lnet</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Undefined first referenced</FONT>
<BR><FONT SIZE=2 FACE="Arial"> symbol in file</FONT>
<BR><FONT SIZE=2 FACE="Arial">yylex /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../../libfl.so</FONT>
<BR><FONT SIZE=2 FACE="Arial">ld: fatal: Symbol referencing errors. No output written to loggen</FONT>
<BR><FONT SIZE=2 FACE="Arial">collect2: ld returned 1 exit status</FONT>
<BR><FONT SIZE=2 FACE="Arial">*** Error code 1</FONT>
<BR><FONT SIZE=2 FACE="Arial">make: Fatal error: Command failed for target `loggen'</FONT>
<BR><FONT SIZE=2 FACE="Arial">Current working directory /var/opt/packages/syslog-ng-2.0.9/tests/loggen</FONT>
<BR><FONT SIZE=2 FACE="Arial">*** Error code 1</FONT>
<BR><FONT SIZE=2 FACE="Arial">The following command caused the error:</FONT>
<BR><FONT SIZE=2 FACE="Arial">set fnord $MAKEFLAGS; amf=$2; \</FONT>
<BR><FONT SIZE=2 FACE="Arial">dot_seen=no; \</FONT>
<BR><FONT SIZE=2 FACE="Arial">target=`echo all-recursive | sed s/-recursive//`; \</FONT>
<BR><FONT SIZE=2 FACE="Arial">list='unit functional loggen'; for subdir in $list; do \</FONT>
<BR><FONT SIZE=2 FACE="Arial"> echo "Making $target in $subdir"; \</FONT>
<BR><FONT SIZE=2 FACE="Arial"> if test "$subdir" = "."; then \</FONT>
<BR><FONT SIZE=2 FACE="Arial"> dot_seen=yes; \</FONT>
<BR><FONT SIZE=2 FACE="Arial"> local_target="$target-am"; \</FONT>
<BR><FONT SIZE=2 FACE="Arial"> else \</FONT>
<BR><FONT SIZE=2 FACE="Arial"> local_target="$target"; \</FONT>
<BR><FONT SIZE=2 FACE="Arial"> fi; \</FONT>
<BR><FONT SIZE=2 FACE="Arial"> (cd $subdir && make $local_target) \</FONT>
<BR><FONT SIZE=2 FACE="Arial"> || case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \</FONT>
<BR><FONT SIZE=2 FACE="Arial">done; \</FONT>
<BR><FONT SIZE=2 FACE="Arial">if test "$dot_seen" = "no"; then \</FONT>
<BR><FONT SIZE=2 FACE="Arial"> make "$target-am" || exit 1; \</FONT>
<BR><FONT SIZE=2 FACE="Arial">fi; test -z "$fail"</FONT>
<BR><FONT SIZE=2 FACE="Arial">make: Fatal error: Command failed for target `all-recursive'</FONT>
<BR><FONT SIZE=2 FACE="Arial">Current working directory /var/opt/packages/syslog-ng-2.0.9/tests</FONT>
<BR><FONT SIZE=2 FACE="Arial">*** Error code 1</FONT>
<BR><FONT SIZE=2 FACE="Arial">The following command caused the error:</FONT>
<BR><FONT SIZE=2 FACE="Arial">set fnord $MAKEFLAGS; amf=$2; \</FONT>
<BR><FONT SIZE=2 FACE="Arial">dot_seen=no; \</FONT>
<BR><FONT SIZE=2 FACE="Arial">target=`echo all-recursive | sed s/-recursive//`; \</FONT>
<BR><FONT SIZE=2 FACE="Arial">list='src tests doc contrib solbuild tgzbuild'; for subdir in $list; do \</FONT>
<BR><FONT SIZE=2 FACE="Arial"> echo "Making $target in $subdir"; \</FONT>
<BR><FONT SIZE=2 FACE="Arial"> if test "$subdir" = "."; then \</FONT>
<BR><FONT SIZE=2 FACE="Arial"> dot_seen=yes; \</FONT>
<BR><FONT SIZE=2 FACE="Arial"> local_target="$target-am"; \</FONT>
<BR><FONT SIZE=2 FACE="Arial"> else \</FONT>
<BR><FONT SIZE=2 FACE="Arial"> local_target="$target"; \</FONT>
<BR><FONT SIZE=2 FACE="Arial"> fi; \</FONT>
<BR><FONT SIZE=2 FACE="Arial"> (cd $subdir && make $local_target) \</FONT>
<BR><FONT SIZE=2 FACE="Arial"> || case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \</FONT>
<BR><FONT SIZE=2 FACE="Arial">done; \</FONT>
<BR><FONT SIZE=2 FACE="Arial">if test "$dot_seen" = "no"; then \</FONT>
<BR><FONT SIZE=2 FACE="Arial"> make "$target-am" || exit 1; \</FONT>
<BR><FONT SIZE=2 FACE="Arial">fi; test -z "$fail"</FONT>
<BR><FONT SIZE=2 FACE="Arial">make: Fatal error: Command failed for target `all-recursive'</FONT>
<BR><FONT SIZE=2 FACE="Arial">Current working directory /var/opt/packages/syslog-ng-2.0.9</FONT>
<BR><FONT SIZE=2 FACE="Arial">*** Error code 1</FONT>
<BR><FONT SIZE=2 FACE="Arial">make: Fatal error: Command failed for target `all'</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Marvin Nipper</FONT>
<BR><FONT SIZE=2 FACE="Arial">Director of Security</FONT>
<BR><FONT SIZE=2 FACE="Arial">Stream</FONT>
<BR><A HREF="mailto:marvin.nipper@stream.com"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">mailto:marvin.nipper@stream.com</FONT></U></A>
<BR><FONT SIZE=2 FACE="Arial">PGP Key ID: 0x8EE28551 (DSS/DH)</FONT>
<BR><FONT SIZE=2 FACE="Arial">8C5D 403A D107 0A95 672B B637 BCF1 919A 8EE2 8551</FONT>
</P>
</BODY>
</HTML>