Hi, Alex. Thanks for the reply.
It sounds like I need to retest with the CVS version. This is awkward
for me because Nortel's firewalls won't pass CVS traffic, so I'll have
to use my crappy University account :-(.
I don't actually need Lothar for anything, but I think it's neat :-) I
hear that Lorax has some additional hardware detection capability (PnP
monitors?) have you looked at it?
I'll have another libdetect debug session tonight.
- Andrew.
[EMAIL PROTECTED] wrote:
>
> "Andrew Morton" <[EMAIL PROTECTED]> writes:
>
> > Well, not really, but it wedges my machine good and proper.
> >
> > It's a Celeron with Mandrake 6.0 (plus most of the updates).
> >
> > I've attached the 'dmesg' output for this machine to this email.
> >
> > It died using the RPM versions so I attempted to compile the latest
> > version.
>
> > ------------------------
> > Problem: http://www.linux-mandrake.com/lothar/download.html refers to
> > ftp://ftp.mandrakesoft.com/pub/alex/lothar/SNAPS/lothar-19990820-cvssnap.tar.bz2,
> > but that doesn't ezist.
> >
> > Fix: downloaded lothar-0.3.tar.bz2 and detect-0.9.24.tar.bz2
>
> Ok. Al should fix this.
>
> > --------------------------
> > Problem: compiling detect/src/disk.c:
> >
> > In file included from disk.c:26:
> > disk.h:16: scsi/scsi_ioctl.h: No such file or directory
> >
> > Fix: change <scsi/scsi_ioctl.h> to <include/scsi/scsi_ioctl.h> in disk.h
>
> Fixed. It was a problem in configure.in.
>
> > -------------------------
> > Problem: compiling lothar/src/lothar.c:
> >
> > lothar.c: In function `config_event':
> > lothar.c:144: `WNOHANG' undeclared (first use in this function)
> >
> > Fix: add #include <wait.h> straight after "../config.h" in lothar.c
>
> config.h is a file regenerated each time before compiling.
>
> > ---------------------------
> > Problem: compiling lothar/src/lothar.c:
> >
> > lothar.c: In function `select_item':
> > lothar.c:220: `HAS_DMA16' undeclared (first use in this function)
> >
> > Fix: just commented that bit out of lothar.c (sorry).
>
> Check ChangeLog if HAS_DMA16 has been removed or not.
>
> > ---------------------------
> > Problem: detect/src/pnpdump/*.c not compiled with '-g'
> > Fix: kludged '-g -O' into Makefile
>
> Should be put in Makefile.am.
>
> > ---------------------------
>
> > When I run this version the machine still hangs.
> >
> > I'll investigate further tomorrow, but I have a few questions:
> >
> > 0: Can someone please put the latest version of the sources up on the
> > server?
>
> By latest version you mean CVS snapshot?
>
> > 1: How do I debug this program? I know it's dying within pnpdump(), but
> > after spending a few minutes pressing the ENTER key in gdb, stepping a
> > line at a time I got bored. Any suggestions?
>
> > I tried 'strace -f lothar' but the output wasn't very interesting - the
> > last thing which came out was 'select(4, [3], NULL, NULL, NULL'.
> > There's probably more interesting info buffered between lothar and my X
> > server....
>
> Have you the same problem by using pnpdump directly? try to use detect
> program on console mode and under X.
>
> > 2: Any suggestions as to how I can avoid those long fsck's? Perhaps I
> > can run lothar from a ramdisk and remount everything readonly?
>
> Oups....not really a solution. It will take time.
>
> > Suggestion: lothar should call sync() before it starts probing!
>
> Yes totally rigth in your case.
>
> > Thanks,
> > Andrew.
>
> Thanks for all your information and your suggestion,
> Alex.
>
> --
> MandrakeSoft http://www.mandrakesoft.com/
> --Alexandre