=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/graphics/xgraph", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for xgraph-11.3.2.9nb2 --- xgraph.o --- --- xgX.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DNO_ASM -I/opt/pkg/include -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64 -I/opt/pkg/include -c xgX.c --- xgraph.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DNO_ASM -I/opt/pkg/include -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64 -I/opt/pkg/include -c xgraph.c xgraph.c: In function 'main': xgraph.c:257:5: warning: old-style function definition [-Wold-style-definition] 257 | int main(argc, argv) | ^~~~ xgraph.c:289:22: error: passing argument 1 of 'XSetErrorHandler' from incompatible pointer type [-Wincompatible-pointer-types] 289 | XSetErrorHandler(XErrHandler); | ^~~~~~~~~~~ | | | int (*)(void) In file included from xgraph.h:9, from xgout.h:8, from xgraph.c:18: /home/pbulk/work/graphics/xgraph/work/.buildlink/include/X11/Xlib.h:1849:5: note: expected 'XErrorHandler' {aka 'int (*)(struct _XDisplay *, XErrorEvent *)'} but argument is of type 'int (*)(void)' 1849 | XErrorHandler /* handler */ | ^~~~~~~~~~~~~ xgraph.c:252:12: note: 'XErrHandler' declared here 252 | static int XErrHandler(); /* Handles error messages */ | ^~~~~~~~~~~ /home/pbulk/work/graphics/xgraph/work/.buildlink/include/X11/Xlib.h:1843:15: note: 'XErrorHandler' declared here 1843 | typedef int (*XErrorHandler) ( /* WARNING, this type not in Xlib spec */ | ^~~~~~~~~~~~~ xgraph.c:298:5: error: too many arguments to function 'ParseArgs'; expected 0, have 3 298 | ParseArgs(argc, argv, 0); | ^~~~~~~~~ ~~~~ xgraph.c:166:13: note: declared here 166 | static void ParseArgs(); | ^~~~~~~~~ xgraph.c:307:16: error: too many arguments to function 'xgraph_stream_open'; expected 0, have 1 307 | strm = xgraph_stream_open(NULL); | ^~~~~~~~~~~~~~~~~~ ~~~~ xgraph.c:253:22: note: declared here 253 | static XGraphStream *xgraph_stream_open(); | ^~~~~~~~~~~~~~~~~~ xgraph.c:308:13: error: too many arguments to function 'ReadData'; expected 0, have 1 308 | if (ReadData(strm) < 0) { | ^~~~~~~~ ~~~~ xgraph.c:167:12: note: declared here 167 | static int ReadData(); | ^~~~~~~~ xgraph.c:311:9: error: too many arguments to function 'xgraph_stream_close'; expected 0, have 1 311 | xgraph_stream_close(strm); | ^~~~~~~~~~~~~~~~~~~ ~~~~ xgraph.c:255:13: note: declared here 255 | static void xgraph_stream_close(); | ^~~~~~~~~~~~~~~~~~~ xgraph.c:319:20: error: too many arguments to function 'xgraph_stream_open'; expected 0, have 1 319 | strm = xgraph_stream_open(inFileNames[idx]); | ^~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ xgraph.c:253:22: note: declared here 253 | static XGraphStream *xgraph_stream_open(); | ^~~~~~~~~~~~~~~~~~ xgraph.c:325:21: error: too many arguments to function 'ReadData'; expected 0, have 1 325 | if (ReadData(strm) < 0) { | ^~~~~~~~ ~~~~ xgraph.c:167:12: note: declared here 167 | static int ReadData(); | ^~~~~~~~ xgraph.c:328:17: error: too many arguments to function 'xgraph_stream_close'; expected 0, have 1 328 | xgraph_stream_close(strm); | ^~~~~~~~~~~~~~~~~~~ ~~~~ xgraph.c:255:13: note: declared here 255 | static void xgraph_stream_close(); | ^~~~~~~~~~~~~~~~~~~ xgraph.c:343:5: error: too many arguments to function 'ParseArgs'; expected 0, have 3 343 | ParseArgs(argc, argv, 1); | ^~~~~~~~~ ~~~~ xgraph.c:166:13: note: declared here 166 | static void ParseArgs(); | ^~~~~~~~~ xgraph.c:357:5: error: too many arguments to function 'Traverse'; expected 0, have 1 357 | Traverse(flags); | ^~~~~~~~ ~~~~~ xgraph.c:162:13: note: declared here 162 | static void Traverse(); | ^~~~~~~~ xgraph.c:373:15: error: too many arguments to function 'NewWindow'; expected 0, have 6 373 | primary = NewWindow(Prog_Name, | ^~~~~~~~~ ~~~~~~~~~ xgraph.c:265:21: note: declared here 265 | Window primary, NewWindow(); | ^~~~~~~~~ xgraph.c:410:17: error: too many arguments to function 'init_X'; expected 0, have 1 410 | init_X(win_info->dev_info.user_state); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xgraph.c:156:13: note: declared here 156 | extern void init_X(); | ^~~~~~ xgraph.c:411:17: error: too many arguments to function 'DrawWindow'; expected 0, have 1 411 | DrawWindow(win_info); | ^~~~~~~~~~ ~~~~~~~~ xgraph.c:168:13: note: declared here 168 | static void DrawWindow(); | ^~~~~~~~~~ xgraph.c:420:21: error: too many arguments to function 'DelWindow'; expected 0, have 2 420 | DelWindow(theEvent.xkey.window, win_info); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ xgraph.c:169:13: note: declared here 169 | static void DelWindow(); | ^~~~~~~~~ xgraph.c:425:21: error: too many arguments to function 'PrintWindow'; expected 0, have 2 425 | PrintWindow(theEvent.xany.window, win_info); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ xgraph.c:170:13: note: declared here 170 | static void PrintWindow(); | ^~~~~~~~~~~ xgraph.c:431:28: error: too many arguments to function 'HandleZoom'; expected 0, have 4 431 | Num_Windows += HandleZoom(Prog_Name, | ^~~~~~~~~~ ~~~~~~~~~ xgraph.c:171:12: note: declared here 171 | static int HandleZoom(); | ^~~~~~~~~~ xgraph.c: In function 'ReversePix': xgraph.c:447:13: warning: old-style function definition [-Wold-style-definition] 447 | static void ReversePix(param_name) | ^~~~~~~~~~ xgraph.c: In function 'Traverse': xgraph.c:494:13: warning: old-style function definition [-Wold-style-definition] 494 | static void Traverse(flags) | ^~~~~~~~ --- xgX.o --- xgX.c: In function 'set_X': --- xgraph.o --- xgraph.c: In function 'del_func': xgraph.c:544:10: warning: old-style function definition [-Wold-style-definition] 544 | xtb_hret del_func(win, bval, info) | ^~~~~~~~ --- xgX.o --- xgX.c:82:6: warning: old-style function definition [-Wold-style-definition] 82 | void set_X(new_win, out_info) | ^~~~~ xgX.c:88:1: error: number of arguments doesn't match prototype 88 | { | ^ In file included from xgout.h:8, from xgX.c:16: xgraph.h:34:13: error: prototype declaration 34 | extern void set_X(); /* Initializes X device */ | ^~~~~ --- xgraph.o --- xgraph.c:559:13: error: too many arguments to function 'do_error'; expected 0, have 1 559 | do_error("Can't close window while\nhardcopy dialog is posted.\n"); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xgraph.c:157:13: note: declared here 157 | extern void do_error(); | ^~~~~~~~ xgraph.c:562:13: error: too many arguments to function 'DelWindow'; expected 0, have 2 562 | DelWindow(the_win, win_info); | ^~~~~~~~~ ~~~~~~~ xgraph.c:169:13: note: declared here 169 | static void DelWindow(); | ^~~~~~~~~ xgraph.c: In function 'hcpy_func': xgraph.c:569:10: warning: old-style function definition [-Wold-style-definition] 569 | xtb_hret hcpy_func(win, bval, info) | ^~~~~~~~~ xgraph.c:585:9: error: too many arguments to function 'PrintWindow'; expected 0, have 2 585 | PrintWindow(the_win, win_info); | ^~~~~~~~~~~ ~~~~~~~ xgraph.c:170:13: note: declared here 170 | static void PrintWindow(); | ^~~~~~~~~~~ xgraph.c: In function 'abt_func': xgraph.c:595:10: warning: old-style function definition [-Wold-style-definition] 595 | xtb_hret abt_func(win, bval, info) | ^~~~~~~~ xgraph.c:614:9: error: too many arguments to function 'msg_box'; expected 0, have 2 614 | msg_box("XGraph", msg_buf); | ^~~~~~~ ~~~~~~~~ xgraph.h:36:13: note: declared here 36 | extern void msg_box(); | ^~~~~~~ xgraph.c: In function 'NewWindow': xgraph.c:265:21: warning: old-style function definition [-Wold-style-definition] 265 | Window primary, NewWindow(); | ^~~~~~~~~ xgraph.c:635:1: error: number of arguments doesn't match prototype 635 | { | ^ xgraph.c:265:21: error: prototype declaration 265 | Window primary, NewWindow(); | ^~~~~~~~~ xgraph.c:739:9: error: too many arguments to function 'set_X'; expected 0, have 2 739 | set_X(new_window, &(new_info->dev_info)); | ^~~~~ ~~~~~~~~~~ xgraph.h:34:13: note: declared here 34 | extern void set_X(); /* Initializes X device */ | ^~~~~ --- xgX.o --- xgX.c: In function 'init_X': xgX.c:186:6: warning: old-style function definition [-Wold-style-definition] 186 | void init_X(user_state) | ^~~~~~ xgX.c: In function 'textGC': xgX.c:201:11: warning: old-style function definition [-Wold-style-definition] 201 | static GC textGC(t_win, t_font) | ^~~~~~ --- xgraph.o --- xgraph.c: In function 'DelWindow': xgraph.c:781:13: warning: old-style function definition [-Wold-style-definition] 781 | static void DelWindow(win, win_info) | ^~~~~~~~~ xgraph.c: In function 'PrintWindow': --- xgX.o --- xgX.c: In function 'segGC': xgX.c:226:11: warning: old-style function definition [-Wold-style-definition] 226 | static GC segGC(l_win, l_fg, l_style, l_width, l_chars, l_len) | ^~~~~ --- xgraph.o --- xgraph.c:800:13: warning: old-style function definition [-Wold-style-definition] 800 | static void PrintWindow(win, win_info) | ^~~~~~~~~~~ xgraph.c:809:5: error: too many arguments to function 'ho_dialog'; expected 0, have 3 809 | ho_dialog(win, Prog_Name, (char *) win_info); | ^~~~~~~~~ ~~~ xgraph.h:33:13: note: declared here 33 | extern void ho_dialog(); /* Hardcopy dialog */ | ^~~~~~~~~ --- xgX.o --- xgX.c: In function 'dotGC': xgX.c:258:11: warning: old-style function definition [-Wold-style-definition] 258 | static GC dotGC(d_win, d_fg, d_clipmask, d_xorg, d_yorg) | ^~~~~ --- xgraph.o --- xgraph.c: In function 'HandleZoom': xgraph.c:840:12: warning: old-style function definition [-Wold-style-definition] 840 | static int HandleZoom(progname, evt, wi, cur) | ^~~~~~~~~~ --- xgX.o --- xgX.c: In function 'text_X': xgX.c:292:6: warning: old-style function definition [-Wold-style-definition] 292 | void text_X(user_state, x, y, text, just, style) | ^~~~~~ xgX.c:305:1: error: number of arguments doesn't match prototype 305 | { | ^ xgX.c:38:6: error: prototype declaration 38 | void text_X(); | ^~~~~~ xgX.c: In function 'seg_X': xgX.c:363:6: warning: old-style function definition [-Wold-style-definition] 363 | void seg_X(user_state, ns, segs, width, style, lappr, color) | ^~~~~ xgX.c:386:1: error: number of arguments doesn't match prototype 386 | { | ^ xgX.c:39:6: error: prototype declaration 39 | void seg_X(); | ^~~~~ xgX.c:391:29: error: too many arguments to function 'pixel_cache_flush'; expected 0, have 1 391 | if(st->pixel_cache_idx) pixel_cache_flush(st); | ^~~~~~~~~~~~~~~~~ ~~ xgX.c:42:6: note: declared here 42 | void pixel_cache_flush(); | ^~~~~~~~~~~~~~~~~ xgX.c: In function 'dot_X': xgX.c:430:6: warning: old-style function definition [-Wold-style-definition] 430 | void dot_X(user_state, x, y, style, type, color) | ^~~~~ xgX.c:445:1: error: number of arguments doesn't match prototype 445 | { | ^ xgX.c:40:6: error: prototype declaration 40 | void dot_X(); | ^~~~~ xgX.c:451:9: error: too many arguments to function 'pixel_cache_put'; expected 0, have 4 451 | pixel_cache_put(st, x, y, color); | ^~~~~~~~~~~~~~~ ~~ xgX.c:43:6: note: declared here 43 | void pixel_cache_put(); | ^~~~~~~~~~~~~~~ xgX.c:454:33: error: too many arguments to function 'pixel_cache_flush'; expected 0, have 1 454 | if(st->pixel_cache_idx) pixel_cache_flush(st); | ^~~~~~~~~~~~~~~~~ ~~ xgX.c:42:6: note: declared here 42 | void pixel_cache_flush(); | ^~~~~~~~~~~~~~~~~ xgX.c:463:33: error: too many arguments to function 'pixel_cache_flush'; expected 0, have 1 463 | if(st->pixel_cache_idx) pixel_cache_flush(st); | ^~~~~~~~~~~~~~~~~ ~~ xgX.c:42:6: note: declared here 42 | void pixel_cache_flush(); | ^~~~~~~~~~~~~~~~~ xgX.c: In function 'redraw_X': xgX.c:475:5: warning: old-style function definition [-Wold-style-definition] 475 | int redraw_X(out) | ^~~~~~~~ xgX.c:477:1: error: number of arguments doesn't match prototype 477 | { | ^ xgX.c:36:5: error: prototype declaration 36 | int redraw_X(); | ^~~~~~~~ xgX.c: In function 'start_X': xgX.c:487:6: warning: old-style function definition [-Wold-style-definition] 487 | void start_X(out) | ^~~~~~~ xgX.c:489:1: error: number of arguments doesn't match prototype 489 | { | ^ xgX.c:37:6: error: prototype declaration 37 | void start_X(); | ^~~~~~~ xgX.c: In function 'flush_X': xgX.c:518:6: warning: old-style function definition [-Wold-style-definition] 518 | void flush_X(user_state) | ^~~~~~~ xgX.c:520:1: error: number of arguments doesn't match prototype 520 | { | ^ xgX.c:41:6: error: prototype declaration 41 | void flush_X(); | ^~~~~~~ xgX.c:523:9: error: too many arguments to function 'pixel_cache_flush'; expected 0, have 1 523 | pixel_cache_flush(st); | ^~~~~~~~~~~~~~~~~ ~~ xgX.c:42:6: note: declared here 42 | void pixel_cache_flush(); | ^~~~~~~~~~~~~~~~~ xgX.c: In function 'pixel_cache_flush': --- xgraph.o --- xgraph.c: In function 'argerror': xgraph.c:1113:5: warning: old-style function definition [-Wold-style-definition] 1113 | int argerror(err, val) | ^~~~~~~~ --- xgX.o --- xgX.c:529:6: warning: old-style function definition [-Wold-style-definition] 529 | void pixel_cache_flush(st) | ^~~~~~~~~~~~~~~~~ xgX.c:531:1: error: number of arguments doesn't match prototype 531 | { | ^ xgX.c:42:6: error: prototype declaration 42 | void pixel_cache_flush(); | ^~~~~~~~~~~~~~~~~ xgX.c: In function 'pixel_cache_put': xgX.c:542:6: warning: old-style function definition [-Wold-style-definition] 542 | void pixel_cache_put(st, x, y, color) | ^~~~~~~~~~~~~~~ xgX.c:546:1: error: number of arguments doesn't match prototype 546 | { | ^ xgX.c:43:6: error: prototype declaration 43 | void pixel_cache_put(); | ^~~~~~~~~~~~~~~ xgX.c:549:9: error: too many arguments to function 'pixel_cache_flush'; expected 0, have 1 549 | pixel_cache_flush(st); | ^~~~~~~~~~~~~~~~~ ~~ xgX.c:529:6: note: declared here 529 | void pixel_cache_flush(st) | ^~~~~~~~~~~~~~~~~ --- xgraph.o --- xgraph.c: In function 'ParseArgs': xgraph.c:1159:13: warning: old-style function definition [-Wold-style-definition] 1159 | static void ParseArgs(argc, argv, do_it) | ^~~~~~~~~ xgraph.c: In function 'rdSet': xgraph.c:1299:12: warning: old-style function definition [-Wold-style-definition] 1299 | static int rdSet(fn) | ^~~~~ xgraph.c: In function 'rdSetName': xgraph.c:1327:13: warning: old-style function definition [-Wold-style-definition] 1327 | static void rdSetName(name) | ^~~~~~~~~ xgraph.c: In function 'rdPoint': xgraph.c:1360:13: warning: old-style function definition [-Wold-style-definition] 1360 | static void rdPoint(xval, yval) | ^~~~~~~ xgraph.c: In function 'xgraph_atof': xgraph.c:1449:19: error: conflicting types for 'atof'; have 'double(void)' 1449 | extern double atof(); | ^~~~ In file included from /usr/include/math.h:266, from xgraph.c:15: /usr/include/floatingpoint.h:188:15: note: previous declaration of 'atof' with type 'double(const char *)' 188 | extern double atof(const char *); | ^~~~ xgraph.c: In function 'parse_line': xgraph.c:1508:17: warning: old-style function definition [-Wold-style-definition] 1508 | static LineType parse_line(line, result) | ^~~~~~~~~~ xgraph.c: In function 'ReadData': xgraph.c:1619:12: warning: old-style function definition [-Wold-style-definition] 1619 | static int ReadData(stream) | ^~~~~~~~ xgraph.c:1640:12: error: too many arguments to function 'xgraph_stream_gets'; expected 0, have 3 1640 | while (xgraph_stream_gets(buffer, sizeof(buffer), stream)) { | ^~~~~~~~~~~~~~~~~~ ~~~~~~ xgraph.c:254:14: note: declared here 254 | static char *xgraph_stream_gets(); | ^~~~~~~~~~~~~~~~~~ xgraph.c: In function 'DrawWindow': xgraph.c:1685:13: warning: old-style function definition [-Wold-style-definition] 1685 | static void DrawWindow(win_info) | ^~~~~~~~~~ xgraph.c:1696:8: error: too many arguments to function 'ReDraw'; expected 0, have 1 1696 | if(ReDraw(win_info)) | ^~~~~~ ~~~~~~~~ xgraph.c:172:12: note: declared here 172 | static int ReDraw(); | ^~~~~~ xgraph.c:1698:9: error: too many arguments to function 'TransformCompute'; expected 0, have 1 1698 | if (TransformCompute(win_info)) { | ^~~~~~~~~~~~~~~~ ~~~~~~~~ xgraph.c:173:12: note: declared here 173 | static int TransformCompute(); | ^~~~~~~~~~~~~~~~ xgraph.c:1701:9: error: too many arguments to function 'DrawStart'; expected 0, have 1 1701 | DrawStart(win_info); | ^~~~~~~~~ ~~~~~~~~ xgraph.c:174:13: note: declared here 174 | static void DrawStart(); | ^~~~~~~~~ xgraph.c:1704:9: error: too many arguments to function 'DrawTitle'; expected 0, have 1 1704 | DrawTitle(win_info); | ^~~~~~~~~ ~~~~~~~~ xgraph.c:175:13: note: declared here 175 | static void DrawTitle(); | ^~~~~~~~~ xgraph.c:1707:9: error: too many arguments to function 'DrawLegend'; expected 0, have 1 1707 | DrawLegend(win_info); | ^~~~~~~~~~ ~~~~~~~~ xgraph.c:176:13: note: declared here 176 | static void DrawLegend(); | ^~~~~~~~~~ xgraph.c:1710:9: error: too many arguments to function 'DrawGridAndAxis'; expected 0, have 1 1710 | DrawGridAndAxis(win_info); | ^~~~~~~~~~~~~~~ ~~~~~~~~ xgraph.c:177:13: note: declared here 177 | static void DrawGridAndAxis(); | ^~~~~~~~~~~~~~~ xgraph.c:1713:9: error: too many arguments to function 'DrawData'; expected 0, have 1 1713 | DrawData(win_info); | ^~~~~~~~ ~~~~~~~~ xgraph.c:178:13: note: declared here 178 | static void DrawData(); | ^~~~~~~~ xgraph.c:1716:9: error: too many arguments to function 'DrawFlush'; expected 0, have 1 1716 | DrawFlush(win_info); | ^~~~~~~~~ ~~~~~~~~ xgraph.c:179:13: note: declared here 179 | static void DrawFlush(); | ^~~~~~~~~ xgraph.c: In function 'DrawTitle': xgraph.c:1723:13: warning: old-style function definition [-Wold-style-definition] 1723 | static void DrawTitle(wi) | ^~~~~~~~~ xgraph.c:1733:5: error: too many arguments to function 'wi->dev_info.xg_text'; expected 0, have 6 1733 | wi->dev_info.xg_text(wi->dev_info.user_state, | ^~ ~~~~~~~~~~~~~~~~~~~~~~~ xgout.h:58:12: note: declared here 58 | void (*xg_text)(); /* Draws text at a location */ | ^~~~~~~ xgraph.c: In function 'TransformCompute': xgraph.c:1742:12: warning: old-style function definition [-Wold-style-definition] 1742 | static int TransformCompute(wi) | ^~~~~~~~~~~~~~~~ xgraph.c:1797:9: error: too many arguments to function 'do_error'; expected 0, have 1 1797 | do_error(strcpy(err, "Drawing area is too small\n")); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xgraph.c:157:13: note: declared here 157 | extern void do_error(); | ^~~~~~~~ xgraph.c: In function 'DrawGridAndAxis': xgraph.c:1828:13: warning: old-style function definition [-Wold-style-definition] 1828 | static void DrawGridAndAxis(wi) | ^~~~~~~~~~~~~~~ xgraph.c:1884:9: error: too many arguments to function 'wi->dev_info.xg_text'; expected 0, have 6 1884 | wi->dev_info.xg_text(wi->dev_info.user_state, | ^~ ~~~~~~~~~~~~~~~~~~~~~~~ xgout.h:58:12: note: declared here 58 | void (*xg_text)(); /* Draws text at a location */ | ^~~~~~~ xgraph.c:1887:9: error: too many arguments to function 'wi->dev_info.xg_text'; expected 0, have 6 1887 | wi->dev_info.xg_text(wi->dev_info.user_state, | ^~ ~~~~~~~~~~~~~~~~~~~~~~~ xgout.h:58:12: note: declared here 58 | void (*xg_text)(); /* Draws text at a location */ | ^~~~~~~ xgraph.c:1891:9: error: too many arguments to function 'wi->dev_info.xg_text'; expected 0, have 6 1891 | wi->dev_info.xg_text(wi->dev_info.user_state, | ^~ ~~~~~~~~~~~~~~~~~~~~~~~ xgout.h:58:12: note: declared here 58 | void (*xg_text)(); /* Draws text at a location */ | ^~~~~~~ xgraph.c:1900:9: error: too many arguments to function 'wi->dev_info.xg_text'; expected 0, have 6 1900 | wi->dev_info.xg_text(wi->dev_info.user_state, | ^~ ~~~~~~~~~~~~~~~~~~~~~~~ xgout.h:58:12: note: declared here 58 | void (*xg_text)(); /* Draws text at a location */ | ^~~~~~~ xgraph.c:1904:9: error: too many arguments to function 'wi->dev_info.xg_text'; expected 0, have 6 1904 | wi->dev_info.xg_text(wi->dev_info.user_state, | ^~ ~~~~~~~~~~~~~~~~~~~~~~~ xgout.h:58:12: note: declared here 58 | void (*xg_text)(); /* Draws text at a location */ | ^~~~~~~ xgraph.c:1907:9: error: too many arguments to function 'wi->dev_info.xg_text'; expected 0, have 6 1907 | wi->dev_info.xg_text(wi->dev_info.user_state, | ^~ ~~~~~~~~~~~~~~~~~~~~~~~ xgout.h:58:12: note: declared here 58 | void (*xg_text)(); /* Draws text at a location */ | ^~~~~~~ xgraph.c:1915:14: error: too many arguments to function 'initGrid'; expected 0, have 3 1915 | Ystart = initGrid(wi->UsrOrgY, Yincr, logYFlag); | ^~~~~~~~ ~~~~~~~~~~~ xgraph.c:1841:12: note: declared here 1841 | double initGrid(), stepGrid(); | ^~~~~~~~ xgraph.c:1919:9: error: too many arguments to function 'WriteValue'; expected 0, have 5 1919 | WriteValue(value, Yindex, expY, logYFlag, PM_STR("LabelFormatY")); | ^~~~~~~~~~ ~~~~~ xgraph.c:180:13: note: declared here 180 | static void WriteValue(); | ^~~~~~~~~~ xgraph.c:1920:9: error: too many arguments to function 'wi->dev_info.xg_text'; expected 0, have 6 1920 | wi->dev_info.xg_text(wi->dev_info.user_state, | ^~ ~~~~~~~~~~~~~~~~~~~~~~~ xgout.h:58:12: note: declared here 58 | void (*xg_text)(); /* Draws text at a location */ | ^~~~~~~ xgraph.c:1927:14: error: too many arguments to function 'initGrid'; expected 0, have 3 1927 | Xstart = initGrid(wi->UsrOrgX, Xincr, logXFlag); | ^~~~~~~~ ~~~~~~~~~~~ xgraph.c:1841:12: note: declared here 1841 | double initGrid(), stepGrid(); | ^~~~~~~~ xgraph.c:1931:9: error: too many arguments to function 'WriteValue'; expected 0, have 5 1931 | WriteValue(value, Xindex, expX, logXFlag, PM_STR("LabelFormatX")); | ^~~~~~~~~~ ~~~~~ xgraph.c:180:13: note: declared here 180 | static void WriteValue(); | ^~~~~~~~~~ xgraph.c:1932:9: error: too many arguments to function 'wi->dev_info.xg_text'; expected 0, have 6 1932 | wi->dev_info.xg_text(wi->dev_info.user_state, | ^~ ~~~~~~~~~~~~~~~~~~~~~~~ xgout.h:58:12: note: declared here 58 | void (*xg_text)(); /* Draws text at a location */ | ^~~~~~~ xgraph.c:1942:14: error: too many arguments to function 'initGrid'; expected 0, have 3 1942 | Ystart = initGrid(wi->UsrOrgY, Yincr, logYFlag); | ^~~~~~~~ ~~~~~~~~~~~ xgraph.c:1841:12: note: declared here 1841 | double initGrid(), stepGrid(); | ^~~~~~~~ xgraph.c:1957:13: error: too many arguments to function 'wi->dev_info.xg_seg'; expected 0, have 7 1957 | wi->dev_info.xg_seg(wi->dev_info.user_state, | ^~ ~~~~~~~~~~~~~~~~~~~~~~~ xgout.h:59:12: note: declared here 59 | void (*xg_seg)(); /* Draws a series of segments */ | ^~~~~~ xgraph.c:1961:17: error: too many arguments to function 'wi->dev_info.xg_seg'; expected 0, have 7 1961 | wi->dev_info.xg_seg(wi->dev_info.user_state, | ^~ ~~~~~~~~~~~~~~~~~~~~~~~ xgout.h:59:12: note: declared here 59 | void (*xg_seg)(); /* Draws a series of segments */ | ^~~~~~ xgraph.c:1966:13: error: too many arguments to function 'wi->dev_info.xg_seg'; expected 0, have 7 1966 | wi->dev_info.xg_seg(wi->dev_info.user_state, | ^~ ~~~~~~~~~~~~~~~~~~~~~~~ xgout.h:59:12: note: declared here 59 | void (*xg_seg)(); /* Draws a series of segments */ | ^~~~~~ xgraph.c:1970:17: error: too many arguments to function 'wi->dev_info.xg_seg'; expected 0, have 7 1970 | wi->dev_info.xg_seg(wi->dev_info.user_state, | ^~ ~~~~~~~~~~~~~~~~~~~~~~~ xgout.h:59:12: note: declared here 59 | void (*xg_seg)(); /* Draws a series of segments */ | ^~~~~~ xgraph.c:1978:14: error: too many arguments to function 'initGrid'; expected 0, have 3 1978 | Xstart = initGrid(wi->UsrOrgX, Xincr, logXFlag); | ^~~~~~~~ ~~~~~~~~~~~ xgraph.c:1841:12: note: declared here 1841 | double initGrid(), stepGrid(); | ^~~~~~~~ xgraph.c:1993:13: error: too many arguments to function 'wi->dev_info.xg_seg'; expected 0, have 7 1993 | wi->dev_info.xg_seg(wi->dev_info.user_state, | ^~ ~~~~~~~~~~~~~~~~~~~~~~~ xgout.h:59:12: note: declared here 59 | void (*xg_seg)(); /* Draws a series of segments */ | ^~~~~~ xgraph.c:1996:17: error: too many arguments to function 'wi->dev_info.xg_seg'; expected 0, have 7 1996 | wi->dev_info.xg_seg(wi->dev_info.user_state, | ^~ ~~~~~~~~~~~~~~~~~~~~~~~ xgout.h:59:12: note: declared here 59 | void (*xg_seg)(); /* Draws a series of segments */ | ^~~~~~ xgraph.c:2002:13: error: too many arguments to function 'wi->dev_info.xg_seg'; expected 0, have 7 2002 | wi->dev_info.xg_seg(wi->dev_info.user_state, | ^~ ~~~~~~~~~~~~~~~~~~~~~~~ xgout.h:59:12: note: declared here 59 | void (*xg_seg)(); /* Draws a series of segments */ | ^~~~~~ xgraph.c:2005:17: error: too many arguments to function 'wi->dev_info.xg_seg'; expected 0, have 7 2005 | wi->dev_info.xg_seg(wi->dev_info.user_state, | ^~ ~~~~~~~~~~~~~~~~~~~~~~~ xgout.h:59:12: note: declared here 59 | void (*xg_seg)(); /* Draws a series of segments */ | ^~~~~~ xgraph.c:2019:9: error: too many arguments to function 'wi->dev_info.xg_seg'; expected 0, have 7 2019 | wi->dev_info.xg_seg(wi->dev_info.user_state, | ^~ ~~~~~~~~~~~~~~~~~~~~~~~ xgout.h:59:12: note: declared here 59 | void (*xg_seg)(); /* Draws a series of segments */ | ^~~~~~ xgraph.c: In function 'initGrid': xgraph.c:1841:12: warning: old-style function definition [-Wold-style-definition] 1841 | double initGrid(), stepGrid(); | ^~~~~~~~ xgraph.c:2033:1: error: number of arguments doesn't match prototype 2033 | { | ^ xgraph.c:1841:12: error: prototype declaration 1841 | double initGrid(), stepGrid(); | ^~~~~~~~ xgraph.c:2079:20: error: too many arguments to function 'RoundUp'; expected 0, have 1 2079 | gridStep = RoundUp(step); | ^~~~~~~ ~~~~ xgraph.c:2035:12: note: declared here 2035 | double RoundUp(), stepGrid(); | ^~~~~~~ xgraph.c: In function 'RoundUp': xgraph.c:2035:12: warning: old-style function definition [-Wold-style-definition] xgraph.c:2101:1: error: number of arguments doesn't match prototype 2101 | { | ^ xgraph.c:2035:12: error: prototype declaration 2035 | double RoundUp(), stepGrid(); | ^~~~~~~ xgraph.c: In function 'WriteValue': xgraph.c:2130:13: warning: old-style function definition [-Wold-style-definition] 2130 | static void WriteValue(str, val, expv, logFlag, fmt) | ^~~~~~~~~~ xgraph.c: In function 'DrawData': xgraph.c:2178:13: warning: old-style function definition [-Wold-style-definition] 2178 | static void DrawData(wi) | ^~~~~~~~ xgraph.c:2213:5: error: too many arguments to function 'set_mark_flags'; expected 0, have 4 2213 | set_mark_flags(&markFlag, &pixelMarks, &bigPixel, &colorMark); | ^~~~~~~~~~~~~~ ~~~~~~~~~ xgraph.c:161:13: note: declared here 161 | static void set_mark_flags(); | ^~~~~~~~~~~~~~ xgraph.c:2267:25: error: too many arguments to function 'wi->dev_info.xg_dot'; expected 0, have 6 2267 | wi->dev_info.xg_dot(wi->dev_info.user_state, x, y, | ^~ ~~~~~~~~~~~~~~~~~~~~~~~ xgout.h:60:12: note: declared here 60 | void (*xg_dot)(); /* Draws a dot or marker at a location */ | ^~~~~~ xgraph.c:2312:33: error: too many arguments to function 'wi->dev_info.xg_seg'; expected 0, have 7 2312 | wi->dev_info.xg_seg(wi->dev_info.user_state, | ^~ ~~~~~~~~~~~~~~~~~~~~~~~ xgout.h:59:12: note: declared here 59 | void (*xg_seg)(); /* Draws a series of segments */ | ^~~~~~ xgraph.c:2324:21: error: too many arguments to function 'wi->dev_info.xg_seg'; expected 0, have 7 2324 | wi->dev_info.xg_seg(wi->dev_info.user_state, | ^~ ~~~~~~~~~~~~~~~~~~~~~~~ xgout.h:59:12: note: declared here 59 | void (*xg_seg)(); /* Draws a series of segments */ | ^~~~~~ xgraph.c:2384:29: error: too many arguments to function 'wi->dev_info.xg_seg'; expected 0, have 7 2384 | wi->dev_info.xg_seg(wi->dev_info.user_state, | ^~ ~~~~~~~~~~~~~~~~~~~~~~~ xgout.h:59:12: note: declared here 59 | void (*xg_seg)(); /* Draws a series of segments */ | ^~~~~~ xgraph.c:2394:21: error: too many arguments to function 'wi->dev_info.xg_seg'; expected 0, have 7 2394 | wi->dev_info.xg_seg(wi->dev_info.user_state, | ^~ ~~~~~~~~~~~~~~~~~~~~~~~ xgout.h:59:12: note: declared here 59 | void (*xg_seg)(); /* Draws a series of segments */ | ^~~~~~ xgraph.c: In function 'ReDraw': xgraph.c:2406:5: warning: old-style function definition [-Wold-style-definition] 2406 | int ReDraw(wi) | ^~~~~~ xgraph.c:2410:16: error: too many arguments to function 'wi->dev_info.xg_redraw'; expected 0, have 1 2410 | return wi->dev_info.xg_redraw(&wi->dev_info); | ^~ ~~~~~~~~~~~~~ xgout.h:56:11: note: declared here 56 | int (*xg_redraw)(); /* Redraw */ | ^~~~~~~~~ xgraph.c: In function 'DrawStart': xgraph.c:2414:13: warning: old-style function definition [-Wold-style-definition] 2414 | static void DrawStart(wi) | ^~~~~~~~~ xgraph.c:2418:9: error: too many arguments to function 'wi->dev_info.xg_start'; expected 0, have 1 2418 | wi->dev_info.xg_start(&wi->dev_info); | ^~ ~~~~~~~~~~~~~ xgout.h:57:12: note: declared here 57 | void (*xg_start)(); /* Start Drawint */ | ^~~~~~~~ xgraph.c: In function 'DrawFlush': xgraph.c:2421:13: warning: old-style function definition [-Wold-style-definition] 2421 | static void DrawFlush(wi) | ^~~~~~~~~ xgraph.c:2425:9: error: too many arguments to function 'wi->dev_info.xg_flush'; expected 0, have 1 2425 | wi->dev_info.xg_flush(wi->dev_info.user_state); | ^~ ~~~~~~~~~~~~~~~~~~~~~~~ xgout.h:61:12: note: declared here 61 | void (*xg_flush)(); /* Flush the buffer */ | ^~~~~~~~ xgraph.c: In function 'DrawLegend': xgraph.c:2430:13: warning: old-style function definition [-Wold-style-definition] 2430 | static void DrawLegend(wi) | ^~~~~~~~~~ xgraph.c:2441:5: error: too many arguments to function 'set_mark_flags'; expected 0, have 4 2441 | set_mark_flags(&markFlag, &pixelMarks, &bigPixel, &colorMark); | ^~~~~~~~~~~~~~ ~~~~~~~~~ xgraph.c:161:13: note: declared here 161 | static void set_mark_flags(); | ^~~~~~~~~~~~~~ xgraph.c:2452:15: error: too many arguments to function 'wi->dev_info.xg_text'; expected 0, have 6 2452 | wi->dev_info.xg_text(wi->dev_info.user_state, | ^~ ~~~~~~~~~~~~~~~~~~~~~~~ xgout.h:58:12: note: declared here 58 | void (*xg_text)(); /* Draws text at a location */ | ^~~~~~~ xgraph.c:2470:15: error: too many arguments to function 'wi->dev_info.xg_seg'; expected 0, have 7 2470 | wi->dev_info.xg_seg(wi->dev_info.user_state, | ^~ ~~~~~~~~~~~~~~~~~~~~~~~ xgout.h:59:12: note: declared here 59 | void (*xg_seg)(); /* Draws a series of segments */ | ^~~~~~ xgraph.c:2474:19: error: too many arguments to function 'wi->dev_info.xg_dot'; expected 0, have 6 2474 | wi->dev_info.xg_dot(wi->dev_info.user_state, | ^~ ~~~~~~~~~~~~~~~~~~~~~~~ xgout.h:60:12: note: declared here 60 | void (*xg_dot)(); /* Draws a dot or marker at a location */ | ^~~~~~ xgraph.c: In function 'set_mark_flags': xgraph.c:2486:13: warning: old-style function definition [-Wold-style-definition] 2486 | static void set_mark_flags(markFlag, pixelMarks, bigPixel, colorMark) | ^~~~~~~~~~~~~~ xgraph.c: In function 'do_hardcopy': xgraph.c:2516:6: warning: old-style function definition [-Wold-style-definition] 2516 | void do_hardcopy(prog, info, init_fun, dev_spec, file_or_dev, maxdim, | ^~~~~~~~~~~ xgraph.c:2537:1: error: number of arguments doesn't match prototype 2537 | { | ^ xgraph.h:32:13: error: prototype declaration 32 | extern void do_hardcopy(); /* Carries out hardcopy */ | ^~~~~~~~~~~ xgraph.c:2550:13: error: too many arguments to function 'do_error'; expected 0, have 1 2550 | do_error(sprintf(err, "Unable to issue command:\n %s\n", buf)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xgraph.c:157:13: note: declared here 157 | extern void do_error(); | ^~~~~~~~ xgraph.c:2554:9: error: too many arguments to function 'tildeExpand'; expected 0, have 2 2554 | tildeExpand(tilde, file_or_dev); | ^~~~~~~~~~~ ~~~~~ xgraph.c:159:14: note: declared here 159 | static char *tildeExpand(); | ^~~~~~~~~~~ xgraph.c:2557:13: error: too many arguments to function 'do_error'; expected 0, have 1 2557 | do_error(sprintf(err, "Unable to open file `%s'\n", tilde)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xgraph.c:157:13: note: declared here 157 | extern void do_error(); | ^~~~~~~~ xgraph.c:2577:10: error: too many arguments to function 'init_fun'; expected 0, have 10 2577 | if ((*init_fun)(out_stream, final_w, final_h, ti_fam, ti_size, | ~^~~~~~~~~~ ~~~~~~~~~~ xgraph.c:2579:9: error: too many arguments to function 'DrawWindow'; expected 0, have 1 2579 | DrawWindow(&thisWin); | ^~~~~~~~~~ ~~~~~~~~ xgraph.c:1685:13: note: declared here 1685 | static void DrawWindow(win_info) | ^~~~~~~~~~ xgraph.c:2581:13: error: too many arguments to function 'thisWin.dev_info.xg_end'; expected 0, have 1 2581 | thisWin.dev_info.xg_end(thisWin.dev_info.user_state); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ xgout.h:62:12: note: declared here 62 | void (*xg_end)(); /* Stops the drawing sequence */ | ^~~~~~ xgraph.c:2584:9: error: too many arguments to function 'do_error'; expected 0, have 1 2584 | do_error(ierr); | ^~~~~~~~ ~~~~ xgraph.c:157:13: note: declared here 157 | extern void do_error(); | ^~~~~~~~ xgraph.c: In function 'tildeExpand': xgraph.c:2594:14: warning: old-style function definition [-Wold-style-definition] 2594 | static char *tildeExpand(out, in) | ^~~~~~~~~~~ xgraph.c: In function 'XErrHandler': xgraph.c:2640:12: warning: old-style function definition [-Wold-style-definition] 2640 | static int XErrHandler(disp_ptr, evt) | ^~~~~~~~~~~ --- xgX.o --- *** [xgX.o] Error code 1 bmake: stopped making "all" in /home/pbulk/work/graphics/xgraph/work/xgraph-11.3.2-hack.9 --- xgraph.o --- xgraph.c: At top level: xgraph.c:2717:22: error: conflicting types for 'xgraph_stream_open'; have 'XGraphStream *(char *)' {aka 'struct xgraph_stream *(char *)'} 2717 | static XGraphStream *xgraph_stream_open(char *filename) | ^~~~~~~~~~~~~~~~~~ xgraph.c:253:22: note: previous declaration of 'xgraph_stream_open' with type 'XGraphStream *(void)' {aka 'struct xgraph_stream *(void)'} 253 | static XGraphStream *xgraph_stream_open(); | ^~~~~~~~~~~~~~~~~~ xgraph.c: In function 'xgraph_stream_gets': xgraph.c:2759:14: warning: old-style function definition [-Wold-style-definition] 2759 | static char *xgraph_stream_gets(buff, n, stream) | ^~~~~~~~~~~~~~~~~~ xgraph.c: In function 'xgraph_stream_close': xgraph.c:2795:13: warning: old-style function definition [-Wold-style-definition] 2795 | static void xgraph_stream_close(stream) | ^~~~~~~~~~~~~~~~~~~ xgraph.c: At top level: xgraph.c:253:22: warning: 'xgraph_stream_open' used but never defined 253 | static XGraphStream *xgraph_stream_open(); | ^~~~~~~~~~~~~~~~~~ *** [xgraph.o] Error code 1 bmake: stopped making "all" in /home/pbulk/work/graphics/xgraph/work/xgraph-11.3.2-hack.9 bmake: 2 errors bmake: stopped making "all" in /home/pbulk/work/graphics/xgraph/work/xgraph-11.3.2-hack.9 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/graphics/xgraph *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/graphics/xgraph