|
From: Petr M. <mi...@ph...> - 2009-01-14 08:33:49
|
I see there are two errors: 1. in compiling gnuplot 4.2 cvs gcc -DHAVE_CONFIG_H -I. -I.. -I../term -I../term -DBINDIR=\"/usr/local/bin\" -DX11_DRIVER_DIR=\"/usr/local/libexec/gnuplot/4.2\" -DGNUPLOT_PS_DIR=\"/usr/local/share/gnuplot/4.2/PostScript\" -DCONTACT=\"http://sourceforge.net/projects/gnuplot\" -DHELPFILE=\"/usr/local/share/gnuplot/4.2/gnuplot.gih\" -I/usr/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -MT util.o -MD -MP -MF .deps/util.Tpo -c -o util.o util.c util.c: In function ‘gprintf’: util.c:757: error: invalid type argument of ‘unary *’ make[3]: *** [util.o] Error 1 The line is: /* dot is the default decimalsign we will be replacing */ dot = *get_decimal_locale(); The strange thing is that grep -R get_decimal_locale * does not find this routine in gnuplot source and /usr/include. *** 2. making current cvs fails: Making all in term make[2]: Entering directory `gnuplot-cvs/term' make[2]: *** No rule to make target `js/*.js', needed by `all-am'. Stop. |
|
From: Timothée L. <tim...@lp...> - 2009-01-14 09:03:31
|
Petr Mikulik a écrit : > I see there are two errors: > > 1. in compiling gnuplot 4.2 cvs > ... > util.c: In function ‘gprintf’: > util.c:757: error: invalid type argument of ‘unary *’ > ... > Don't know. > 2. making current cvs fails: > Making all in term > make[2]: Entering directory `gnuplot-cvs/term' > make[2]: *** No rule to make target `js/*.js', needed by `all-am'. Stop. > For this one, you have to run "cvs update -d" instead of "cvs update", because the latter does not checkout new directories, like the new term/js. Best regards, Timothée |
|
From: Petr M. <mi...@ph...> - 2009-01-14 11:05:12
|
I've uncommented this line, compiled further, and then I'm getting messages that set_numeric_locale and reset_numeric_locale are not known. Has not ./configure overlooked some of my missing libraries? > I see there are two errors: > > 1. in compiling gnuplot 4.2 cvs > gcc -DHAVE_CONFIG_H -I. -I.. -I../term -I../term > -DBINDIR=\"/usr/local/bin\" > -DX11_DRIVER_DIR=\"/usr/local/libexec/gnuplot/4.2\" > -DGNUPLOT_PS_DIR=\"/usr/local/share/gnuplot/4.2/PostScript\" > -DCONTACT=\"http://sourceforge.net/projects/gnuplot\" > -DHELPFILE=\"/usr/local/share/gnuplot/4.2/gnuplot.gih\" -I/usr/include > -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 > -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > -g -O2 -MT util.o -MD -MP -MF .deps/util.Tpo -c -o util.o util.c > util.c: In function ‘gprintf’: > util.c:757: error: invalid type argument of ‘unary *’ > make[3]: *** [util.o] Error 1 > > The line is: > /* dot is the default decimalsign we will be replacing */ > dot = *get_decimal_locale(); > > The strange thing is that > grep -R get_decimal_locale * > does not find this routine in gnuplot source and /usr/include. |
|
From: Ethan A M. <merritt@u.washington.edu> - 2009-01-14 16:30:31
|
On Wednesday 14 January 2009, Petr Mikulik wrote: > I've uncommented this line, compiled further, and then I'm getting messages > that set_numeric_locale and reset_numeric_locale are not known. Has not > ./configure overlooked some of my missing libraries? > > > I see there are two errors: > > > > 1. in compiling gnuplot 4.2 cvs > > gcc -DHAVE_CONFIG_H -I. -I.. -I../term -I../term > > -DBINDIR=\"/usr/local/bin\" > > -DX11_DRIVER_DIR=\"/usr/local/libexec/gnuplot/4.2\" > > -DGNUPLOT_PS_DIR=\"/usr/local/share/gnuplot/4.2/PostScript\" > > -DCONTACT=\"http://sourceforge.net/projects/gnuplot\" > > -DHELPFILE=\"/usr/local/share/gnuplot/4.2/gnuplot.gih\" -I/usr/include > > -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 > > -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > > -g -O2 -MT util.o -MD -MP -MF .deps/util.Tpo -c -o util.o util.c > > util.c: In function ‘gprintf’: > > util.c:757: error: invalid type argument of ‘unary *’ > > make[3]: *** [util.o] Error 1 > > > > The line is: > > /* dot is the default decimalsign we will be replacing */ > > dot = *get_decimal_locale(); > > > > The strange thing is that > > grep -R get_decimal_locale * > > does not find this routine in gnuplot source and /usr/include. It is defined in variable.h It looks to me that your configuration script has not correctly detected whether your system supports LOCALE. From the error messages, I guess that your system lacks locale support, but configure didn't notice that. Or perhaps you have more than one libc, but one of them has locale support and the other doesn't? -- Ethan A Merritt |
|
From: Petr M. <mi...@ph...> - 2009-01-14 17:15:47
|
> > I've uncommented this line, compiled further, and then I'm getting messages > > that set_numeric_locale and reset_numeric_locale are not known. Has not > > ./configure overlooked some of my missing libraries? > > > > > 1. in compiling gnuplot 4.2 cvs > > > util.c: In function ‘gprintf’: > > > util.c:757: error: invalid type argument of ‘unary *’ > > > make[3]: *** [util.o] Error 1 > > > > > > The line is: > > > /* dot is the default decimalsign we will be replacing */ > > > dot = *get_decimal_locale(); > > > > > > The strange thing is that > > > grep -R get_decimal_locale * > > > does not find this routine in gnuplot source and /usr/include. > > It is defined in variable.h > > It looks to me that your configuration script has not correctly detected > whether your system supports LOCALE. From the error messages, I guess > that your system lacks locale support, but configure didn't notice that. > Or perhaps you have more than one libc, but one of them has locale > support and the other doesn't? It is defined in variable.h in gnuplot-cvs, but not in gnuplot 4.2-cvs. Comparing variable.h in 4.2.4 and 4.2-cvs, these files are the same. Comparing util.c, they are different. I have locale -- tested on OpenSUSE 10.3 and 11.1. --- PM |
|
From: Ethan M. <merritt@u.washington.edu> - 2009-01-14 19:02:23
|
On Wednesday 14 January 2009 09:15:36 Petr Mikulik wrote: > > It is defined in variable.h in gnuplot-cvs, but not in gnuplot 4.2-cvs. > Comparing variable.h in 4.2.4 and 4.2-cvs, these files are the same. > Comparing util.c, they are different. > > I have locale -- tested on OpenSUSE 10.3 and 11.1 Oops. Probably my fault, although I'm not sure what would have caused it. Somehow the util.c from version 4.3 was incorrectly replicated into the 4.2 CVS branch. I have now restored the correct 4.2 util.c into the repository, and the normal ./prepare; ./configure; make should now work again. Ethan |