sysklogd HEAD problemy z budowaniem

Paweł Sikora pluto w ds14.agh.edu.pl
Pią, 30 Sty 2004, 16:57:47 CET


On Thursday 29 of January 2004 20:31, Arkadiusz Patyk wrote:
> Witam
>
> gcc -Os -march=i386 -mcpu=i386 -falign-loops=0 -falign-jumps=0
> -falign-functions=0 -mno-align-double -DSYSV -Wall
>   -DFSSTND  -c ksym_mod.c
> In file included from /usr/include/linux/module.h:9,
>                  from ksym_mod.c:96:
> /usr/include/linux/sched.h:15:23: linux/smp.h: No such file or
> directory
> In file included from /usr/include/linux/signal.h:4,
>                  from /usr/include/linux/sched.h:17,
>                  from /usr/include/linux/module.h:9,
>                  from ksym_mod.c:96:
> /usr/include/asm/signal.h:14: error: conflicting types for `sigset_t'
> /usr/include/sys/select.h:38: error: previous declaration of
> `sigset_t'
> /usr/include/asm/signal.h:110: error: redefinition of `struct
> sigaction'
> /usr/include/asm/signal.h:124: error: redefinition of `struct
> sigaltstack'
> In file included from /usr/include/linux/signal.h:5,
>                  from /usr/include/linux/sched.h:17,
>                  from /usr/include/linux/module.h:9,
>                  from ksym_mod.c:96:
>
> kernel-source-2.4.25-0.1
> kernel-headers-2.4.25-0.1
> glibc-kernel-headers-2.6.1.1-1

a i owszem nie buduje sie, tylko u mnie rzygnal wiecej na ekran.
zerknalem w kod i jest tam sporo grzebania po symbolach kernela.
moze byc ciezko to zmusic do dzialania na userspejsowych naglowkach.

gcc -O2 -march=i686 -fomit-frame-pointer -funroll-all-loops -pipe -DSYSV -Wall  
-DFSSTND  -c ksym_mod.c
In file included from /usr/include/linux/module.h:9,
                 from ksym_mod.c:96:
/usr/include/linux/sched.h:15:23: linux/smp.h: Nie ma takiego pliku ani 
katalogu
In file included from /usr/include/linux/signal.h:4,
                 from /usr/include/linux/sched.h:17,
                 from /usr/include/linux/module.h:9,
                 from ksym_mod.c:96:
/usr/include/asm/signal.h:14: error: conflicting types for `sigset_t'
/usr/include/sys/select.h:38: error: previous declaration of `sigset_t'
/usr/include/asm/signal.h:110: error: redefinition of `struct sigaction'
/usr/include/asm/signal.h:124: error: redefinition of `struct sigaltstack'
In file included from /usr/include/linux/signal.h:5,
                 from /usr/include/linux/sched.h:17,
                 from /usr/include/linux/module.h:9,
                 from ksym_mod.c:96:
/usr/include/linux/siginfo.h:6: error: redefinition of `union sigval'
/usr/include/linux/siginfo.h:34: error: redefinition of `struct siginfo'
/usr/include/linux/siginfo.h:69: error: parse error before "clock_t"
/usr/include/linux/siginfo.h:86: error: parse error before '}' token
/usr/include/linux/siginfo.h:87: error: parse error before '}' token
/usr/include/linux/siginfo.h:230: error: redefinition of `struct sigevent'
In file included from /usr/include/linux/sched.h:19,
                 from /usr/include/linux/module.h:9,
                 from ksym_mod.c:96:
/usr/include/linux/fs_struct.h:8: error: parse error before "atomic_t"
/usr/include/linux/fs_struct.h:10: error: `umask' redeclared as different kind 
of symbol
/usr/include/sys/stat.h:272: error: previous declaration of `umask'
/usr/include/linux/fs_struct.h:13: error: parse error before '}' token
In file included from /usr/include/linux/sched.h:20,
                 from /usr/include/linux/module.h:9,
                 from ksym_mod.c:96:
/usr/include/linux/completion.h:15: error: parse error before 
"wait_queue_head_t"
/usr/include/linux/completion.h: In function `init_completion':
/usr/include/linux/completion.h:26: error: dereferencing pointer to incomplete 
type
/usr/include/linux/completion.h:27: error: dereferencing pointer to incomplete 
type
In file included from /usr/include/linux/sched.h:21,
                 from /usr/include/linux/module.h:9,
                 from ksym_mod.c:96:
/usr/include/linux/pid.h: At top level:
/usr/include/linux/pid.h:16: error: parse error before "atomic_t"
/usr/include/linux/pid.h:20: error: parse error before '}' token
/usr/include/linux/pid.h:24: error: field `pid_chain' has incomplete type
/usr/include/linux/pid.h:26: error: field `pid' has incomplete type
In file included from /usr/include/linux/sched.h:84,
                 from /usr/include/linux/module.h:9,
                 from ksym_mod.c:96:
/usr/include/linux/timer.h:8: error: field `entry' has incomplete type
/usr/include/linux/timer.h:11: error: parse error before "spinlock_t"
/usr/include/linux/timer.h:18: error: parse error before '}' token
/usr/include/linux/timer.h: In function `init_timer':
/usr/include/linux/timer.h:40: error: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:41: error: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:42: error: dereferencing pointer to incomplete type
/usr/include/linux/timer.h: In function `timer_pending':
/usr/include/linux/timer.h:57: error: dereferencing pointer to incomplete type
/usr/include/linux/timer.h: In function `add_timer':
/usr/include/linux/timer.h:81: error: dereferencing pointer to incomplete type
In file included from /usr/include/linux/sched.h:86,
                 from /usr/include/linux/module.h:9,
                 from ksym_mod.c:96:
/usr/include/asm/processor.h: At top level:
/usr/include/asm/processor.h:65: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared 
here (not in a function)
/usr/include/asm/processor.h:65: error: requested alignment is not a constant
In file included from ksym_mod.c:96:
/usr/include/linux/module.h:10:24: linux/stat.h: Nie ma takiego pliku ani 
katalogu
In file included from /usr/include/linux/elf.h:5,
                 from /usr/include/linux/module.h:13,
                 from ksym_mod.c:96:
/usr/include/asm/elf.h:25: error: invalid application of `sizeof' to an 
incomplete type
/usr/include/linux/module.h:15:23: asm/local.h: Nie ma takiego pliku ani 
katalogu
In file included from /usr/include/linux/module.h:17,
                 from ksym_mod.c:96:
/usr/include/asm/module.h:52:2: #error unknown processor family
ksym_mod.c:98: warning: `struct kernel_sym' declared inside parameter list
ksym_mod.c:138: error: field `module' has incomplete type
ksym_mod.c:140: error: field `module_info' has incomplete type
ksym_mod.c: In function `InitMsyms':
ksym_mod.c:209: warning: passing arg 1 of `get_kernel_syms' from incompatible 
pointer type
ksym_mod.c:223: error: invalid application of `sizeof' to an incomplete type
ksym_mod.c:231: warning: passing arg 1 of `get_kernel_syms' from incompatible 
pointer type
ksym_mod.c:247: error: dereferencing pointer to incomplete type
ksym_mod.c:247: error: dereferencing pointer to incomplete type
ksym_mod.c:254: error: increment of pointer to unknown structure
ksym_mod.c:254: error: arithmetic on pointer to an incomplete type
ksym_mod.c: In function `AddModule':
ksym_mod.c:412: error: invalid application of `sizeof' to an incomplete type
ksym_mod.c: At top level:
/usr/include/linux/pid.h:18: error: storage size of `task_list' isn't known
/usr/include/linux/pid.h:19: error: storage size of `hash_chain' isn't known
make: *** [ksym_mod.o] Błąd 1


kernel-doc-2.6.2-0.1
kernel-source-2.6.2-0.1
glibc-kernel-headers-2.6.1.1-1

-- 
The only thing necessary for the triumph of evil
  is for good men to do nothing.
                                           - Edmund Burke



Więcej informacji o liście dyskusyjnej pld-devel-pl