egreshko@jpntok.cdc.COM (Ed Greshko) (02/22/91)
One of these days I'll put remove my Fortan hat and lean C....but until then I'll continue to ask stupid questions that are easily answered by others. Oh well, C if I care... :-) Anyway, this problem goes for applications other than xrolo that I'm trying to get running on my SGI PI. After running imake, I do a make and get errors of the following types: cc -O -prototypes -float -I. -I$OPENWINHOME/include -DSYSV -DMALLOC_0_ RETURNS_NULL -DFUNCPROTO -DNARROWPROTO -DSTANDALONE -DMAILER=\"/bin/mail\" -DVER SION=\"2.0\" -c main.c ccom: Warning: /usr/include/xview/sun.h, line 15: Previous declaration had proto type, this declaration does not FILE *popen(); ------------------^ ccom: Warning: /usr/include/xview/sun.h, line 23: Previous declaration had proto type, this declaration does not char *strcpy(); --------------^ ccom: Error: /usr/include/xview/sun.h, line 24: redeclaration of sprintf char *sprintf(); ---------------^ ccom: Warning: /usr/include/time.h, line 66: function ctime now has prototype; a) earlier declaration did not or b) function was called before declaration o r definition extern char * ctime(const time_t *); ---------------------------------------^ ccom: Warning: main.c, line 65: Previous declaration had prototype, this declara tion does not extern char *check_args (), *getenv (), *strcpy (), ----------------------------------------------------------------^ *** Error code 1 Would someone tell me how to get around this?? (No nasty RTFM replies please.....it is 1am here in Tokyo and I've an early day tomorrow.... :-) ) Ed Greshko email : egreshko@jpntok.cdc.com CDCMAIL : Edward M. Greshko, ARH257 Home : 011-81-(3)3704-6158 T.I.T. : 011-81-(3)3726-0527 FAX : 011-81-(3)3726-5799
jsw@xhead.esd.sgi.com (Jeff Weinstein) (02/24/91)
Get rid of the bogus libc function declarations in the xview header files. You gotta love that portable sun code. --Jeff -- Jeff Weinstein - X Protocol Police Silicon Graphics, Inc., Entry Systems Division, Window Systems jsw@xhead.esd.sgi.com Any opinions expressed above are mine, not sgi's.