|
From: Tatsuro M. <tma...@ya...> - 2011-08-24 03:49:43
Attachments:
math.h.zip
|
Hello I am now trying to build gnuplot under mingw64 environments. I have encountered compile error. #********************* x86_64-w64-mingw32-gcc -shared-libgcc -c -I/cygdrive/c/Programs/gplibs64/incl -O3 -I. -I../../src -D_Windows -DHAVE_CONFIG_H -DPIPES -DWGP_CONSOLE -DUSE_ME=1 -DWIN_IPC -DWITH_HTML_HELP -I/cygdrive/c/PROGRA~2/HELPWO~1/include -DHAVEBGD -DHAVE_LIBPNG -DHAVE_GD_GIF -DGIF_ANIMATION -DHAVE_GD_PNG -DHAVE_GD_JPEG AVE_GD_TTF -DHAVE_CAIROPDF -DHAVE_ICONV ../../src/internal.c ../../src/internal.c:63:1: warning: '_matherr' redeclared without dllimport aibute: previous dllimport ignored ../../src/internal.c: In function '_matherr': ../../src/internal.c:64:1: error: number of arguments doesn't match prototype /usr/x86_64-w64-mingw32/sys-root/mingw/include/math.h:179:23: error: prototypeclaration make: *** [internal.o] Error 1 #************************* I have attached zipped math.h used this build. Any suggestions ? Regards Tatsuro |
|
From: Ethan A M. <sf...@us...> - 2011-08-24 19:18:12
|
On Tuesday, August 23, 2011 08:49:33 pm Tatsuro MATSUOKA wrote: > > I am now trying to build gnuplot under mingw64 environments. > > I have encountered compile error. > #********************* > x86_64-w64-mingw32-gcc -shared-libgcc -c -I/cygdrive/c/Programs/gplibs64/incl -O3 -I. -I../../src -D_Windows -DHAVE_CONFIG_H -DPIPES -DWGP_CONSOLE -DUSE_ME=1 -DWIN_IPC -DWITH_HTML_HELP -I/cygdrive/c/PROGRA~2/HELPWO~1/include -DHAVEBGD -DHAVE_LIBPNG -DHAVE_GD_GIF -DGIF_ANIMATION -DHAVE_GD_PNG -DHAVE_GD_JPEG AVE_GD_TTF -DHAVE_CAIROPDF -DHAVE_ICONV ../../src/internal.c > ../../src/internal.c:63:1: warning: '_matherr' redeclared without dllimport aibute: previous dllimport ignored > ../../src/internal.c: In function '_matherr': > ../../src/internal.c:64:1: error: number of arguments doesn't match prototype > /usr/x86_64-w64-mingw32/sys-root/mingw/include/math.h:179:23: error: prototypeclaration > make: *** [internal.o] Error 1 > #************************* > > I have attached zipped math.h used this build. > > Any suggestions ? The only way I can see for that error message to make sense is if HAVE_STRUCT_EXCEPTION_IN_MATH_H is not defined. Is the setting in config/config.mgw correct? Ethan > Regards > > Tatsuro |
|
From: Tatsuro M. <tma...@ya...> - 2011-08-24 22:20:38
|
Hello Thank you for the reply. --- On Thu, 2011/8/25, Ethan A Merritt wrote: > The only way I can see for that error message to make sense is if > HAVE_STRUCT_EXCEPTION_IN_MATH_H > is not defined. Is the setting in config/config.mgw correct? The default setting in config.mgw, HAVE_STRUCT_EXCEPTION_IN_MATH_H is not defined. For math.h for 32 bit gcc complier seems not to require HAVE_STRUCT_EXCEPTION_IN_MATH_H is defined. I have manually define HAVE_STRUCT_EXCEPTION_IN_MATH_H in config.mgw and tried compile again. ********************* x86_64-w64-mingw32-gcc -shared-libgcc -c -I/cygdrive/c/Programs/gplibs64/include -O3 -I. -I../../src -D_Windows -DHAVE_CONFIG_H -DPIPES -DWGP_CONSOLE -DUSE_MOUSE=1 -DWIN_IPC -DWITH_HTML_HELP -I/cygdrive/c/PROGRA~2/HELPWO~1/include -DHAVE_LIBGD -DHAVE_LIBPNG -DHAVE_GD_GIF -DGIF_ANIMATION -DHAVE_GD_PNG -DHAVE_GD_JPEG -DHAVE_GD_TTF -DHAVE_CAIROPDF -DHAVE_ICONV ../../src/internal.c ../../src/internal.c:63:13: warning: 'struct exception' declared inside parameter list ../../src/internal.c:63:13: warning: its scope is only this definition or declaration, which is probably not what you want ../../src/internal.c:63:1: error: conflicting types for '_matherr' /usr/x86_64-w64-mingw32/sys-root/mingw/include/math.h:179:23: note: previous declaration of '_matherr' was here make: *** [internal.o] Error 1 ********************************************************** The "error: conflicting types for '_matherr'" appeared. internal.c:63 62: int 63: GP_MATHERR( STRUCT_EXCEPTION_P_X ) /usr/x86_64-w64-mingw32/sys-root/mingw/include/math.h:179 177: #ifndef _CRT_MATHERR_DEFINED 178: #define _CRT_MATHERR_DEFINED 179: _CRTIMP int __cdecl _matherr (struct _exception *); 180: #endif Hmmm! What is wrong? Regards Tatsuro |
|
From: Tatsuro M. <tma...@ya...> - 2011-08-25 04:49:26
|
Hello
I have found in syscfg.h
338: #ifndef GP_MATHERR
339: # define GP_MATHERR matherr
340: #endif
So that I have commented out GP_MATHERR function in internal.c and continue to try to build further
******************************
x86_64-w64-mingw32-gcc -shared-libgcc -c -I/cygdrive/c/Programs/gplibs64/include -O3 -I. -I../../src -D_Windows -DHAVE_CONFIG_H -DPIPES -DWGP_CONSOLE -DUSE_MOUSE=1 -DWIN_IPC -DWITH_HTML_HELP -I/cygdrive/c/PROGRA~2/HELPWO~1/include -DHAVE_LIBGD -DHAVE_LIBPNG -DHAVE_GD_GIF -DGIF_ANIMATION -DHAVE_GD_PNG -DHAVE_GD_JPEG -DHAVE_GD_TTF -DHAVE_ICONV -DHELPFILE=\"wgnuplot.chm\" ../../src/win/winmain.c
In file included from ../../src/win/winmain.c:60:0:
/usr/x86_64-w64-mingw32/sys-root/mingw/include/commctrl.h:17:2: error: #error _WIN32_IE setting conflicts
In file included from ../../src/win/winmain.c:61:0:
/usr/x86_64-w64-mingw32/sys-root/mingw/include/shlobj.h:17:2: error: #error _WIN32_IE setting conflicts
In file included from /usr/x86_64-w64-mingw32/sys-root/mingw/include/shlobj.h:91:0,
from ../../src/win/winmain.c:61:
/usr/x86_64-w64-mingw32/sys-root/mingw/include/shlguid.h:16:2: error: #error _WIN32_IE setting conflicts
make: *** [winmain.o] Error 1
********************************************
I will try to investigate what
#error _WIN32_IE setting conflicts
is.
Therefore I am not able to build 64 bit version gnuplot for windows at the moment.
Regards
Tatsuro
--- On Thu, 2011/8/25, Tatsuro MATSUOKA wrote:
> Hello
>
> Thank you for the reply.
>
> --- On Thu, 2011/8/25, Ethan A Merritt wrote:
>
> > The only way I can see for that error message to make sense is if
> > HAVE_STRUCT_EXCEPTION_IN_MATH_H
> > is not defined. Is the setting in config/config.mgw correct?
>
> The default setting in config.mgw, HAVE_STRUCT_EXCEPTION_IN_MATH_H is not defined.
> For math.h for 32 bit gcc complier seems not to require HAVE_STRUCT_EXCEPTION_IN_MATH_H is defined.
>
> I have manually define HAVE_STRUCT_EXCEPTION_IN_MATH_H in config.mgw and tried compile again.
>
> *********************
> x86_64-w64-mingw32-gcc -shared-libgcc -c -I/cygdrive/c/Programs/gplibs64/include -O3 -I. -I../../src -D_Windows -DHAVE_CONFIG_H -DPIPES -DWGP_CONSOLE -DUSE_MOUSE=1 -DWIN_IPC -DWITH_HTML_HELP -I/cygdrive/c/PROGRA~2/HELPWO~1/include -DHAVE_LIBGD -DHAVE_LIBPNG -DHAVE_GD_GIF -DGIF_ANIMATION -DHAVE_GD_PNG -DHAVE_GD_JPEG -DHAVE_GD_TTF -DHAVE_CAIROPDF -DHAVE_ICONV ../../src/internal.c
> ../../src/internal.c:63:13: warning: 'struct exception' declared inside parameter list
> ../../src/internal.c:63:13: warning: its scope is only this definition or declaration, which is probably not what you want
> ../../src/internal.c:63:1: error: conflicting types for '_matherr'
> /usr/x86_64-w64-mingw32/sys-root/mingw/include/math.h:179:23: note: previous declaration of '_matherr' was here
> make: *** [internal.o] Error 1
>
> **********************************************************
> The "error: conflicting types for '_matherr'" appeared.
>
> internal.c:63
> 62: int
> 63: GP_MATHERR( STRUCT_EXCEPTION_P_X )
>
> /usr/x86_64-w64-mingw32/sys-root/mingw/include/math.h:179
>
> 177: #ifndef _CRT_MATHERR_DEFINED
> 178: #define _CRT_MATHERR_DEFINED
> 179: _CRTIMP int __cdecl _matherr (struct _exception *);
> 180: #endif
>
> Hmmm! What is wrong?
>
> Regards
>
> Tatsuro
>
> ------------------------------------------------------------------------------
> EMC VNX: the world's simplest storage, starting under $10K
> The only unified storage solution that offers unified management
> Up to 160% more powerful than alternatives and 25% more efficient.
> Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
> _______________________________________________
> gnuplot-beta mailing list
> gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
>
|
|
From: sfeam (E. Merritt) <eam...@gm...> - 2011-08-25 05:16:26
|
On Wednesday, 24 August 2011, Tatsuro MATSUOKA wrote: > Hello > > Thank you for the reply. > > --- On Thu, 2011/8/25, Ethan A Merritt wrote: > > > The only way I can see for that error message to make sense is if > > HAVE_STRUCT_EXCEPTION_IN_MATH_H > > is not defined. Is the setting in config/config.mgw correct? > > The default setting in config.mgw, HAVE_STRUCT_EXCEPTION_IN_MATH_H is not defined. > For math.h for 32 bit gcc complier seems not to require HAVE_STRUCT_EXCEPTION_IN_MATH_H is defined. > > I have manually define HAVE_STRUCT_EXCEPTION_IN_MATH_H in config.mgw and tried compile again. > > ********************* > x86_64-w64-mingw32-gcc -shared-libgcc -c -I/cygdrive/c/Programs/gplibs64/include -O3 -I. -I../../src -D_Windows -DHAVE_CONFIG_H -DPIPES -DWGP_CONSOLE -DUSE_MOUSE=1 -DWIN_IPC -DWITH_HTML_HELP -I/cygdrive/c/PROGRA~2/HELPWO~1/include -DHAVE_LIBGD -DHAVE_LIBPNG -DHAVE_GD_GIF -DGIF_ANIMATION -DHAVE_GD_PNG -DHAVE_GD_JPEG -DHAVE_GD_TTF -DHAVE_CAIROPDF -DHAVE_ICONV ../../src/internal.c > ../../src/internal.c:63:13: warning: 'struct exception' declared inside parameter list You might try 1) in config.mgw #define HAVE_STRUCT_EXCEPTION_IN_MATH_H 2) sysconfig.h:334 # define GP_EXCEPTION_NAME _exception (note the underscore character) Ethan > ../../src/internal.c:63:13: warning: its scope is only this definition or declaration, which is probably not what you want > ../../src/internal.c:63:1: error: conflicting types for '_matherr' > /usr/x86_64-w64-mingw32/sys-root/mingw/include/math.h:179:23: note: previous declaration of '_matherr' was here > make: *** [internal.o] Error 1 > > ********************************************************** > The "error: conflicting types for '_matherr'" appeared. > > internal.c:63 > 62: int > 63: GP_MATHERR( STRUCT_EXCEPTION_P_X ) > > /usr/x86_64-w64-mingw32/sys-root/mingw/include/math.h:179 > > 177: #ifndef _CRT_MATHERR_DEFINED > 178: #define _CRT_MATHERR_DEFINED > 179: _CRTIMP int __cdecl _matherr (struct _exception *); > 180: #endif > > Hmmm! What is wrong? > > Regards > > Tatsuro > > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under $10K > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > _______________________________________________ > gnuplot-beta mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-beta > |
|
From: Tatsuro M. <tma...@ya...> - 2011-08-25 09:31:27
|
Hello Thank you for your reply --- On Thu, 2011/8/25, sfeam (Ethan Merritt) wrote: > You might try > 1) in config.mgw #define HAVE_STRUCT_EXCEPTION_IN_MATH_H > 2) sysconfig.h:334 # define GP_EXCEPTION_NAME _exception > (syscfg.h is correct) These make errors in compiling internal.c disappeared. The problem is compile of winmain.c. (/usr/x86_64-w64-mingw32/sys-root/mingw/include/shlguid.h:16:2: error: #error _WIN32_IE setting conflicts) Regards Tatsuro Tatsuro |