Bug 207 - compilation failure IRIX 6.5.25 / sudo-1.6.8p12
compilation failure IRIX 6.5.25 / sudo-1.6.8p12
Status: RESOLVED FIXED
Product: Sudo
Classification: Unclassified
Component: Sudo
1.6.8
SGI IRIX
: normal normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-02-17 12:17 MST by Tru Huynh
Modified: 2007-07-30 12:52 MDT (History)
0 users

See Also:


Attachments
config.log IRIX 6.5.25 / sudo-1.6.8p12 (14.87 KB, application/x-gzip)
2006-02-17 12:21 MST, Tru Huynh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tru Huynh 2006-02-17 12:17:37 MST
$ ./configure --enable-log-host --with-logging=both
$ make
...
        cc -c -I. -I.  -D_BSD_TYPES  -D_PATH_SUDOERS=\"/etc/sudoers\"
-D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
-DSUDOERS_MODE=0440  sudo_edit.c
cc-1054 cc: ERROR File = sudo_edit.c, Line = 297
  There are not enough arguments in a macro invocation.

                timespecsub(&ts1, &ts2);
                                      ^

cc-1029 cc: ERROR File = sudo_edit.c, Line = 297
  An expression is expected at this point.

                timespecsub(&ts1, &ts2);
                ^

cc-1029 cc: ERROR File = sudo_edit.c, Line = 297
  An expression is expected at this point.

                timespecsub(&ts1, &ts2);
                ^

cc-1029 cc: ERROR File = sudo_edit.c, Line = 297
  An expression is expected at this point.

                timespecsub(&ts1, &ts2);
                ^

cc-1029 cc: ERROR File = sudo_edit.c, Line = 297
  An expression is expected at this point.

                timespecsub(&ts1, &ts2);
                ^

cc-1029 cc: ERROR File = sudo_edit.c, Line = 297
  An expression is expected at this point.

                timespecsub(&ts1, &ts2);
                ^

cc-1174 cc: WARNING File = sudo_edit.c, Line = 59
  The variable "rcsid" was declared but never referenced.

  static const char rcsid[] = "$Sudo: sudo_edit.c,v 1.16 2004/09/15 16:16:20 mil
lert Exp $";
                    ^

6 errors detected in the compilation of "sudo_edit.c".
*** Error code 2 (bu21)
Comment 1 Tru Huynh 2006-02-17 12:21:25 MST
Created attachment 45 [details]
config.log IRIX 6.5.25 / sudo-1.6.8p12
Comment 2 Tru Huynh 2006-02-20 14:17:41 MST
I hand modified the config.h -> comment the HAVE_TIMESPECSUB2:
#define HAVE_TIMESPECSUB2 1 -> /* #define HAVE_TIMESPECSUB2 1 */ 

and it's now compiling/working as expected.

Tru
Comment 3 Tru Huynh 2006-02-20 15:41:55 MST
I could compile sudo with the freeware gcc (3.3) without issue, so I presume
it's a compiler bug .

[tru@fuel ~]$ cc -version
MIPSpro Compilers: Version 7.30

Best regards,

Tru
Comment 4 Todd C. Miller 2007-06-19 12:36:58 MDT
I don't have access to an IRIX machine at the moment but this should be fixed in the sudo 1.6.9 beta.  You can download beta versions of sudo from http://www.sudo.ws/sudo/beta.html
Comment 5 Todd C. Miller 2007-07-30 12:52:47 MDT
Sudo 1.6.9 is out now, if this is still a problem, please re-open the bug.