+ 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-glint-1.2.9nb1/work.log + su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/xf86-video-glint-1.2.9nb1/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 WARNING: [license.mk] Every package should define a LICENSE. ===> Building for xf86-video-glint-1.2.9nb1 --- all --- /usr/pkg/bin/bmake all-recursive --- all-recursive --- Making all in src --- glint_dga.lo --- --- glint_driver.lo --- --- glint_shadow.lo --- --- IBMramdac.lo --- --- glint_shadow.lo --- CC glint_shadow.lo --- glint_driver.lo --- CC glint_driver.lo --- IBMramdac.lo --- CC IBMramdac.lo --- glint_dga.lo --- CC glint_dga.lo --- glint_shadow.lo --- In file included from glint_shadow.c:14: glint.h:72:5: error: unknown type name 'pciVideoPtr' 72 | pciVideoPtr PciInfo; | ^~~~~~~~~~~ glint.h:73:5: error: unknown type name 'pciVideoPtr' 73 | pciVideoPtr MultiPciInfo[GLINT_MAX_MULTI_DEVICES]; | ^~~~~~~~~~~ glint.h:79:5: error: unknown type name 'PCITAG' 79 | PCITAG PciTag; | ^~~~~~ *** [glint_shadow.lo] Error code 1 bmake[2]: stopped in /home/pbulk/build/x11/xf86-video-glint/work/xf86-video-glint-1.2.9/src --- IBMramdac.lo --- In file included from IBMramdac.c:39: glint.h:72:5: error: unknown type name 'pciVideoPtr' 72 | pciVideoPtr PciInfo; | ^~~~~~~~~~~ glint.h:73:5: error: unknown type name 'pciVideoPtr' 73 | pciVideoPtr MultiPciInfo[GLINT_MAX_MULTI_DEVICES]; | ^~~~~~~~~~~ glint.h:79:5: error: unknown type name 'PCITAG' 79 | PCITAG PciTag; | ^~~~~~ --- glint_dga.lo --- In file included from glint_dga.c:32: glint.h:72:5: error: unknown type name 'pciVideoPtr' 72 | pciVideoPtr PciInfo; | ^~~~~~~~~~~ glint.h:73:5: error: unknown type name 'pciVideoPtr' 73 | pciVideoPtr MultiPciInfo[GLINT_MAX_MULTI_DEVICES]; | ^~~~~~~~~~~ glint.h:79:5: error: unknown type name 'PCITAG' 79 | PCITAG PciTag; | ^~~~~~ glint_dga.c: In function 'GLINTDGAInit': glint_dga.c:161:11: warning: implicit declaration of function 'DGAInit' [-Wimplicit-function-declaration] 161 | return DGAInit(pScreen, &GLINTDGAFuncs, modes, num); | ^~~~~~~ --- IBMramdac.lo --- *** [IBMramdac.lo] Error code 1 bmake[2]: stopped in /home/pbulk/build/x11/xf86-video-glint/work/xf86-video-glint-1.2.9/src --- glint_dga.lo --- *** [glint_dga.lo] Error code 1 bmake[2]: stopped in /home/pbulk/build/x11/xf86-video-glint/work/xf86-video-glint-1.2.9/src --- glint_driver.lo --- In file included from glint_driver.c:59: glint.h:72:5: error: unknown type name 'pciVideoPtr' 72 | pciVideoPtr PciInfo; | ^~~~~~~~~~~ glint.h:73:5: error: unknown type name 'pciVideoPtr' 73 | pciVideoPtr MultiPciInfo[GLINT_MAX_MULTI_DEVICES]; | ^~~~~~~~~~~ glint.h:79:5: error: unknown type name 'PCITAG' 79 | PCITAG PciTag; | ^~~~~~ glint_driver.c: In function 'GLINTProbe': glint_driver.c:473:5: error: unknown type name 'pciVideoPtr' 473 | pciVideoPtr pPci, *checkusedPci; | ^~~~~~~~~~~ glint_driver.c:494:20: warning: implicit declaration of function 'xf86GetPciVideoInfo'; did you mean 'xf86GetEntityInfo'? [-Wimplicit-function-declaration] 494 | checkusedPci = xf86GetPciVideoInfo(); | ^~~~~~~~~~~~~~~~~~~ | xf86GetEntityInfo glint_driver.c:494:18: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 494 | checkusedPci = xf86GetPciVideoInfo(); | ^ glint_driver.c:507:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 507 | dev = xf86FindOptionValue(devSections[i]->options,"fbdev"); | ^ glint_driver.c:509:4: warning: implicit declaration of function 'xf86ParsePciBusString' [-Wimplicit-function-declaration] 509 | xf86ParsePciBusString(devSections[i]->busID,&bus,&device,&func); | ^~~~~~~~~~~~~~~~~~~~~ glint_driver.c:510:9: warning: implicit declaration of function 'xf86CheckPciSlot' [-Wimplicit-function-declaration] 510 | if (!xf86CheckPciSlot(bus,device,func)) | ^~~~~~~~~~~~~~~~ glint_driver.c:524:17: warning: implicit declaration of function 'xf86ClaimPciSlot'; did you mean 'xf86ClaimNoSlot'? [-Wimplicit-function-declaration] 524 | entity = xf86ClaimPciSlot(bus,device,func,drv, | ^~~~~~~~~~~~~~~~ | xf86ClaimNoSlot glint_driver.c:527:16: warning: implicit declaration of function 'xf86ConfigPciEntity'; did you mean 'xf86ConfigFbEntity'? [-Wimplicit-function-declaration] 527 | pScrn = xf86ConfigPciEntity(pScrn,0,entity, | ^~~~~~~~~~~~~~~~~~~ | xf86ConfigFbEntity glint_driver.c:527:14: warning: assignment to 'ScrnInfoPtr' {aka 'struct _ScrnInfoRec *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] 527 | pScrn = xf86ConfigPciEntity(pScrn,0,entity, | ^ glint_driver.c:560:15: warning: implicit declaration of function 'xf86MatchPciInstances' [-Wimplicit-function-declaration] 560 | numUsed = xf86MatchPciInstances(GLINT_NAME, 0, | ^~~~~~~~~~~~~~~~~~~~~ glint_driver.c:581:10: warning: implicit declaration of function 'xf86GetPciInfoForEntity' [-Wimplicit-function-declaration] 581 | pPci = xf86GetPciInfoForEntity(usedChips[i]); | ^~~~~~~~~~~~~~~~~~~~~~~ glint_driver.c:583:14: warning: assignment to 'ScrnInfoPtr' {aka 'struct _ScrnInfoRec *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] 583 | if ((pScrn = xf86ConfigPciEntity(pScrn, 0, usedChips[i], | ^ In file included from glint.h:36, from glint_driver.c:59: glintpcirename.h:44:46: error: invalid type argument of '->' (have 'int') 44 | #define PCI_SUB_VENDOR_ID(_pcidev) ((_pcidev)->subsysVendor) | ^~ glint_driver.c:591:8: note: in expansion of macro 'PCI_SUB_VENDOR_ID' 591 | if ((PCI_SUB_VENDOR_ID(pPci) == 0x1097) && | ^~~~~~~~~~~~~~~~~ glintpcirename.h:45:46: error: invalid type argument of '->' (have 'int') 45 | #define PCI_SUB_DEVICE_ID(_pcidev) ((_pcidev)->subsysCard) | ^~ glint_driver.c:592:12: note: in expansion of macro 'PCI_SUB_DEVICE_ID' 592 | (PCI_SUB_DEVICE_ID(pPci) == 0x3d32)) { | ^~~~~~~~~~~~~~~~~ glint_driver.c:597:38: error: invalid type argument of '->' (have 'int') 597 | eIndex = xf86ClaimPciSlot(pPci->bus, | ^~ glint_driver.c:598:13: error: invalid type argument of '->' (have 'int') 598 | pPci->device, | ^~ glint_driver.c:604:38: error: invalid type argument of '->' (have 'int') 604 | eIndex = xf86ClaimPciSlot(pPci->bus, | ^~ glint_driver.c:605:13: error: invalid type argument of '->' (have 'int') 605 | pPci->device, | ^~ In file included from glint.h:36, from glint_driver.c:59: glintpcirename.h:41:46: error: invalid type argument of '->' (have 'int') 41 | #define PCI_DEV_DEVICE_ID(_pcidev) ((_pcidev)->chipType) | ^~ glint_driver.c:613:12: note: in expansion of macro 'PCI_DEV_DEVICE_ID' 613 | if ((PCI_DEV_DEVICE_ID(pPci) == PCI_CHIP_3DLABS_GAMMA) || | ^~~~~~~~~~~~~~~~~ glintpcirename.h:41:46: error: invalid type argument of '->' (have 'int') 41 | #define PCI_DEV_DEVICE_ID(_pcidev) ((_pcidev)->chipType) | ^~ glint_driver.c:614:8: note: in expansion of macro 'PCI_DEV_DEVICE_ID' 614 | (PCI_DEV_DEVICE_ID(pPci) == PCI_CHIP_3DLABS_GAMMA2) || | ^~~~~~~~~~~~~~~~~ glintpcirename.h:41:46: error: invalid type argument of '->' (have 'int') 41 | #define PCI_DEV_DEVICE_ID(_pcidev) ((_pcidev)->chipType) | ^~ glint_driver.c:615:8: note: in expansion of macro 'PCI_DEV_DEVICE_ID' 615 | (PCI_DEV_DEVICE_ID(pPci) == PCI_CHIP_3DLABS_DELTA)) { | ^~~~~~~~~~~~~~~~~ glint_driver.c:616:28: warning: comparison between pointer and integer 616 | while (*checkusedPci != NULL) { | ^~ glint_driver.c:619:21: error: invalid type argument of '->' (have 'int') 619 | if ((pPci->bus == PCI_DEV_BUS(*checkusedPci) && | ^~ In file included from glint.h:36, from glint_driver.c:59: glintpcirename.h:50:46: error: invalid type argument of '->' (have 'int') 50 | #define PCI_DEV_BUS(_pcidev) ((_pcidev)->bus) | ^~ glint_driver.c:619:33: note: in expansion of macro 'PCI_DEV_BUS' 619 | if ((pPci->bus == PCI_DEV_BUS(*checkusedPci) && | ^~~~~~~~~~~ glint_driver.c:620:21: error: invalid type argument of '->' (have 'int') 620 | pPci->device == PCI_DEV_DEV((*checkusedPci)) && | ^~ In file included from glint.h:36, from glint_driver.c:59: glintpcirename.h:51:46: error: invalid type argument of '->' (have 'int') 51 | #define PCI_DEV_DEV(_pcidev) ((_pcidev)->device) | ^~ glint_driver.c:620:33: note: in expansion of macro 'PCI_DEV_DEV' 620 | pPci->device == PCI_DEV_DEV((*checkusedPci)) && | ^~~~~~~~~~~ glint_driver.c:621:21: error: invalid type argument of '->' (have 'int') 621 | pPci->func != PCI_DEV_FUNC(*checkusedPci))) { | ^~ In file included from glint.h:36, from glint_driver.c:59: glintpcirename.h:52:46: error: invalid type argument of '->' (have 'int') 52 | #define PCI_DEV_FUNC(_pcidev) ((_pcidev)->func) | ^~ glint_driver.c:621:33: note: in expansion of macro 'PCI_DEV_FUNC' 621 | pPci->func != PCI_DEV_FUNC(*checkusedPci))) { | ^~~~~~~~~~~~ glint_driver.c:624:49: error: invalid type argument of '->' (have 'int') 624 | eIndex = xf86ClaimPciSlot((*checkusedPci)->bus, | ^~ glint_driver.c:625:24: error: invalid type argument of '->' (have 'int') 625 | (*checkusedPci)->device, | ^~ glint_driver.c:626:24: error: invalid type argument of '->' (have 'int') 626 | (*checkusedPci)->func, | ^~ In file included from glint.h:36, from glint_driver.c:59: glintpcirename.h:50:46: error: invalid type argument of '->' (have 'int') 50 | #define PCI_DEV_BUS(_pcidev) ((_pcidev)->bus) | ^~ glint_driver.c:634:8: note: in expansion of macro 'PCI_DEV_BUS' 634 | PCI_DEV_BUS(*checkusedPci), | ^~~~~~~~~~~ glintpcirename.h:51:46: error: invalid type argument of '->' (have 'int') 51 | #define PCI_DEV_DEV(_pcidev) ((_pcidev)->device) | ^~ glint_driver.c:635:8: note: in expansion of macro 'PCI_DEV_DEV' 635 | PCI_DEV_DEV(*checkusedPci), | ^~~~~~~~~~~ glintpcirename.h:52:46: error: invalid type argument of '->' (have 'int') 52 | #define PCI_DEV_FUNC(_pcidev) ((_pcidev)->func) | ^~ glint_driver.c:636:8: note: in expansion of macro 'PCI_DEV_FUNC' 636 | PCI_DEV_FUNC(*checkusedPci)); | ^~~~~~~~~~~~ glintpcirename.h:44:46: error: invalid type argument of '->' (have 'int') 44 | #define PCI_SUB_VENDOR_ID(_pcidev) ((_pcidev)->subsysVendor) | ^~ glint_driver.c:661:8: note: in expansion of macro 'PCI_SUB_VENDOR_ID' 661 | if ((PCI_SUB_VENDOR_ID(pPci) == 0x1097) && | ^~~~~~~~~~~~~~~~~ glintpcirename.h:45:46: error: invalid type argument of '->' (have 'int') 45 | #define PCI_SUB_DEVICE_ID(_pcidev) ((_pcidev)->subsysCard) | ^~ glint_driver.c:662:12: note: in expansion of macro 'PCI_SUB_DEVICE_ID' 662 | (PCI_SUB_DEVICE_ID(pPci) == 0x3d32)) { | ^~~~~~~~~~~~~~~~~ glint_driver.c: In function 'GLINTPreInit': glint_driver.c:867:26: warning: implicit declaration of function 'pciTag' [-Wimplicit-function-declaration] 867 | pGlint->PciTag = pciTag(pGlint->PciInfo->bus, pGlint->PciInfo->device, | ^~~~~~ glint_driver.c:867:48: error: invalid type argument of '->' (have 'int') 867 | pGlint->PciTag = pciTag(pGlint->PciInfo->bus, pGlint->PciInfo->device, | ^~ glint_driver.c:867:70: error: invalid type argument of '->' (have 'int') 867 | pGlint->PciTag = pciTag(pGlint->PciInfo->bus, pGlint->PciInfo->device, | ^~ glint_driver.c:868:23: error: invalid type argument of '->' (have 'int') 868 | pGlint->PciInfo->func); | ^~ glint_driver.c:877:2: error: unknown type name 'pciVideoPtr' 877 | pciVideoPtr pPci; | ^~~~~~~~~~~ In file included from glint.h:36, from glint_driver.c:59: glintpcirename.h:41:46: error: invalid type argument of '->' (have 'int') 41 | #define PCI_DEV_DEVICE_ID(_pcidev) ((_pcidev)->chipType) | ^~ glint_driver.c:883:12: note: in expansion of macro 'PCI_DEV_DEVICE_ID' 883 | if ( (PCI_DEV_DEVICE_ID(pPci) == PCI_CHIP_3DLABS_MX) || | ^~~~~~~~~~~~~~~~~ glintpcirename.h:41:46: error: invalid type argument of '->' (have 'int') 41 | #define PCI_DEV_DEVICE_ID(_pcidev) ((_pcidev)->chipType) | ^~ glint_driver.c:884:5: note: in expansion of macro 'PCI_DEV_DEVICE_ID' 884 | (PCI_DEV_DEVICE_ID(pPci) == PCI_CHIP_3DLABS_PERMEDIA) || | ^~~~~~~~~~~~~~~~~ glintpcirename.h:41:46: error: invalid type argument of '->' (have 'int') 41 | #define PCI_DEV_DEVICE_ID(_pcidev) ((_pcidev)->chipType) | ^~ glint_driver.c:885:5: note: in expansion of macro 'PCI_DEV_DEVICE_ID' 885 | (PCI_DEV_DEVICE_ID(pPci) == PCI_CHIP_TI_PERMEDIA) || | ^~~~~~~~~~~~~~~~~ glintpcirename.h:41:46: error: invalid type argument of '->' (have 'int') 41 | #define PCI_DEV_DEVICE_ID(_pcidev) ((_pcidev)->chipType) | ^~ glint_driver.c:886:5: note: in expansion of macro 'PCI_DEV_DEVICE_ID' 886 | (PCI_DEV_DEVICE_ID(pPci) == PCI_CHIP_3DLABS_500TX) || | ^~~~~~~~~~~~~~~~~ glintpcirename.h:41:46: error: invalid type argument of '->' (have 'int') 41 | #define PCI_DEV_DEVICE_ID(_pcidev) ((_pcidev)->chipType) | ^~ glint_driver.c:887:5: note: in expansion of macro 'PCI_DEV_DEVICE_ID' 887 | (PCI_DEV_DEVICE_ID(pPci) == PCI_CHIP_3DLABS_300SX) || | ^~~~~~~~~~~~~~~~~ glintpcirename.h:41:46: error: invalid type argument of '->' (have 'int') 41 | #define PCI_DEV_DEVICE_ID(_pcidev) ((_pcidev)->chipType) | ^~ glint_driver.c:888:5: note: in expansion of macro 'PCI_DEV_DEVICE_ID' 888 | (PCI_DEV_DEVICE_ID(pPci) == PCI_CHIP_3DLABS_R4) || | ^~~~~~~~~~~~~~~~~ glintpcirename.h:41:46: error: invalid type argument of '->' (have 'int') 41 | #define PCI_DEV_DEVICE_ID(_pcidev) ((_pcidev)->chipType) | ^~ glint_driver.c:889:5: note: in expansion of macro 'PCI_DEV_DEVICE_ID' 889 | (PCI_DEV_DEVICE_ID(pPci) == PCI_CHIP_3DLABS_PERMEDIA3) ) { | ^~~~~~~~~~~~~~~~~ glintpcirename.h:41:46: error: invalid type argument of '->' (have 'int') 41 | #define PCI_DEV_DEVICE_ID(_pcidev) ((_pcidev)->chipType) | ^~ glint_driver.c:890:23: note: in expansion of macro 'PCI_DEV_DEVICE_ID' 890 | pGlint->MultiChip = PCI_DEV_DEVICE_ID(pPci); | ^~~~~~~~~~~~~~~~~ glint_driver.c:906:2: error: unknown type name 'pciVideoPtr' 906 | pciVideoPtr pPci = xf86GetPciInfoForEntity(pEnt->index); | ^~~~~~~~~~~ In file included from glint.h:36, from glint_driver.c:59: glintpcirename.h:41:46: error: invalid type argument of '->' (have 'int') 41 | #define PCI_DEV_DEVICE_ID(_pcidev) ((_pcidev)->chipType) | ^~ glint_driver.c:908:16: note: in expansion of macro 'PCI_DEV_DEVICE_ID' 908 | if ( ((PCI_DEV_DEVICE_ID(pPci) == PCI_CHIP_3DLABS_GAMMA) || | ^~~~~~~~~~~~~~~~~ glintpcirename.h:41:46: error: invalid type argument of '->' (have 'int') 41 | #define PCI_DEV_DEVICE_ID(_pcidev) ((_pcidev)->chipType) | ^~ glint_driver.c:909:9: note: in expansion of macro 'PCI_DEV_DEVICE_ID' 909 | (PCI_DEV_DEVICE_ID(pPci) == PCI_CHIP_3DLABS_GAMMA2) || | ^~~~~~~~~~~~~~~~~ glintpcirename.h:41:46: error: invalid type argument of '->' (have 'int') 41 | #define PCI_DEV_DEVICE_ID(_pcidev) ((_pcidev)->chipType) | ^~ glint_driver.c:910:9: note: in expansion of macro 'PCI_DEV_DEVICE_ID' 910 | (PCI_DEV_DEVICE_ID(pPci) == PCI_CHIP_3DLABS_DELTA)) && | ^~~~~~~~~~~~~~~~~ glint_driver.c:920:2: error: unknown type name 'pciVideoPtr' 920 | pciVideoPtr pPci = xf86GetPciInfoForEntity(pEnt->index); | ^~~~~~~~~~~ In file included from glint.h:36, from glint_driver.c:59: glintpcirename.h:41:46: error: invalid type argument of '->' (have 'int') 41 | #define PCI_DEV_DEVICE_ID(_pcidev) ((_pcidev)->chipType) | ^~ glint_driver.c:922:14: note: in expansion of macro 'PCI_DEV_DEVICE_ID' 922 | if ((PCI_DEV_DEVICE_ID(pPci) != PCI_CHIP_3DLABS_GAMMA) && | ^~~~~~~~~~~~~~~~~ glintpcirename.h:41:46: error: invalid type argument of '->' (have 'int') 41 | #define PCI_DEV_DEVICE_ID(_pcidev) ((_pcidev)->chipType) | ^~ glint_driver.c:923:7: note: in expansion of macro 'PCI_DEV_DEVICE_ID' 923 | (PCI_DEV_DEVICE_ID(pPci) != PCI_CHIP_3DLABS_GAMMA2) && | ^~~~~~~~~~~~~~~~~ glintpcirename.h:41:46: error: invalid type argument of '->' (have 'int') 41 | #define PCI_DEV_DEVICE_ID(_pcidev) ((_pcidev)->chipType) | ^~ glint_driver.c:924:7: note: in expansion of macro 'PCI_DEV_DEVICE_ID' 924 | (PCI_DEV_DEVICE_ID(pPci) != PCI_CHIP_3DLABS_DELTA)) { | ^~~~~~~~~~~~~~~~~ glint_driver.c:932:5: warning: implicit declaration of function 'xf86SetOperatingState' [-Wimplicit-function-declaration] 932 | xf86SetOperatingState(resVga, pGlint->pEnt->index, ResDisableOpr); | ^~~~~~~~~~~~~~~~~~~~~ glint_driver.c:932:27: error: 'resVga' undeclared (first use in this function) 932 | xf86SetOperatingState(resVga, pGlint->pEnt->index, ResDisableOpr); | ^~~~~~ glint_driver.c:932:27: note: each undeclared identifier is reported only once for each function it appears in glint_driver.c:932:56: error: 'ResDisableOpr' undeclared (first use in this function) 932 | xf86SetOperatingState(resVga, pGlint->pEnt->index, ResDisableOpr); | ^~~~~~~~~~~~~ glint_driver.c:935:10: error: 'struct _ScrnInfoRec' has no member named 'racMemFlags' 935 | pScrn->racMemFlags = RAC_FB | RAC_COLORMAP | RAC_CURSOR | RAC_VIEWPORT; | ^~ glint_driver.c:935:26: error: 'RAC_FB' undeclared (first use in this function) 935 | pScrn->racMemFlags = RAC_FB | RAC_COLORMAP | RAC_CURSOR | RAC_VIEWPORT; | ^~~~~~ glint_driver.c:935:35: error: 'RAC_COLORMAP' undeclared (first use in this function); did you mean 'RT_COLORMAP'? 935 | pScrn->racMemFlags = RAC_FB | RAC_COLORMAP | RAC_CURSOR | RAC_VIEWPORT; | ^~~~~~~~~~~~ | RT_COLORMAP glint_driver.c:935:50: error: 'RAC_CURSOR' undeclared (first use in this function); did you mean 'RT_CURSOR'? 935 | pScrn->racMemFlags = RAC_FB | RAC_COLORMAP | RAC_CURSOR | RAC_VIEWPORT; | ^~~~~~~~~~ | RT_CURSOR glint_driver.c:935:63: error: 'RAC_VIEWPORT' undeclared (first use in this function) 935 | pScrn->racMemFlags = RAC_FB | RAC_COLORMAP | RAC_CURSOR | RAC_VIEWPORT; | ^~~~~~~~~~~~ glint_driver.c:936:10: error: 'struct _ScrnInfoRec' has no member named 'racIoFlags' 936 | pScrn->racIoFlags = RAC_FB | RAC_COLORMAP | RAC_CURSOR | RAC_VIEWPORT; | ^~ glint_driver.c:947:32: warning: passing argument 2 of 'fbdevHWInit' makes pointer from integer without a cast [-Wint-conversion] 947 | if (!fbdevHWInit(pScrn, pGlint->PciInfo, | ~~~~~~^~~~~~~~~ | | | int In file included from glint_driver.c:43: /home/pbulk/build/x11/xf86-video-glint/work/.x11-buildlink/include/xorg/fbdevhw.h:21:73: note: expected 'struct pci_device *' but argument is of type 'int' 21 | extern _X_EXPORT Bool fbdevHWInit(ScrnInfoPtr pScrn, struct pci_device *pPci, | ~~~~~~~~~~~~~~~~~~~^~~~ glint_driver.c:948:5: warning: passing argument 3 of 'fbdevHWInit' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 948 | xf86FindOptionValue(pGlint->pEnt->device->options, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 949 | "fbdev"))) { | ~~~~~~~~ In file included from glint_driver.c:43: /home/pbulk/build/x11/xf86-video-glint/work/.x11-buildlink/include/xorg/fbdevhw.h:22:41: note: expected 'char *' but argument is of type 'const char *' 22 | char *device); | ~~~~~~^~~~~~ glint_driver.c:1081:32: warning: passing argument 2 of 'fbdevHWInit' makes pointer from integer without a cast [-Wint-conversion] 1081 | if (!fbdevHWInit(pScrn, pGlint->PciInfo, | ~~~~~~^~~~~~~~~ | | | int In file included from glint_driver.c:43: /home/pbulk/build/x11/xf86-video-glint/work/.x11-buildlink/include/xorg/fbdevhw.h:21:73: note: expected 'struct pci_device *' but argument is of type 'int' 21 | extern _X_EXPORT Bool fbdevHWInit(ScrnInfoPtr pScrn, struct pci_device *pPci, | ~~~~~~~~~~~~~~~~~~~^~~~ glint_driver.c:1082:5: warning: passing argument 3 of 'fbdevHWInit' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1082 | xf86FindOptionValue(pGlint->pEnt->device->options, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1083 | "fbdev"))) | ~~~~~~~~ In file included from glint_driver.c:43: /home/pbulk/build/x11/xf86-video-glint/work/.x11-buildlink/include/xorg/fbdevhw.h:22:41: note: expected 'char *' but argument is of type 'const char *' 22 | char *device); | ~~~~~~^~~~~~ In file included from glint.h:36, from glint_driver.c:59: glintpcirename.h:40:46: error: invalid type argument of '->' (have 'int') 40 | #define PCI_DEV_VENDOR_ID(_pcidev) ((_pcidev)->vendor) | ^~ glint_driver.c:1153:20: note: in expansion of macro 'PCI_DEV_VENDOR_ID' 1153 | pGlint->Chipset = PCI_DEV_VENDOR_ID(pGlint->PciInfo) << 16 | | ^~~~~~~~~~~~~~~~~ glintpcirename.h:41:46: error: invalid type argument of '->' (have 'int') 41 | #define PCI_DEV_DEVICE_ID(_pcidev) ((_pcidev)->chipType) | ^~ glint_driver.c:1154:21: note: in expansion of macro 'PCI_DEV_DEVICE_ID' 1154 | PCI_DEV_DEVICE_ID(pGlint->PciInfo); | ^~~~~~~~~~~~~~~~~ glintpcirename.h:42:46: error: invalid type argument of '->' (have 'int') 42 | #define PCI_DEV_REVISION(_pcidev) ((_pcidev)->chipRev) | ^~ glint_driver.c:1163:27: note: in expansion of macro 'PCI_DEV_REVISION' 1163 | pGlint->ChipRev = PCI_DEV_REVISION(pGlint->PciInfo); | ^~~~~~~~~~~~~~~~ glintpcirename.h:62:41: error: invalid type argument of '->' (have 'int') 62 | (((_type) == REGION_MEM) ? (_pcidev)->memBase[(_b)] \ | ^~ glint_driver.c:1209:29: note: in expansion of macro 'PCI_REGION_BASE' 1209 | pGlint->FbAddress = PCI_REGION_BASE(pGlint->PciInfo, 2, REGION_MEM) & 0xFF800000; | ^~~~~~~~~~~~~~~ glintpcirename.h:63:41: error: invalid type argument of '->' (have 'int') 63 | : (_pcidev)->ioBase[(_b)]) | ^~ glint_driver.c:1209:29: note: in expansion of macro 'PCI_REGION_BASE' 1209 | pGlint->FbAddress = PCI_REGION_BASE(pGlint->PciInfo, 2, REGION_MEM) & 0xFF800000; | ^~~~~~~~~~~~~~~ glintpcirename.h:62:41: error: invalid type argument of '->' (have 'int') 62 | (((_type) == REGION_MEM) ? (_pcidev)->memBase[(_b)] \ | ^~ glint_driver.c:1219:13: note: in expansion of macro 'PCI_REGION_BASE' 1219 | if (PCI_REGION_BASE(pGlint->MultiPciInfo[0], 2, REGION_MEM)) { | ^~~~~~~~~~~~~~~ glintpcirename.h:63:41: error: invalid type argument of '->' (have 'int') 63 | : (_pcidev)->ioBase[(_b)]) | ^~ glint_driver.c:1219:13: note: in expansion of macro 'PCI_REGION_BASE' 1219 | if (PCI_REGION_BASE(pGlint->MultiPciInfo[0], 2, REGION_MEM)) { | ^~~~~~~~~~~~~~~ glintpcirename.h:62:41: error: invalid type argument of '->' (have 'int') 62 | (((_type) == REGION_MEM) ? (_pcidev)->memBase[(_b)] \ | ^~ glint_driver.c:1220:26: note: in expansion of macro 'PCI_REGION_BASE' 1220 | pGlint->FbAddress = PCI_REGION_BASE(pGlint->MultiPciInfo[0], 2, REGION_MEM); | ^~~~~~~~~~~~~~~ glintpcirename.h:63:41: error: invalid type argument of '->' (have 'int') 63 | : (_pcidev)->ioBase[(_b)]) | ^~ glint_driver.c:1220:26: note: in expansion of macro 'PCI_REGION_BASE' 1220 | pGlint->FbAddress = PCI_REGION_BASE(pGlint->MultiPciInfo[0], 2, REGION_MEM); | ^~~~~~~~~~~~~~~ glintpcirename.h:62:41: error: invalid type argument of '->' (have 'int') 62 | (((_type) == REGION_MEM) ? (_pcidev)->memBase[(_b)] \ | ^~ glint_driver.c:1223:5: note: in expansion of macro 'PCI_REGION_BASE' 1223 | PCI_REGION_BASE(pGlint->MultiPciInfo[0], 2, REGION_MEM)); | ^~~~~~~~~~~~~~~ glintpcirename.h:63:41: error: invalid type argument of '->' (have 'int') 63 | : (_pcidev)->ioBase[(_b)]) | ^~ glint_driver.c:1223:5: note: in expansion of macro 'PCI_REGION_BASE' 1223 | PCI_REGION_BASE(pGlint->MultiPciInfo[0], 2, REGION_MEM)); | ^~~~~~~~~~~~~~~ glintpcirename.h:62:41: error: invalid type argument of '->' (have 'int') 62 | (((_type) == REGION_MEM) ? (_pcidev)->memBase[(_b)] \ | ^~ glint_driver.c:1239:22: note: in expansion of macro 'PCI_REGION_BASE' 1239 | pGlint->IOAddress = PCI_REGION_BASE(pGlint->PciInfo, 0, REGION_MEM) & 0xFFFFC000; | ^~~~~~~~~~~~~~~ glintpcirename.h:63:41: error: invalid type argument of '->' (have 'int') 63 | : (_pcidev)->ioBase[(_b)]) | ^~ glint_driver.c:1239:22: note: in expansion of macro 'PCI_REGION_BASE' 1239 | pGlint->IOAddress = PCI_REGION_BASE(pGlint->PciInfo, 0, REGION_MEM) & 0xFFFFC000; | ^~~~~~~~~~~~~~~ glintpcirename.h:44:46: error: invalid type argument of '->' (have 'int') 44 | #define PCI_SUB_VENDOR_ID(_pcidev) ((_pcidev)->subsysVendor) | ^~ glint_regs.h:49:20: note: in expansion of macro 'PCI_SUB_VENDOR_ID' 49 | #define IS_J2000 ((PCI_SUB_VENDOR_ID(pGlint->PciInfo) == 0x1097) && \ | ^~~~~~~~~~~~~~~~~ glint_driver.c:1242:10: note: in expansion of macro 'IS_J2000' 1242 | if ((IS_J2000) && (pGlint->Chipset == PCI_VENDOR_3DLABS_CHIP_GAMMA)) { | ^~~~~~~~ glintpcirename.h:45:46: error: invalid type argument of '->' (have 'int') 45 | #define PCI_SUB_DEVICE_ID(_pcidev) ((_pcidev)->subsysCard) | ^~ glint_regs.h:50:6: note: in expansion of macro 'PCI_SUB_DEVICE_ID' 50 | (PCI_SUB_DEVICE_ID(pGlint->PciInfo) == 0x3d32)) | ^~~~~~~~~~~~~~~~~ glint_driver.c:1242:10: note: in expansion of macro 'IS_J2000' 1242 | if ((IS_J2000) && (pGlint->Chipset == PCI_VENDOR_3DLABS_CHIP_GAMMA)) { | ^~~~~~~~ glint_driver.c:1273:13: warning: implicit declaration of function 'xf86RegisterResources' [-Wimplicit-function-declaration] 1273 | if (xf86RegisterResources(pEnt->index, NULL, ResExclusive)) { | ^~~~~~~~~~~~~~~~~~~~~ glint_driver.c:1273:54: error: 'ResExclusive' undeclared (first use in this function) 1273 | if (xf86RegisterResources(pEnt->index, NULL, ResExclusive)) { | ^~~~~~~~~~~~ glint_driver.c:1288:3: warning: implicit declaration of function 'xf86IsPrimaryPci' [-Wimplicit-function-declaration] 1288 | !xf86IsPrimaryPci(pGlint->PciInfo) && !pGlint->FBDev) { | ^~~~~~~~~~~~~~~~ In file included from glint.h:36, from glint_driver.c:59: glintpcirename.h:62:41: error: invalid type argument of '->' (have 'int') 62 | (((_type) == REGION_MEM) ? (_pcidev)->memBase[(_b)] \ | ^~ glint_driver.c:1327:4: note: in expansion of macro 'PCI_REGION_BASE' 1327 | PCI_REGION_BASE(pGlint->MultiPciInfo[0], 0, REGION_MEM) & 0xFFFFC000; | ^~~~~~~~~~~~~~~ glintpcirename.h:63:41: error: invalid type argument of '->' (have 'int') 63 | : (_pcidev)->ioBase[(_b)]) | ^~ glint_driver.c:1327:4: note: in expansion of macro 'PCI_REGION_BASE' 1327 | PCI_REGION_BASE(pGlint->MultiPciInfo[0], 0, REGION_MEM) & 0xFFFFC000; | ^~~~~~~~~~~~~~~ glintpcirename.h:62:41: error: invalid type argument of '->' (have 'int') 62 | (((_type) == REGION_MEM) ? (_pcidev)->memBase[(_b)] \ | ^~ glint_driver.c:1328:23: note: in expansion of macro 'PCI_REGION_BASE' 1328 | int basedelta = PCI_REGION_BASE(pGlint->PciInfo, 0, REGION_MEM) & 0xFFFFC000; | ^~~~~~~~~~~~~~~ glintpcirename.h:63:41: error: invalid type argument of '->' (have 'int') 63 | : (_pcidev)->ioBase[(_b)]) | ^~ glint_driver.c:1328:23: note: in expansion of macro 'PCI_REGION_BASE' 1328 | int basedelta = PCI_REGION_BASE(pGlint->PciInfo, 0, REGION_MEM) & 0xFFFFC000; | ^~~~~~~~~~~~~~~ glintpcirename.h:75:21: warning: implicit declaration of function 'pciReadLong' [-Wimplicit-function-declaration] 75 | *(_value_ptr) = pciReadLong(PCI_CFG_TAG(_pcidev), (_offset)) | ^~~~~~~~~~~ glint_driver.c:1339:4: note: in expansion of macro 'PCI_READ_LONG' 1339 | PCI_READ_LONG(pGlint->MultiPciInfo[0], &base3copro, offset); | ^~~~~~~~~~~~~ glintpcirename.h:55:34: error: 'pciConfigPtr' undeclared (first use in this function) 55 | #define PCI_CFG_TAG(_pcidev) (((pciConfigPtr)(_pcidev)->thisCard)->tag) | ^~~~~~~~~~~~ glintpcirename.h:75:33: note: in expansion of macro 'PCI_CFG_TAG' 75 | *(_value_ptr) = pciReadLong(PCI_CFG_TAG(_pcidev), (_offset)) | ^~~~~~~~~~~ glint_driver.c:1339:4: note: in expansion of macro 'PCI_READ_LONG' 1339 | PCI_READ_LONG(pGlint->MultiPciInfo[0], &base3copro, offset); | ^~~~~~~~~~~~~ glintpcirename.h:78:5: warning: implicit declaration of function 'pciWriteLong' [-Wimplicit-function-declaration] 78 | pciWriteLong(PCI_CFG_TAG(_pcidev), (_offset), (_value)) | ^~~~~~~~~~~~ glint_driver.c:1356:4: note: in expansion of macro 'PCI_WRITE_LONG' 1356 | PCI_WRITE_LONG(pGlint->PciInfo, 0xffffffff, 0x10); | ^~~~~~~~~~~~~~ glint_driver.c:1374:19: error: invalid type argument of '->' (have 'int') 1374 | pGlint->PciInfo->memBase[0] = base3copro; | ^~ In file included from glint.h:36, from glint_driver.c:59: glintpcirename.h:44:46: error: invalid type argument of '->' (have 'int') 44 | #define PCI_SUB_VENDOR_ID(_pcidev) ((_pcidev)->subsysVendor) | ^~ glint_regs.h:49:20: note: in expansion of macro 'PCI_SUB_VENDOR_ID' 49 | #define IS_J2000 ((PCI_SUB_VENDOR_ID(pGlint->PciInfo) == 0x1097) && \ | ^~~~~~~~~~~~~~~~~ glint_driver.c:1710:10: note: in expansion of macro 'IS_J2000' 1710 | if (IS_J2000) { | ^~~~~~~~ glintpcirename.h:45:46: error: invalid type argument of '->' (have 'int') 45 | #define PCI_SUB_DEVICE_ID(_pcidev) ((_pcidev)->subsysCard) | ^~ glint_regs.h:50:6: note: in expansion of macro 'PCI_SUB_DEVICE_ID' 50 | (PCI_SUB_DEVICE_ID(pGlint->PciInfo) == 0x3d32)) | ^~~~~~~~~~~~~~~~~ glint_driver.c:1710:10: note: in expansion of macro 'IS_J2000' 1710 | if (IS_J2000) { | ^~~~~~~~ glintpcirename.h:44:46: error: invalid type argument of '->' (have 'int') 44 | #define PCI_SUB_VENDOR_ID(_pcidev) ((_pcidev)->subsysVendor) | ^~ glint_regs.h:46:22: note: in expansion of macro 'PCI_SUB_VENDOR_ID' 46 | #define IS_GMX2000 ((PCI_SUB_VENDOR_ID(pGlint->PciInfo) == 0x3d3d) && \ | ^~~~~~~~~~~~~~~~~ glint_driver.c:1727:10: note: in expansion of macro 'IS_GMX2000' 1727 | if (IS_GMX2000) { | ^~~~~~~~~~ glintpcirename.h:45:46: error: invalid type argument of '->' (have 'int') 45 | #define PCI_SUB_DEVICE_ID(_pcidev) ((_pcidev)->subsysCard) | ^~ glint_regs.h:47:6: note: in expansion of macro 'PCI_SUB_DEVICE_ID' 47 | (PCI_SUB_DEVICE_ID(pGlint->PciInfo) == 0x0106)) | ^~~~~~~~~~~~~~~~~ glint_driver.c:1727:10: note: in expansion of macro 'IS_GMX2000' 1727 | if (IS_GMX2000) { | ^~~~~~~~~~ glint_driver.c: In function 'GLINTMapMem': glint_driver.c:2306:22: warning: implicit declaration of function 'xf86MapPciMem' [-Wimplicit-function-declaration] 2306 | pGlint->IOBase = xf86MapPciMem(pScrn->scrnIndex, VIDMEM_MMIO_32BIT, | ^~~~~~~~~~~~~ glint_driver.c:2306:54: error: 'VIDMEM_MMIO_32BIT' undeclared (first use in this function) 2306 | pGlint->IOBase = xf86MapPciMem(pScrn->scrnIndex, VIDMEM_MMIO_32BIT, | ^~~~~~~~~~~~~~~~~ glint_driver.c:2327:55: error: 'VIDMEM_FRAMEBUFFER' undeclared (first use in this function) 2327 | pGlint->FbBase = xf86MapPciMem(pScrn->scrnIndex, VIDMEM_FRAMEBUFFER, | ^~~~~~~~~~~~~~~~~~ glint_driver.c: In function 'GLINTUnmapMem': glint_driver.c:2381:5: warning: implicit declaration of function 'xf86UnMapVidMem' [-Wimplicit-function-declaration] 2381 | xf86UnMapVidMem(pScrn->scrnIndex, (pointer)pGlint->IOBase, 0x10000); | ^~~~~~~~~~~~~~~ glint_driver.c: In function 'GLINTBlockHandler': glint_driver.c:3468:5: warning: 'xf86BlockSIGIO' is deprecated [-Wdeprecated-declarations] 3468 | int sigstate = xf86BlockSIGIO(); | ^~~ In file included from glint_driver.c:38: /home/pbulk/build/x11/xf86-video-glint/work/.x11-buildlink/include/xorg/xf86.h:93:33: note: declared here 93 | static inline _X_DEPRECATED int xf86BlockSIGIO(void) { input_lock(); return 0; } | ^~~~~~~~~~~~~~ glint_driver.c:3476:5: warning: 'xf86UnblockSIGIO' is deprecated [-Wdeprecated-declarations] 3476 | xf86UnblockSIGIO(sigstate); | ^~~~~~~~~~~~~~~~ In file included from glint_driver.c:38: /home/pbulk/build/x11/xf86-video-glint/work/.x11-buildlink/include/xorg/xf86.h:94:34: note: declared here 94 | static inline _X_DEPRECATED void xf86UnblockSIGIO(int wasset) { input_unlock(); } | ^~~~~~~~~~~~~~~~ *** [glint_driver.lo] Error code 1 bmake[2]: stopped in /home/pbulk/build/x11/xf86-video-glint/work/xf86-video-glint-1.2.9/src 4 errors bmake[2]: stopped in /home/pbulk/build/x11/xf86-video-glint/work/xf86-video-glint-1.2.9/src *** [all-recursive] Error code 1 bmake[1]: stopped in /home/pbulk/build/x11/xf86-video-glint/work/xf86-video-glint-1.2.9 1 error bmake[1]: stopped in /home/pbulk/build/x11/xf86-video-glint/work/xf86-video-glint-1.2.9 *** [all] Error code 2 bmake: stopped in /home/pbulk/build/x11/xf86-video-glint/work/xf86-video-glint-1.2.9 1 error bmake: stopped in /home/pbulk/build/x11/xf86-video-glint/work/xf86-video-glint-1.2.9 *** Error code 2 Stop. bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-netbsd-trunk-x86_64/x11/xf86-video-glint *** Error code 1 Stop. bmake: stopped in /data/jenkins/workspace/pkgsrc-netbsd-trunk-x86_64/x11/xf86-video-glint