problem in compiling "syslog-ng-2.0.2" on SunOS 5.9 sparc
Hi, I have been facing the problem in compiling "syslog-ng-2.0.2" on SunOS 5.9sparc. The steps I have followed are described below. Could anyone plz help troubleshooting? [Condition] "GLIB" package is that of pre-installed. The package information about "GLIB" is ; # pkginfo | grep -i glib system SUNWGlib GLIB - Library of useful routines for C programming [Steps] 1. Install "eventlog-0.2.5" that is required by syslog-ng 2.0.2. The source file is from http://www.balabit.com/ Installation was successfully completed. 2. Configure "syslog-ng 2.0.2" # ./configure --enable-dynamic-linking It resulted in the following error. checking for GLIB... Requested 'glib-2.0 >= 2.2' but version of GLib is 2.0.7 configure: error: Cannot find GLib library version >= 2.2: is pkg-config in path? It seems the version of "GLIB" is older. Thus, I installed newer version of GLIB "glib-2.6.2". The file is downloaded from the following URL, ftp://ftp.sunfreeware.com/pub/freeware/sparc/9/glib-2.6.2-sol9-sparc-local.gz The package information is ; # pkginfo | grep -i glib application SMCglib glib system SUNWGlib GLIB - Library of useful routines for C programming 3. 2nd attempt of configure New package is installed in previous step so that I changed the PATH to make sure the installed package is first reached. # export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/:/usr/lib/pkgconfig/ # ./configure --enable-dynamic-linking Configure is successfully completed. 4. Compile # make It resulted in the following error. make all-recursive make[1]: Entering directory `/usr/local/src/syslog-ng-2.0.2' Making all in src make[2]: Entering directory `/usr/local/src/syslog-ng-2.0.2/src' source='misc.c' object='misc.o' libtool=no \ depfile='.deps/misc.Po' tmpdepfile='.deps/misc.TPo' \ depmode=gcc /bin/bash ../depcomp \ 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 In file included from /usr/local/include/glib-2.0/glib/galloca.h:30, from /usr/local/include/glib-2.0/glib.h:30, from syslog-ng.h:37, from misc.h:27, from misc.c:24: /usr/local/include/glib-2.0/glib/gtypes.h:30: glibconfig.h: No such file or directory /usr/local/include/glib-2.0/glib/gtypes.h:385: #error unknown ENDIAN type make[2]: *** [misc.o] Error 1 make[2]: Leaving directory `/usr/local/src/syslog-ng-2.0.2/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/syslog-ng-2.0.2' make: *** [all] Error 2 The file "glibconfig.h" exists at following path, but I have no idea whether they relate to syslog-ng. # find /usr -name glibconfig.h -exec grep {} /var/sadm/install/contents \; /usr/lib/sparcv9/glib-2.0/include/glibconfig.h f none 0644 root other 4636 35107 1052884337 SUNWgnome-base-libs-64 /usr/lib/glib-2.0/include/glibconfig.h f none 0644 root other 4670 37361 1052873864 SUNWgnome-base-libs-devel /usr/sfw/lib/glib/include/glibconfig.h f none 0644 root bin 3603 16163 1015056352 SUNWGlib Please help!!! Thanks! Regards George
On Tue, 27 Mar 2007 11:57:42 +0900, Root Administrator said:
ftp://ftp.sunfreeware.com/pub/freeware/sparc/9/glib-2.6.2-sol9-sparc-local.gz
The package information is ;
# pkginfo | grep -i glib application SMCglib glib system SUNWGlib GLIB - Library of useful routines for C programming
Humor me, part one - can you get pkginfo to tell you what release(s) of glib this is? And is the sol9-sparc-local file referenced above actually the one you did a successful pkgadd with? (I'm suspecting that there's something wrong here, as later on you look to see what the pkginfo database has in it, and we *don't* see anything referencing /usr/local, even though:
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
We see a reference to /usr/local/include, and /usr/local/lib/include. Also, please double-check if you had a cut-n-paste error - there's a missing blank before the second -I. What does this command return: % pgk-config --cflags glib-2.0 (If this has 2 -I flags with a missing space, that's your problem).
In file included from /usr/local/include/glib-2.0/glib/galloca.h:30, from /usr/local/include/glib-2.0/glib.h:30, from syslog-ng.h:37, from misc.h:27, from misc.c:24:
OK, here we've found a glib include in /usr/local/include, somehow.
/usr/local/include/glib-2.0/glib/gtypes.h:30: glibconfig.h: No such file or directory
but something is fishy about it.
# find /usr -name glibconfig.h -exec grep {} /var/sadm/install/contents \;
Humor me, part two: What does this return: # find /usr/local -name glibconfig.h -ls # find /usr/local -name gtypes.h -ls (We skip the grep because I'm curious what's actually on the system, as opposed to what files pgkadd *thinks* are on the system...)
participants (2)
-
Root Administrator
-
Valdis.Kletnieks@vt.edu