[syslog-ng] problem in compiling "syslog-ng-2.0.2" on SunOS 5.9 sparc

Root Administrator root.regist at gmail.com
Wed Mar 28 08:45:05 CEST 2007


>
> These are the package information about GLIB.
>
>   # pkginfo -l SUNWGlib
>      PKGINST:  SUNWGlib
>         NAME:  GLIB - Library of useful routines for C programming
>     CATEGORY:  system
>         ARCH:  sparc
>      VERSION:  11.9.0,REV=2002.03.02.00.35
>      BASEDIR:  /
>       VENDOR:  Sun Microsystems, Inc.
>         DESC:  GLIB - Library of useful routines for C programming
>       PSTAMP:  sfw8120020302003551
>     INSTDATE:  Aug 27 2004 19:50
>      HOTLINE:  Please contact your local service provider
>       STATUS:  completely installed
>        FILES:       33 installed pathnames
>                      8 shared pathnames
>                     11 directories
>                      7 executables
>                    779 blocks used (approx)
>
>   # pkginfo -l SMCglib
>      PKGINST:  SMCglib
>         NAME:  glib
>     CATEGORY:  application
>         ARCH:  sparc
>      VERSION:  2.6.2
>      BASEDIR:  /usr/local
>       VENDOR:  The GLIB Project
>       PSTAMP:  Steve Christensen
>     INSTDATE:  3月 05 2007 15:50
>        EMAIL:  steve at smc.vnet.net
>       STATUS:  completely installed
>        FILES:      780 installed pathnames
>                      8 shared pathnames
>                    163 directories
>                     17 executables
>                  42974 blocks used (approx)
>
> SUNWGlib is the pre-installed package.
> SMCglib is that I did pkgadd successfully.
>    file is :
> ftp://ftp.sunfreeware.com/pub/freeware/sparc/9/glib-2.6.2-sol9-sparc-local.gz
>
>
> --------------------------------------------------------------------------------
>
> Further information about the package is as,
>
>   # cat /usr/local/lib/pkgconfig/glib-2.0.pc
>   prefix=/usr/local
>   exec_prefix=${prefix}
>   libdir=${exec_prefix}/lib
>   includedir=${prefix}/include
>
>   glib_genmarshal=glib-genmarshal
>   gobject_query=gobject-query
>   glib_mkenums=glib-mkenums
>
>   Name: GLib
>   Description: C Utility Library
>   Version: 2.6.2
>   Libs: -L${libdir} -lglib-2.0  -liconv
>   Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include
>
> and,
>
>   # export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/:/usr/lib/pkgconfig/
>   # pkg-config --cflags glib-2.0
>   -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
>
> but,
>
>   # ls /usr/local/lib/g*
>   /usr/local/lib/g*: No such file or directory
>
> Therefore, it seems that the installed package does NOT create the
> directories
> which are necessary to compile syslog-ng-2.0.2.
> Further, the package does NOT create the file "glibconfig.h" which should
> exist
> in /usr/local/lib/glib-2.0/include.
>
> I simply tried to copy the file "/usr/sfw/lib/glib/include/glibconfig.h"
> into
> "/usr/local/lib/glib-2.0/include/" , and done make again.
> Then, it passes the problem regarding "file does not exist" , although it
> errors out
> a lot more elsewhere since the file "glibconfig.h" belongs to the original
> package.
>
>
> --------------------------------------------------------------------------------
>
> find /usr/local -name glibconfig.h -ls
> returns
> none
>
> find /usr/local -name gtypes.h -ls
> returns
> 135296   15 -rw-r--r--   1 root     bin         15241 Mar  1  2005
> /usr/local/include/glib-2.0/glib/gtypes.h
>
>
> --------------------------------------------------------------------------------
>
> About the missing blank space,
> there IS a space before the second -I.
> There was a space in the text before sending.
> It was deleted somehow at the mail archive.
> I do not know why,,,
>
>
> --------------------------------------------------------------------------------
>
> Questions are,,,
> Q1. Is the package I have installed appropriate in order to compile
> syslog-ng-2.0.2 ?
> Q2. Are there any package dependencies associated with this package ?
>
> Please help out.
>
> Regards,
>
> George
>
> ------------------------------
>
> Message: 4
> Date: Tue, 27 Mar 2007 03:01:06 -0400
> From: Valdis.Kletnieks at vt.edu
> Subject: Re: [syslog-ng] problem in compiling "syslog-ng-2.0.2" on
>         SunOS 5.9       sparc
> To: "Syslog-ng users' and developers' mailing list"
>         <syslog-ng at lists.balabit.hu>
> Message-ID: <200703270701.l2R716nZ014513 at turing-police.cc.vt.edu>
> Content-Type: text/plain; charset="us-ascii"
>
> 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...)
>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: not available
> Type: application/pgp-signature
> Size: 226 bytes
> Desc: not available
> Url :
> http://lists.balabit.hu/pipermail/syslog-ng/attachments/20070327/6cbeae45/attachment-0001.pgp
>
> ------------------------------
>
> _______________________________________________
> syslog-ng maillist  -  syslog-ng at lists.balabit.hu
> https://lists.balabit.hu/mailman/listinfo/syslog-ng
>
>
> End of syslog-ng Digest, Vol 23, Issue 29
> *****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20070328/18b2e4b4/attachment.html


More information about the syslog-ng mailing list