|
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
|
|
From: Ethan M. <merritt@u.washington.edu> - 2016-04-10 02:58:38
|
On Sunday, 10 April 2016 10:11:55 AM Tatsuro MATSUOKA wrote:
> 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'
>
How is it possible that cygwin does not provide memcpy()?
Anyhow, the correct typing for memcpy is:
void *memcpy(void *, const void *, size_t);
Ethan
>
> 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
>
>
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications Manager
> Applications Manager provides deep performance insights into multiple tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
> gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532
> _______________________________________________
> gnuplot-beta mailing list
> gnu...@li...
> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
--
mail: Biomolecular Structure Center, K-428 Health Sciences Bldg
MS 357742, University of Washington, Seattle 98195-7742
|
|
From: Tatsuro M. <tma...@ya...> - 2016-04-10 03:03:01
|
> From: Ethan Merritt
> To: gnuplot-beta Tatsuro MATSUOKA
> Cc:
> Date: 2016/4/10, Sun 11:42
> Subject: Re: stdfn.h: error: conflicting types for 'memcopy' and 'sys_errlist' on Cygwin build
>
> On Sunday, 10 April 2016 10:11:55 AM Tatsuro MATSUOKA wrote:
>> 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'
>>
>
> How is it possible that cygwin does not provide memcpy()?
>
> Anyhow, the correct typing for memcpy is:
>
> void *memcpy(void *, const void *, size_t);
>
>
> Ethan
Thanks for suggestion.
I will ask at Cygwin list.
During the moment, discussion here is pending.
Tatsuro
>>
>> 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
>>
>>
>>
> ------------------------------------------------------------------------------
>> Find and fix application performance issues faster with Applications
> Manager
>> Applications Manager provides deep performance insights into multiple tiers
> of
>> your business applications. It resolves application problems quickly and
>> reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
>> gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532
>> _______________________________________________
>> gnuplot-beta mailing list
>> gnu...@li...
>> Membership management via:
> https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
>
> --
> mail: Biomolecular Structure Center, K-428 Health Sciences Bldg
> MS 357742, University of Washington, Seattle 98195-7742
>
|
|
From: Hans-Bernhard B. <HBB...@t-...> - 2016-04-10 06:48:55
|
Am 10.04.2016 um 04:42 schrieb Ethan Merritt: > On Sunday, 10 April 2016 10:11:55 AM Tatsuro MATSUOKA wrote: >> At compiling src/boundary.c I have met errors. Actually, you met them in almost every single source file. Which is understandable, given that the conflict is in stdfn.h, which is included just about everywhere. > How is it possible that cygwin does not provide memcpy()? It's not. Cygwin does of course provide it. The error messages are caused by the provided declaration conflicting with gnuplot's internal fall-back. The problem here is that configure somehow managed to not find the declaration, although it most definitely is there. We need to see Tatsuro's config.log to find out what went wrong. |
|
From: Tatsuro M. <tma...@ya...> - 2016-04-10 23:34:41
|
> From: Hans-Bernhard Bröker > To: gnuplot-beta> Cc: > Date: 2016/4/10, Sun 15:49 > Subject: Re: stdfn.h: error: conflicting types for 'memcopy' and 'sys_errlist' on Cygwin build > > Am 10.04.2016 um 04:42 schrieb Ethan Merritt: >> On Sunday, 10 April 2016 10:11:55 AM Tatsuro MATSUOKA wrote: > >>> At compiling src/boundary.c I have met errors. > > Actually, you met them in almost every single source file. Which is > understandable, given that the conflict is in stdfn.h, which is included > just about everywhere. > >> How is it possible that cygwin does not provide memcpy()? > > It's not. Cygwin does of course provide it. The error messages are > caused by the provided declaration conflicting with gnuplot's internal > fall-back. > > The problem here is that configure somehow managed to not find the > declaration, although it most definitely is there. We need to see > Tatsuro's config.log to find out what went wrong. > Hans. Thanks for the reply. Now discussion is made in the Cygwin ML. http://cygwin.com/ml/cygwin/2016-04/msg00186.html Regards Tatsuro |
|
From: Tatsuro M. <tma...@ya...> - 2016-04-11 08:22:58
|
> From: Hans-Bernhard Bröker > To: gnuplot-beta > Cc: > Date: 2016/4/10, Sun 15:49 > Subject: Re: stdfn.h: error: conflicting types for 'memcopy' and 'sys_errlist' on Cygwin build > > Am 10.04.2016 um 04:42 schrieb Ethan Merritt: >> On Sunday, 10 April 2016 10:11:55 AM Tatsuro MATSUOKA wrote: > >>> At compiling src/boundary.c I have met errors. > > Actually, you met them in almost every single source file. Which is > understandable, given that the conflict is in stdfn.h, which is included > just about everywhere. > >> How is it possible that cygwin does not provide memcpy()? > > It's not. Cygwin does of course provide it. The error messages are > caused by the provided declaration conflicting with gnuplot's internal > fall-back. > > The problem here is that configure somehow managed to not find the > declaration, although it most definitely is there. We need to see > Tatsuro's config.log to find out what went wrong. > The origin of the issue does not lie on the Cygwin but on gnuplot. So I am back here. See: https://cygwin.com/ml/cygwin/2016-04/msg00202.html Why adding LIBCERF_CFLAGS='-I/usr/local/include' \ LIBCERF_LIBS='-L/usr/local/lib -lcerf' \ flags affect configure process those are not related to libcerf ? Tatsuro |
|
From: Tatsuro M. <tma...@ya...> - 2016-04-11 10:27:02
|
> From: Tatsuro MATSUOKA > To: Hans-Bernhard Broeker ; gnuplot-beta > Cc: > Date: 2016/4/11, Mon 17:22 > Subject: Re: stdfn.h: error: conflicting types for 'memcopy' and 'sys_errlist' on Cygwin build > >> From: Hans-Bernhard Bröker >> To: gnuplot-beta >> Cc: > >> Date: 2016/4/10, Sun 15:49 >> Subject: Re: stdfn.h: error: conflicting types for 'memcopy' and > 'sys_errlist' on Cygwin build >> >> Am 10.04.2016 um 04:42 schrieb Ethan Merritt: >>> On Sunday, 10 April 2016 10:11:55 AM Tatsuro MATSUOKA wrote: >> >>>> At compiling src/boundary.c I have met errors. >> >> Actually, you met them in almost every single source file. Which is >> understandable, given that the conflict is in stdfn.h, which is included >> just about everywhere. >> >>> How is it possible that cygwin does not provide memcpy()? >> >> It's not. Cygwin does of course provide it. The error messages are >> caused by the provided declaration conflicting with gnuplot's internal >> fall-back. >> >> The problem here is that configure somehow managed to not find the >> declaration, although it most definitely is there. We need to see >> Tatsuro's config.log to find out what went wrong. >> > > The origin of the issue does not lie on the Cygwin but on gnuplot. > > So I am back here. > > See: > https://cygwin.com/ml/cygwin/2016-04/msg00202.html > > Why adding > > LIBCERF_CFLAGS='-I/usr/local/include' \ > LIBCERF_LIBS='-L/usr/local/lib -lcerf' \ > > flags affect configure process those are not related to libcerf ? > > Tatsuro > I have completely forgotten to build and install libcerf again. Sorry for the noise. However, why LIBCERF_CFLAGS='-I/usr/local/include' \ LIBCERF_LIBS='-L/usr/local/lib -lcerf' \ flags affect checking functions that are not related libcerf ? Tatsuro |
|
From: Mojca M. <moj...@gm...> - 2016-04-11 10:34:57
|
On 11 April 2016 at 12:26, Tatsuro MATSUOKA wrote: > > I have completely forgotten to build and install libcerf again. > Sorry for the noise. > > However, why > > LIBCERF_CFLAGS='-I/usr/local/include' \ > LIBCERF_LIBS='-L/usr/local/lib -lcerf' \ > > flags affect checking functions that are not related libcerf ? I'm semi-blindly guessing. If configure[.ac] finds out that cerf should be used, it adds LIBCERF_CFLAGS to CFLAGS and LIBCERF_LIBS to LDFLAGS. Those CFLAGS and LIBS are then used for all the remaining tests. If that is indeed the case, I believe there are two "bugs": - gnuplot should figure out that libcerf is not working and not add those flags at all - the flags should be added to the globas set of flags at the end, not at the beginning of the configure script Mojca |
|
From: Tatsuro M. <tma...@ya...> - 2016-04-12 08:53:04
|
> From: Mojca Miklavec > To: Tatsuro MATSUOKA > Cc: gnuplot-beta > Date: 2016/4/11, Mon 19:34 > Subject: Re: stdfn.h: error: conflicting types for 'memcopy' and 'sys_errlist' on Cygwin build > > On 11 April 2016 at 12:26, Tatsuro MATSUOKA wrote: >> >> I have completely forgotten to build and install libcerf again. >> Sorry for the noise. >> >> However, why >> >> LIBCERF_CFLAGS='-I/usr/local/include' \ >> LIBCERF_LIBS='-L/usr/local/lib -lcerf' \ >> >> flags affect checking functions that are not related libcerf ? > > I'm semi-blindly guessing. > > If configure[.ac] finds out that cerf should be used, it adds > LIBCERF_CFLAGS to CFLAGS and LIBCERF_LIBS to LDFLAGS. Those CFLAGS and > LIBS are then used for all the remaining tests. > > If that is indeed the case, I believe there are two "bugs": > > - gnuplot should figure out that libcerf is not working and not add > those flags at all > - the flags should be added to the globas set of flags at the end, not > at the beginning of the configure script Thank you for your reply On ubuntu flags LIBCERF_CFLAGS='-I/usr/local/include' \ LIBCERF_LIBS='-L/usr/local/lib -lcerf' \ are not required so that this might be an issue of my pkg-config setting. However, looking into config.log, I found the following: **************************************************************** configure:7376: checking for LIBCERF configure:7384: $PKG_CONFIG --exists --print-errors "libcerf" configure:7387: $? = 0 configure:7402: $PKG_CONFIG --exists --print-errors "libcerf" configure:7405: $? = 0 configure:7481: result: yes configure:9592: checking for memcpy configure:9592: gcc -o conftest -g -O2 -I/usr/local/include -L/usr/local/lib -lcerf conftest.c -ldl -lm -lcerf >&5 conftest.c:93:6: warning: conflicting types for built-in function 'memcpy' [enabled by default] char memcpy (); ^ configure:9592: $? = 0 configure:9592: result: yes configure:9592: checking for memmove configure:9592: gcc -o conftest -g -O2 -I/usr/local/include -L/usr/local/lib -lcerf conftest.c -ldl -lm -lcerf >&5 LIBCERF_CFLAGS='-I/usr/local/include ' LIBCERF_LIBS='-L/usr/local/lib -lcerf ' **************************************************************** On Ubuntu, pkg-config checks libcerf. However, "-I/usr/local/include -L/usr/local/lib -lcerf" is added to the many functions test. Is the above intended? Tatsuro |