Re: 2.4.18-rmk7 + CVS jffs2 ld error (zlib)

Michael Palme
2002-08-29T16:10:32Z

thanks fot the answer.
but there is still one problem left:

background.c:92: warning: implicit declaration of function `set_user_nice'
fs/fs.o(.text+0x363a0): undefined reference to `set_user_nice'

the only place i've found this is <linux/mtd/compatmac.h> (link to the
mtd-cvs):

#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0)
/* Is this right? */
#define set_user_nice(tsk, n) do { (tsk)->priority = 20-(n); } while(0)
#elif LINUX_VERSION_CODE < KERNEL_VERSION(2,4,18)
#define set_user_nice(tsk, n) do { (tsk)->nice = n; } while(0)
#endif

so in 2.4.18 there is nothing related....

what should i do??? (i think of #elif LINUX_VERSION_CODE <
KERNEL_VERSION(2,4,19) )

thanks in advance ... Michael Palme

David Woodhouse schrieb:
>
> m.palme@goepel.com said:
>
>> so i grepped around in the list archive and found a possible solution
>>to remove compr_zlib.o from COMPR_OBJS in jffs2/Makefile. Now after
>>rebuilding i get:
>
>
> Don't do that. Apply
>
> http://ftp.kernel.org/pub/linux/kernel/people/dwmw2/shared-zlib/linux-2.4.19-pre10-shared-zlib.gz
>
>
>
> --
> dwmw2