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