Bugzilla – Bug 207
compilation failure IRIX 6.5.25 / sudo-1.6.8p12
Last modified: 2007-07-30 12:52:47 MDT
$ ./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)
Created attachment 45 [details] config.log IRIX 6.5.25 / sudo-1.6.8p12
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
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
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
Sudo 1.6.9 is out now, if this is still a problem, please re-open the bug.