Has anyone successfully built DQS 2.1.5 with the PSC AFS extensions? 
Everything compiles sweetly *except* token.c, as below. Since the same code 
compiles fine on Ultrix 4.3a / AFS 3.2, am I to assume a bug in the AFS 3.3 
headers?

Yes, I am aware that DQS 3 handles AFS tokens completely differently, but I 
want to integrate our new Alphas with the existing DQS 2 setup, so its no 
alternative.

Peter Lister                             Email: [EMAIL PROTECTED]
Computer Centre, Cranfield University    Voice: +44 234 754200 ext 2828
Cranfield, Bedfordshire MK43 0AL UK        Fax: +44 234 750875
----- No, no, let me guess - you stick it in your ear, right, Wal? -----

> make -k
cp ../SRC/Makefile.proto Makefile.c
cc -E Makefile.c > Makefile.typ
rm -f Makefile.c
cc  -DPSC_AFS  -c ../SRC/token.c
/usr/lib/cmplrs/cc/cfe: Error: ../SRC/token.c, line 109: 'V' undefined, 
reoccurrences will not be reported
        if (pioctl(0, ((unsigned int)   (0x80000000      | (( sizeof( struct 
ViceIoctl) & 
0x1fff          ) << 16) | ((   (V)) << 8) | ( ( 8)))), &iob, 0)) {
        ------------------------------  -----------     
----------------------------------
------          -------------   -^
/usr/lib/cmplrs/cc/cfe: Error: ../SRC/token.c, line 274: 'V' undefined, 
reoccurrences will not be reported
        if (pioctl(0, ((unsigned int)   (0x80000000      | (( sizeof( struct 
ViceIoctl) & 
0x1fff          ) << 16) | ((   (V)) << 8) | ( ( 3)))), &iob, 0)) {
        ------------------------------  -----------     
----------------------------------
------          -------------   -^
/usr/lib/cmplrs/cc/cfe: Error: ../SRC/token.c, line 448: 'V' undefined, 
reoccurrences will not be reported
     if (pioctl(0, ((unsigned int)      (0x80000000      | (( sizeof( struct 
ViceIoctl) & 0x1fff             ) << 16) | ((   (V)) << 8) | ( ( 9)))), &iob, 0))
 ----------------------------------     -----------     -------------------------------
---------               -------------   -^
*** Exit 1
`all' not remade because of errors
>

----------------------------------------------------------------------------

Line 109....

        if (pioctl(0, _VICEIOCTL(8), &iob, 0)) {
            if (errno == EDOM) break;   /* read last token */
            fprintf(stderr,"index=%d: ",index);
            perror("pioctl");
            continue;
        }

Line 274....

        if (pioctl(0, _VICEIOCTL(3), &iob, 0)) {
            perror("pioctl");
            DTRACE;
            continue;
        

Reply via email to