Re: make test fails (Kernel 2.6.12.3)
"Peter T. Breuer" <[email protected]>
| Newsgroups | gmane.linux.enbd.general |
|---|---|
| Message-ID | <[email protected]> |
"Also sprach Robert Scussel:"
> Before posting the only thing I can think of for proof, I looked at
> nbd/enbd-maketest and I thought it interesting that the load () function
> doesn't load .ko modules, only .o files
It doesn't do any loading at all. You have to load the modules
yourself beforehand.
> and since my enbd and
> enbd_ioctl modules are .ko files, they aren't loaded correctly.
They aren't loaded at all - unless you have an entry in modprobe.conf,
of course.
> I didn't
> find a enbd_bufferwr.ko or .o at all, so I don't know if my build went
> bad somewhere or what.
It didn't.
> I redid it from scratch:
No need ...
> -DDEBUG=0 -o file.o -c /var/tmp/nbd-2.4.32/nbd/file.c
> /var/tmp/nbd-2.4.32/nbd/file.c: In function `getsize1':
> /var/tmp/nbd-2.4.32/nbd/file.c:405: warning: long long int format, long
> unsigned int arg (arg 4)
That's strange! What architecture are you on? SOmething like that can
provoke a crash! That line is:
MSG("set size of fd %d to %Ld\n", fd, *res);
and res is declared in the argument of the function:
getsize1(struct nbd_file * self, int fd, u64 *res) {
so either your compiler is broken or you have a machine on which long
unsigned int is a u64!
Which?
Peter