Re: [XFree86] Compliation problem under unixware
On Wed, 16 Jul 2003, Frank Tarczynski wrote: Is anyone versed enough in the inner workings of the server and it's libs to take a stab at this problem? I'm building xfree86 v4.3.0 under unixware 7.1.3 using the stock cc. When I get to compling ix86Pci.c in xc/programs/Xserver/hw/xfree86/os-support/bus I get this error message: /usr/ccs/bin/cc -c -O -W0,-2A -Xa -Dasm=__asm -I. -I../../../../../../programs/Xserver/hw/xfree86/common -I../../../../../../programs/Xserver/hw/xfree86/os-support -I../../../../../../programs/Xserver/include -I../../../../../../exports/include/X11 -I../../../../../.. -I../../../../../../exports/include -I/usr/X11R6/include -DUSL -DSVR4 -Di386 -D__i386__ -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP -DXF86BIGFONT -DDPMSExtension -DPANORAMIX -DRENDER -DRANDR -D__USLC__ -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DXFree86LOADER -DXFree86Server -DXF86VIDMODE -DXvMCExtension -DSMART_SCHEDULE -DBUILDDEBUG -DXResExtension -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG -DNARROWPROTO ix86Pci.c UX:acomp: ERROR: ix86Pci.c, line 673: undefined symbol: PCI_CHIP_430HX UX:acomp: ERROR: ix86Pci.c, line 673: Syntax error before or at: _BRIDGE UX:acomp: ERROR: ix86Pci.c, line 673: syntax error, probably missing ,, ; or = UX:acomp: ERROR: ix86Pci.c, line 674: Syntax error before or at: ( UX:acomp: WARNING: ix86Pci.c, line 675: syntax error: empty declaration UX:acomp: WARNING: ix86Pci.c, line 682: null dimension: sizeof() UX:acomp: ERROR: ix86Pci.c, line 683: undefined symbol: pPCI UX:acomp: ERROR: ix86Pci.c, line 683: left operand of - must be pointer to struct/union gmake: *** [ix86Pci.o] Error 1 I can't figure-out what the problem is here. PCI_CHIP_430HX_BRIDGE is #define'd in xc/programs/Xserver/hw/xfree86/common which is in the -I path. Neither PCI_CHIP_430HX or PCI_430HX_BRIDGE is #define'd anywhere else on my system. I tried /* commenting-out */ the #define in the include file but even then I got the same error. In os-support/bus/Pci.h, try changing DEVID's #define to #define DEVID(vendor, device) \ ((CARD32)((PCI_CHIP_/**/device 16) | PCI_VENDOR_/**/vendor)) I finally was successful at getting the Xserver to build under unixware. The #define DEVID(vendor, device) \ ((CARD32)((PCI_CHIP_##device 16) | PCI_VENDOR_##vendor)) construction does work under the unixware cc, BUT for some reason, the underscore, _, between the 430HX_BRIDGE is not valid. When I deleted the underscores from the 430HX_BRIDGE and other bridge definition the compilation went fine. Perhaps the problem occurs because 430HX_BRIDGE starts with a numeric? Try changing it to BRIDGE_430HX. Marc. +--+---+ | Marc Aurele La France | work: 1-780-492-9310 | | Computing and Network Services | fax:1-780-492-1729 | | 352 General Services Building | email: [EMAIL PROTECTED] | | University of Alberta +---+ | Edmonton, Alberta | | | T6G 2H1 | Standard disclaimers apply| | CANADA | | +--+---+ XFree86 Core Team member. ATI driver and X server internals. ___ XFree86 mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xfree86
Re: [XFree86] Compliation problem under unixware
On Wed, 16 Jul 2003, Frank Tarczynski wrote: Is anyone versed enough in the inner workings of the server and it's libs to take a stab at this problem? I'm building xfree86 v4.3.0 under unixware 7.1.3 using the stock cc. When I get to compling ix86Pci.c in xc/programs/Xserver/hw/xfree86/os-support/bus I get this error message: /usr/ccs/bin/cc -c -O -W0,-2A -Xa -Dasm=__asm -I. -I../../../../../../programs/Xserver/hw/xfree86/common -I../../../../../../programs/Xserver/hw/xfree86/os-support -I../../../../../../programs/Xserver/include -I../../../../../../exports/include/X11 -I../../../../../.. -I../../../../../../exports/include -I/usr/X11R6/include -DUSL -DSVR4 -Di386 -D__i386__ -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP -DXF86BIGFONT -DDPMSExtension -DPANORAMIX -DRENDER -DRANDR -D__USLC__ -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DXFree86LOADER -DXFree86Server -DXF86VIDMODE -DXvMCExtension -DSMART_SCHEDULE -DBUILDDEBUG -DXResExtension -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG -DNARROWPROTO ix86Pci.c UX:acomp: ERROR: ix86Pci.c, line 673: undefined symbol: PCI_CHIP_430HX UX:acomp: ERROR: ix86Pci.c, line 673: Syntax error before or at: _BRIDGE UX:acomp: ERROR: ix86Pci.c, line 673: syntax error, probably missing ,, ; or = UX:acomp: ERROR: ix86Pci.c, line 674: Syntax error before or at: ( UX:acomp: WARNING: ix86Pci.c, line 675: syntax error: empty declaration UX:acomp: WARNING: ix86Pci.c, line 682: null dimension: sizeof() UX:acomp: ERROR: ix86Pci.c, line 683: undefined symbol: pPCI UX:acomp: ERROR: ix86Pci.c, line 683: left operand of - must be pointer to struct/union gmake: *** [ix86Pci.o] Error 1 I can't figure-out what the problem is here. PCI_CHIP_430HX_BRIDGE is #define'd in xc/programs/Xserver/hw/xfree86/common which is in the -I path. Neither PCI_CHIP_430HX or PCI_430HX_BRIDGE is #define'd anywhere else on my system. I tried /* commenting-out */ the #define in the include file but even then I got the same error. In os-support/bus/Pci.h, try changing DEVID's #define to #define DEVID(vendor, device) \ ((CARD32)((PCI_CHIP_/**/device 16) | PCI_VENDOR_/**/vendor)) I finally was successful at getting the Xserver to build under unixware. The #define DEVID(vendor, device) \ ((CARD32)((PCI_CHIP_##device 16) | PCI_VENDOR_##vendor)) construction does work under the unixware cc, BUT for some reason, the underscore, _, between the 430HX_BRIDGE is not valid. When I deleted the underscores from the 430HX_BRIDGE and other bridge definition the compilation went fine. Perhaps the problem occurs because 430HX_BRIDGE starts with a numeric? Try changing it to BRIDGE_430HX. Marc. No need to change it now. I've already built the server by just deleting the _ for those 2 #define's. Do you have any experience with replacing Xsco? Frank +--+---+ | Marc Aurele La France | work: 1-780-492-9310 | | Computing and Network Services | fax:1-780-492-1729 | | 352 General Services Building | email: [EMAIL PROTECTED] | | University of Alberta +---+ | Edmonton, Alberta | | | T6G 2H1 | Standard disclaimers apply| | CANADA | | +--+---+ XFree86 Core Team member. ATI driver and X server internals. ___ XFree86 mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xfree86 ___ XFree86 mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xfree86
Re: [XFree86] Compliation problem under unixware
Marc Aurele La France wrote: On Wed, 16 Jul 2003, Frank Tarczynski wrote: Perhaps the problem occurs because 430HX_BRIDGE starts with a numeric? Try changing it to BRIDGE_430HX. No need to change it now. I've already built the server by just deleting the _ for those 2 #define's. I'm afraid that's not good enough. I need to know why your pre-processor seems to be treating _ in tokens specially. So far, it seems that it's because the token starts with a numeric. For portability reasons, I'd really prefer to nail down if that's that's the case. OK, I've checked what the unixware 7.1.3 cc does. If the numeric portion is first: no good. If the BRIDGE is first, as in BRIDGE_430HX: it works. cc reports itself as Optimizing C Compilation System (CCS) 4.1 10/31/02 (OU7.1.3bl11.1) Frank Do you have any experience with replacing Xsco? Unfortunately I don't. But it sounds to me that Xsco uses non-standard means of determining whether or not another server is running. Marc. +--+---+ | Marc Aurele La France | work: 1-780-492-9310 | | Computing and Network Services | fax:1-780-492-1729 | | 352 General Services Building | email: [EMAIL PROTECTED] | | University of Alberta +---+ | Edmonton, Alberta | | | T6G 2H1 | Standard disclaimers apply| | CANADA | | +--+---+ XFree86 Core Team member. ATI driver and X server internals. ___ XFree86 mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xfree86 ___ XFree86 mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xfree86
Re: [XFree86] Compliation problem under unixware
Even if the right directory is in the -I path, is the .c file that requires it perhaps failing to #include a header that will actually bring in that #define? - Christian From: Frank Tarczynski [EMAIL PROTECTED] Date: 2003/07/15 Tue AM 09:28:53 EDT To: [EMAIL PROTECTED] Subject: [XFree86] Compliation problem under unixware Is anyone versed enough in the inner workings of the server and it's libs to take a stab at this problem? I'm building xfree86 v4.3.0 under unixware 7.1.3 using the stock cc. When I get to compling ix86Pci.c in xc/programs/Xserver/hw/xfree86/os-support/bus I get this error message: /usr/ccs/bin/cc -c -O -W0,-2A -Xa -Dasm=__asm -I. -I../../../../../../programs/Xserver/hw/xfree86/common -I../../../../../../programs/Xserver/hw/xfree86/os-support -I../../../../../../programs/Xserver/include -I../../../../../../exports/include/X11 -I../../../../../.. -I../../../../../../exports/include -I/usr/X11R6/include -DUSL -DSVR4 -Di386 -D__i386__ -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP -DXF86BIGFONT -DDPMSExtension -DPANORAMIX -DRENDER -DRANDR -D__USLC__ -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DXFree86LOADER -DXFree86Server -DXF86VIDMODE -DXvMCExtension -DSMART_SCHEDULE -DBUILDDEBUG -DXResExtension -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG -DNARROWPROTO ix86Pci.c UX:acomp: ERROR: ix86Pci.c, line 673: undefined symbol: PCI_CHIP_430HX UX:acomp: ERROR: ix86Pci.c, line 673: Syntax error before or at: _BRIDGE UX:acomp: ERROR: ix86Pci.c, line 673: syntax error, probably missing ,, ; or = UX:acomp: ERROR: ix86Pci.c, line 674: Syntax error before or at: ( UX:acomp: WARNING: ix86Pci.c, line 675: syntax error: empty declaration UX:acomp: WARNING: ix86Pci.c, line 682: null dimension: sizeof() UX:acomp: ERROR: ix86Pci.c, line 683: undefined symbol: pPCI UX:acomp: ERROR: ix86Pci.c, line 683: left operand of - must be pointer to struct/union gmake: *** [ix86Pci.o] Error 1 I can't figure-out what the problem is here. PCI_CHIP_430HX_BRIDGE is #define'd in xc/programs/Xserver/hw/xfree86/common which is in the -I path. Neither PCI_CHIP_430HX or PCI_430HX_BRIDGE is #define'd anywhere else on my system. I tried /* commenting-out */ the #define in the include file but even then I got the same error. Frank ___ XFree86 mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xfree86 ___ XFree86 mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xfree86
Re: [XFree86] Compliation problem under unixware
Interesting. I did copy the header file to the same directory (-I.) but I never checked to see if it was actually #include'd. Something to check tonight. Thanks. Even if the right directory is in the -I path, is the .c file that requires it perhaps failing to #include a header that will actually bring in that #define? - Christian From: Frank Tarczynski [EMAIL PROTECTED] Date: 2003/07/15 Tue AM 09:28:53 EDT To: [EMAIL PROTECTED] Subject: [XFree86] Compliation problem under unixware Is anyone versed enough in the inner workings of the server and it's libs to take a stab at this problem? I'm building xfree86 v4.3.0 under unixware 7.1.3 using the stock cc. When I get to compling ix86Pci.c in xc/programs/Xserver/hw/xfree86/os-support/bus I get this error message: /usr/ccs/bin/cc -c -O -W0,-2A -Xa -Dasm=__asm -I. -I../../../../../../programs/Xserver/hw/xfree86/common -I../../../../../../programs/Xserver/hw/xfree86/os-support -I../../../../../../programs/Xserver/include -I../../../../../../exports/include/X11 -I../../../../../.. -I../../../../../../exports/include -I/usr/X11R6/include -DUSL -DSVR4 -Di386 -D__i386__ -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP -DXF86BIGFONT -DDPMSExtension -DPANORAMIX -DRENDER -DRANDR -D__USLC__ -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DXFree86LOADER -DXFree86Server -DXF86VIDMODE -DXvMCExtension -DSMART_SCHEDULE -DBUILDDEBUG -DXResExtension -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG -DNARROWPROTO ix86Pci.c UX:acomp: ERROR: ix86Pci.c, line 673: undefined symbol: PCI_CHIP_430HX UX:acomp: ERROR: ix86Pci.c, line 673: Syntax error before or at: _BRIDGE UX:acomp: ERROR: ix86Pci.c, line 673: syntax error, probably missing ,, ; or = UX:acomp: ERROR: ix86Pci.c, line 674: Syntax error before or at: ( UX:acomp: WARNING: ix86Pci.c, line 675: syntax error: empty declaration UX:acomp: WARNING: ix86Pci.c, line 682: null dimension: sizeof() UX:acomp: ERROR: ix86Pci.c, line 683: undefined symbol: pPCI UX:acomp: ERROR: ix86Pci.c, line 683: left operand of - must be pointer to struct/union gmake: *** [ix86Pci.o] Error 1 I can't figure-out what the problem is here. PCI_CHIP_430HX_BRIDGE is #define'd in xc/programs/Xserver/hw/xfree86/common which is in the -I path. Neither PCI_CHIP_430HX or PCI_430HX_BRIDGE is #define'd anywhere else on my system. I tried /* commenting-out */ the #define in the include file but even then I got the same error. Frank ___ XFree86 mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xfree86 ___ XFree86 mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xfree86 ___ XFree86 mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xfree86
Re: Re: [XFree86] Compliation problem under unixware
No problem. I'll actually be surprised if this fixes your problem, because this kind of bug would typically kill everyone regardless of platform. Still, it's maybe worth checking... From: Frank Tarczynski [EMAIL PROTECTED] Date: 2003/07/15 Tue AM 09:54:33 EDT To: [EMAIL PROTECTED] Subject: Re: [XFree86] Compliation problem under unixware Interesting. I did copy the header file to the same directory (-I.) but I never checked to see if it was actually #include'd. Something to check tonight. Thanks. Even if the right directory is in the -I path, is the .c file that requires it perhaps failing to #include a header that will actually bring in that #define? - Christian From: Frank Tarczynski [EMAIL PROTECTED] Date: 2003/07/15 Tue AM 09:28:53 EDT To: [EMAIL PROTECTED] Subject: [XFree86] Compliation problem under unixware Is anyone versed enough in the inner workings of the server and it's libs to take a stab at this problem? I'm building xfree86 v4.3.0 under unixware 7.1.3 using the stock cc. When I get to compling ix86Pci.c in xc/programs/Xserver/hw/xfree86/os-support/bus I get this error message: /usr/ccs/bin/cc -c -O -W0,-2A -Xa -Dasm=__asm -I. -I../../../../../../programs/Xserver/hw/xfree86/common -I../../../../../../programs/Xserver/hw/xfree86/os-support -I../../../../../../programs/Xserver/include -I../../../../../../exports/include/X11 -I../../../../../.. -I../../../../../../exports/include -I/usr/X11R6/include -DUSL -DSVR4 -Di386 -D__i386__ -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP -DXF86BIGFONT -DDPMSExtension -DPANORAMIX -DRENDER -DRANDR -D__USLC__ -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DXFree86LOADER -DXFree86Server -DXF86VIDMODE -DXvMCExtension -DSMART_SCHEDULE -DBUILDDEBUG -DXResExtension -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG -DNARROWPROTO ix86Pci.c UX:acomp: ERROR: ix86Pci.c, line 673: undefined symbol: PCI_CHIP_430HX UX:acomp: ERROR: ix86Pci.c, line 673: Syntax error before or at: _BRIDGE UX:acomp: ERROR: ix86Pci.c, line 673: syntax error, probably missing ,, ; or = UX:acomp: ERROR: ix86Pci.c, line 674: Syntax error before or at: ( UX:acomp: WARNING: ix86Pci.c, line 675: syntax error: empty declaration UX:acomp: WARNING: ix86Pci.c, line 682: null dimension: sizeof() UX:acomp: ERROR: ix86Pci.c, line 683: undefined symbol: pPCI UX:acomp: ERROR: ix86Pci.c, line 683: left operand of - must be pointer to struct/union gmake: *** [ix86Pci.o] Error 1 I can't figure-out what the problem is here. PCI_CHIP_430HX_BRIDGE is #define'd in xc/programs/Xserver/hw/xfree86/common which is in the -I path. Neither PCI_CHIP_430HX or PCI_430HX_BRIDGE is #define'd anywhere else on my system. I tried /* commenting-out */ the #define in the include file but even then I got the same error. Frank ___ XFree86 mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xfree86 ___ XFree86 mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xfree86 ___ XFree86 mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xfree86 ___ XFree86 mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xfree86
Re: [XFree86] Compliation problem under unixware
On Tue, 15 Jul 2003, Frank Tarczynski wrote: Is anyone versed enough in the inner workings of the server and it's libs to take a stab at this problem? I'm building xfree86 v4.3.0 under unixware 7.1.3 using the stock cc. When I get to compling ix86Pci.c in xc/programs/Xserver/hw/xfree86/os-support/bus I get this error message: /usr/ccs/bin/cc -c -O -W0,-2A -Xa -Dasm=__asm -I. -I../../../../../../programs/Xserver/hw/xfree86/common -I../../../../../../programs/Xserver/hw/xfree86/os-support -I../../../../../../programs/Xserver/include -I../../../../../../exports/include/X11 -I../../../../../.. -I../../../../../../exports/include -I/usr/X11R6/include -DUSL -DSVR4 -Di386 -D__i386__ -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP -DXF86BIGFONT -DDPMSExtension -DPANORAMIX -DRENDER -DRANDR -D__USLC__ -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DXFree86LOADER -DXFree86Server -DXF86VIDMODE -DXvMCExtension -DSMART_SCHEDULE -DBUILDDEBUG -DXResExtension -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG -DNARROWPROTO ix86Pci.c UX:acomp: ERROR: ix86Pci.c, line 673: undefined symbol: PCI_CHIP_430HX UX:acomp: ERROR: ix86Pci.c, line 673: Syntax error before or at: _BRIDGE UX:acomp: ERROR: ix86Pci.c, line 673: syntax error, probably missing ,, ; or = UX:acomp: ERROR: ix86Pci.c, line 674: Syntax error before or at: ( UX:acomp: WARNING: ix86Pci.c, line 675: syntax error: empty declaration UX:acomp: WARNING: ix86Pci.c, line 682: null dimension: sizeof() UX:acomp: ERROR: ix86Pci.c, line 683: undefined symbol: pPCI UX:acomp: ERROR: ix86Pci.c, line 683: left operand of - must be pointer to struct/union gmake: *** [ix86Pci.o] Error 1 I can't figure-out what the problem is here. PCI_CHIP_430HX_BRIDGE is #define'd in xc/programs/Xserver/hw/xfree86/common which is in the -I path. Neither PCI_CHIP_430HX or PCI_430HX_BRIDGE is #define'd anywhere else on my system. I tried /* commenting-out */ the #define in the include file but even then I got the same error. In os-support/bus/Pci.h, try changing DEVID's #define to #define DEVID(vendor, device) \ ((CARD32)((PCI_CHIP_/**/device 16) | PCI_VENDOR_/**/vendor)) Marc. +--+---+ | Marc Aurele La France | work: 1-780-492-9310 | | Computing and Network Services | fax:1-780-492-1729 | | 352 General Services Building | email: [EMAIL PROTECTED] | | University of Alberta +---+ | Edmonton, Alberta | | | T6G 2H1 | Standard disclaimers apply| | CANADA | | +--+---+ XFree86 Core Team member. ATI driver and X server internals. ___ XFree86 mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xfree86