|
From: Tatsuro M. <tma...@ya...> - 2016-04-10 01:12:06
|
Hello
This is probably an issue that is specific to the Cygwin.
At compiling src/boundary.c I have met errors.
../../gnuplot/src/stdfn.h:67:8: error: conflicting types for 'memcpy'
../../gnuplot/src/stdfn.h:171:14: error: conflicting types for 'sys_errlist'
Full output.
gcc -DHAVE_CONFIG_H -I. -I../../gnuplot/src -I.. -I../term -I../../gnuplot/term -DBINDIR=\"/opt/gp510/bin\" -DX11_DRIVER_DIR=\"/opt/gp510/libexec/gnuplot/5.1\" -DQT_DRIVER_DIR=\"/opt/gp510/libexec/gnuplot/5.1\" -DGNUPLOT_SHARE_DIR=\"/opt/gp510/share/gnuplot/5.1\" -DGNUPLOT_PS_DIR=\"/opt/gp510/share/gnuplot/5.1/PostScript\" -DGNUPLOT_JS_DIR=\"/opt/gp510/share/gnuplot/5.1/js\" -DGNUPLOT_LUA_DIR=\"/opt/gp510/share/gnuplot/5.1/lua\" -DCONTACT=\"gnu...@li...\" -DHELPFILE=\"/opt/gp510/share/gnuplot/5.1/gnuplot.gih\" -DGNUPLOT_X11=\"`echo gnuplot_x11 | sed 's,x,x,'`.exe\" -DXAPPLRESDIR=\"/etc/X11/app-defaults/\" -I/usr/local/include -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -MT boundary.o -MD -MP -MF $depbase.Tpo -c -o boundary.o ../../gnuplot/src/boundary.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from ../../gnuplot/src/alloc.h:44:0,
from ../../gnuplot/src/alloc.c:44:
../../gnuplot/src/stdfn.h:67:8: error: conflicting types for 'memcpy'
char * memcpy __PROTO((char *, char *, size_t));
^
In file included from ../../gnuplot/src/term_api.h:43:0,
from ../../gnuplot/src/gadgets.h:42,
from ../../gnuplot/src/graphics.h:43,
from ../../gnuplot/src/boundary.c:37:
../../gnuplot/src/stdfn.h:67:8: error: conflicting types for 'memcpy'
char * memcpy __PROTO((char *, char *, size_t));
^
In file included from /usr/include/ctype.h:4:0,
from ../../gnuplot/src/stdfn.h:49,
from ../../gnuplot/src/alloc.h:44,
from ../../gnuplot/src/alloc.c:44:
/usr/include/string.h:23:8: note: previous declaration of 'memcpy' was here
_PTR _EXFUN(memcpy,(_PTR __restrict, const _PTR __restrict, size_t));
^
In file included from /usr/include/ctype.h:4:0,
from ../../gnuplot/src/stdfn.h:49,
from ../../gnuplot/src/term_api.h:43,
from ../../gnuplot/src/gadgets.h:42,
from ../../gnuplot/src/graphics.h:43,
from ../../gnuplot/src/boundary.c:37:
/usr/include/string.h:23:8: note: previous declaration of 'memcpy' was here
_PTR _EXFUN(memcpy,(_PTR __restrict, const _PTR __restrict, size_t));
^
In file included from ../../gnuplot/src/term_api.h:43:0,
from ../../gnuplot/src/gadgets.h:42,
from ../../gnuplot/src/axis.h:42,
from ../../gnuplot/src/datafile.h:42,
from ../../gnuplot/src/breaders.c:48:
../../gnuplot/src/stdfn.h:67:8: error: conflicting types for 'memcpy'
char * memcpy __PROTO((char *, char *, size_t));
^
In file included from /usr/include/ctype.h:4:0,
from ../../gnuplot/src/stdfn.h:49,
from ../../gnuplot/src/term_api.h:43,
from ../../gnuplot/src/gadgets.h:42,
from ../../gnuplot/src/axis.h:42,
from ../../gnuplot/src/datafile.h:42,
from ../../gnuplot/src/breaders.c:48:
/usr/include/string.h:23:8: note: previous declaration of 'memcpy' was here
_PTR _EXFUN(memcpy,(_PTR __restrict, const _PTR __restrict, size_t));
^
In file included from ../../gnuplot/src/term_api.h:43:0,
from ../../gnuplot/src/gadgets.h:42,
from ../../gnuplot/src/axis.h:42,
from ../../gnuplot/src/axis.c:37:
../../gnuplot/src/stdfn.h:67:8: error: conflicting types for 'memcpy'
char * memcpy __PROTO((char *, char *, size_t));
^
In file included from /usr/include/ctype.h:4:0,
from ../../gnuplot/src/stdfn.h:49,
from ../../gnuplot/src/term_api.h:43,
from ../../gnuplot/src/gadgets.h:42,
from ../../gnuplot/src/axis.h:42,
from ../../gnuplot/src/axis.c:37:
/usr/include/string.h:23:8: note: previous declaration of 'memcpy' was here
_PTR _EXFUN(memcpy,(_PTR __restrict, const _PTR __restrict, size_t));
^
In file included from ../../gnuplot/src/term_api.h:43:0,
from ../../gnuplot/src/gadgets.h:42,
from ../../gnuplot/src/graphics.h:43,
from ../../gnuplot/src/boundary.c:37:
../../gnuplot/src/stdfn.h:170:12: warning: 'sys_nerr' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
extern int sys_nerr;
^
../../gnuplot/src/stdfn.h:171:14: error: conflicting types for 'sys_errlist'
extern char *sys_errlist[];
^
In file included from /usr/include/errno.h:9:0,
from ../../gnuplot/src/stdfn.h:163,
from ../../gnuplot/src/term_api.h:43,
from ../../gnuplot/src/gadgets.h:42,
from ../../gnuplot/src/graphics.h:43,
from ../../gnuplot/src/boundary.c:37:
/usr/include/sys/errno.h:23:36: note: previous declaration of 'sys_errlist' was here
extern __IMPORT const char * const sys_errlist[];
^
In file included from ../../gnuplot/src/alloc.h:44:0,
from ../../gnuplot/src/alloc.c:44:
../../gnuplot/src/stdfn.h:170:12: warning: 'sys_nerr' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
extern int sys_nerr;
^
../../gnuplot/src/stdfn.h:171:14: error: conflicting types for 'sys_errlist'
extern char *sys_errlist[];
^
In file included from /usr/include/errno.h:9:0,
from ../../gnuplot/src/stdfn.h:163,
from ../../gnuplot/src/alloc.h:44,
from ../../gnuplot/src/alloc.c:44:
/usr/include/sys/errno.h:23:36: note: previous declaration of 'sys_errlist' was here
extern __IMPORT const char * const sys_errlist[];
^
In file included from ../../gnuplot/src/term_api.h:43:0,
from ../../gnuplot/src/gadgets.h:42,
from ../../gnuplot/src/axis.h:42,
from ../../gnuplot/src/datafile.h:42,
from ../../gnuplot/src/breaders.c:48:
../../gnuplot/src/stdfn.h:170:12: warning: 'sys_nerr' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
extern int sys_nerr;
^
../../gnuplot/src/stdfn.h:171:14: error: conflicting types for 'sys_errlist'
extern char *sys_errlist[];
^
In file included from /usr/include/errno.h:9:0,
from ../../gnuplot/src/stdfn.h:163,
from ../../gnuplot/src/term_api.h:43,
from ../../gnuplot/src/gadgets.h:42,
from ../../gnuplot/src/axis.h:42,
from ../../gnuplot/src/datafile.h:42,
from ../../gnuplot/src/breaders.c:48:
/usr/include/sys/errno.h:23:36: note: previous declaration of 'sys_errlist' was here
extern __IMPORT const char * const sys_errlist[];
^
In file included from ../../gnuplot/src/term_api.h:43:0,
from ../../gnuplot/src/gadgets.h:42,
from ../../gnuplot/src/axis.h:42,
from ../../gnuplot/src/axis.c:37:
../../gnuplot/src/stdfn.h:170:12: warning: 'sys_nerr' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
extern int sys_nerr;
^
../../gnuplot/src/stdfn.h:171:14: error: conflicting types for 'sys_errlist'
extern char *sys_errlist[];
^
In file included from /usr/include/errno.h:9:0,
from ../../gnuplot/src/stdfn.h:163,
from ../../gnuplot/src/term_api.h:43,
from ../../gnuplot/src/gadgets.h:42,
from ../../gnuplot/src/axis.h:42,
from ../../gnuplot/src/axis.c:37:
/usr/include/sys/errno.h:23:36: note: previous declaration of 'sys_errlist' was here
extern __IMPORT const char * const sys_errlist[];
^
Makefile:900: recipe for target 'alloc.o' failed
make[4]: *** [alloc.o] Error 1
make[4]: *** Waiting for unfinished jobs....
../../gnuplot/src/axis.c: In function 'init_parallel_axis':
../../gnuplot/src/axis.c:282:12: warning: passing argument 1 of 'memcpy' from incompatible pointer type [-Wincompatible-pointer-types]
memcpy(this_axis, &default_axis_state, sizeof(AXIS));
^
In file included from ../../gnuplot/src/term_api.h:43:0,
from ../../gnuplot/src/gadgets.h:42,
from ../../gnuplot/src/axis.h:42,
from ../../gnuplot/src/axis.c:37:
../../gnuplot/src/stdfn.h:67:8: note: expected 'char *' but argument is of type 'AXIS * {aka struct axis *}'
char * memcpy __PROTO((char *, char *, size_t));
^
../../gnuplot/src/axis.c:282:23: warning: passing argument 2 of 'memcpy' from incompatible pointer type [-Wincompatible-pointer-types]
memcpy(this_axis, &default_axis_state, sizeof(AXIS));
^
In file included from ../../gnuplot/src/term_api.h:43:0,
from ../../gnuplot/src/gadgets.h:42,
from ../../gnuplot/src/axis.h:42,
from ../../gnuplot/src/axis.c:37:
../../gnuplot/src/stdfn.h:67:8: note: expected 'char *' but argument is of type 'const AXIS * {aka const struct axis *}'
char * memcpy __PROTO((char *, char *, size_t));
^
Makefile:900: recipe for target 'breaders.o' failed
make[4]: *** [breaders.o] Error 1
Makefile:900: recipe for target 'boundary.o' failed
make[4]: *** [boundary.o] Error 1
../../gnuplot/src/axis.c: In function 'clone_linked_axes':
../../gnuplot/src/axis.c:2211:12: warning: passing argument 1 of 'memcpy' from incompatible pointer type [-Wincompatible-pointer-types]
memcpy(axis2, axis1, AXIS_CLONE_SIZE);
^
In file included from ../../gnuplot/src/term_api.h:43:0,
from ../../gnuplot/src/gadgets.h:42,
from ../../gnuplot/src/axis.h:42,
from ../../gnuplot/src/axis.c:37:
../../gnuplot/src/stdfn.h:67:8: note: expected 'char *' but argument is of type 'AXIS * {aka struct axis *}'
char * memcpy __PROTO((char *, char *, size_t));
^
../../gnuplot/src/axis.c:2211:19: warning: passing argument 2 of 'memcpy' from incompatible pointer type [-Wincompatible-pointer-types]
memcpy(axis2, axis1, AXIS_CLONE_SIZE);
^
In file included from ../../gnuplot/src/term_api.h:43:0,
from ../../gnuplot/src/gadgets.h:42,
from ../../gnuplot/src/axis.h:42,
from ../../gnuplot/src/axis.c:37:
../../gnuplot/src/stdfn.h:67:8: note: expected 'char *' but argument is of type 'AXIS * {aka struct axis *}'
char * memcpy __PROTO((char *, char *, size_t));
^
Makefile:900: recipe for target 'axis.o' failed
make[4]: *** [axis.o] Error 1
Any suggestions?
Tatsuro
|