Hi,<br><br>I have been facing the problem in compiling &quot;syslog-ng-2.0.2&quot; on SunOS 5.9 sparc.<br>The steps I have followed are described below.<br><br>Could anyone plz help troubleshooting?<br><br>[Condition]<br><br>
&quot;GLIB&quot; package is that of pre-installed.<br>The package information about &quot;GLIB&quot; is ;<br><br>&nbsp;&nbsp;&nbsp; # pkginfo | grep -i glib<br>&nbsp;&nbsp;&nbsp; system&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SUNWGlib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GLIB - Library of useful routines for C programming
<br><br>[Steps]<br><br>&nbsp;1. Install &quot;eventlog-0.2.5&quot; that is required by syslog-ng 2.0.2.<br>&nbsp;&nbsp;&nbsp; The source file is from <a href="http://www.balabit.com/">http://www.balabit.com/</a><br><br>&nbsp;&nbsp;&nbsp; Installation was successfully completed.
<br><br>&nbsp;2. Configure &quot;syslog-ng 2.0.2&quot;<br><br>&nbsp;&nbsp;&nbsp; # ./configure --enable-dynamic-linking<br><br>&nbsp;&nbsp;&nbsp; It resulted in the following error.<br><br>&nbsp;&nbsp;&nbsp; checking for GLIB... Requested &#39;glib-2.0 &gt;= 2.2&#39; but version of GLib is 
2.0.7<br>&nbsp;&nbsp;&nbsp; configure: error: Cannot find GLib library version &gt;= 2.2: is pkg-config in path?<br><br>&nbsp;&nbsp;&nbsp; It seems the version of &quot;GLIB&quot; is older.<br>&nbsp;&nbsp;&nbsp; Thus, I installed newer version of GLIB &quot;glib-2.6.2
&quot;.<br>&nbsp;&nbsp;&nbsp; The file is downloaded from the following URL,<br><br>&nbsp;&nbsp;&nbsp; <a href="ftp://ftp.sunfreeware.com/pub/freeware/sparc/9/glib-2.6.2-sol9-sparc-local.gz">ftp://ftp.sunfreeware.com/pub/freeware/sparc/9/glib-2.6.2-sol9-sparc-local.gz
</a><br><br>&nbsp;&nbsp;&nbsp; The package information is ;<br><br>&nbsp;&nbsp;&nbsp; # pkginfo | grep -i glib<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; application SMCglib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; glib<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; system&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SUNWGlib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GLIB - Library of useful routines for C programming
<br><br>&nbsp;3. 2nd attempt of configure<br><br>&nbsp;&nbsp;&nbsp; New package is installed in previous step so that I changed the PATH to make sure the installed package is<br>&nbsp;&nbsp;&nbsp; first reached.<br><br>&nbsp;&nbsp;&nbsp; # export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/:/usr/lib/pkgconfig/
<br><br>&nbsp;&nbsp;&nbsp; # ./configure --enable-dynamic-linking<br><br>&nbsp;&nbsp;&nbsp; Configure is successfully completed.<br><br>&nbsp;4. Compile<br><br>&nbsp;&nbsp;&nbsp; # make<br><br>&nbsp;&nbsp;&nbsp; It resulted in the following error.<br><br>&nbsp; make&nbsp; all-recursive<br>&nbsp; make[1]: Entering directory `/usr/local/src/syslog-
ng-2.0.2&#39;<br>&nbsp; Making all in src<br>&nbsp; make[2]: Entering directory `/usr/local/src/syslog-ng-2.0.2/src&#39;<br>&nbsp; source=&#39;misc.c&#39; object=&#39;misc.o&#39; libtool=no \<br>&nbsp; depfile=&#39;.deps/misc.Po&#39; tmpdepfile=&#39;.deps/misc.TPo&#39; \
<br>&nbsp; depmode=gcc /bin/bash ../depcomp \<br>&nbsp; gcc -DHAVE_CONFIG_H -I. -I. -I..&nbsp;&nbsp; -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include&nbsp;&nbsp; -I/usr/local/include/eventlog&nbsp;&nbsp; -D_GNU_SOURCE&nbsp; -g -O2 -Wall -g -c `test -f &#39;
misc.c&#39; || echo &#39;./&#39;`misc.c<br>&nbsp; In file included from /usr/local/include/glib-2.0/glib/galloca.h:30,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/local/include/glib-2.0/glib.h:30,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from syslog-ng.h:37,
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from misc.h:27,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from misc.c:24:<br>&nbsp; /usr/local/include/glib-2.0/glib/gtypes.h:30: glibconfig.h: No such file or directory<br>&nbsp; /usr/local/include/glib-2.0/glib/gtypes.h:385: #error unknown ENDIAN type
<br>&nbsp; make[2]: *** [misc.o] Error 1<br>&nbsp; make[2]: Leaving directory `/usr/local/src/syslog-ng-2.0.2/src&#39;<br>&nbsp; make[1]: *** [all-recursive] Error 1<br>&nbsp; make[1]: Leaving directory `/usr/local/src/syslog-ng-2.0.2&#39;<br>
&nbsp; make: *** [all] Error 2<br><br>&nbsp; The file &quot;glibconfig.h&quot; exists at following path, but I have no idea whether they relate to syslog-ng.<br><br>&nbsp; # find /usr -name glibconfig.h -exec grep {} /var/sadm/install/contents \;
<br>&nbsp; /usr/lib/sparcv9/glib-2.0/include/glibconfig.h f none 0644 root other 4636 35107 1052884337 SUNWgnome-base-libs-64<br>&nbsp; /usr/lib/glib-2.0/include/glibconfig.h f none 0644 root other 4670 37361 1052873864 SUNWgnome-base-libs-devel
<br>&nbsp; /usr/sfw/lib/glib/include/glibconfig.h f none 0644 root bin 3603 16163 1015056352 SUNWGlib<br><br>Please help!!!<br>Thanks!<br><br>Regards<br><br>George<br>