Problem compiling sysklogd 1.4.1

From: Pierre (pierre42d@9online.fr)
Date: Fri Jan 30 2004 - 09:39:04 CET


# gmake
gcc -s -O3 -march=i686 -DSYSV -fomit-frame-pointer -Wall
-fno-strength-reduce -DFSSTND -c ksym_mod.c
In file included from /usr/include/linux/timex.h:186,
                  from /usr/include/linux/sched.h:11,
                  from /usr/include/linux/module.h:10,
                  from ksym_mod.c:96:
/usr/include/linux/time.h:9: error: redefinition of `struct timespec'
/usr/include/linux/time.h:15: error: redefinition of `struct timeval'
In file included from /usr/include/linux/jiffies.h:6,
                  from /usr/include/linux/sched.h:12,
                  from /usr/include/linux/module.h:10,
                  from ksym_mod.c:96:
/usr/include/linux/spinlock.h: In function `bit_spin_lock':
/usr/include/linux/spinlock.h:413: error: invalid type argument of `->'
/usr/include/linux/spinlock.h: In function `bit_spin_trylock':
/usr/include/linux/spinlock.h:436: error: invalid type argument of `->'
/usr/include/linux/spinlock.h: In function `bit_spin_unlock':
/usr/include/linux/spinlock.h:451: error: invalid type argument of `->'
/usr/include/linux/spinlock.h:451: error: `TIF_NEED_RESCHED' undeclared
(first use in this function)
/usr/include/linux/spinlock.h:451: error: (Each undeclared identifier is
reported only once
/usr/include/linux/spinlock.h:451: error: for each function it appears in.)
/usr/include/linux/spinlock.h: In function `bit_spin_is_locked':
/usr/include/linux/spinlock.h:462: error: invalid type argument of `->'
In file included from /usr/include/linux/jiffies.h:7,
                  from /usr/include/linux/sched.h:12,
                  from /usr/include/linux/module.h:10,
                  from ksym_mod.c:96:
/usr/include/linux/seqlock.h: In function `write_seqlock':
/usr/include/linux/seqlock.h:52: error: invalid type argument of `->'
/usr/include/linux/seqlock.h: In function `write_sequnlock':
/usr/include/linux/seqlock.h:61: error: invalid type argument of `->'
/usr/include/linux/seqlock.h:61: error: `TIF_NEED_RESCHED' undeclared
(first use in this function)
/usr/include/linux/seqlock.h: In function `write_tryseqlock':
/usr/include/linux/seqlock.h:66: error: invalid type argument of `->'
/usr/include/linux/seqlock.h:66: error: invalid type argument of `->'
/usr/include/linux/seqlock.h:66: error: `TIF_NEED_RESCHED' undeclared
(first use in this function)
In file included from /usr/include/linux/sched.h:12,
                  from /usr/include/linux/module.h:10,
                  from ksym_mod.c:96:
/usr/include/linux/jiffies.h: At top level:
/usr/include/linux/jiffies.h:16: error: parse error before "jiffies_64"
/usr/include/linux/jiffies.h:20: error: parse error before "get_jiffies_64"
In file included from /usr/include/asm-generic/cpumask.h:8,
                  from /usr/include/asm/cpumask.h:4,
                  from /usr/include/linux/cpumask.h:5,
                  from /usr/include/linux/sched.h:15,
                  from /usr/include/linux/module.h:10,
                  from ksym_mod.c:96:
/usr/include/linux/bitmap.h: In function `bitmap_empty':
/usr/include/linux/bitmap.h:15: error: `BITS_PER_LONG' undeclared (first
use in this function)
/usr/include/linux/bitmap.h: In function `bitmap_full':
/usr/include/linux/bitmap.h:29: error: `BITS_PER_LONG' undeclared (first
use in this function)
/usr/include/linux/bitmap.h: In function `bitmap_equal':
/usr/include/linux/bitmap.h:44: error: `BITS_PER_LONG' undeclared (first
use in this function)
/usr/include/linux/bitmap.h: In function `bitmap_shift_right':
/usr/include/linux/bitmap.h:85: error: `__shr_tmp' undeclared (first use
in this function)
/usr/include/linux/bitmap.h: In function `bitmap_shift_left':
/usr/include/linux/bitmap.h:98: error: `__shl_tmp' undeclared (first use
in this function)
/usr/include/linux/bitmap.h: In function `bitmap_weight':
/usr/include/linux/bitmap.h:144: error: `BITS_PER_LONG' undeclared
(first use in this function)
In file included from /usr/include/linux/sched.h:21,
                  from /usr/include/linux/module.h:10,
                  from ksym_mod.c:96:
/usr/include/asm/mmu.h: At top level:
/usr/include/asm/mmu.h:13: error: field `sem' has incomplete type
In file included from /usr/include/linux/signal.h:4,
                  from /usr/include/linux/sched.h:25,
                  from /usr/include/linux/module.h:10,
                  from ksym_mod.c:96:
/usr/include/linux/list.h:594:2: warning: #warning "don't include kernel
headers in userspace"
In file included from /usr/include/linux/signal.h:6,
                  from /usr/include/linux/sched.h:25,
                  from /usr/include/linux/module.h:10,
                  from ksym_mod.c:96:
/usr/include/asm/signal.h:29: error: conflicting types for `sigset_t'
/usr/include/sys/select.h:38: error: previous declaration of `sigset_t'
/usr/include/asm/signal.h:158: error: redefinition of `struct sigaction'
/usr/include/asm/signal.h:173: error: redefinition of `struct sigaltstack'
In file included from /usr/include/asm/siginfo.h:4,
                  from /usr/include/linux/signal.h:7,
                  from /usr/include/linux/sched.h:25,
                  from /usr/include/linux/module.h:10,
                  from ksym_mod.c:96:
/usr/include/asm-generic/siginfo.h:7: error: redefinition of `union sigval'
/usr/include/asm-generic/siginfo.h:35: error: redefinition of `struct
siginfo'
/usr/include/asm-generic/siginfo.h:70: error: parse error before "clock_t"
/usr/include/asm-generic/siginfo.h:87: error: parse error before '}' token
/usr/include/asm-generic/siginfo.h:88: error: parse error before '}' token
/usr/include/asm-generic/siginfo.h:242: error: redefinition of `struct
sigevent'
In file included from /usr/include/linux/sched.h:29,
                  from /usr/include/linux/module.h:10,
                  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:30,
                  from /usr/include/linux/module.h:10,
                  from ksym_mod.c:96:
/usr/include/linux/pid.h: At top level:
/usr/include/linux/pid.h:18: error: field `task_list' has incomplete type
/usr/include/linux/pid.h:19: error: field `hash_chain' has incomplete type
/usr/include/linux/pid.h:24: error: field `pid_chain' has incomplete type
In file included from /usr/include/linux/sched.h:31,
                  from /usr/include/linux/module.h:10,
                  from ksym_mod.c:96:
/usr/include/linux/percpu.h: In function `__alloc_percpu':
/usr/include/linux/percpu.h:46: error: `GFP_KERNEL' undeclared (first
use in this function)
In file included from /usr/include/linux/sched.h:102,
                  from /usr/include/linux/module.h:10,
                  from ksym_mod.c:96:
/usr/include/linux/timer.h: At top level:
/usr/include/linux/timer.h:11: error: field `entry' has incomplete type
In file included from ksym_mod.c:96:
/usr/include/linux/module.h:190: error: field `list' has incomplete type
/usr/include/linux/module.h:238: error: field `modules_which_use_me' has
incomplete type
/usr/include/linux/module.h: In function `__module_get':
/usr/include/linux/module.h:297: error: invalid type argument of `->'
/usr/include/linux/module.h:298: error: invalid type argument of `->'
/usr/include/linux/module.h:298: error: `TIF_NEED_RESCHED' undeclared
(first use in this function)
/usr/include/linux/module.h: In function `try_module_get':
/usr/include/linux/module.h:307: error: invalid type argument of `->'
/usr/include/linux/module.h:312: error: invalid type argument of `->'
/usr/include/linux/module.h:312: error: `TIF_NEED_RESCHED' undeclared
(first use in this function)
/usr/include/linux/module.h: In function `module_put':
/usr/include/linux/module.h:320: error: invalid type argument of `->'
/usr/include/linux/module.h:325: error: invalid type argument of `->'
/usr/include/linux/module.h:325: error: `TIF_NEED_RESCHED' undeclared
(first use in this function)
ksym_mod.c: At top level:
ksym_mod.c:98: warning: `struct kernel_sym' declared inside parameter list
ksym_mod.c:98: warning: its scope is only this definition or
declaration, which is probably not what you want
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 `LookupModuleSymbol':
ksym_mod.c:583: error: structure has no member named `size'
ksym_mod.c:608: error: structure has no member named `size'
ksym_mod.c:620: error: structure has no member named `size'
gmake: *** [ksym_mod.o] Error 1



This archive was generated by hypermail 2.1.7 : Fri Jan 30 2004 - 10:05:42 CET