Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Aug 2008 10:03:21 -0400
From:      Etienne Robillard <robillard.etienne@gmail.com>
To:        ler@lerctr.org
Cc:        freebsd-ports@freebsd.org
Subject:   Problem building sysutils/lsof on 8.0-CURRENT
Message-ID:  <20080822100321.1c8c453d@fluke>

next in thread | raw e-mail | index | archive | help
--MP_/RW2uG+TwKV0/OQsO/o+_8i9
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


Hi,

Is anyone experimenting problems building sysutils/lsof in 8.0-CURRENT ?
It seems for me that this port is currently broken, but I wanted to gather
some inputs before submitting a problem-report. 

Here is the compilation result:

===>  Building for lsof-4.81A,2
(cd lib; make DEBUG="-O2" CFGF="-fno-strict-aliasing -pipe -DHASEFFNLINK=i_effnlink -DHASF_VNODE -DHASCPUMASK_T -DHASSBSTATE -DHAS_KVM_VNODE -DHAS_UFS1_2 -DHAS_NO_SI_UDEV -DHAS_SI_PRIV -DHAS_SYS_SX_H -DHAS_ZFS -DHAS_V_LOCKF -DHAS_LOCKF_ENTRY -DFREEBSDV=8000 -DHASFDESCFS=2 -DHASPSEUDOFS -DHASNULLFS -DHASIPv6 -DHAS_STRFTIME -DLSOF_VSTR=\"8.0-CURRENT\"")
cc  -fno-strict-aliasing -pipe -DHASEFFNLINK=i_effnlink -DHASF_VNODE -DHASCPUMASK_T -DHASSBSTATE -DHAS_KVM_VNODE -DHAS_UFS1_2 -DHAS_NO_SI_UDEV -DHAS_SI_PRIV -DHAS_SYS_SX_H -DHAS_ZFS -DHAS_V_LOCKF -DHAS_LOCKF_ENTRY -DFREEBSDV=8000 -DHASFDESCFS=2 -DHASPSEUDOFS -DHASNULLFS -DHASIPv6 -DHAS_STRFTIME -DLSOF_VSTR="8.0-CURRENT" -I/usr/src/sys -O2 -c ckkv.c
In file included from ../dlsof.h:69,
                 from ../lsof.h:195,
                 from ckkv.c:43:
/usr/src/sys/sys/conf.h:281:1: warning: "minor" redefined
In file included from ../machine.h:41,
                 from ckkv.c:33:
/usr/src/sys/sys/types.h:318:1: warning: this is the location of the previous definition
In file included from /usr/src/sys/sys/refcount.h:38,
                 from /usr/src/sys/sys/file.h:42,
                 from ../dlsof.h:291,
                 from ../lsof.h:195,
                 from ckkv.c:43:
/usr/src/sys/sys/systm.h:158: warning: conflicting types for built-in function 'log'
/usr/src/sys/sys/systm.h:217: error: expected declaration specifiers or '...' before 'uintfptr_t'
/usr/src/sys/sys/systm.h:221: error: expected declaration specifiers or '...' before 'uintfptr_t'
/usr/src/sys/sys/systm.h:239: error: conflicting types for 'setenv'
/usr/include/stdlib.h:163: error: previous declaration of 'setenv' was here
In file included from /usr/src/sys/sys/systm.h:254,
                 from /usr/src/sys/sys/refcount.h:38,
                 from /usr/src/sys/sys/file.h:42,
                 from ../dlsof.h:291,
                 from ../lsof.h:195,
                 from ckkv.c:43:
/usr/src/sys/sys/libkern.h:69: error: static declaration of 'abs' follows non-static declaration
/usr/src/sys/sys/libkern.h:70: error: static declaration of 'labs' follows non-static declaration
/usr/src/sys/sys/libkern.h:93: error: conflicting types for 'gets'
/usr/include/stdio.h:242: error: previous declaration of 'gets' was here
/usr/src/sys/sys/libkern.h:99: error: conflicting types for 'random'
/usr/include/stdlib.h:201: error: previous declaration of 'random' was here
/usr/src/sys/sys/libkern.h:110: warning: conflicting types for built-in function 'strdup'
In file included from /usr/src/sys/sys/refcount.h:38,
                 from /usr/src/sys/sys/file.h:42,
                 from ../dlsof.h:291,
                 from ../lsof.h:195,
                 from ckkv.c:43:
/usr/src/sys/sys/systm.h:277: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splbio'
/usr/src/sys/sys/systm.h:278: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splcam'
/usr/src/sys/sys/systm.h:279: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splclock'
/usr/src/sys/sys/systm.h:280: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splhigh'
/usr/src/sys/sys/systm.h:281: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splimp'
/usr/src/sys/sys/systm.h:282: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splnet'
/usr/src/sys/sys/systm.h:283: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splsoftcam'
/usr/src/sys/sys/systm.h:284: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splsoftclock'
/usr/src/sys/sys/systm.h:285: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splsofttty'
/usr/src/sys/sys/systm.h:286: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splsoftvm'
/usr/src/sys/sys/systm.h:287: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splsofttq'
/usr/src/sys/sys/systm.h:288: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splstatclock'
/usr/src/sys/sys/systm.h:289: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'spltty'
/usr/src/sys/sys/systm.h:290: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splvm'
/usr/src/sys/sys/systm.h:291: error: expected ')' before 'ipl'
/usr/src/sys/sys/systm.h:303: error: conflicting types for 'pause'
/usr/include/unistd.h:357: error: previous declaration of 'pause' was here
In file included from ../dlsof.h:375,
                 from ../lsof.h:195,
                 from ckkv.c:43:
/usr/include/string.h:81: error: conflicting types for 'strdup'
/usr/src/sys/sys/libkern.h:110: error: previous declaration of 'strdup' was here
*** Error code 1

Stop in /usr/ports/sysutils/lsof/work/lsof_4.81A.freebsd/lib.
*** Error code 1

Stop in /usr/ports/sysutils/lsof/work/lsof_4.81A.freebsd.
*** Error code 1

Stop in /usr/ports/sysutils/lsof.

Environment is:
 
erob@fluke% uname -a
FreeBSD fluke 8.0-CURRENT FreeBSD 8.0-CURRENT #5: Sun Aug 17 22:09:15
EDT 2008     root@fluke:/usr/src/sys/i386/compile/MORENA  i386


Any ideas ?


Thanks and Regards,

Etienne

Reference:

http://www.freebsd.org/cgi/query-pr.cgi?pr=125555&cat=


--MP_/RW2uG+TwKV0/OQsO/o+_8i9
Content-Type: text/plain; name=lsof.txt
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=lsof.txt

Script started on Fri Aug 22 09:39:28 2008
2;erob@fluke (ttyp1) - /usr/ports/sysutils/lsof1;erob@fluke (ttyp1)If you need a reminder to leave your terminal, type "leave +hhmm" where
"hhmm" represents in how many hours and minutes you need to leave.
                -- Dru <genesis@istar.ca>
erob@fluke% sudo make build
===>  Extracting for lsof-4.81A,2
=> MD5 Checksum OK for lsof_4.81A.freebsd.tar.bz2.
=> SHA256 Checksum OK for lsof_4.81A.freebsd.tar.bz2.
===>  Patching for lsof-4.81A,2
===>  Applying FreeBSD patches for lsof-4.81A,2
===>  Configuring for lsof-4.81A,2
Creating ./lockf_owner.h from /usr/src/sys/kern/kern_lockf.c
./lockf_owner.h creation succeeded.
rm -f ddev.c dfile.c dlsof.h dmnt.c dnode*.c dproc.c dproto.h dsock.c dstore.c dzfs.h kernelbase.h machine.h machine.h.old new_machine.h __lseek.s Makefile Makefile.zfs ./tests/config.cflags
rm -f ./tests/config.cc ./tests/config.xobj ./tests/config.ldflags
Testing C library for localtime() and strftime(), using cc ... present
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/dnode2.c dnode2.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/dzfs.h dzfs.h
ln -s dialects/freebsd/machine.h machine.h
Makefile and lib/Makefile created.
Makefile.zfs created.
./tests/config.cc created
./tests/config.cflags created
./tests/config.ldflags created
./tests/config.xobj created
===>  Building for lsof-4.81A,2
(cd lib; make DEBUG="-O2" CFGF="-fno-strict-aliasing -pipe -DHASEFFNLINK=i_effnlink -DHASF_VNODE -DHASCPUMASK_T -DHASSBSTATE -DHAS_KVM_VNODE -DHAS_UFS1_2 -DHAS_NO_SI_UDEV -DHAS_SI_PRIV -DHAS_SYS_SX_H -DHAS_ZFS -DHAS_V_LOCKF -DHAS_LOCKF_ENTRY -DFREEBSDV=8000 -DHASFDESCFS=2 -DHASPSEUDOFS -DHASNULLFS -DHASIPv6 -DHAS_STRFTIME -DLSOF_VSTR=\"8.0-CURRENT\"")
cc  -fno-strict-aliasing -pipe -DHASEFFNLINK=i_effnlink -DHASF_VNODE -DHASCPUMASK_T -DHASSBSTATE -DHAS_KVM_VNODE -DHAS_UFS1_2 -DHAS_NO_SI_UDEV -DHAS_SI_PRIV -DHAS_SYS_SX_H -DHAS_ZFS -DHAS_V_LOCKF -DHAS_LOCKF_ENTRY -DFREEBSDV=8000 -DHASFDESCFS=2 -DHASPSEUDOFS -DHASNULLFS -DHASIPv6 -DHAS_STRFTIME -DLSOF_VSTR="8.0-CURRENT" -I/usr/src/sys -O2 -c ckkv.c
In file included from ../dlsof.h:69,
                 from ../lsof.h:195,
                 from ckkv.c:43:
/usr/src/sys/sys/conf.h:281:1: warning: "minor" redefined
In file included from ../machine.h:41,
                 from ckkv.c:33:
/usr/src/sys/sys/types.h:318:1: warning: this is the location of the previous definition
In file included from /usr/src/sys/sys/refcount.h:38,
                 from /usr/src/sys/sys/file.h:42,
                 from ../dlsof.h:291,
                 from ../lsof.h:195,
                 from ckkv.c:43:
/usr/src/sys/sys/systm.h:158: warning: conflicting types for built-in function 'log'
/usr/src/sys/sys/systm.h:217: error: expected declaration specifiers or '...' before 'uintfptr_t'
/usr/src/sys/sys/systm.h:221: error: expected declaration specifiers or '...' before 'uintfptr_t'
/usr/src/sys/sys/systm.h:239: error: conflicting types for 'setenv'
/usr/include/stdlib.h:163: error: previous declaration of 'setenv' was here
In file included from /usr/src/sys/sys/systm.h:254,
                 from /usr/src/sys/sys/refcount.h:38,
                 from /usr/src/sys/sys/file.h:42,
                 from ../dlsof.h:291,
                 from ../lsof.h:195,
                 from ckkv.c:43:
/usr/src/sys/sys/libkern.h:69: error: static declaration of 'abs' follows non-static declaration
/usr/src/sys/sys/libkern.h:70: error: static declaration of 'labs' follows non-static declaration
/usr/src/sys/sys/libkern.h:93: error: conflicting types for 'gets'
/usr/include/stdio.h:242: error: previous declaration of 'gets' was here
/usr/src/sys/sys/libkern.h:99: error: conflicting types for 'random'
/usr/include/stdlib.h:201: error: previous declaration of 'random' was here
/usr/src/sys/sys/libkern.h:110: warning: conflicting types for built-in function 'strdup'
In file included from /usr/src/sys/sys/refcount.h:38,
                 from /usr/src/sys/sys/file.h:42,
                 from ../dlsof.h:291,
                 from ../lsof.h:195,
                 from ckkv.c:43:
/usr/src/sys/sys/systm.h:277: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splbio'
/usr/src/sys/sys/systm.h:278: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splcam'
/usr/src/sys/sys/systm.h:279: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splclock'
/usr/src/sys/sys/systm.h:280: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splhigh'
/usr/src/sys/sys/systm.h:281: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splimp'
/usr/src/sys/sys/systm.h:282: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splnet'
/usr/src/sys/sys/systm.h:283: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splsoftcam'
/usr/src/sys/sys/systm.h:284: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splsoftclock'
/usr/src/sys/sys/systm.h:285: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splsofttty'
/usr/src/sys/sys/systm.h:286: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splsoftvm'
/usr/src/sys/sys/systm.h:287: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splsofttq'
/usr/src/sys/sys/systm.h:288: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splstatclock'
/usr/src/sys/sys/systm.h:289: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'spltty'
/usr/src/sys/sys/systm.h:290: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splvm'
/usr/src/sys/sys/systm.h:291: error: expected ')' before 'ipl'
/usr/src/sys/sys/systm.h:303: error: conflicting types for 'pause'
/usr/include/unistd.h:357: error: previous declaration of 'pause' was here
In file included from ../dlsof.h:375,
                 from ../lsof.h:195,
                 from ckkv.c:43:
/usr/include/string.h:81: error: conflicting types for 'strdup'
/usr/src/sys/sys/libkern.h:110: error: previous declaration of 'strdup' was here
*** Error code 1

Stop in /usr/ports/sysutils/lsof/work/lsof_4.81A.freebsd/lib.
*** Error code 1

Stop in /usr/ports/sysutils/lsof/work/lsof_4.81A.freebsd.
*** Error code 1

Stop in /usr/ports/sysutils/lsof.
erob@fluke% exit

Script done on Fri Aug 22 09:39:44 2008

--MP_/RW2uG+TwKV0/OQsO/o+_8i9--



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