+ local run_cmd + run_cmd=run_su + shift + run_su /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/xf86-video-apm-1.3.0/work.log + su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/xf86-video-apm-1.3.0/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 WARNING: [license.mk] Every package should define a LICENSE. ===> Building for xf86-video-apm-1.3.0 --- all --- /usr/pkg/bin/bmake all-recursive --- all-recursive --- Making all in src --- apm_accel.lo --- --- apm_cursor.lo --- --- apm_dga.lo --- --- apm_driver.lo --- --- apm_cursor.lo --- CC apm_cursor.lo --- apm_dga.lo --- CC apm_dga.lo --- apm_driver.lo --- CC apm_driver.lo --- apm_accel.lo --- CC apm_accel.lo --- apm_cursor.lo --- In file included from apm_cursor.c:17: apm.h:93:5: error: unknown type name 'pciVideoPtr' 93 | pciVideoPtr PciInfo; | ^~~~~~~~~~~ apm.h:95:5: error: unknown type name 'PCITAG' 95 | PCITAG PciTag; | ^~~~~~ *** [apm_cursor.lo] Error code 1 bmake[2]: stopped in /home/pbulk/build/x11/xf86-video-apm/work/xf86-video-apm-1.3.0/src --- apm_accel.lo --- In file included from apm_accel.c:6: apm.h:93:5: error: unknown type name 'pciVideoPtr' 93 | pciVideoPtr PciInfo; | ^~~~~~~~~~~ apm.h:95:5: error: unknown type name 'PCITAG' 95 | PCITAG PciTag; | ^~~~~~ *** [apm_accel.lo] Error code 1 bmake[2]: stopped in /home/pbulk/build/x11/xf86-video-apm/work/xf86-video-apm-1.3.0/src --- apm_dga.lo --- In file included from apm_dga.c:14: apm.h:93:5: error: unknown type name 'pciVideoPtr' 93 | pciVideoPtr PciInfo; | ^~~~~~~~~~~ apm.h:95:5: error: unknown type name 'PCITAG' 95 | PCITAG PciTag; | ^~~~~~ apm_dga.c: In function 'ApmDGAInit': apm_dga.c:232:11: warning: implicit declaration of function 'DGAInit'; did you mean 'ApmDGAInit'? [-Wimplicit-function-declaration] 232 | return DGAInit(pScreen, &ApmDGAFuncs, modes, num); | ^~~~~~~ | ApmDGAInit --- apm_driver.lo --- In file included from apm_driver.c:6: apm.h:93:5: error: unknown type name 'pciVideoPtr' 93 | pciVideoPtr PciInfo; | ^~~~~~~~~~~ apm.h:95:5: error: unknown type name 'PCITAG' 95 | PCITAG PciTag; | ^~~~~~ --- apm_dga.lo --- *** [apm_dga.lo] Error code 1 bmake[2]: stopped in /home/pbulk/build/x11/xf86-video-apm/work/xf86-video-apm-1.3.0/src --- apm_driver.lo --- apm_driver.c: In function 'ApmProbe': apm_driver.c:270:9: warning: implicit declaration of function 'xf86GetPciVideoInfo'; did you mean 'xf86GetEntityInfo'? [-Wimplicit-function-declaration] 270 | if (xf86GetPciVideoInfo() == NULL) { | ^~~~~~~~~~~~~~~~~~~ | xf86GetEntityInfo apm_driver.c:270:31: warning: comparison between pointer and integer 270 | if (xf86GetPciVideoInfo() == NULL) { | ^~ apm_driver.c:274:15: warning: implicit declaration of function 'xf86MatchPciInstances' [-Wimplicit-function-declaration] 274 | numUsed = xf86MatchPciInstances(APM_NAME, PCI_VENDOR_ALLIANCE, | ^~~~~~~~~~~~~~~~~~~~~ apm_driver.c:288:19: warning: implicit declaration of function 'xf86ConfigPciEntity'; did you mean 'xf86ConfigFbEntity'? [-Wimplicit-function-declaration] 288 | if ((pScrn = xf86ConfigPciEntity(pScrn, 0, usedChips[i], | ^~~~~~~~~~~~~~~~~~~ | xf86ConfigFbEntity apm_driver.c:288:17: warning: assignment to 'ScrnInfoPtr' {aka 'struct _ScrnInfoRec *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] 288 | if ((pScrn = xf86ConfigPciEntity(pScrn, 0, usedChips[i], | ^ apm_driver.c: In function 'ApmPreInit': apm_driver.c:391:18: warning: implicit declaration of function 'xf86GetPciInfoForEntity' [-Wimplicit-function-declaration] 391 | pApm->PciInfo = xf86GetPciInfoForEntity(pEnt->index); | ^~~~~~~~~~~~~~~~~~~~~~~ apm_driver.c:393:17: warning: implicit declaration of function 'pciTag' [-Wimplicit-function-declaration] 393 | pApm->PciTag = pciTag(pApm->PciInfo->bus, pApm->PciInfo->device, | ^~~~~~ apm_driver.c:393:37: error: invalid type argument of '->' (have 'int') 393 | pApm->PciTag = pciTag(pApm->PciInfo->bus, pApm->PciInfo->device, | ^~ apm_driver.c:393:57: error: invalid type argument of '->' (have 'int') 393 | pApm->PciTag = pciTag(pApm->PciInfo->bus, pApm->PciInfo->device, | ^~ apm_driver.c:394:19: error: invalid type argument of '->' (have 'int') 394 | pApm->PciInfo->func); | ^~ apm_driver.c:398:16: warning: assignment to 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 398 | pApm->PciInfo = NULL; | ^ In file included from apm.h:2, from apm_driver.c:6: apm_pcirename.h:41:46: error: invalid type argument of '->' (have 'int') 41 | #define PCI_DEV_DEVICE_ID(_pcidev) ((_pcidev)->chipType) | ^~ apm_driver.c:624:22: note: in expansion of macro 'PCI_DEV_DEVICE_ID' 624 | pApm->Chipset = PCI_DEV_DEVICE_ID(pApm->PciInfo); | ^~~~~~~~~~~~~~~~~ apm_pcirename.h:42:46: error: invalid type argument of '->' (have 'int') 42 | #define PCI_DEV_REVISION(_pcidev) ((_pcidev)->chipRev) | ^~ apm_driver.c:640:25: note: in expansion of macro 'PCI_DEV_REVISION' 640 | pApm->ChipRev = PCI_DEV_REVISION(pApm->PciInfo); | ^~~~~~~~~~~~~~~~ apm_pcirename.h:62:41: error: invalid type argument of '->' (have 'int') 62 | (((_type) == REGION_MEM) ? (_pcidev)->memBase[(_b)] \ | ^~ apm_driver.c:664:28: note: in expansion of macro 'PCI_REGION_BASE' 664 | pApm->LinAddress = PCI_REGION_BASE(pApm->PciInfo, 0, REGION_MEM) & 0xFF800000; | ^~~~~~~~~~~~~~~ apm_pcirename.h:63:41: error: invalid type argument of '->' (have 'int') 63 | : (_pcidev)->ioBase[(_b)]) | ^~ apm_driver.c:664:28: note: in expansion of macro 'PCI_REGION_BASE' 664 | pApm->LinAddress = PCI_REGION_BASE(pApm->PciInfo, 0, REGION_MEM) & 0xFF800000; | ^~~~~~~~~~~~~~~ apm_driver.c:699:5: warning: implicit declaration of function 'xf86RegisterResources' [-Wimplicit-function-declaration] 699 | xf86RegisterResources(pEnt->index, NULL, ResNone); | ^~~~~~~~~~~~~~~~~~~~~ apm_driver.c:699:46: error: 'ResNone' undeclared (first use in this function) 699 | xf86RegisterResources(pEnt->index, NULL, ResNone); | ^~~~~~~ apm_driver.c:699:46: note: each undeclared identifier is reported only once for each function it appears in apm_driver.c:700:5: warning: implicit declaration of function 'xf86SetOperatingState' [-Wimplicit-function-declaration] 700 | xf86SetOperatingState(resVga, pEnt->index, ResDisableOpr); | ^~~~~~~~~~~~~~~~~~~~~ apm_driver.c:700:27: error: 'resVga' undeclared (first use in this function) 700 | xf86SetOperatingState(resVga, pEnt->index, ResDisableOpr); | ^~~~~~ apm_driver.c:700:48: error: 'ResDisableOpr' undeclared (first use in this function) 700 | xf86SetOperatingState(resVga, pEnt->index, ResDisableOpr); | ^~~~~~~~~~~~~ apm_driver.c:701:10: error: 'struct _ScrnInfoRec' has no member named 'racMemFlags' 701 | pScrn->racMemFlags = 0; /* For noLinear, access to 0xA0000 */ | ^~ apm_driver.c:703:7: error: 'struct _ScrnInfoRec' has no member named 'racIoFlags' 703 | pScrn->racIoFlags = 0; | ^~ apm_driver.c:705:7: error: 'struct _ScrnInfoRec' has no member named 'racIoFlags' 705 | pScrn->racIoFlags = RAC_COLORMAP | RAC_VIEWPORT; | ^~ apm_driver.c:705:22: error: 'RAC_COLORMAP' undeclared (first use in this function); did you mean 'RT_COLORMAP'? 705 | pScrn->racIoFlags = RAC_COLORMAP | RAC_VIEWPORT; | ^~~~~~~~~~~~ | RT_COLORMAP apm_driver.c:705:37: error: 'RAC_VIEWPORT' undeclared (first use in this function) 705 | pScrn->racIoFlags = RAC_COLORMAP | RAC_VIEWPORT; | ^~~~~~~~~~~~ apm_driver.c:716:11: warning: implicit declaration of function 'xf86MapPciMem' [-Wimplicit-function-declaration] 716 | LinMap = xf86MapPciMem(pScrn->scrnIndex, VIDMEM_MMIO, | ^~~~~~~~~~~~~ apm_driver.c:716:43: error: 'VIDMEM_MMIO' undeclared (first use in this function) 716 | LinMap = xf86MapPciMem(pScrn->scrnIndex, VIDMEM_MMIO, | ^~~~~~~~~~~ apm_driver.c:756:2: warning: implicit declaration of function 'xf86UnMapVidMem' [-Wimplicit-function-declaration] 756 | xf86UnMapVidMem(pScrn->scrnIndex, (pointer)LinMap, pApm->LinMapSize); | ^~~~~~~~~~~~~~~ apm_driver.c: In function 'ApmMapMem': apm_driver.c:1055:52: error: 'VIDMEM_FRAMEBUFFER' undeclared (first use in this function) 1055 | pApm->LinMap = xf86MapPciMem(pScrn->scrnIndex, VIDMEM_FRAMEBUFFER, | ^~~~~~~~~~~~~~~~~~ *** [apm_driver.lo] Error code 1 bmake[2]: stopped in /home/pbulk/build/x11/xf86-video-apm/work/xf86-video-apm-1.3.0/src 4 errors bmake[2]: stopped in /home/pbulk/build/x11/xf86-video-apm/work/xf86-video-apm-1.3.0/src *** [all-recursive] Error code 1 bmake[1]: stopped in /home/pbulk/build/x11/xf86-video-apm/work/xf86-video-apm-1.3.0 1 error bmake[1]: stopped in /home/pbulk/build/x11/xf86-video-apm/work/xf86-video-apm-1.3.0 *** [all] Error code 2 bmake: stopped in /home/pbulk/build/x11/xf86-video-apm/work/xf86-video-apm-1.3.0 1 error bmake: stopped in /home/pbulk/build/x11/xf86-video-apm/work/xf86-video-apm-1.3.0 *** Error code 2 Stop. bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-netbsd-trunk-x86_64/x11/xf86-video-apm *** Error code 1 Stop. bmake: stopped in /data/jenkins/workspace/pkgsrc-netbsd-trunk-x86_64/x11/xf86-video-apm