ports/66044: lsof doesnt compile on RELENG_5_2

Eivind Olsen eivind at aminor.no
Wed Apr 28 09:00:28 UTC 2004


>Number:         66044
>Category:       ports
>Synopsis:       lsof doesnt compile on RELENG_5_2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 28 02:00:28 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Eivind Olsen
>Release:        FreeBSD 5.2.1-RELEASE-p5 i386
>Organization:
Aminor
>Environment:
System: FreeBSD vimes.eivind 5.2.1-RELEASE-p5 FreeBSD 5.2.1-RELEASE-p5 #0: Fri Apr 16 12:24:48 CEST 2004 root at vimes.eivind:/usr/obj/usr/src/sys/VIMES i386



>Description:
Compilation of lsof fails on FreeBSD 5.2.1-p5 (RELENG_5_2):

vimes# portupgrade lsof
--->  Upgrading 'lsof-4.71' to 'lsof-4.71.1' (sysutils/lsof)
--->  Building '/usr/ports/sysutils/lsof'
===>  Cleaning for lsof-4.71.1
===>  Vulnerability check disabled
===>  Extracting for lsof-4.71.1
>How-To-Repeat:
vimes# cd /usr/ports/sysutils/lsof/
vimes# ident Makefile
Makefile:
     $FreeBSD: ports/sysutils/lsof/Makefile,v 1.127 2004/04/18 05:32:41 obrien Exp $
vimes# make
===>  Vulnerability check disabled
===>  Extracting for lsof-4.71.1
>Fix:

	


>Release-Note:
>Audit-Trail:
>Unformatted:
 >> Checksum OK for lsof_4.72A.freebsd.tar.bz2.
 ===>  Patching for lsof-4.71.1
 ===>  Applying FreeBSD patches for lsof-4.71.1
 ===>  Configuring for lsof-4.71.1
 rm -f ddev.c dfile.c dlsof.h dmnt.c dnode*.c dproc.c dproto.h dsock.c dstore.c kernelbase.h machine.h machine.h.old new_machine.h __lseek.s Makefile ./tests/config.cflags
 rm -f ./tests/config.cc ./tests/config.xobj ./tests/config.ldflags
 ln -s dialects/freebsd/dlsof.h dlsof.h
 ln -s dialects/freebsd/dmnt.c dmnt.c
 ln -s dialects/freebsd/dnode.c dnode.c
 ln -s dialects/freebsd/dnode1.c dnode1.c
 ln -s dialects/freebsd/dproc.c dproc.c
 ln -s dialects/freebsd/dproto.h dproto.h
 ln -s dialects/freebsd/dsock.c dsock.c
 ln -s dialects/freebsd/dstore.c dstore.c
 ln -s dialects/freebsd/machine.h machine.h
 Makefile and lib/Makefile created.
 ./tests/config.cc created
 ./tests/config.cflags created
 ./tests/config.ldflags created
 ./tests/config.xobj created
 ===>  Building for lsof-4.71.1
 (cd lib; make DEBUG="-O" CFGF="-pipe -march=pentium3 -DFREEBSDV=520 -DHASFDESCFS=2 -DHASPSEUDOFS -DHASNULLFS -DHAS9660FS -DHASIPv6 -DLSOF_VSTR=\"5.2.1-RELEASE-p5\"")
 cc  -pipe -march=pentium3 -DFREEBSDV=520 -DHASFDESCFS=2 -DHASPSEUDOFS -DHASNULLFS -DHAS9660FS -DHASIPv6 -DLSOF_VSTR="5.2.1-RELEASE-p5" -I/usr/src/sys -O -c ckkv.c
 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
 *** Error code 1
 
 Stop in /usr/ports/sysutils/lsof/work/lsof_4.72A.freebsd/lib.
 *** Error code 1
 
 Stop in /usr/ports/sysutils/lsof/work/lsof_4.72A.freebsd.
 *** Error code 1
 
 Stop in /usr/ports/sysutils/lsof.
 ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade87540.0 make
 ** Fix the problem and try again.
 ** Listing the failed packages (*:skipped / !:failed)
         ! sysutils/lsof (lsof-4.71)     (bad C++ code)
 --->  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
 vimes#
 
 My guess is that this is because the port expects FreeBSD >= 5.2.0 to have __cpumask_t defined,
 but that value doesn't seem to be defined anywhere. Revision 1.19 of
 sys/i386/include/_types.h has it defined, but not revision 1.17 which is in RELENG_5_2.
 
 
 >> Checksum OK for lsof_4.72A.freebsd.tar.bz2.
 ===>  Patching for lsof-4.71.1
 ===>  Applying FreeBSD patches for lsof-4.71.1
 ===>  Configuring for lsof-4.71.1
 rm -f ddev.c dfile.c dlsof.h dmnt.c dnode*.c dproc.c dproto.h dsock.c dstore.c kernelbase.h machine.h machine.h.old new_machine.h __lseek.s Makefile ./tests/config.cflags
 rm -f ./tests/config.cc ./tests/config.xobj ./tests/config.ldflags
 ln -s dialects/freebsd/dlsof.h dlsof.h
 ln -s dialects/freebsd/dmnt.c dmnt.c
 ln -s dialects/freebsd/dnode.c dnode.c
 ln -s dialects/freebsd/dnode1.c dnode1.c
 ln -s dialects/freebsd/dproc.c dproc.c
 ln -s dialects/freebsd/dproto.h dproto.h
 ln -s dialects/freebsd/dsock.c dsock.c
 ln -s dialects/freebsd/dstore.c dstore.c
 ln -s dialects/freebsd/machine.h machine.h
 Makefile and lib/Makefile created.
 ./tests/config.cc created
 ./tests/config.cflags created
 ./tests/config.ldflags created
 ./tests/config.xobj created
 ===>  Building for lsof-4.71.1
 (cd lib; make DEBUG="-O" CFGF="-pipe -march=pentium3 -DFREEBSDV=520 -DHASFDESCFS=2 -DHASPSEUDOFS -DHASNULLFS -DHAS9660FS -DHASIPv6 -DLSOF_VSTR=\"5.2.1-RELEASE-p5\"")
 cc  -pipe -march=pentium3 -DFREEBSDV=520 -DHASFDESCFS=2 -DHASPSEUDOFS -DHASNULLFS -DHAS9660FS -DHASIPv6 -DLSOF_VSTR="5.2.1-RELEASE-p5" -I/usr/src/sys -O -c ckkv.c
 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
 *** Error code 1
 
 Stop in /usr/ports/sysutils/lsof/work/lsof_4.72A.freebsd/lib.
 *** Error code 1
 
 Stop in /usr/ports/sysutils/lsof/work/lsof_4.72A.freebsd.
 *** Error code 1
 
 Stop in /usr/ports/sysutils/lsof.
 vimes#
 



More information about the freebsd-ports-bugs mailing list