#6 tmpwatch does not compile for IRIX 6.5
Closed: Duplicate None Opened 15 years ago by stpierre.

tmpwatch does not compile for IRIX 6.5. May be due to the lack of getopt_long on IRIX.
{{{
gcc -W -Wall -DVERSION=\"2.9.14\" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE tmpwatch.c -o tmpwatch
tmpwatch.c: In function 'check_fuser':
tmpwatch.c:224: warning: missing sentinel in function call
tmpwatch.c: In function 'main':
tmpwatch.c:568: error: array type has incomplete element type
tmpwatch.c:580: error: 'required_argument' undeclared (first use in this function)
tmpwatch.c:580: error: (Each undeclared identifier is reported only once
tmpwatch.c:580: error: for each function it appears in.)
tmpwatch.c:600: warning: implicit declaration of function 'getopt_long'
tmpwatch.c:568: warning: unused variable 'options'
make: *** [tmpwatch] Error 1
}}}


Thanks for your report; fixing #5 will most likely fix this as well.

I agree, a fix to #5 will likely fix this as well, but I'm not sure that's guaranteed. I will add a comment to #5 to note that IRIX suffers a similar problem

Login to comment on this ticket.

Metadata