[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problems with 4.0beta4
- To: hobbit (at) hswn.dk
- Subject: Problems with 4.0beta4
- From: Emmanuel Dreyfus <manu (at) netbsd.org>
- Date: Thu, 13 Jan 2005 13:47:33 +0000
- User-agent: Mutt/1.4.2i
Hi
I packaged Hobbit monitor for NetBSD package collection (pkgsrc), and
I have various problems with it. Let's start by the worst:
My pages only show a info column. I can't have columns for all the
service I asked monitoring.
Something that might be related, ~/data/logs quickly receive a
bb-laardcolumn.core
Here is the post mortem diagnosis, thanks to gdb:
#0 generate_larrd (rrddirname=0x807e040 "/usr/pkg/hobbit/data/rrd",
larrdcolumn=0x807f030 "trends", larrd043=1, hobbitd=1)
at bb-larrdcolumn.c:337
337 bb-larrdcolumn.c: No such file or directory.
in bb-larrdcolumn.c
(gdb) bt
#0 generate_larrd (rrddirname=0x807e040 "/usr/pkg/hobbit/data/rrd",
larrdcolumn=0x807f030 "trends", larrd043=1, hobbitd=1)
at bb-larrdcolumn.c:337
#1 0x0804a19b in main (argc=4, argv=0xbfbfe0e0) at bb-larrdcolumn.c:442
#2 0x080494c2 in ___start ()
(gdb) print graph->larrdrrdname
$1 = 0x99990009 <Address 0x99990009 out of bounds>
(gdb) print graph
$2 = (larrdgraph_t *) 0x481085e0
(gdb) print *graph
$3 = {larrdrrdname = 0x99990009 <Address 0x99990009 out of bounds>,
larrdpartname = 0x0, maxgraphs = 0}
Does that ring a bell?
Then, less serious problems I ran into when packaging because of the
interactive configure script. My goal is to have it automatically building.
It would be nice if the configure script could check if a variable
is not set before asking it to the user, that would make my life easier.
Eg: instead of
read foobar
if test -z $foobar ...
do this:
if test -z $foobar ; then
read foobar
fi
if test -z $foobar ...
That way if I set the variables before running the script, it will complete
without asking any questions. If you are interested by this change, I can
provide a set of patch that do it. Otherwise that's fine, the NetBSD
package will just add the patches.
Another problem is the test for the BBTOPDIR directory. My package system
creates it at install time, so if the FAILURE could turn into a WARNING and
not exit, it would be nice for me.
I also have a build/Makefile.NetBSD:
# bbgen compile-time settings for FreeBSD systems
OSDEF = -DBSD
# NETLIBS: None needed
NETLIBS =
# Compile flags for normal build
CC = gcc
CFLAGS = -g -O2 -Wall -Wno-unused -D_REENTRANT -I/usr/local/include \
-I/usr/pkg/include -L/usr/local/lib -L/usr/pkg/lib
# Compile flags for debugging
# CFLAGS = -g -DDEBUG -Wall -D_REENTRANT -I/usr/local/include -L/usr/local/lib
And finnally, a minor problem in docs/Makefile: on my system, true is in
/usr/bin and not /bin. I gues just "true" (with no path) is a good fix.
--
Emmanuel Dreyfus
manu (at) netbsd.org