[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Boot Messages
From: |
Kenneth Stailey |
Subject: |
Re: Boot Messages |
Date: |
Sun, 14 Apr 2002 19:45:20 -0700 (PDT) |
I'm not sure about this, but it puts klog into paths.def when "configure
--with-path-klog=/dev/klog" is used
Index: acinclude.m4
===================================================================
RCS file: /cvsroot/inetutils/inetutils/acinclude.m4,v
retrieving revision 1.5
diff -u -r1.5 acinclude.m4
--- acinclude.m4 8 Apr 2002 13:59:51 -0000 1.5
+++ acinclude.m4 15 Apr 2002 02:41:54 -0000
@@ -454,6 +454,7 @@
# Put the value in the autoconf cache. We replace $( with @( to avoid
# variable evaluation problems when autoconf reads the cache later.
echo inetutils_cv_$iu_pathvar=\'"`echo "$iu_val" | sed 's/\$(/@(/g'`"\'
+ echo inetutils_cv_hdr_sym_$iu_pathvar=\'\""$iu_val"\"\'
elif test "$iu_hdr"; then
AC_MSG_RESULT(${iu_cached}from $iu_sym in $iu_hdr)
echo inetutils_cv_hdr_$iu_pathvar=\'"$iu_hdr"\'
--- Kenneth Stailey <address@hidden> wrote:
>
> --- Marcus Brinkmann <address@hidden> wrote:
> > On Sat, Apr 13, 2002 at 03:03:55PM -0700, Kenneth Stailey wrote:
> > > I "hot wired" include/confpaths.h by putting PATH_KLOG into it and the
> > > resulting binary did have /dev/klog support but then syslogd put the
> > messages
> > > into /var/log/user.log not /var/log/kern.log
> > >
> > > from /etc/syslog.conf
> > > kern.* /var/log/kern.log
> > > user.* /var/log/user.log
> >
> > I can not explain this. syslogd.c logs kernel messags from the klog file
> > with the function printsys, which uses DEFSPRI which has the LOG_KERN bit
> > set. Could you run in debug mode and/or set a breakpoint on printsys to
> see
> > what is going on?
>
> This was my mistake. The messages in user.log were from my logger script.
> No
> messages from /dev/klog are copied to any log files by syslogd.
>
> > > > On Sat, Apr 13, 2002 at 02:46:13PM -0700, Kenneth Stailey wrote:
> > > > > What am I doing wrong here?
> > > > >
> > > > > # mkdir cvs
> > > > > # cd cvs
> > > > > # cvs -d:pserver:address@hidden:/cvsroot/inetutils login
> > > > > [just hit enter for the password]
> > > > > # cvs -z3 -d:pserver:address@hidden:/cvsroot/inetutils
> co
> > -r
> > > > > release1_4_0 inetutils
> > > > > [inetutils downloads]
> > > > > # mkdir inetutils-obj
> > > > > # cd inetutils
> > > > > # ./autogen.sh
> > > > > [blah]
> > > > > # cd ../inetutils-obj
> > > > > # ../inetutils/configure --with-path-klog=/dev/klog
> > > > > [blah]
> > > > > # make
> > > > > [blah]
> > > > > # make install
> > > > >
> > > > > The resulting syslogd does not have /dev/klog support.
> >
> > This might very well be because of the trailing "no" in the "paths" file.
> > You could try to understand and debug the IU_CONFIG_PATHS macro in
> > acinclude.m4, where the error would lie. Somehow the precedence is messed
> > up here.
>
> So far I notice that pathdefs.make is generated with what appears to be a
> correct reference to PATH_KLOG but paths.defs has no reference to PATH_KLOG.
>
> $ cd inetutils-obj
> $ grep -i klog ../inetutils/paths pathdefs.make paths.defs
> inetutils/paths:PATH_KLOG <syslog.h> /dev/klog /no
> pathdefs.make:PATHDEF_KLOG = -DPATH_KLOG=\"/dev/klog\"
> $
>
> I also notice that config.log has
>
> inetutils_cv_PATH_KLOG=/dev/klog
>
> while IU_CONFIG_PATH wants
>
> inetutils_cv_hrd_sym_PATH_KLOG=/dev/klog
>
> when generating paths.defs
>
> > If you have /dev/klog, it should also find and use it automatically. If
> > that doesn't work, the error must again be in the IU_CONFIG_PATHS macro.
> > Maybe it is the same bug even.
> >
> > Thanks,
> > Marcus
> >
> > --
> > `Rhubarb is no Egyptian god.' Debian http://www.debian.org
> address@hidden
> > Marcus Brinkmann GNU http://www.gnu.org address@hidden
> > address@hidden
> > http://www.marcus-brinkmann.de
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
>
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/