Found problem for the below:
> kernel build from cmdline : always fails here
> make[2]: Entering directory `/usr/src/linux-2.4.20-gentoo-r6/kernel'
> gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r6/include -Wall
> -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
> -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc
> -iwithprefix include -DKBUILD_BASENAME=sched -fno-omit-frame-pointer -c -o
> sched.o sched.c sched.c: In function `resched_task':
> sched.c:366: warning: `tsk' might be used uninitialized in this function
> gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r6/include -Wall
> -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
> -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc
> -iwithprefix include -DKBUILD_BASENAME=dma -c -o dma.o dma.c gcc -D__KERNEL__
> -I/usr/src/linux-2.4.20-gentoo-r6/include -Wall -Wstrict-prototypes
> -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe
> -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix include
> -DKBUILD_BASENAME=fork -c -o fork.o fork.c fork.c: In function `do_fork':
> fork.c:744: structure has no member named `tms_stime'
> make[2]: *** [fork.o] Error 1
> make[2]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r6/kernel'
> make[1]: *** [first_rule] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r6/kernel'
> make: *** [_dir_kernel] Error 2
> RSivernell linux #
in gentoo-sources selinux r4 & gentoo-sources r5 in include/linux/times.h:
#ifndef _LINUX_TIMES_H
#define _LINUX_TIMES_H
struct tms {
clock_t tms_utime;
clock_t tms_stime;
clock_t tms_cutime;
clock_t tms_cstime;
};
#endif
in gentoo-sources r6:
#ifndef _LINUX_TIMES_H
#define _LINUX_TIMES_H
struct tms {
clock_t tms_utime;
clock_t tms_ctime;
clock_t tms_cutime;
clock_t tms_cstime;
};
#endif
This would be ok if all uses of tms_stime; to tms_ctime in all *.c files that
use this part of the struct. I have made the following change to times.h for r6;
#ifndef _LINUX_TIMES_H
#define _LINUX_TIMES_H
struct tms {
clock_t tms_utime;
clock_t tms_stime;// was clock_t tms_ctime RRS 09/04/03
clock_t tms_cutime;
clock_t tms_cstime;
};
#endif
In the following file:
/usr/src/linux-2.4.20-gentoo-r6/include/linux/un.h
#ifndef _LINUX_UN_H
#define _LINUX_UN_H
#define UNIX_PATH_MAX 100 // change ( to 0 RRS 09/04/03
struct sockaddr_un {
sa_family_t sun_family; /* AF_UNIX */
charsun_path[UNIX_PATH_MAX]; /* pathname */
};
#endif /* _LINUX_UN_H */
I changed #define UNIX_PATH_MAX 10( to #define UNIX_PATH_MAX100 , I used
100 becuase it appeared to be a fat finger here, I perform this trick myself.
It could be the wrong value too high or low, it needs to be checked out farther
after these two changes the following bxImage is built:
RSivernell linux # ls -al /boot
total 2594
drwxr-xr-x4 root root 1024 Sep 1 15:05 .
drwxr-xr-x 23 rick users 616 Sep 2 19:50 ..
-rw-r--r--1 root root0 Sep 2 07:09 .keep
lrwxrwxrwx1 root root1 May 14 07:33 boot -> .
-rw-r--r--1 root root 1189031 Sep 4 08:05 bzImage
-rw-r--r--1 root root 1437344 Sep 1 15:05 bzImage.sav
drwxr-xr-x2 root root 1024 Jun 22 19:32 grub
drwx--2 root root12288 May 14 07:23 lost+found
RSivernell linux #
question is do I need to send this to the gentoo developers or what?
cheers
--
Rick Sivernell
Dallas, Texas 75287
972 306-2296
[EMAIL PROTECTED]
Gentoo Linux
Registered Linux User
.~.
/ v \
/( _ )\
^ ^
In Linux we trust!
--
[EMAIL PROTECTED] mailing list