[sudo-users] Problems compiling on Irix

Antczak, Trevor (Contractor) Trevor.Antczak.ctr at arc.army.mil
Tue Nov 17 12:03:31 EST 2009


Hello,

I have a fairly old SGI box with Irix 6.5.25 on it. When I try to compile sudo 1.7.2p1 with either the SGI compilers or GCC, the compile balks at fnmatch.c.  GCC version is 3.3.  Errors from GCC are as follows:

In file included from fnmatch.c:53

emul/charclass.h:28: error: 'isblank' undeclared here (not in a function)
emul/charclass.h:28: error: initializer element is not constant
emul/charclass.h:28: error: (near initialization for 'cclases[2].isctype')
emul/charclass.h:28: error: initializer element is not constant
emul/charclass.h:28: error: (near initialization for 'cclases[2]')
emul/charclass.h:29: error: initializer element is not constant
emul/charclass.h:29: error: (near initialization for 'cclases[3]')
emul/charclass.h:30: error: initializer element is not constant
emul/charclass.h:30: error: (near initialization for 'cclases[4]')
.
.
.
emul/charclass.h:38: error: initializer element is not constant
emul/charclass.h:38: error: (near initialization for 'cclases[12]')

Error code 1 (bu21)

The Irix compilers give a similar error about 'isblank' being undeclared in emul/charclass.h.  What research I've done indicated that 'isblank' is normally an OS supplied function, but that sudo includes its own simple version if the OS doesn't provide one.  My questions are:

1) Has anyone successfully compiled the most recent sudo on Irix
2) If so, what version of Irix?
3) Is there a workaround on the 'isblank' issue that would avoid me having to do an OS upgrade. (ie, could I just comment the line out and everything will mostly work)




Trevor Antczak (Contractor)
MDA Advanced Research Center
256.964.1662
Trevor.Antczak.ctr at arc.army.mil







More information about the sudo-users mailing list