[OpenAFS] afsd: Error -1 in basic initialization
Derrick J Brashear
shadow@dementia.org
Tue, 22 Jul 2003 16:39:56 -0400 (EDT)
On Tue, 22 Jul 2003, Benjamin P Myers wrote:
> >
> > do you have an old module being loaded somehow? if not, then i guess i
> > have to look for how it might be miscompiled.
>
> I'm pretty sure that i have a current module; i can see the AFSOP_BASIC_INIT
> in afs_call.c and 1.2.9a is the only version i've used on this system. I put
>
> if(error == -1)
> {
> perror("syscall()");
> }
>
> after the syscall() in afsd.c. it seems that every syscall() returns -1. I
> saw some warnings about 'major' and 'minor' being redefined when the module
> was built. I commented out the definitions in the offending header file
> (/usr/src/linux/include/linux/kdev_t.h) so now it looks like this:
[]
>
> recompiled (no warnings), tried the new module, but had the same problem. How
> else could the module have been miscompiled?
not through any fault of yours. it would be a bad ifdef combination, if
it's what i had in mind.