your include files are out of date..
libkvm uses a lot of kernel derived includes.

TDS_INHIBITED is in /sys/sys/proc.h  --> /usr/include/sys/proc.h

On Wed, 18 Sep 2002, Radko Keves wrote:

> i try to compile kvm library with today's source on i386 tree and have found this 
>error:
> 
> [...]
> cc -O -pipe -mcpu=pentiumpro -DLIBC_SCCS -I/usr/src/lib/libkvm  -c 
>/usr/src/lib/libkvm/kvm.c -o kvm.o
> In file included from /usr/src/lib/libkvm/kvm.c:63:
> /usr/src/lib/libkvm/kvm.h:49: syntax error before "size_t"
> /usr/src/lib/libkvm/kvm.h:49: warning: useless keyword or type name in empty 
>declaration
> /usr/src/lib/libkvm/kvm.h:49: warning: empty declaration
> /usr/src/lib/libkvm/kvm.h:54: syntax error before "ssize_t"
> /usr/src/lib/libkvm/kvm.h:54: warning: useless keyword or type name in empty 
>declaration
> /usr/src/lib/libkvm/kvm.h:54: warning: empty declaration
> *** Error code 1
> 
> 
> and when i make changes in Makefile:
> < CFLAGS+=-DLIBC_SCCS
> ---
> > CFLAGS+=-DLIBC_SCCS -I${.CURDIR}
> 
> 
> have found this error:
> [...]
> cc -O -pipe -mcpu=pentiumpro -DLIBC_SCCS  -c /usr/src/lib/libkvm/kvm_proc.c -o 
>kvm_proc.o
> /usr/src/lib/libkvm/kvm_proc.c: In function `kvm_proclist':
> /usr/src/lib/libkvm/kvm_proc.c:346: `TDS_INHIBITED' undeclared (first use in this 
>function)
> /usr/src/lib/libkvm/kvm_proc.c:346: (Each undeclared identifier is reported only once
> /usr/src/lib/libkvm/kvm_proc.c:346: for each function it appears in.)
> *** Error code 1
> 
> 
> 
> but don't know what is TDS_INHIBITED 
> i haven't found it in includes only in source tree:
> /usr/src/sys/sys/proc.h so i append it to kvm.c
> but:
> [...]
> many errors and:
> /usr/src/sys/sys/proc.h:568: `MAXCOMLEN' undeclared here (not in a function)
> In file included from /usr/include/sys/user.h:61,
>                  from /usr/src/lib/libkvm/kvm.c:49:
> /usr/include/sys/signalvar.h: In function `__sigisempty':
> /usr/include/sys/signalvar.h:172: structure has no member named `__bits'
> /usr/include/sys/signalvar.h: In function `__sigseteq':
> /usr/include/sys/signalvar.h:184: structure has no member named `__bits'
> /usr/include/sys/signalvar.h:184: structure has no member named `__bits'
> *** Error code 1
> 
> so i thing this way is wrong
> have someone this experience too ?
> bye
> -- 
> 20:05  up 22:46, 16 users, load averages: 0,44 0,15 0,06
> --
> FreeBSD 5.0-CURRENT #15: root@kripel:/usr/src/sys/i386/compile/angel
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-current" in the body of the message
> 


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to