Subject: pkg/36632: vmware doesn't compile
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <girokompas@ukr.net>
List: pkgsrc-bugs
Date: 07/11/2007 07:55:00
>Number:         36632
>Category:       pkg
>Synopsis:       vmware doesn't compile
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 11 07:55:00 +0000 2007
>Originator:     Vyacheslav Karpenko
>Release:        NetBSD-3.1
>Organization:
bsdua.org.ua
>Environment:
NetBSD Perron 3.1 NetBSD 3.1 (GENERIC) #0: Mon Jul  2 14:43:02 EEST 2007  root@Perron:/usr/src/sys/arch/i386/compile/GENERIC i386
>Description:
bash-3.2# make
=> Required installed package digest>=20010302: digest-20060826 found
===> Skipping vulnerability checks.
WARNING: No /usr/pkgsrc/distfiles/pkg-vulnerabilities file found.
WARNING: To fix, install the pkgsrc/security/audit-packages
WARNING: package and run: ``/usr/pkg/sbin/download-vulnerability-list''.
===> Installing dependencies for vmware-2.0.4nb1
=> Required installed package vmware-module-1.*: NOT found
=> Verifying reinstall for ../../emulators/vmware-module
=> Required installed package digest>=20010302: digest-20060826 found
===> Skipping vulnerability checks.
WARNING: No /usr/pkgsrc/distfiles/pkg-vulnerabilities file found.
WARNING: To fix, install the pkgsrc/security/audit-packages
WARNING: package and run: ``/usr/pkg/sbin/download-vulnerability-list''.
===> Building for vmware-module-1.2
cd /usr/pkgsrc/emulators/vmware-module/work/source/linuxrtc && /usr/bin/make
cd /usr/pkgsrc/emulators/vmware-module/work/source/vmmon && /usr/bin/make
#   compile  vmmon/drv.o
cc -O2 -nostdinc -I/usr/pkgsrc/emulators/vmware-module/work/source/vmmon -I/usr/pkgsrc/emulators/vmware-module/work/source/vmmon/include -I/usr/pkgsrc/emulators/vmware-module/work/source/vmmon/common -I/usr/pkgsrc/emulators/vmware-module/work/source/vmmon/netbsd -I/usr/pkgsrc/emulators/vmware-module/work/source/vmmon/netbsd -DDDB -DVMX86_DEBUG -ffreestanding  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wno-uninitialized  -Werror   -nostdinc -I. -I/usr/pkgsrc/emulators/vmware-module/work/source/vmmon -isystem /usr/src/sys -isystem /usr/src/sys/arch -D_KERNEL -D_LKM  -c    /usr/pkgsrc/emulators/vmware-module/work/source/vmmon/netbsd/drv.c
In file included from /usr/pkgsrc/emulators/vmware-module/work/source/vmmon/netbsd/drv.c:73:
/usr/pkgsrc/emulators/vmware-module/work/source/vmmon/include/x86.h:183:1: "MSR_SYSENTER_CS" redefined
In file included from /usr/pkgsrc/emulators/vmware-module/work/source/vmmon/machine/specialreg.h:3,
                 from /usr/pkgsrc/emulators/vmware-module/work/source/vmmon/machine/cpufunc.h:49,
                 from /usr/pkgsrc/emulators/vmware-module/work/source/vmmon/x86/lock.h:50,
                 from /usr/pkgsrc/emulators/vmware-module/work/source/vmmon/machine/lock.h:3,
                 from /usr/src/sys/sys/lock.h:87,
                 from /usr/src/sys/sys/ucred.h:37,
                 from /usr/src/sys/sys/param.h:127,
                 from /usr/pkgsrc/emulators/vmware-module/work/source/vmmon/netbsd/drv.c:36:
/usr/pkgsrc/emulators/vmware-module/work/source/vmmon/x86/specialreg.h:207:1: this is the location of the previous definition
In file included from /usr/pkgsrc/emulators/vmware-module/work/source/vmmon/netbsd/drv.c:73:
/usr/pkgsrc/emulators/vmware-module/work/source/vmmon/include/x86.h:184:1: "MSR_SYSENTER_ESP" redefined
In file included from /usr/pkgsrc/emulators/vmware-module/work/source/vmmon/machine/specialreg.h:3,
                 from /usr/pkgsrc/emulators/vmware-module/work/source/vmmon/machine/cpufunc.h:49,
                 from /usr/pkgsrc/emulators/vmware-module/work/source/vmmon/x86/lock.h:50,
                 from /usr/pkgsrc/emulators/vmware-module/work/source/vmmon/machine/lock.h:3,
                 from /usr/src/sys/sys/lock.h:87,
                 from /usr/src/sys/sys/ucred.h:37,
                 from /usr/src/sys/sys/param.h:127,
                 from /usr/pkgsrc/emulators/vmware-module/work/source/vmmon/netbsd/drv.c:36:
/usr/pkgsrc/emulators/vmware-module/work/source/vmmon/x86/specialreg.h:208:1: this is the location of the previous definition
In file included from /usr/pkgsrc/emulators/vmware-module/work/source/vmmon/netbsd/drv.c:73:
/usr/pkgsrc/emulators/vmware-module/work/source/vmmon/include/x86.h:185:1: "MSR_SYSENTER_EIP" redefined
In file included from /usr/pkgsrc/emulators/vmware-module/work/source/vmmon/machine/specialreg.h:3,
                 from /usr/pkgsrc/emulators/vmware-module/work/source/vmmon/machine/cpufunc.h:49,
                 from /usr/pkgsrc/emulators/vmware-module/work/source/vmmon/x86/lock.h:50,
                 from /usr/pkgsrc/emulators/vmware-module/work/source/vmmon/machine/lock.h:3,
                 from /usr/src/sys/sys/lock.h:87,
                 from /usr/src/sys/sys/ucred.h:37,
                 from /usr/src/sys/sys/param.h:127,
                 from /usr/pkgsrc/emulators/vmware-module/work/source/vmmon/netbsd/drv.c:36:
/usr/pkgsrc/emulators/vmware-module/work/source/vmmon/x86/specialreg.h:209:1: this is the location of the previous definition
/usr/pkgsrc/emulators/vmware-module/work/source/vmmon/netbsd/drv.c: In function `vmmon_open':
/usr/pkgsrc/emulators/vmware-module/work/source/vmmon/netbsd/drv.c:173: error: structure has no member named `p_dupfd'
/usr/pkgsrc/emulators/vmware-module/work/source/vmmon/netbsd/drv.c:195: error: structure has no member named `p_dupfd'
/usr/pkgsrc/emulators/vmware-module/work/source/vmmon/netbsd/drv.c: In function `vmmon_fake_clonedev':
/usr/pkgsrc/emulators/vmware-module/work/source/vmmon/netbsd/drv.c:284: error: structure has no member named `p_dupfd'
/usr/pkgsrc/emulators/vmware-module/work/source/vmmon/netbsd/drv.c: In function `Panic':
/usr/pkgsrc/emulators/vmware-module/work/source/vmmon/netbsd/drv.c:676: warning: passing arg 1 of `exit1' from incompatible pointer type
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/emulators/vmware-module/work/source/vmmon
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/emulators/vmware-module
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/emulators/vmware-module
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/emulators/vmware
vmware in pkgsrc under emulators section doesn't compile
>How-To-Repeat:
install NetBSD-3.1
download pkgsrc-2007Q2.tar.gz
unpack it
cd /usr/pkgsrc/emulators/vmware
make install

additional info:
syncing disks... 6 done
unmounting file systems...NetBSD 3.1 (GENERIC) #0: Mon Jul  2 14:43:02 EEST 2007
        root@Perron:/usr/src/sys/arch/i386/compile/GENERIC
total memory = 1023 MB
avail memory = 993 MB
BIOS32 rev. 0 found at 0xf0010
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel (686-class), 3211.55 MHz, id 0xf4a
cpu0: features bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features bfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu0: features bfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu0: features2 649d<SSE3,MONITOR,DS-CPL,EST,CID,xTPR>
cpu0: features3 20000000<EM64T>
cpu0: "Intel(R) Pentium(R) 4 CPU 3.20GHz"
cpu0: I-cache 12K uOp cache 8-way
cpu0: L2 cache 2 MB 64B/line 8-way
cpu0: ITLB 4K/4M: 64 entries
cpu0: DTLB 4K/4M: 64 entries
cpu0: using thermal monitor 1
cpu0: Enhanced SpeedStep (1420 mV)  - unknown CPU or operating point.
cpu0: 64 page colors
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82945G/P Memory Controller Hub (rev. 0x02)
ppb0 at pci0 dev 1 function 0: Intel 82945G/P PCI Express Bridge (rev. 0x02)
pci1 at ppb0 bus 3
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
vga1 at pci1 dev 0 function 0: ATI Technologies product 0x7187 (rev. 0x00)
vga1: WARNING: ignoring 64-bit BAR @ 0x10
vga1: WARNING: ignoring 64-bit BAR @ 0x18
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
ATI Technologies product 0x71a7 (miscellaneous display) at pci1 dev 0 function 1 not configured
azalia0 at pci0 dev 27 function 0: Generic High Definition Audio Controller
azalia0: interrupting at irq 5
azalia0: host: Intel 82801GB/GR High Definition Audio Controller (rev. 1)
azalia0: host: High Definition Audio rev. 1.0
ppb1 at pci0 dev 28 function 0: Intel 82801GB/GR PCI Express Port #1 (rev. 0x01)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
uhci0 at pci0 dev 29 function 0: Intel 82801GB/GR USB UHCI Controller (rev. 0x01)
uhci0: interrupting at irq 3
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1: Intel 82801GB/GR USB UHCI Controller (rev. 0x01)
uhci1: interrupting at irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2: Intel 82801GB/GR USB UHCI Controller (rev. 0x01)
uhci2: interrupting at irq 5
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 29 function 3: Intel 82801GB/GR USB UHCI Controller (rev. 0x01)
uhci3: interrupting at irq 5
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7: Intel 82801GB/GR USB EHCI Controller (rev. 0x01)
ehci0: interrupting at irq 3
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: single transaction translator
uhub4: 8 ports with 8 removable, self powered
ppb2 at pci0 dev 30 function 0: Intel 82801BA Hub-PCI Bridge (rev. 0xe1)
pci3 at ppb2 bus 1
pci3: i/o space, memory space enabled
tlp0 at pci3 dev 0 function 0: ADMtek AN985 Ethernet, pass 1.1
tlp0: interrupting at irq 11
tlp0: Ethernet address 00:00:e8:44:03:64
ukphy0 at tlp0 phy 1: Generic IEEE 802.3u media interface
ukphy0: OUI 0x00e092, model 0x0001, rev. 1
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pcib0 at pci0 dev 31 function 0
pcib0: Intel 82801GB/GR LPC Interface Bridge (rev. 0x01)
piixide0 at pci0 dev 31 function 1
piixide0: Intel 82801GB/GR IDE Controller (ICH7) (rev. 0x01)
piixide0: bus-master DMA support present
piixide0: primary channel configured to compatibility mode
piixide0: primary channel interrupting at irq 14
atabus0 at piixide0 channel 0
piixide0: secondary channel configured to compatibility mode
piixide0: secondary channel interrupting at irq 15
atabus1 at piixide0 channel 1
piixide1 at pci0 dev 31 function 2
piixide1: Intel 82801GB/GR Serial ATA/Raid Controller (ICH7) (rev. 0x01)
piixide1: bus-master DMA support present
piixide1: primary channel configured to native-PCI mode
piixide1: using irq 11 for native-PCI interrupt
atabus2 at piixide1 channel 0
piixide1: secondary channel configured to native-PCI mode
atabus3 at piixide1 channel 1
Intel 82801GB/GR SMBus Controller (SMBus serial bus, revision 0x01) at pci0 dev 31 function 3 not configured
isa0 at pcib0
lpt0 at isa0 port 0x378-0x37b irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
isapnp0: no ISA Plug 'n Play devices found
apm0 at mainbus0: Power Management spec V1.2
azalia0: codec[0]: 0x11d4/0x1986 (rev. 5.0)
azalia0: codec[0]: High Definition Audio rev. 1.0
azalia0: playback: max channels=6, encodings=1<PCM>
azalia0: playback: PCM formats=e007f<24bit,20bit,16bit,48kHz,44.1kHz,32kHz,22.05kHz,16kHz,11.025kHz,8kHz>
azalia0: recording: max channels=2, encodings=1<PCM>
azalia0: recording: PCM formats=6007f<20bit,16bit,48kHz,44.1kHz,32kHz,22.05kHz,16kHz,11.025kHz,8kHz>
audio0 at azalia0: full duplex, independent
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
Kernelized RAIDframe activated
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 1: <PIONEER DVD-RW DVR-106RD, CIDC013659WL, 1.05> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(piixide0:0:1): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
wd0 at atabus2 drive 0: <ST3120811AS>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 111 GB, 232581 cyl, 16 head, 63 sec, 512 bytes/sect x 234441648 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(piixide1:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
wd1 at atabus3 drive 0: <ST3250820AS>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 232 GB, 484521 cyl, 16 head, 63 sec, 512 bytes/sect x 488397168 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd1(piixide1:1:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
boot device: wd1
root on wd1a dumps on wd1b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)

>Fix: