From: Alan W. I. <ir...@be...> - 2015-05-18 19:46:37
|
Hi Phil: To avoid segfaults when plschr is called before plinit (see <https://sourceforge.net/p/plplot/bugs/162/>) it is essential to protect the plP_state( PLSTATE_CHR ); call you introduced into plschr with a level check. At the same time (commit id 1424994f) I also implemented similar level checks to the plP_state( PLSTATE_SYM ); call you introduced to plssym and the plP_state( PLSTATE_FILL ); call where you removed the existing level check when you moved that call to the spat routine. (I now realize that additional spat level check is redundant since spat is only called from functions which already do level checks, but I think it is best to leave it in for code clarity.) My question for you is did you forget the level check for the plP_state calls in plschr and plssym by design or in error? If by design, then we have to figure out some other way to provide users with a soft landing (not a segfault) when they call plschr or plssym before plinit. If in error, then you should probably review any other plP_state changes you made during your wxwidgets/plbuf changes to make sure the plP_state calls are protected by level checks in all cases. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |
From: Phil R. <p.d...@gm...> - 2015-05-21 22:51:37
|
Hi Alan I just did a git pull and tried to build PLPlot this evening and got a massive number of build errors. Some are related to 64 bit/32 bit conflicts which I have had problems with in the past and can't remember how I resolved them. Another one is below 7> Building Custom Rule D:/usr/local/src/plplot-plplot/include/CMakeLists.txt 7> CMake does not need to re-run because D:\usr\local\src\plplot-plplot\build\Visual Studio 11 64sd\include\CMakeFiles\generate.stamp is up-to-date. 7> Generating plhershey-unicode.h 7> 'Debug\plhershey-unicode-gen.exe' is not recognized as an internal or external command, 7> operable program or batch file. 7>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(172,5): error MSB6006: "cmd.exe" exited with code 9009. This seems odd because I don't think plhershey-unicode-gen.exe is built on Windows. Has something changed here? Also I got a large number of compile errors from plbuf.c and plmeta.c Jim are you still working on this? I can send you a list of errors if you like? Once I get building again I will look into the issue you raised. Phil On 18 May 2015 at 20:46, Alan W. Irwin <ir...@be...> wrote: > Hi Phil: > > To avoid segfaults when plschr is called before plinit (see > <https://sourceforge.net/p/plplot/bugs/162/>) it is essential to > protect the plP_state( PLSTATE_CHR ); call you introduced into plschr > with a level check. At the same time (commit id 1424994f) I also > implemented similar level checks to the plP_state( PLSTATE_SYM ); call > you introduced to plssym and the plP_state( PLSTATE_FILL ); call where > you removed the existing level check when you moved that call to the > spat routine. (I now realize that additional spat level check is > redundant since spat is only called from functions which already do > level checks, but I think it is best to leave it in for code clarity.) > > My question for you is did you forget the level check for > the plP_state calls in plschr and plssym by design or > in error? > > If by design, then we have to figure out some other way to provide > users with a soft landing (not a segfault) when they call plschr or > plssym before plinit. > > If in error, then you should probably review any other plP_state > changes you made during your wxwidgets/plbuf changes to make sure the > plP_state calls are protected by level checks in all cases. > > Alan > __________________________ > Alan W. Irwin > > Astronomical research affiliation with Department of Physics and Astronomy, > University of Victoria (astrowww.phys.uvic.ca). > > Programming affiliations with the FreeEOS equation-of-state > implementation for stellar interiors (freeeos.sf.net); the Time > Ephemerides project (timeephem.sf.net); PLplot scientific plotting > software package (plplot.sf.net); the libLASi project > (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); > and the Linux Brochure Project (lbproject.sf.net). > __________________________ > > Linux-powered Science > __________________________ |
From: Jim D. <ji...@di...> - 2015-05-21 22:59:36
|
Please send me the errors. I'm getting a windows build machine going, so I will take a look at that c > On May 21, 2015, at 6:51 PM, Phil Rosenberg <p.d...@gm...> wrote: > > Hi Alan > I just did a git pull and tried to build PLPlot this evening and got a > massive number of build errors. > > Some are related to 64 bit/32 bit conflicts which I have had problems > with in the past and can't remember how I resolved them. > > Another one is below > > 7> Building Custom Rule D:/usr/local/src/plplot-plplot/include/CMakeLists.txt > > 7> CMake does not need to re-run because > D:\usr\local\src\plplot-plplot\build\Visual Studio 11 > 64sd\include\CMakeFiles\generate.stamp is up-to-date. > > 7> Generating plhershey-unicode.h > > 7> 'Debug\plhershey-unicode-gen.exe' is not recognized as an internal > or external command, > > 7> operable program or batch file. > > 7>C:\Program Files > (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(172,5): > error MSB6006: "cmd.exe" exited with code 9009. > > This seems odd because I don't think plhershey-unicode-gen.exe is > built on Windows. Has something changed here? > > Also I got a large number of compile errors from plbuf.c and plmeta.c > > Jim are you still working on this? I can send you a list of errors if you like? > > Once I get building again I will look into the issue you raised. > > Phil > > > > > >> On 18 May 2015 at 20:46, Alan W. Irwin <ir...@be...> wrote: >> Hi Phil: >> >> To avoid segfaults when plschr is called before plinit (see >> <https://sourceforge.net/p/plplot/bugs/162/>) it is essential to >> protect the plP_state( PLSTATE_CHR ); call you introduced into plschr >> with a level check. At the same time (commit id 1424994f) I also >> implemented similar level checks to the plP_state( PLSTATE_SYM ); call >> you introduced to plssym and the plP_state( PLSTATE_FILL ); call where >> you removed the existing level check when you moved that call to the >> spat routine. (I now realize that additional spat level check is >> redundant since spat is only called from functions which already do >> level checks, but I think it is best to leave it in for code clarity.) >> >> My question for you is did you forget the level check for >> the plP_state calls in plschr and plssym by design or >> in error? >> >> If by design, then we have to figure out some other way to provide >> users with a soft landing (not a segfault) when they call plschr or >> plssym before plinit. >> >> If in error, then you should probably review any other plP_state >> changes you made during your wxwidgets/plbuf changes to make sure the >> plP_state calls are protected by level checks in all cases. >> >> Alan >> __________________________ >> Alan W. Irwin >> >> Astronomical research affiliation with Department of Physics and Astronomy, >> University of Victoria (astrowww.phys.uvic.ca). >> >> Programming affiliations with the FreeEOS equation-of-state >> implementation for stellar interiors (freeeos.sf.net); the Time >> Ephemerides project (timeephem.sf.net); PLplot scientific plotting >> software package (plplot.sf.net); the libLASi project >> (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); >> and the Linux Brochure Project (lbproject.sf.net). >> __________________________ >> >> Linux-powered Science >> __________________________ > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > _______________________________________________ > Plplot-devel mailing list > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-devel |
From: Alan W. I. <ir...@be...> - 2015-05-22 02:42:05
|
On 2015-05-21 23:51+0100 Phil Rosenberg wrote: > This [error when building this app] seems odd because I don't think plhershey-unicode-gen.exe is > built on Windows. Has something changed here? Hi Phil: That executable is always built for the Linux case, and I can also answer this question for Cygwin from Arjen's recent report there: irwin@raven> find . -name "*.out" |grep -vE '(a.out|listing)' | \ xargs grep -l "Built target plhershey-unicode-gen" ./shared/output_tree/make_noninteractive.out ./shared/output_tree/make.out ./shared/output_tree/make_install.out ./nondynamic/output_tree/make_noninteractive.out ./nondynamic/output_tree/make.out ./nondynamic/output_tree/make_install.out ./static/output_tree/make_noninteractive.out ./static/output_tree/make.out ./static/output_tree/make_install.out So that executable should be built in your MSVC case as well. By the way, with the Cygwin build currently looking so good, I suspect the cause of your current many build errors on MSVC might be stale cached values or a bad build environment in general. To eliminate the first possibility are you getting those build errors starting from an absolutely empty build directory and a fresh clone of the master branch? You, of course, also have to put the dll subdirectory of the build tree on your PATH to get the build to work. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |
From: Phil R. <p.d...@gm...> - 2015-05-22 07:16:44
|
Hmm Thanks Alan. Maybe the 64/32 bit issue is stopping that exe build, causing later problems. My plplot cmake script probably still has the plmeta driver set to build which might explain why Arjen isn't seeing the compile errors. I'll keep trying. Phil -----Original Message----- From: "Alan W. Irwin" <ir...@be...> Sent: 22/05/2015 03:41 To: "Phil Rosenberg" <p.d...@gm...> Cc: "PLplot development list" <Plp...@li...> Subject: Re: Protecting plP_state calls by level checks On 2015-05-21 23:51+0100 Phil Rosenberg wrote: > This [error when building this app] seems odd because I don't think plhershey-unicode-gen.exe is > built on Windows. Has something changed here? Hi Phil: That executable is always built for the Linux case, and I can also answer this question for Cygwin from Arjen's recent report there: irwin@raven> find . -name "*.out" |grep -vE '(a.out|listing)' | \ xargs grep -l "Built target plhershey-unicode-gen" ./shared/output_tree/make_noninteractive.out ./shared/output_tree/make.out ./shared/output_tree/make_install.out ./nondynamic/output_tree/make_noninteractive.out ./nondynamic/output_tree/make.out ./nondynamic/output_tree/make_install.out ./static/output_tree/make_noninteractive.out ./static/output_tree/make.out ./static/output_tree/make_install.out So that executable should be built in your MSVC case as well. By the way, with the Cygwin build currently looking so good, I suspect the cause of your current many build errors on MSVC might be stale cached values or a bad build environment in general. To eliminate the first possibility are you getting those build errors starting from an absolutely empty build directory and a fresh clone of the master branch? You, of course, also have to put the dll subdirectory of the build tree on your PATH to get the build to work. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |
From: Phil R. <p.d...@gm...> - 2015-05-22 08:57:27
|
Hi Jim The errors are below. These are for all of the plplot library, so there are a few warnings about implicit casts from other files in there too, but most of it is plbuf.c and plmetafile.c related Phil 9>------ Build started: Project: plplot, Configuration: Debug x64 ------ 9> Building Custom Rule D:/usr/local/src/plplot-plplot/src/CMakeLists.txt 9> CMake does not need to re-run because D:\usr\local\src\plplot-plplot\build\Visual Studio 11 64sd\src\CMakeFiles\generate.stamp is up-to-date. 9> mem.c 9> null.c 9> ps.c 9> svg.c 9> xfig.c 9> pdfutils.c 9> plaffine.c 9> plarc.c 9> plargs.c 9> plbox.c 9> plbuf.c 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(377): warning C4267: '=' : conversion from 'size_t' to 'unsigned short', possible loss of data 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(393): warning C4101: 'fci' : unreferenced local variable 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1068): warning C4244: 'function' : conversion from 'PLFLT' to 'PLINT', possible loss of data 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1325): error C2065: 'uint8_t' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1325): error C2059: syntax error : ')' 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1328): error C2065: 'uint16_t' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1349): error C2065: 'uint8_t' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1349): error C2059: syntax error : ')' 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1352): error C2065: 'uint16_t' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1368): error C2065: 'uint8_t' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1368): error C2059: syntax error : ')' 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1371): error C2065: 'uint16_t' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1424): error C2065: 'uint8_t' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1424): error C2059: syntax error : ')' 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1429): error C2065: 'uint16_t' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1442): error C2065: 'uint8_t' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1442): error C2059: syntax error : ')' 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1445): error C2065: 'uint16_t' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1470): error C2016: C requires that a struct or union has at least one member 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1470): error C2061: syntax error : identifier 'size_t' 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1476): error C2059: syntax error : '}' 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1495): error C2027: use of undefined type '_state' 9> D:\usr\local\src\plplot-plplot\src\plbuf.c(1469) : see declaration of '_state' 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1505): error C2037: left of 'size' specifies undefined struct/union '_state' 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1515): error C2037: left of 'valid' specifies undefined struct/union '_state' 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1519): error C2037: left of 'size' specifies undefined struct/union '_state' 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1531): error C2037: left of 'size' specifies undefined struct/union '_state' 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1540): error C2037: left of 'valid' specifies undefined struct/union '_state' 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1543): error C2036: '_state *' : unknown size 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1547): error C2037: left of 'plbuf_buffer_size' specifies undefined struct/union '_state' 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1548): error C2037: left of 'plbuf_top' specifies undefined struct/union '_state' 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1549): error C2037: left of 'plbuf_readpos' specifies undefined struct/union '_state' 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1553): error C2037: left of 'plbuf_buffer' specifies undefined struct/union '_state' 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1559): error C2037: left of 'plbuf_buffer' specifies undefined struct/union '_state' 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1559): warning C4022: 'memcpy' : pointer mismatch for actual parameter 2 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1559): error C2198: 'memcpy' : too few arguments for call 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1569): error C2037: left of 'valid' specifies undefined struct/union '_state' 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1583): error C2037: left of 'plbuf_buffer' specifies undefined struct/union '_state' 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1584): error C2037: left of 'plbuf_buffer_size' specifies undefined struct/union '_state' 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1585): error C2037: left of 'plbuf_top' specifies undefined struct/union '_state' 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1586): error C2037: left of 'plbuf_readpos' specifies undefined struct/union '_state' 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1615): error C2037: left of 'valid' specifies undefined struct/union '_state' 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1621): error C2027: use of undefined type '_state' 9> D:\usr\local\src\plplot-plplot\src\plbuf.c(1469) : see declaration of '_state' 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1630): error C2037: left of 'size' specifies undefined struct/union '_state' 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1631): error C2037: left of 'valid' specifies undefined struct/union '_state' 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1634): error C2037: left of 'plbuf_buffer' specifies undefined struct/union '_state' 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1635): error C2037: left of 'plbuf_buffer_size' specifies undefined struct/union '_state' 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1636): error C2037: left of 'plbuf_top' specifies undefined struct/union '_state' 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1637): error C2037: left of 'plbuf_readpos' specifies undefined struct/union '_state' 9> plcont.c 9> plcore.c 9>D:\usr\local\src\plplot-plplot\src\plcore.c(2872): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 9>D:\usr\local\src\plplot-plplot\src\plcore.c(2873): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 9> plctrl.c 9>D:\usr\local\src\plplot-plplot\src\plctrl.c(2670): warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data 9>D:\usr\local\src\plplot-plplot\src\plctrl.c(2675): warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data 9>D:\usr\local\src\plplot-plplot\src\plctrl.c(2717): warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data 9>D:\usr\local\src\plplot-plplot\src\plctrl.c(3041): warning C4013: 'vsscanf' undefined; assuming extern returning int 9> plcvt.c 9> pldtik.c 9> plf2ops.c 9> plfill.c 9> plgradient.c 9> plgridd.c 9>d:\usr\local\src\plplot-plplot\src\../lib/csa/nan.h(53): warning C4005: 'isnan' : macro redefinition 9> D:\usr\local\src\plplot-plplot\include\plplotP.h(265) : see previous definition of 'isnan' 9> Generating Code... 9> Compiling... 9> plhist.c 9> plimage.c 9> pllegend.c 9> plline.c 9> plmem.c 9> plmetafile.c 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(136): error C2146: syntax error : missing ')' before identifier 'x' 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(136): error C2061: syntax error : identifier 'x' 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(136): error C2059: syntax error : ';' 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(136): error C2059: syntax error : ',' 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(137): error C2059: syntax error : ')' 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(186): error C2065: 'uint8_t' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(186): error C2059: syntax error : ')' 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(189): warning C4244: '=' : conversion from 'unsigned short' to 'unsigned char', possible loss of data 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(226): error C2065: 'uint8_t' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(226): error C2059: syntax error : ')' 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(229): warning C4244: '=' : conversion from 'unsigned long' to 'unsigned char', possible loss of data 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(232): warning C4244: '=' : conversion from 'unsigned long' to 'unsigned short', possible loss of data 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(235): warning C4244: '=' : conversion from 'unsigned long' to 'short', possible loss of data 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(266): error C2065: 'uint8_t' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(266): error C2059: syntax error : ')' 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(269): warning C4244: '=' : conversion from 'float' to 'unsigned char', possible loss of data 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(272): warning C4244: '=' : conversion from 'float' to 'unsigned short', possible loss of data 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(275): warning C4244: '=' : conversion from 'float' to 'short', possible loss of data 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(278): warning C4244: '=' : conversion from 'float' to 'PLINT', possible loss of data 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(284): warning C4244: '=' : conversion from 'float' to 'unsigned long', possible loss of data 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(301): error C2065: 'uint8_t' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(301): error C2146: syntax error : missing ';' before identifier 'b' 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(301): error C2065: 'b' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(302): error C2143: syntax error : missing ';' before 'type' 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(303): error C2143: syntax error : missing ';' before 'type' 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(304): error C2143: syntax error : missing ';' before 'type' 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(305): error C2143: syntax error : missing ';' before 'type' 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(306): error C2143: syntax error : missing ';' before 'type' 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(311): error C2065: 'pdf_rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(312): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(316): error C2065: 'pdf_rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(316): error C2065: 'b' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(316): warning C4133: 'function' : incompatible types - from 'int *' to 'unsigned char *' 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(317): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(317): warning C4013: 'set_ubyte_plp_value' undefined; assuming extern returning int 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(317): error C2065: 'b' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(321): error C2065: 'pdf_rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(321): error C2065: 'x' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(321): warning C4133: 'function' : incompatible types - from 'int *' to 'unsigned short *' 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(322): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(322): error C2065: 'x' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(326): error C2065: 'pdf_rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(326): error C2065: 'l' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(327): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(327): error C2065: 'l' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(331): error C2065: 'pdf_rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(331): error C2065: 'f' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(331): warning C4133: 'function' : incompatible types - from 'int *' to 'float *' 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(332): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(332): error C2065: 'f' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(332): warning C4244: 'function' : conversion from 'int' to 'float', possible loss of data 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(337): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(341): error C2065: 'pdf_rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(342): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(354): warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(431): error C2143: syntax error : missing ')' before '*' 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(431): error C2081: 'uint8_t' : name in formal parameter list illegal 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(431): error C2143: syntax error : missing '{' before '*' 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(431): error C2059: syntax error : ')' 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(432): error C2054: expected '(' to follow 'dest' 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(518): warning C4244: '=' : conversion from 'PLFLT' to 'short', possible loss of data 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(519): warning C4244: '=' : conversion from 'PLFLT' to 'short', possible loss of data 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(611): error C2065: 'uint8_t' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(611): error C2146: syntax error : missing ';' before identifier 'op' 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(611): error C2065: 'op' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(612): error C2143: syntax error : missing ';' before 'type' 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(615): error C2065: 'op' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(615): warning C4133: 'function' : incompatible types - from 'int *' to 'unsigned char *' 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(618): error C2065: 'op' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(627): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(628): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(629): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(639): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(640): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(641): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(643): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(644): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(645): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(658): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(678): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(679): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(680): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(681): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(682): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(683): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(685): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(686): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(687): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(688): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(689): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(690): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(691): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(692): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(693): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(694): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(695): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(704): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(720): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(730): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(743): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(747): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(758): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(765): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(776): error C2065: 'uint8_t' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(776): error C2146: syntax error : missing ';' before identifier 'op' 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(776): error C2065: 'op' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(777): error C2143: syntax error : missing ';' before 'type' 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(780): error C2065: 'op' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(780): warning C4133: 'function' : incompatible types - from 'int *' to 'unsigned char *' 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(783): error C2065: 'op' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(788): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(789): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(790): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(802): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(803): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(804): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(807): error C2065: 'op' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(815): error C2065: 'op' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(828): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(829): error C2065: 'rc' : undeclared identifier 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(829): fatal error C1003: error count exceeds 100; stopping compilation 9> plot3d.c 9> plpage.c 9> plsdef.c 9> plshade.c 9> plstdio.c 9> plstripc.c 9> plsym.c 9> pltick.c 9> pltime.c 9> plvect.c 9> plvpor.c 9> plwind.c On 21 May 2015 at 23:59, Jim Dishaw <ji...@di...> wrote: > Please send me the errors. I'm getting a windows build machine going, so I will take a look at that c > > > >> On May 21, 2015, at 6:51 PM, Phil Rosenberg <p.d...@gm...> wrote: >> >> Hi Alan >> I just did a git pull and tried to build PLPlot this evening and got a >> massive number of build errors. >> >> Some are related to 64 bit/32 bit conflicts which I have had problems >> with in the past and can't remember how I resolved them. >> >> Another one is below >> >> 7> Building Custom Rule D:/usr/local/src/plplot-plplot/include/CMakeLists.txt >> >> 7> CMake does not need to re-run because >> D:\usr\local\src\plplot-plplot\build\Visual Studio 11 >> 64sd\include\CMakeFiles\generate.stamp is up-to-date. >> >> 7> Generating plhershey-unicode.h >> >> 7> 'Debug\plhershey-unicode-gen.exe' is not recognized as an internal >> or external command, >> >> 7> operable program or batch file. >> >> 7>C:\Program Files >> (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(172,5): >> error MSB6006: "cmd.exe" exited with code 9009. >> >> This seems odd because I don't think plhershey-unicode-gen.exe is >> built on Windows. Has something changed here? >> >> Also I got a large number of compile errors from plbuf.c and plmeta.c >> >> Jim are you still working on this? I can send you a list of errors if you like? >> >> Once I get building again I will look into the issue you raised. >> >> Phil >> >> >> >> >> >>> On 18 May 2015 at 20:46, Alan W. Irwin <ir...@be...> wrote: >>> Hi Phil: >>> >>> To avoid segfaults when plschr is called before plinit (see >>> <https://sourceforge.net/p/plplot/bugs/162/>) it is essential to >>> protect the plP_state( PLSTATE_CHR ); call you introduced into plschr >>> with a level check. At the same time (commit id 1424994f) I also >>> implemented similar level checks to the plP_state( PLSTATE_SYM ); call >>> you introduced to plssym and the plP_state( PLSTATE_FILL ); call where >>> you removed the existing level check when you moved that call to the >>> spat routine. (I now realize that additional spat level check is >>> redundant since spat is only called from functions which already do >>> level checks, but I think it is best to leave it in for code clarity.) >>> >>> My question for you is did you forget the level check for >>> the plP_state calls in plschr and plssym by design or >>> in error? >>> >>> If by design, then we have to figure out some other way to provide >>> users with a soft landing (not a segfault) when they call plschr or >>> plssym before plinit. >>> >>> If in error, then you should probably review any other plP_state >>> changes you made during your wxwidgets/plbuf changes to make sure the >>> plP_state calls are protected by level checks in all cases. >>> >>> Alan >>> __________________________ >>> Alan W. Irwin >>> >>> Astronomical research affiliation with Department of Physics and Astronomy, >>> University of Victoria (astrowww.phys.uvic.ca). >>> >>> Programming affiliations with the FreeEOS equation-of-state >>> implementation for stellar interiors (freeeos.sf.net); the Time >>> Ephemerides project (timeephem.sf.net); PLplot scientific plotting >>> software package (plplot.sf.net); the libLASi project >>> (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); >>> and the Linux Brochure Project (lbproject.sf.net). >>> __________________________ >>> >>> Linux-powered Science >>> __________________________ >> >> ------------------------------------------------------------------------------ >> One dashboard for servers and applications across Physical-Virtual-Cloud >> Widest out-of-the-box monitoring support with 50+ applications >> Performance metrics, stats and reports that give you Actionable Insights >> Deep dive visibility with transaction tracing using APM Insight. >> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y >> _______________________________________________ >> Plplot-devel mailing list >> Plp...@li... >> https://lists.sourceforge.net/lists/listinfo/plplot-devel |
From: Phil R. <p.d...@gm...> - 2015-05-22 09:06:40
|
Sorry everyone Having started with a clean build directory all those problems have gone. Jim and Alan please look no further. I had already deleted my CMakeCache.txt so assumed that there couldn't be any problems lingering from previous builds but I guess I was wrong. Phil On 22 May 2015 at 09:57, Phil Rosenberg <p.d...@gm...> wrote: > Hi Jim > > The errors are below. These are for all of the plplot library, so > there are a few warnings about implicit casts from other files in > there too, but most of it is plbuf.c and plmetafile.c related > > Phil > > 9>------ Build started: Project: plplot, Configuration: Debug x64 ------ > > 9> Building Custom Rule D:/usr/local/src/plplot-plplot/src/CMakeLists.txt > > 9> CMake does not need to re-run because > D:\usr\local\src\plplot-plplot\build\Visual Studio 11 > 64sd\src\CMakeFiles\generate.stamp is up-to-date. > > 9> mem.c > > 9> null.c > > 9> ps.c > > 9> svg.c > > 9> xfig.c > > 9> pdfutils.c > > 9> plaffine.c > > 9> plarc.c > > 9> plargs.c > > 9> plbox.c > > 9> plbuf.c > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(377): warning C4267: '=' > : conversion from 'size_t' to 'unsigned short', possible loss of data > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(393): warning C4101: > 'fci' : unreferenced local variable > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1068): warning C4244: > 'function' : conversion from 'PLFLT' to 'PLINT', possible loss of data > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1325): error C2065: > 'uint8_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1325): error C2059: > syntax error : ')' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1328): error C2065: > 'uint16_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1349): error C2065: > 'uint8_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1349): error C2059: > syntax error : ')' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1352): error C2065: > 'uint16_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1368): error C2065: > 'uint8_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1368): error C2059: > syntax error : ')' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1371): error C2065: > 'uint16_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1424): error C2065: > 'uint8_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1424): error C2059: > syntax error : ')' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1429): error C2065: > 'uint16_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1442): error C2065: > 'uint8_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1442): error C2059: > syntax error : ')' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1445): error C2065: > 'uint16_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1470): error C2016: C > requires that a struct or union has at least one member > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1470): error C2061: > syntax error : identifier 'size_t' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1476): error C2059: > syntax error : '}' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1495): error C2027: use > of undefined type '_state' > > 9> D:\usr\local\src\plplot-plplot\src\plbuf.c(1469) : see declaration > of '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1505): error C2037: left > of 'size' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1515): error C2037: left > of 'valid' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1519): error C2037: left > of 'size' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1531): error C2037: left > of 'size' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1540): error C2037: left > of 'valid' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1543): error C2036: > '_state *' : unknown size > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1547): error C2037: left > of 'plbuf_buffer_size' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1548): error C2037: left > of 'plbuf_top' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1549): error C2037: left > of 'plbuf_readpos' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1553): error C2037: left > of 'plbuf_buffer' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1559): error C2037: left > of 'plbuf_buffer' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1559): warning C4022: > 'memcpy' : pointer mismatch for actual parameter 2 > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1559): error C2198: > 'memcpy' : too few arguments for call > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1569): error C2037: left > of 'valid' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1583): error C2037: left > of 'plbuf_buffer' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1584): error C2037: left > of 'plbuf_buffer_size' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1585): error C2037: left > of 'plbuf_top' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1586): error C2037: left > of 'plbuf_readpos' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1615): error C2037: left > of 'valid' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1621): error C2027: use > of undefined type '_state' > > 9> D:\usr\local\src\plplot-plplot\src\plbuf.c(1469) : see declaration > of '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1630): error C2037: left > of 'size' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1631): error C2037: left > of 'valid' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1634): error C2037: left > of 'plbuf_buffer' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1635): error C2037: left > of 'plbuf_buffer_size' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1636): error C2037: left > of 'plbuf_top' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1637): error C2037: left > of 'plbuf_readpos' specifies undefined struct/union '_state' > > 9> plcont.c > > 9> plcore.c > > 9>D:\usr\local\src\plplot-plplot\src\plcore.c(2872): warning C4267: > '=' : conversion from 'size_t' to 'int', possible loss of data > > 9>D:\usr\local\src\plplot-plplot\src\plcore.c(2873): warning C4267: > '=' : conversion from 'size_t' to 'int', possible loss of data > > 9> plctrl.c > > 9>D:\usr\local\src\plplot-plplot\src\plctrl.c(2670): warning C4267: > 'function' : conversion from 'size_t' to 'int', possible loss of data > > 9>D:\usr\local\src\plplot-plplot\src\plctrl.c(2675): warning C4267: > 'function' : conversion from 'size_t' to 'int', possible loss of data > > 9>D:\usr\local\src\plplot-plplot\src\plctrl.c(2717): warning C4267: > 'function' : conversion from 'size_t' to 'int', possible loss of data > > 9>D:\usr\local\src\plplot-plplot\src\plctrl.c(3041): warning C4013: > 'vsscanf' undefined; assuming extern returning int > > 9> plcvt.c > > 9> pldtik.c > > 9> plf2ops.c > > 9> plfill.c > > 9> plgradient.c > > 9> plgridd.c > > 9>d:\usr\local\src\plplot-plplot\src\../lib/csa/nan.h(53): warning > C4005: 'isnan' : macro redefinition > > 9> D:\usr\local\src\plplot-plplot\include\plplotP.h(265) : see > previous definition of 'isnan' > > 9> Generating Code... > > 9> Compiling... > > 9> plhist.c > > 9> plimage.c > > 9> pllegend.c > > 9> plline.c > > 9> plmem.c > > 9> plmetafile.c > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(136): error C2146: > syntax error : missing ')' before identifier 'x' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(136): error C2061: > syntax error : identifier 'x' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(136): error C2059: > syntax error : ';' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(136): error C2059: > syntax error : ',' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(137): error C2059: > syntax error : ')' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(186): error C2065: > 'uint8_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(186): error C2059: > syntax error : ')' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(189): warning C4244: > '=' : conversion from 'unsigned short' to 'unsigned char', possible > loss of data > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(226): error C2065: > 'uint8_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(226): error C2059: > syntax error : ')' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(229): warning C4244: > '=' : conversion from 'unsigned long' to 'unsigned char', possible > loss of data > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(232): warning C4244: > '=' : conversion from 'unsigned long' to 'unsigned short', possible > loss of data > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(235): warning C4244: > '=' : conversion from 'unsigned long' to 'short', possible loss of > data > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(266): error C2065: > 'uint8_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(266): error C2059: > syntax error : ')' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(269): warning C4244: > '=' : conversion from 'float' to 'unsigned char', possible loss of > data > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(272): warning C4244: > '=' : conversion from 'float' to 'unsigned short', possible loss of > data > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(275): warning C4244: > '=' : conversion from 'float' to 'short', possible loss of data > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(278): warning C4244: > '=' : conversion from 'float' to 'PLINT', possible loss of data > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(284): warning C4244: > '=' : conversion from 'float' to 'unsigned long', possible loss of > data > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(301): error C2065: > 'uint8_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(301): error C2146: > syntax error : missing ';' before identifier 'b' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(301): error C2065: > 'b' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(302): error C2143: > syntax error : missing ';' before 'type' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(303): error C2143: > syntax error : missing ';' before 'type' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(304): error C2143: > syntax error : missing ';' before 'type' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(305): error C2143: > syntax error : missing ';' before 'type' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(306): error C2143: > syntax error : missing ';' before 'type' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(311): error C2065: > 'pdf_rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(312): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(316): error C2065: > 'pdf_rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(316): error C2065: > 'b' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(316): warning C4133: > 'function' : incompatible types - from 'int *' to 'unsigned char *' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(317): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(317): warning C4013: > 'set_ubyte_plp_value' undefined; assuming extern returning int > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(317): error C2065: > 'b' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(321): error C2065: > 'pdf_rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(321): error C2065: > 'x' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(321): warning C4133: > 'function' : incompatible types - from 'int *' to 'unsigned short *' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(322): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(322): error C2065: > 'x' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(326): error C2065: > 'pdf_rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(326): error C2065: > 'l' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(327): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(327): error C2065: > 'l' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(331): error C2065: > 'pdf_rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(331): error C2065: > 'f' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(331): warning C4133: > 'function' : incompatible types - from 'int *' to 'float *' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(332): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(332): error C2065: > 'f' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(332): warning C4244: > 'function' : conversion from 'int' to 'float', possible loss of data > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(337): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(341): error C2065: > 'pdf_rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(342): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(354): warning C4267: > 'function' : conversion from 'size_t' to 'int', possible loss of data > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(431): error C2143: > syntax error : missing ')' before '*' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(431): error C2081: > 'uint8_t' : name in formal parameter list illegal > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(431): error C2143: > syntax error : missing '{' before '*' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(431): error C2059: > syntax error : ')' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(432): error C2054: > expected '(' to follow 'dest' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(518): warning C4244: > '=' : conversion from 'PLFLT' to 'short', possible loss of data > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(519): warning C4244: > '=' : conversion from 'PLFLT' to 'short', possible loss of data > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(611): error C2065: > 'uint8_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(611): error C2146: > syntax error : missing ';' before identifier 'op' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(611): error C2065: > 'op' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(612): error C2143: > syntax error : missing ';' before 'type' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(615): error C2065: > 'op' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(615): warning C4133: > 'function' : incompatible types - from 'int *' to 'unsigned char *' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(618): error C2065: > 'op' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(627): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(628): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(629): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(639): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(640): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(641): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(643): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(644): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(645): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(658): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(678): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(679): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(680): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(681): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(682): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(683): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(685): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(686): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(687): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(688): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(689): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(690): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(691): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(692): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(693): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(694): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(695): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(704): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(720): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(730): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(743): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(747): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(758): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(765): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(776): error C2065: > 'uint8_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(776): error C2146: > syntax error : missing ';' before identifier 'op' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(776): error C2065: > 'op' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(777): error C2143: > syntax error : missing ';' before 'type' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(780): error C2065: > 'op' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(780): warning C4133: > 'function' : incompatible types - from 'int *' to 'unsigned char *' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(783): error C2065: > 'op' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(788): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(789): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(790): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(802): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(803): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(804): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(807): error C2065: > 'op' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(815): error C2065: > 'op' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(828): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(829): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(829): fatal error > C1003: error count exceeds 100; stopping compilation > > 9> plot3d.c > > 9> plpage.c > > 9> plsdef.c > > 9> plshade.c > > 9> plstdio.c > > 9> plstripc.c > > 9> plsym.c > > 9> pltick.c > > 9> pltime.c > > 9> plvect.c > > 9> plvpor.c > > 9> plwind.c > > On 21 May 2015 at 23:59, Jim Dishaw <ji...@di...> wrote: >> Please send me the errors. I'm getting a windows build machine going, so I will take a look at that c >> >> >> >>> On May 21, 2015, at 6:51 PM, Phil Rosenberg <p.d...@gm...> wrote: >>> >>> Hi Alan >>> I just did a git pull and tried to build PLPlot this evening and got a >>> massive number of build errors. >>> >>> Some are related to 64 bit/32 bit conflicts which I have had problems >>> with in the past and can't remember how I resolved them. >>> >>> Another one is below >>> >>> 7> Building Custom Rule D:/usr/local/src/plplot-plplot/include/CMakeLists.txt >>> >>> 7> CMake does not need to re-run because >>> D:\usr\local\src\plplot-plplot\build\Visual Studio 11 >>> 64sd\include\CMakeFiles\generate.stamp is up-to-date. >>> >>> 7> Generating plhershey-unicode.h >>> >>> 7> 'Debug\plhershey-unicode-gen.exe' is not recognized as an internal >>> or external command, >>> >>> 7> operable program or batch file. >>> >>> 7>C:\Program Files >>> (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(172,5): >>> error MSB6006: "cmd.exe" exited with code 9009. >>> >>> This seems odd because I don't think plhershey-unicode-gen.exe is >>> built on Windows. Has something changed here? >>> >>> Also I got a large number of compile errors from plbuf.c and plmeta.c >>> >>> Jim are you still working on this? I can send you a list of errors if you like? >>> >>> Once I get building again I will look into the issue you raised. >>> >>> Phil >>> >>> >>> >>> >>> >>>> On 18 May 2015 at 20:46, Alan W. Irwin <ir...@be...> wrote: >>>> Hi Phil: >>>> >>>> To avoid segfaults when plschr is called before plinit (see >>>> <https://sourceforge.net/p/plplot/bugs/162/>) it is essential to >>>> protect the plP_state( PLSTATE_CHR ); call you introduced into plschr >>>> with a level check. At the same time (commit id 1424994f) I also >>>> implemented similar level checks to the plP_state( PLSTATE_SYM ); call >>>> you introduced to plssym and the plP_state( PLSTATE_FILL ); call where >>>> you removed the existing level check when you moved that call to the >>>> spat routine. (I now realize that additional spat level check is >>>> redundant since spat is only called from functions which already do >>>> level checks, but I think it is best to leave it in for code clarity.) >>>> >>>> My question for you is did you forget the level check for >>>> the plP_state calls in plschr and plssym by design or >>>> in error? >>>> >>>> If by design, then we have to figure out some other way to provide >>>> users with a soft landing (not a segfault) when they call plschr or >>>> plssym before plinit. >>>> >>>> If in error, then you should probably review any other plP_state >>>> changes you made during your wxwidgets/plbuf changes to make sure the >>>> plP_state calls are protected by level checks in all cases. >>>> >>>> Alan >>>> __________________________ >>>> Alan W. Irwin >>>> >>>> Astronomical research affiliation with Department of Physics and Astronomy, >>>> University of Victoria (astrowww.phys.uvic.ca). >>>> >>>> Programming affiliations with the FreeEOS equation-of-state >>>> implementation for stellar interiors (freeeos.sf.net); the Time >>>> Ephemerides project (timeephem.sf.net); PLplot scientific plotting >>>> software package (plplot.sf.net); the libLASi project >>>> (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); >>>> and the Linux Brochure Project (lbproject.sf.net). >>>> __________________________ >>>> >>>> Linux-powered Science >>>> __________________________ >>> >>> ------------------------------------------------------------------------------ >>> One dashboard for servers and applications across Physical-Virtual-Cloud >>> Widest out-of-the-box monitoring support with 50+ applications >>> Performance metrics, stats and reports that give you Actionable Insights >>> Deep dive visibility with transaction tracing using APM Insight. >>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y >>> _______________________________________________ >>> Plplot-devel mailing list >>> Plp...@li... >>> https://lists.sourceforge.net/lists/listinfo/plplot-devel |
From: Alan W. I. <ir...@be...> - 2015-05-22 15:19:03
|
On 2015-05-22 10:06+0100 Phil Rosenberg wrote: > Sorry everyone > > Having started with a clean build directory all those problems have > gone. Jim and Alan please look no further. I had already deleted my > CMakeCache.txt so assumed that there couldn't be any problems > lingering from previous builds but I guess I was wrong. Hi Phil: No problem, and I am just glad you figured it out. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |
From: Phil R. <p.d...@gm...> - 2015-05-22 11:15:24
|
Hi Alan I have just quickly looked at this and I believe I made this change by design. The reason being that c_plinit calls plP_bop which calls plPsubpInit which calls c_plschr before plsc->level is set to 1. Therefore a check for initialisation level means that plP_state does not get called and the state calls do not get placed in the buffer so it messes up renders from the buffer. I can't offhand remember what the need is for other state parameters. Do I remember correctly that colours can be set before plinit calls to give a different background colour? Phil On 18 May 2015 at 20:46, Alan W. Irwin <ir...@be...> wrote: > Hi Phil: > > To avoid segfaults when plschr is called before plinit (see > <https://sourceforge.net/p/plplot/bugs/162/>) it is essential to > protect the plP_state( PLSTATE_CHR ); call you introduced into plschr > with a level check. At the same time (commit id 1424994f) I also > implemented similar level checks to the plP_state( PLSTATE_SYM ); call > you introduced to plssym and the plP_state( PLSTATE_FILL ); call where > you removed the existing level check when you moved that call to the > spat routine. (I now realize that additional spat level check is > redundant since spat is only called from functions which already do > level checks, but I think it is best to leave it in for code clarity.) > > My question for you is did you forget the level check for > the plP_state calls in plschr and plssym by design or > in error? > > If by design, then we have to figure out some other way to provide > users with a soft landing (not a segfault) when they call plschr or > plssym before plinit. > > If in error, then you should probably review any other plP_state > changes you made during your wxwidgets/plbuf changes to make sure the > plP_state calls are protected by level checks in all cases. > > Alan > __________________________ > Alan W. Irwin > > Astronomical research affiliation with Department of Physics and Astronomy, > University of Victoria (astrowww.phys.uvic.ca). > > Programming affiliations with the FreeEOS equation-of-state > implementation for stellar interiors (freeeos.sf.net); the Time > Ephemerides project (timeephem.sf.net); PLplot scientific plotting > software package (plplot.sf.net); the libLASi project > (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); > and the Linux Brochure Project (lbproject.sf.net). > __________________________ > > Linux-powered Science > __________________________ |
From: Alan W. I. <ir...@be...> - 2015-05-22 15:40:41
|
On 2015-05-22 12:15+0100 Phil Rosenberg wrote: > Hi Alan > I have just quickly looked at this and I believe I made this change by design. > > The reason being that c_plinit calls plP_bop which calls plPsubpInit > which calls c_plschr before plsc->level is set to 1. Therefore a check > for initialisation level means that plP_state does not get called and > the state calls do not get placed in the buffer so it messes up > renders from the buffer. > > I can't offhand remember what the need is for other state parameters. > Do I remember correctly that colours can be set before plinit calls to > give a different background colour? Yes, a lot of possibilities are available as command-line options (which are all run before plinit). Here are some from the result of the -h command-line option (where I have removed a number I don't think are relevant): PLplot options: -dev name Output device name -o name Output filename -px number Plots per page in x -py number Plots per page in y -geometry geom Window size/position specified as in X, e.g., 400x300, 400x300-100+200, +100-200, etc. -width width Sets pen width (0 <= width) -bg color Background color (FF0000=opaque red, 0000FF_0.1=blue with alpha of 0.1) -ncol0 n Number of colors to allocate in cmap 0 (upper bound) -ncol1 n Number of colors to allocate in cmap 1 (upper bound) -db Double buffer X window output -np No pause between pages -dpi dpi Resolution, in dots per inch (e.g. -dpi 360x360) -compression num Sets compression level in supporting devices -cmap0 file name Initializes color table 0 from a cmap0.pal format file in one of standard PLplot paths. -cmap1 file name Initializes color table 1 from a cmap1.pal format file in one of standard PLplot paths. -drvopt option[=value][,option[=value]]* Driver specific options -mfo PLplot metafile name Write the plot to the specified PLplot metafile -mfi PLplot metafile name Read the specified PLplot metafile I am sure you had good reasons for needing to insert the extra plP_state calls, but from one test where I change character size before running plinit, they definitely segfaulted when level is 0. So although it is not the same test, if you remove the level protection, I am pretty sure you will get a segfault (at least on Linux which is more sensitive to memory management errors than Windows) using, e.g., -bg 0000FF_0.1. Anyhow, this whole subject area is really beyond my understanding of the PLplot code so I am going to leave it to you to figure out how to avoid the segfaults while still satisfying the need not to mess up renders from the buffer. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |
From: Jim D. <ji...@di...> - 2015-05-22 12:38:37
|
Thanks. What compiler and OS version was this on? > On May 22, 2015, at 4:57 AM, Phil Rosenberg <p.d...@gm...> wrote: > > Hi Jim > > The errors are below. These are for all of the plplot library, so > there are a few warnings about implicit casts from other files in > there too, but most of it is plbuf.c and plmetafile.c related > > Phil > > 9>------ Build started: Project: plplot, Configuration: Debug x64 ------ > > 9> Building Custom Rule D:/usr/local/src/plplot-plplot/src/CMakeLists.txt > > 9> CMake does not need to re-run because > D:\usr\local\src\plplot-plplot\build\Visual Studio 11 > 64sd\src\CMakeFiles\generate.stamp is up-to-date. > > 9> mem.c > > 9> null.c > > 9> ps.c > > 9> svg.c > > 9> xfig.c > > 9> pdfutils.c > > 9> plaffine.c > > 9> plarc.c > > 9> plargs.c > > 9> plbox.c > > 9> plbuf.c > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(377): warning C4267: '=' > : conversion from 'size_t' to 'unsigned short', possible loss of data > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(393): warning C4101: > 'fci' : unreferenced local variable > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1068): warning C4244: > 'function' : conversion from 'PLFLT' to 'PLINT', possible loss of data > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1325): error C2065: > 'uint8_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1325): error C2059: > syntax error : ')' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1328): error C2065: > 'uint16_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1349): error C2065: > 'uint8_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1349): error C2059: > syntax error : ')' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1352): error C2065: > 'uint16_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1368): error C2065: > 'uint8_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1368): error C2059: > syntax error : ')' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1371): error C2065: > 'uint16_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1424): error C2065: > 'uint8_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1424): error C2059: > syntax error : ')' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1429): error C2065: > 'uint16_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1442): error C2065: > 'uint8_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1442): error C2059: > syntax error : ')' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1445): error C2065: > 'uint16_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1470): error C2016: C > requires that a struct or union has at least one member > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1470): error C2061: > syntax error : identifier 'size_t' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1476): error C2059: > syntax error : '}' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1495): error C2027: use > of undefined type '_state' > > 9> D:\usr\local\src\plplot-plplot\src\plbuf.c(1469) : see declaration > of '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1505): error C2037: left > of 'size' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1515): error C2037: left > of 'valid' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1519): error C2037: left > of 'size' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1531): error C2037: left > of 'size' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1540): error C2037: left > of 'valid' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1543): error C2036: > '_state *' : unknown size > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1547): error C2037: left > of 'plbuf_buffer_size' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1548): error C2037: left > of 'plbuf_top' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1549): error C2037: left > of 'plbuf_readpos' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1553): error C2037: left > of 'plbuf_buffer' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1559): error C2037: left > of 'plbuf_buffer' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1559): warning C4022: > 'memcpy' : pointer mismatch for actual parameter 2 > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1559): error C2198: > 'memcpy' : too few arguments for call > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1569): error C2037: left > of 'valid' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1583): error C2037: left > of 'plbuf_buffer' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1584): error C2037: left > of 'plbuf_buffer_size' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1585): error C2037: left > of 'plbuf_top' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1586): error C2037: left > of 'plbuf_readpos' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1615): error C2037: left > of 'valid' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1621): error C2027: use > of undefined type '_state' > > 9> D:\usr\local\src\plplot-plplot\src\plbuf.c(1469) : see declaration > of '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1630): error C2037: left > of 'size' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1631): error C2037: left > of 'valid' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1634): error C2037: left > of 'plbuf_buffer' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1635): error C2037: left > of 'plbuf_buffer_size' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1636): error C2037: left > of 'plbuf_top' specifies undefined struct/union '_state' > > 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1637): error C2037: left > of 'plbuf_readpos' specifies undefined struct/union '_state' > > 9> plcont.c > > 9> plcore.c > > 9>D:\usr\local\src\plplot-plplot\src\plcore.c(2872): warning C4267: > '=' : conversion from 'size_t' to 'int', possible loss of data > > 9>D:\usr\local\src\plplot-plplot\src\plcore.c(2873): warning C4267: > '=' : conversion from 'size_t' to 'int', possible loss of data > > 9> plctrl.c > > 9>D:\usr\local\src\plplot-plplot\src\plctrl.c(2670): warning C4267: > 'function' : conversion from 'size_t' to 'int', possible loss of data > > 9>D:\usr\local\src\plplot-plplot\src\plctrl.c(2675): warning C4267: > 'function' : conversion from 'size_t' to 'int', possible loss of data > > 9>D:\usr\local\src\plplot-plplot\src\plctrl.c(2717): warning C4267: > 'function' : conversion from 'size_t' to 'int', possible loss of data > > 9>D:\usr\local\src\plplot-plplot\src\plctrl.c(3041): warning C4013: > 'vsscanf' undefined; assuming extern returning int > > 9> plcvt.c > > 9> pldtik.c > > 9> plf2ops.c > > 9> plfill.c > > 9> plgradient.c > > 9> plgridd.c > > 9>d:\usr\local\src\plplot-plplot\src\../lib/csa/nan.h(53): warning > C4005: 'isnan' : macro redefinition > > 9> D:\usr\local\src\plplot-plplot\include\plplotP.h(265) : see > previous definition of 'isnan' > > 9> Generating Code... > > 9> Compiling... > > 9> plhist.c > > 9> plimage.c > > 9> pllegend.c > > 9> plline.c > > 9> plmem.c > > 9> plmetafile.c > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(136): error C2146: > syntax error : missing ')' before identifier 'x' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(136): error C2061: > syntax error : identifier 'x' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(136): error C2059: > syntax error : ';' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(136): error C2059: > syntax error : ',' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(137): error C2059: > syntax error : ')' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(186): error C2065: > 'uint8_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(186): error C2059: > syntax error : ')' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(189): warning C4244: > '=' : conversion from 'unsigned short' to 'unsigned char', possible > loss of data > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(226): error C2065: > 'uint8_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(226): error C2059: > syntax error : ')' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(229): warning C4244: > '=' : conversion from 'unsigned long' to 'unsigned char', possible > loss of data > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(232): warning C4244: > '=' : conversion from 'unsigned long' to 'unsigned short', possible > loss of data > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(235): warning C4244: > '=' : conversion from 'unsigned long' to 'short', possible loss of > data > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(266): error C2065: > 'uint8_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(266): error C2059: > syntax error : ')' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(269): warning C4244: > '=' : conversion from 'float' to 'unsigned char', possible loss of > data > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(272): warning C4244: > '=' : conversion from 'float' to 'unsigned short', possible loss of > data > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(275): warning C4244: > '=' : conversion from 'float' to 'short', possible loss of data > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(278): warning C4244: > '=' : conversion from 'float' to 'PLINT', possible loss of data > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(284): warning C4244: > '=' : conversion from 'float' to 'unsigned long', possible loss of > data > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(301): error C2065: > 'uint8_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(301): error C2146: > syntax error : missing ';' before identifier 'b' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(301): error C2065: > 'b' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(302): error C2143: > syntax error : missing ';' before 'type' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(303): error C2143: > syntax error : missing ';' before 'type' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(304): error C2143: > syntax error : missing ';' before 'type' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(305): error C2143: > syntax error : missing ';' before 'type' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(306): error C2143: > syntax error : missing ';' before 'type' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(311): error C2065: > 'pdf_rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(312): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(316): error C2065: > 'pdf_rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(316): error C2065: > 'b' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(316): warning C4133: > 'function' : incompatible types - from 'int *' to 'unsigned char *' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(317): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(317): warning C4013: > 'set_ubyte_plp_value' undefined; assuming extern returning int > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(317): error C2065: > 'b' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(321): error C2065: > 'pdf_rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(321): error C2065: > 'x' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(321): warning C4133: > 'function' : incompatible types - from 'int *' to 'unsigned short *' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(322): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(322): error C2065: > 'x' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(326): error C2065: > 'pdf_rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(326): error C2065: > 'l' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(327): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(327): error C2065: > 'l' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(331): error C2065: > 'pdf_rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(331): error C2065: > 'f' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(331): warning C4133: > 'function' : incompatible types - from 'int *' to 'float *' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(332): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(332): error C2065: > 'f' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(332): warning C4244: > 'function' : conversion from 'int' to 'float', possible loss of data > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(337): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(341): error C2065: > 'pdf_rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(342): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(354): warning C4267: > 'function' : conversion from 'size_t' to 'int', possible loss of data > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(431): error C2143: > syntax error : missing ')' before '*' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(431): error C2081: > 'uint8_t' : name in formal parameter list illegal > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(431): error C2143: > syntax error : missing '{' before '*' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(431): error C2059: > syntax error : ')' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(432): error C2054: > expected '(' to follow 'dest' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(518): warning C4244: > '=' : conversion from 'PLFLT' to 'short', possible loss of data > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(519): warning C4244: > '=' : conversion from 'PLFLT' to 'short', possible loss of data > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(611): error C2065: > 'uint8_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(611): error C2146: > syntax error : missing ';' before identifier 'op' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(611): error C2065: > 'op' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(612): error C2143: > syntax error : missing ';' before 'type' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(615): error C2065: > 'op' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(615): warning C4133: > 'function' : incompatible types - from 'int *' to 'unsigned char *' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(618): error C2065: > 'op' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(627): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(628): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(629): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(639): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(640): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(641): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(643): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(644): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(645): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(658): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(678): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(679): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(680): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(681): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(682): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(683): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(685): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(686): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(687): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(688): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(689): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(690): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(691): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(692): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(693): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(694): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(695): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(704): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(720): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(730): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(743): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(747): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(758): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(765): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(776): error C2065: > 'uint8_t' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(776): error C2146: > syntax error : missing ';' before identifier 'op' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(776): error C2065: > 'op' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(777): error C2143: > syntax error : missing ';' before 'type' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(780): error C2065: > 'op' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(780): warning C4133: > 'function' : incompatible types - from 'int *' to 'unsigned char *' > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(783): error C2065: > 'op' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(788): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(789): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(790): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(802): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(803): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(804): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(807): error C2065: > 'op' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(815): error C2065: > 'op' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(828): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(829): error C2065: > 'rc' : undeclared identifier > > 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(829): fatal error > C1003: error count exceeds 100; stopping compilation > > 9> plot3d.c > > 9> plpage.c > > 9> plsdef.c > > 9> plshade.c > > 9> plstdio.c > > 9> plstripc.c > > 9> plsym.c > > 9> pltick.c > > 9> pltime.c > > 9> plvect.c > > 9> plvpor.c > > 9> plwind.c > >> On 21 May 2015 at 23:59, Jim Dishaw <ji...@di...> wrote: >> Please send me the errors. I'm getting a windows build machine going, so I will take a look at that c >> >> >> >>> On May 21, 2015, at 6:51 PM, Phil Rosenberg <p.d...@gm...> wrote: >>> >>> Hi Alan >>> I just did a git pull and tried to build PLPlot this evening and got a >>> massive number of build errors. >>> >>> Some are related to 64 bit/32 bit conflicts which I have had problems >>> with in the past and can't remember how I resolved them. >>> >>> Another one is below >>> >>> 7> Building Custom Rule D:/usr/local/src/plplot-plplot/include/CMakeLists.txt >>> >>> 7> CMake does not need to re-run because >>> D:\usr\local\src\plplot-plplot\build\Visual Studio 11 >>> 64sd\include\CMakeFiles\generate.stamp is up-to-date. >>> >>> 7> Generating plhershey-unicode.h >>> >>> 7> 'Debug\plhershey-unicode-gen.exe' is not recognized as an internal >>> or external command, >>> >>> 7> operable program or batch file. >>> >>> 7>C:\Program Files >>> (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(172,5): >>> error MSB6006: "cmd.exe" exited with code 9009. >>> >>> This seems odd because I don't think plhershey-unicode-gen.exe is >>> built on Windows. Has something changed here? >>> >>> Also I got a large number of compile errors from plbuf.c and plmeta.c >>> >>> Jim are you still working on this? I can send you a list of errors if you like? >>> >>> Once I get building again I will look into the issue you raised. >>> >>> Phil >>> >>> >>> >>> >>> >>>> On 18 May 2015 at 20:46, Alan W. Irwin <ir...@be...> wrote: >>>> Hi Phil: >>>> >>>> To avoid segfaults when plschr is called before plinit (see >>>> <https://sourceforge.net/p/plplot/bugs/162/>) it is essential to >>>> protect the plP_state( PLSTATE_CHR ); call you introduced into plschr >>>> with a level check. At the same time (commit id 1424994f) I also >>>> implemented similar level checks to the plP_state( PLSTATE_SYM ); call >>>> you introduced to plssym and the plP_state( PLSTATE_FILL ); call where >>>> you removed the existing level check when you moved that call to the >>>> spat routine. (I now realize that additional spat level check is >>>> redundant since spat is only called from functions which already do >>>> level checks, but I think it is best to leave it in for code clarity.) >>>> >>>> My question for you is did you forget the level check for >>>> the plP_state calls in plschr and plssym by design or >>>> in error? >>>> >>>> If by design, then we have to figure out some other way to provide >>>> users with a soft landing (not a segfault) when they call plschr or >>>> plssym before plinit. >>>> >>>> If in error, then you should probably review any other plP_state >>>> changes you made during your wxwidgets/plbuf changes to make sure the >>>> plP_state calls are protected by level checks in all cases. >>>> >>>> Alan >>>> __________________________ >>>> Alan W. Irwin >>>> >>>> Astronomical research affiliation with Department of Physics and Astronomy, >>>> University of Victoria (astrowww.phys.uvic.ca). >>>> >>>> Programming affiliations with the FreeEOS equation-of-state >>>> implementation for stellar interiors (freeeos.sf.net); the Time >>>> Ephemerides project (timeephem.sf.net); PLplot scientific plotting >>>> software package (plplot.sf.net); the libLASi project >>>> (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); >>>> and the Linux Brochure Project (lbproject.sf.net). >>>> __________________________ >>>> >>>> Linux-powered Science >>>> __________________________ >>> >>> ------------------------------------------------------------------------------ >>> One dashboard for servers and applications across Physical-Virtual-Cloud >>> Widest out-of-the-box monitoring support with 50+ applications >>> Performance metrics, stats and reports that give you Actionable Insights >>> Deep dive visibility with transaction tracing using APM Insight. >>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y >>> _______________________________________________ >>> Plplot-devel mailing list >>> Plp...@li... >>> https://lists.sourceforge.net/lists/listinfo/plplot-devel |
From: Phil R. <p.d...@gm...> - 2015-05-22 13:01:47
|
Sorry Jim Did you see my subsequent email. A clean build tree fixed all these errors. Don't know what the cause was. Phil On 22 May 2015 at 13:38, Jim Dishaw <ji...@di...> wrote: > Thanks. What compiler and OS version was this on? > > > >> On May 22, 2015, at 4:57 AM, Phil Rosenberg <p.d...@gm...> wrote: >> >> Hi Jim >> >> The errors are below. These are for all of the plplot library, so >> there are a few warnings about implicit casts from other files in >> there too, but most of it is plbuf.c and plmetafile.c related >> >> Phil >> >> 9>------ Build started: Project: plplot, Configuration: Debug x64 ------ >> >> 9> Building Custom Rule D:/usr/local/src/plplot-plplot/src/CMakeLists.txt >> >> 9> CMake does not need to re-run because >> D:\usr\local\src\plplot-plplot\build\Visual Studio 11 >> 64sd\src\CMakeFiles\generate.stamp is up-to-date. >> >> 9> mem.c >> >> 9> null.c >> >> 9> ps.c >> >> 9> svg.c >> >> 9> xfig.c >> >> 9> pdfutils.c >> >> 9> plaffine.c >> >> 9> plarc.c >> >> 9> plargs.c >> >> 9> plbox.c >> >> 9> plbuf.c >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(377): warning C4267: '=' >> : conversion from 'size_t' to 'unsigned short', possible loss of data >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(393): warning C4101: >> 'fci' : unreferenced local variable >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1068): warning C4244: >> 'function' : conversion from 'PLFLT' to 'PLINT', possible loss of data >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1325): error C2065: >> 'uint8_t' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1325): error C2059: >> syntax error : ')' >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1328): error C2065: >> 'uint16_t' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1349): error C2065: >> 'uint8_t' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1349): error C2059: >> syntax error : ')' >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1352): error C2065: >> 'uint16_t' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1368): error C2065: >> 'uint8_t' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1368): error C2059: >> syntax error : ')' >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1371): error C2065: >> 'uint16_t' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1424): error C2065: >> 'uint8_t' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1424): error C2059: >> syntax error : ')' >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1429): error C2065: >> 'uint16_t' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1442): error C2065: >> 'uint8_t' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1442): error C2059: >> syntax error : ')' >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1445): error C2065: >> 'uint16_t' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1470): error C2016: C >> requires that a struct or union has at least one member >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1470): error C2061: >> syntax error : identifier 'size_t' >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1476): error C2059: >> syntax error : '}' >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1495): error C2027: use >> of undefined type '_state' >> >> 9> D:\usr\local\src\plplot-plplot\src\plbuf.c(1469) : see declaration >> of '_state' >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1505): error C2037: left >> of 'size' specifies undefined struct/union '_state' >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1515): error C2037: left >> of 'valid' specifies undefined struct/union '_state' >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1519): error C2037: left >> of 'size' specifies undefined struct/union '_state' >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1531): error C2037: left >> of 'size' specifies undefined struct/union '_state' >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1540): error C2037: left >> of 'valid' specifies undefined struct/union '_state' >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1543): error C2036: >> '_state *' : unknown size >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1547): error C2037: left >> of 'plbuf_buffer_size' specifies undefined struct/union '_state' >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1548): error C2037: left >> of 'plbuf_top' specifies undefined struct/union '_state' >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1549): error C2037: left >> of 'plbuf_readpos' specifies undefined struct/union '_state' >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1553): error C2037: left >> of 'plbuf_buffer' specifies undefined struct/union '_state' >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1559): error C2037: left >> of 'plbuf_buffer' specifies undefined struct/union '_state' >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1559): warning C4022: >> 'memcpy' : pointer mismatch for actual parameter 2 >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1559): error C2198: >> 'memcpy' : too few arguments for call >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1569): error C2037: left >> of 'valid' specifies undefined struct/union '_state' >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1583): error C2037: left >> of 'plbuf_buffer' specifies undefined struct/union '_state' >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1584): error C2037: left >> of 'plbuf_buffer_size' specifies undefined struct/union '_state' >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1585): error C2037: left >> of 'plbuf_top' specifies undefined struct/union '_state' >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1586): error C2037: left >> of 'plbuf_readpos' specifies undefined struct/union '_state' >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1615): error C2037: left >> of 'valid' specifies undefined struct/union '_state' >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1621): error C2027: use >> of undefined type '_state' >> >> 9> D:\usr\local\src\plplot-plplot\src\plbuf.c(1469) : see declaration >> of '_state' >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1630): error C2037: left >> of 'size' specifies undefined struct/union '_state' >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1631): error C2037: left >> of 'valid' specifies undefined struct/union '_state' >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1634): error C2037: left >> of 'plbuf_buffer' specifies undefined struct/union '_state' >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1635): error C2037: left >> of 'plbuf_buffer_size' specifies undefined struct/union '_state' >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1636): error C2037: left >> of 'plbuf_top' specifies undefined struct/union '_state' >> >> 9>D:\usr\local\src\plplot-plplot\src\plbuf.c(1637): error C2037: left >> of 'plbuf_readpos' specifies undefined struct/union '_state' >> >> 9> plcont.c >> >> 9> plcore.c >> >> 9>D:\usr\local\src\plplot-plplot\src\plcore.c(2872): warning C4267: >> '=' : conversion from 'size_t' to 'int', possible loss of data >> >> 9>D:\usr\local\src\plplot-plplot\src\plcore.c(2873): warning C4267: >> '=' : conversion from 'size_t' to 'int', possible loss of data >> >> 9> plctrl.c >> >> 9>D:\usr\local\src\plplot-plplot\src\plctrl.c(2670): warning C4267: >> 'function' : conversion from 'size_t' to 'int', possible loss of data >> >> 9>D:\usr\local\src\plplot-plplot\src\plctrl.c(2675): warning C4267: >> 'function' : conversion from 'size_t' to 'int', possible loss of data >> >> 9>D:\usr\local\src\plplot-plplot\src\plctrl.c(2717): warning C4267: >> 'function' : conversion from 'size_t' to 'int', possible loss of data >> >> 9>D:\usr\local\src\plplot-plplot\src\plctrl.c(3041): warning C4013: >> 'vsscanf' undefined; assuming extern returning int >> >> 9> plcvt.c >> >> 9> pldtik.c >> >> 9> plf2ops.c >> >> 9> plfill.c >> >> 9> plgradient.c >> >> 9> plgridd.c >> >> 9>d:\usr\local\src\plplot-plplot\src\../lib/csa/nan.h(53): warning >> C4005: 'isnan' : macro redefinition >> >> 9> D:\usr\local\src\plplot-plplot\include\plplotP.h(265) : see >> previous definition of 'isnan' >> >> 9> Generating Code... >> >> 9> Compiling... >> >> 9> plhist.c >> >> 9> plimage.c >> >> 9> pllegend.c >> >> 9> plline.c >> >> 9> plmem.c >> >> 9> plmetafile.c >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(136): error C2146: >> syntax error : missing ')' before identifier 'x' >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(136): error C2061: >> syntax error : identifier 'x' >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(136): error C2059: >> syntax error : ';' >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(136): error C2059: >> syntax error : ',' >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(137): error C2059: >> syntax error : ')' >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(186): error C2065: >> 'uint8_t' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(186): error C2059: >> syntax error : ')' >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(189): warning C4244: >> '=' : conversion from 'unsigned short' to 'unsigned char', possible >> loss of data >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(226): error C2065: >> 'uint8_t' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(226): error C2059: >> syntax error : ')' >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(229): warning C4244: >> '=' : conversion from 'unsigned long' to 'unsigned char', possible >> loss of data >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(232): warning C4244: >> '=' : conversion from 'unsigned long' to 'unsigned short', possible >> loss of data >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(235): warning C4244: >> '=' : conversion from 'unsigned long' to 'short', possible loss of >> data >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(266): error C2065: >> 'uint8_t' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(266): error C2059: >> syntax error : ')' >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(269): warning C4244: >> '=' : conversion from 'float' to 'unsigned char', possible loss of >> data >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(272): warning C4244: >> '=' : conversion from 'float' to 'unsigned short', possible loss of >> data >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(275): warning C4244: >> '=' : conversion from 'float' to 'short', possible loss of data >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(278): warning C4244: >> '=' : conversion from 'float' to 'PLINT', possible loss of data >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(284): warning C4244: >> '=' : conversion from 'float' to 'unsigned long', possible loss of >> data >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(301): error C2065: >> 'uint8_t' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(301): error C2146: >> syntax error : missing ';' before identifier 'b' >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(301): error C2065: >> 'b' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(302): error C2143: >> syntax error : missing ';' before 'type' >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(303): error C2143: >> syntax error : missing ';' before 'type' >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(304): error C2143: >> syntax error : missing ';' before 'type' >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(305): error C2143: >> syntax error : missing ';' before 'type' >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(306): error C2143: >> syntax error : missing ';' before 'type' >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(311): error C2065: >> 'pdf_rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(312): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(316): error C2065: >> 'pdf_rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(316): error C2065: >> 'b' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(316): warning C4133: >> 'function' : incompatible types - from 'int *' to 'unsigned char *' >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(317): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(317): warning C4013: >> 'set_ubyte_plp_value' undefined; assuming extern returning int >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(317): error C2065: >> 'b' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(321): error C2065: >> 'pdf_rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(321): error C2065: >> 'x' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(321): warning C4133: >> 'function' : incompatible types - from 'int *' to 'unsigned short *' >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(322): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(322): error C2065: >> 'x' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(326): error C2065: >> 'pdf_rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(326): error C2065: >> 'l' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(327): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(327): error C2065: >> 'l' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(331): error C2065: >> 'pdf_rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(331): error C2065: >> 'f' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(331): warning C4133: >> 'function' : incompatible types - from 'int *' to 'float *' >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(332): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(332): error C2065: >> 'f' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(332): warning C4244: >> 'function' : conversion from 'int' to 'float', possible loss of data >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(337): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(341): error C2065: >> 'pdf_rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(342): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(354): warning C4267: >> 'function' : conversion from 'size_t' to 'int', possible loss of data >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(431): error C2143: >> syntax error : missing ')' before '*' >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(431): error C2081: >> 'uint8_t' : name in formal parameter list illegal >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(431): error C2143: >> syntax error : missing '{' before '*' >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(431): error C2059: >> syntax error : ')' >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(432): error C2054: >> expected '(' to follow 'dest' >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(518): warning C4244: >> '=' : conversion from 'PLFLT' to 'short', possible loss of data >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(519): warning C4244: >> '=' : conversion from 'PLFLT' to 'short', possible loss of data >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(611): error C2065: >> 'uint8_t' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(611): error C2146: >> syntax error : missing ';' before identifier 'op' >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(611): error C2065: >> 'op' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(612): error C2143: >> syntax error : missing ';' before 'type' >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(615): error C2065: >> 'op' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(615): warning C4133: >> 'function' : incompatible types - from 'int *' to 'unsigned char *' >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(618): error C2065: >> 'op' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(627): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(628): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(629): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(639): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(640): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(641): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(643): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(644): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(645): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(658): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(678): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(679): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(680): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(681): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(682): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(683): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(685): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(686): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(687): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(688): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(689): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(690): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(691): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(692): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(693): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(694): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(695): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(704): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(720): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(730): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(743): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(747): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(758): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(765): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(776): error C2065: >> 'uint8_t' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(776): error C2146: >> syntax error : missing ';' before identifier 'op' >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(776): error C2065: >> 'op' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(777): error C2143: >> syntax error : missing ';' before 'type' >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(780): error C2065: >> 'op' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(780): warning C4133: >> 'function' : incompatible types - from 'int *' to 'unsigned char *' >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(783): error C2065: >> 'op' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(788): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(789): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(790): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(802): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(803): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(804): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(807): error C2065: >> 'op' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(815): error C2065: >> 'op' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(828): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(829): error C2065: >> 'rc' : undeclared identifier >> >> 9>D:\usr\local\src\plplot-plplot\src\plmetafile.c(829): fatal error >> C1003: error count exceeds 100; stopping compilation >> >> 9> plot3d.c >> >> 9> plpage.c >> >> 9> plsdef.c >> >> 9> plshade.c >> >> 9> plstdio.c >> >> 9> plstripc.c >> >> 9> plsym.c >> >> 9> pltick.c >> >> 9> pltime.c >> >> 9> plvect.c >> >> 9> plvpor.c >> >> 9> plwind.c >> >>> On 21 May 2015 at 23:59, Jim Dishaw <ji...@di...> wrote: >>> Please send me the errors. I'm getting a windows build machine going, so I will take a look at that c >>> >>> >>> >>>> On May 21, 2015, at 6:51 PM, Phil Rosenberg <p.d...@gm...> wrote: >>>> >>>> Hi Alan >>>> I just did a git pull and tried to build PLPlot this evening and got a >>>> massive number of build errors. >>>> >>>> Some are related to 64 bit/32 bit conflicts which I have had problems >>>> with in the past and can't remember how I resolved them. >>>> >>>> Another one is below >>>> >>>> 7> Building Custom Rule D:/usr/local/src/plplot-plplot/include/CMakeLists.txt >>>> >>>> 7> CMake does not need to re-run because >>>> D:\usr\local\src\plplot-plplot\build\Visual Studio 11 >>>> 64sd\include\CMakeFiles\generate.stamp is up-to-date. >>>> >>>> 7> Generating plhershey-unicode.h >>>> >>>> 7> 'Debug\plhershey-unicode-gen.exe' is not recognized as an internal >>>> or external command, >>>> >>>> 7> operable program or batch file. >>>> >>>> 7>C:\Program Files >>>> (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(172,5): >>>> error MSB6006: "cmd.exe" exited with code 9009. >>>> >>>> This seems odd because I don't think plhershey-unicode-gen.exe is >>>> built on Windows. Has something changed here? >>>> >>>> Also I got a large number of compile errors from plbuf.c and plmeta.c >>>> >>>> Jim are you still working on this? I can send you a list of errors if you like? >>>> >>>> Once I get building again I will look into the issue you raised. >>>> >>>> Phil >>>> >>>> >>>> >>>> >>>> >>>>> On 18 May 2015 at 20:46, Alan W. Irwin <ir...@be...> wrote: >>>>> Hi Phil: >>>>> >>>>> To avoid segfaults when plschr is called before plinit (see >>>>> <https://sourceforge.net/p/plplot/bugs/162/>) it is essential to >>>>> protect the plP_state( PLSTATE_CHR ); call you introduced into plschr >>>>> with a level check. At the same time (commit id 1424994f) I also >>>>> implemented similar level checks to the plP_state( PLSTATE_SYM ); call >>>>> you introduced to plssym and the plP_state( PLSTATE_FILL ); call where >>>>> you removed the existing level check when you moved that call to the >>>>> spat routine. (I now realize that additional spat level check is >>>>> redundant since spat is only called from functions which already do >>>>> level checks, but I think it is best to leave it in for code clarity.) >>>>> >>>>> My question for you is did you forget the level check for >>>>> the plP_state calls in plschr and plssym by design or >>>>> in error? >>>>> >>>>> If by design, then we have to figure out some other way to provide >>>>> users with a soft landing (not a segfault) when they call plschr or >>>>> plssym before plinit. >>>>> >>>>> If in error, then you should probably review any other plP_state >>>>> changes you made during your wxwidgets/plbuf changes to make sure the >>>>> plP_state calls are protected by level checks in all cases. >>>>> >>>>> Alan >>>>> __________________________ >>>>> Alan W. Irwin >>>>> >>>>> Astronomical research affiliation with Department of Physics and Astronomy, >>>>> University of Victoria (astrowww.phys.uvic.ca). >>>>> >>>>> Programming affiliations with the FreeEOS equation-of-state >>>>> implementation for stellar interiors (freeeos.sf.net); the Time >>>>> Ephemerides project (timeephem.sf.net); PLplot scientific plotting >>>>> software package (plplot.sf.net); the libLASi project >>>>> (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); >>>>> and the Linux Brochure Project (lbproject.sf.net). >>>>> __________________________ >>>>> >>>>> Linux-powered Science >>>>> __________________________ >>>> >>>> ------------------------------------------------------------------------------ >>>> One dashboard for servers and applications across Physical-Virtual-Cloud >>>> Widest out-of-the-box monitoring support with 50+ applications >>>> Performance metrics, stats and reports that give you Actionable Insights >>>> Deep dive visibility with transaction tracing using APM Insight. >>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y >>>> _______________________________________________ >>>> Plplot-devel mailing list >>>> Plp...@li... >>>> https://lists.sourceforge.net/lists/listinfo/plplot-devel |