Date: Wed, 18 Sep 2002 12:57:17 -0700 (PDT) From: Julian Elischer <julian@elischer.org> To: Radko Keves <rado@studnet.sk> Cc: current@FreeBSD.org Subject: Re: problem with compiling libkvm .. Message-ID: <Pine.BSF.4.21.0209181256050.3069-100000@InterJet.elischer.org> In-Reply-To: <20020918182303.GA53982@studnet.sk>
next in thread | previous in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0209181256050.3069-100000>