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