From owner-freebsd-current Wed Sep 18 13: 0:19 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A5B637B401 for ; Wed, 18 Sep 2002 13:00:17 -0700 (PDT) Received: from sccrmhc01.attbi.com (sccrmhc01.attbi.com [204.127.202.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 836DE43E72 for ; Wed, 18 Sep 2002 13:00:16 -0700 (PDT) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org ([12.232.206.8]) by sccrmhc01.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020918200015.IENZ14978.sccrmhc01.attbi.com@InterJet.elischer.org>; Wed, 18 Sep 2002 20:00:15 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id MAA08306; Wed, 18 Sep 2002 12:57:18 -0700 (PDT) Date: Wed, 18 Sep 2002 12:57:17 -0700 (PDT) From: Julian Elischer To: Radko Keves Cc: current@FreeBSD.org Subject: Re: problem with compiling libkvm .. In-Reply-To: <20020918182303.GA53982@studnet.sk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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