Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Apr 2004 13:20:20 +0200
From:      David Landgren <david@landgren.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: LSOF Compile Problems From Ports
Message-ID:  <4090E4F4.1070108@landgren.net>
In-Reply-To: <20040429094136.GA2440@pp.htv.fi>
References:  <408EF0E3.3040004@opsource.net> <20040429094136.GA2440@pp.htv.fi>

next in thread | previous in thread | raw e-mail | index | archive | help
Esa Karkkainen wrote:
> On Tue, Apr 27, 2004 at 04:46:43PM -0700, Victor Gregorio wrote:
> 
>>Hello folks.  I'm wondering if anyone is getting the same error I get 
>>when I try to make /usr/ports/sysutils/lsof.  I have a cvsup'd 
>>/usr/ports tree on 5.2.1-RELEASE-p5.  Output and error below...
> 
> 
> Yes, I have. The compilation problem can be fixed by replacing
> file "ports/sysutils/lsof/files/patch-aa" with the attached file.

That doesn't fix the problem here, although with the FREEBSDV>=520 / 
FREEBSDV>520 change but I'm not sure it would apply to me anyway. I'm 
running:

root@bechet:/usr/ports/sysutils/lsof# uname -a
FreeBSD bechet.bpinet.com 5.2-RELEASE FreeBSD 5.2-RELEASE #0: Sun Jan 11 
04:21:45 GMT 2004 
root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC  i386

I copied the patch over, ran a make clean and then a make and I still get:

(cd lib; make DEBUG="-O" CFGF="-pipe -march=pentiumpro -march=pentiumpro 
-DFREEBSDV=520 -DHASFDESCFS=2 -DHASNULLFS -DHAS9660FS -DHASIPv6 
-DLSOF_VSTR=\"5.2-RELEASE\"")
cc  -pipe -march=pentiumpro -march=pentiumpro -DFREEBSDV=520 
-DHASFDESCFS=2 -DHASNULLFS -DHAS9660FS -DHASIPv6 
-DLSOF_VSTR="5.2-RELEASE" -I/usr/src/sys -O -c ckkv.c
In file included from /usr/include/machine/endian.h:41,
                  from /usr/src/sys/sys/types.h:126,
                  from ../machine.h:42,
                  from ckkv.c:33:
/usr/include/sys/_types.h:100: error: conflicting types for `__mbstate_t'
/usr/include/machine/ansi.h:147: error: previous declaration of 
`__mbstate_t'
In file included from ckkv.c:33:
../machine.h:54: error: syntax error before "cpumask_t"
../machine.h:54: warning: data definition has no type or storage class
In file included from /usr/include/machine/signal.h:41,
                  from /usr/src/sys/sys/signal.h:178,
                  from /usr/src/sys/sys/param.h:98,
                  from ../machine.h:57,
                  from ckkv.c:33:
/usr/include/sys/_sigset.h:55: error: redefinition of `struct __sigset'
In file included from /usr/src/sys/sys/signal.h:178,
                  from /usr/src/sys/sys/param.h:98,
                  from ../machine.h:57,
                  from ckkv.c:33:
/usr/include/machine/signal.h:130: error: syntax error before "__aligned"
In file included from /usr/src/sys/sys/param.h:98,
                  from ../machine.h:57,
                  from ckkv.c:33:
/usr/src/sys/sys/signal.h:248:1: warning: "MINSIGSTKSZ" redefined
In file included from /usr/src/sys/sys/signal.h:178,
                  from /usr/src/sys/sys/param.h:98,
                  from ../machine.h:57,
                  from ckkv.c:33:
/usr/include/machine/signal.h:54:1: warning: this is the location of the 
previous definition
In file included from /usr/src/sys/sys/ucontext.h:34,
                  from /usr/src/sys/sys/signal.h:252,
                  from /usr/src/sys/sys/param.h:98,
                  from ../machine.h:57,
                  from ckkv.c:33:
/usr/include/machine/ucontext.h:74: error: syntax error before "__aligned"
In file included from /usr/src/sys/sys/param.h:104,
                  from ../machine.h:57,
                  from ckkv.c:33:
/usr/include/machine/limits.h:41:2: warning: #warning "machine/limits.h 
is deprecated.  Include sys/limits.h instead."
In file included from ../lsof.h:57,
                  from ckkv.c:43:
/usr/include/pwd.h:54: error: conflicting types for `time_t'
/usr/src/sys/sys/types.h:149: error: previous declaration of `time_t'
In file included from /usr/include/time.h:92,
                  from /usr/src/sys/sys/time.h:291,
                  from /usr/src/sys/sys/stat.h:50,
                  from ../lsof.h:60,
                  from ckkv.c:43:
/usr/include/sys/timespec.h:50: error: redefinition of `struct timespec'
In file included from ../dlsof.h:75,
                  from ../lsof.h:181,
                  from ckkv.c:43:
/usr/src/sys/sys/mbuf.h:128: error: `MSIZE' undeclared here (not in a 
function)
/usr/src/sys/sys/mbuf.h:131: error: `MSIZE' undeclared here (not in a 
function)
/usr/src/sys/sys/mbuf.h:253: error: `MCLBYTES' undeclared here (not in a 
function)
In file included from ../dlsof.h:91,
                  from ../lsof.h:181,
                  from ckkv.c:43:
/usr/src/sys/sys/socket.h:54: warning: redefinition of `socklen_t'
/usr/include/netdb.h:73: warning: `socklen_t' previously declared here
In file included from ../dlsof.h:165,
                  from ../lsof.h:181,
                  from ckkv.c:43:
/usr/include/nfsclient/nfs.h:127: error: `NFSX_V4STATEID' undeclared 
here (not in a function)
In file included from ../dlsof.h:166,
                  from ../lsof.h:181,
                  from ckkv.c:43:
/usr/include/nfsclient/nfsnode.h:115: error: `NFSX_V4VERF' undeclared 
here (not in a function)
In file included from /usr/include/machine/proc.h:40,
                  from /usr/src/sys/sys/proc.h:45,
                  from ../dlsof.h:172,
                  from ../lsof.h:181,
                  from ckkv.c:43:
/usr/include/machine/segments.h:67: error: syntax error before "__packed"
/usr/include/machine/segments.h:159: error: syntax error before "__packed"
In file included from ../dlsof.h:310,
                  from ../lsof.h:181,
                  from ckkv.c:43:
/usr/include/sys/bio.h:79: error: field `bio_t0' has incomplete type
In file included from ../dlsof.h:313,
                  from ../lsof.h:181,
                  from ckkv.c:43:
/usr/src/sys/sys/buf.h:142: error: `MAXPHYS' undeclared here (not in a 
function)
/usr/src/sys/sys/buf.h:142: error: variable-size type declared outside 
of any function
In file included from /usr/include/machine/pcb.h:46,
                  from /usr/src/sys/sys/user.h:40,
                  from ../dlsof.h:314,
                  from ../lsof.h:181,
                  from ckkv.c:43:
/usr/include/machine/npx.h:116: error: syntax error before numeric constant
In file included from /usr/src/sys/sys/user.h:59,
                  from ../dlsof.h:314,
                  from ../lsof.h:181,
                  from ckkv.c:43:
/usr/src/sys/sys/signalvar.h:69: error: field `si_sc' has incomplete type
/usr/src/sys/sys/signalvar.h:80: error: syntax error before "osigset_t"
In file included from ../dlsof.h:314,
                  from ../lsof.h:181,
                  from ckkv.c:43:

Thanks for any additional pointers,
David



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4090E4F4.1070108>