das15@cunixa.cc.columbia.edu (Douglas A Scott) (05/24/91)
Hello. Can anyone enlighten me as to the nature of these errors, encountered while compiling the mit/server/ddx libraries using gcc under Sun O.S. 3.2? I had already solved several other error problems by switching to gcc from the old Sun cc, but these two elude me: [in ddx/cfb] gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -c -I/usr2/XR4/mit -I. -I../mfb -I../mi -I../../include -I/usr2/XR4/mit/X11 -DXDMCP -DSHAPE -DMITSHM -DMULTIBUFFER -DMITMISC cfbtegblt.c cfbtegblt.c: In function cfbTEGlyphBlt: cfbtegblt.c:177: inconsistent operand constraints in an `asm' cfbtegblt.c:177: inconsistent operand constraints in an `asm' *** Error code 1 Here is the line: ptemp = (unsigned int *)(pglyph + (xtemp >> 5)); getstipplepixels(ptemp,xtemp,w,0,&bgfill,&tmpDst1); getstipplepixels(ptemp,xtemp,w,1,&fgfill,&tmpDst2); { int tmpDst = tmpDst1 | tmpDst2; unsigned int *pdsttmp = pdst + (x >> PWSH); >>> putbits(tmpDst,tmpx,w,pdsttmp,pGC->planemask); } x += w; xtemp += w; width -= w; } pglyph += widthGlyph; pdst += widthDst; That line expands to: { if (pGC->planemask != 0xFF ) { unsigned long _m, _pm; asm ("bfextu %3{%1:%2},%0" : "=d" ( _m) : "di" ( (tmpx) * 8 ), "di" ( (w) * 8 ), "o" (*(char *)(pdsttmp))) ; { _pm = (pGC->planemask) & 0xFF ; _pm |= ( _pm << 8 ); _pm |= ( _pm << 2*8 ); } ; _m &= (~_pm); _m |= (((tmpDst) >> ( ( 4 -(w)) * 8 )) & _pm); asm ("bfins %3,%0{%1:%2}" : "=o" (*(char *)( pdsttmp)) : "di" ( (tmpx) * 8 ), "di" ( (w) * 8 ), "d" (_m), "0" (*(char *) ( pdsttmp))) ; } else { asm ("bfins %3,%0{%1:%2}" : "=o" (*(char *)( pdsttmp)) : "di" ( (tmpx) * 8 ), "di" ( (w) * 8 ), "d" (((tmpDst) >> ( ( 4 -(w)) * 8 )) ), "0" (*(char *) ( pdsttmp))) ; } } ; and... [in ddx/4.2bsd] gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -c -I/usr2/XR4/mit -I. -I../../include -I/usr2/XR4/mit/X11 -I/usr2/XR4/mit/lib/Xau -DXDMCP -DSHAPE - DMITSHM -DMULTIBUFFER -DMITMISC -DTCPCONN -DUNIXCONN access.c access.c: In function DefineSelf: access.c:291: `INADDR_BROADCAST' undeclared (first use this function) access.c:291: (Each undeclared identifier is reported only once access.c:291: for each function it appears in.) *** Error code 1 Thanks for any advice. Is this some kind of configuration problem? I did exactly what the documents said... Douglas Scott Columbia University Computer Music Studio Internet: <doug@woof.columbia.edu> <das15@cunixa.cc.columbia.edu> UUCP: ...!columbia!woof!zardoz!doug Phone: (703)765-4771