Problems building 6.0.rc2

"Philipp K. Janert via gnuplot-beta" <[email protected]> Fri, 13 Oct 2023 18:06:27 -0400
Newsgroups gmane.comp.graphics.gnuplot.devel
Message-ID <20231013180627.69173266@puget>
I am encountering a compilation error when
trying to build from the current rc2 tarball.

After ./configure and make, several files
compile, until I hit this (more details in
attached text file):



In file included from term.h:289,
                 from term.c:1219:
../term/post.trm:4036:11: error: expected declaration specifiers or
‘...’ before string constant 4036 |     fputs("%%%%BeginImage\n",
gppsfile); |           ^~~~~~~~~~~~~~~~~~
../term/post.trm:4036:31: error: expected declaration specifiers or
‘...’ before ‘gppsfile’ 4036 |     fputs("%%%%BeginImage\n", gppsfile);
      |                               ^~~~~~~~



I currently don't have devel packages for
pango, cairo, etc installed, but I thought
gnuplot should still build with the "dumb"
terminal at least. Or am I missing some
build-tool? (This is on Linux Mint 21.)

I can provide more detail. What would be
most helpful?

Best,

		Ph.

-- 

Philipp K. Janert
www.janert.me

_______________________________________________
gnuplot-beta mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
gp.txt (text/plain, 3.8 KB)
gcc -DHAVE_CONFIG_H -I. -I..  -I../term -I../term -DBINDIR=\"/usr/local/bin\" -DX11_DRIVER_DIR=\"/usr/local/libexec/gnuplot/6.0\" -DQT_DRIVER_DIR=\"/usr/local/libexec/gnuplot/6.0\" -DGNUPLOT_SHARE_DIR=\"/usr/local/share/gnuplot/6.0\" -DGNUPLOT_PS_DIR=\"/usr/local/share/gnuplot/6.0/PostScript\" -DGNUPLOT_JS_DIR=\"/usr/local/share/gnuplot/6.0/js\" -DGNUPLOT_LUA_DIR=\"/usr/local/share/gnuplot/6.0/lua\" -DCONTACT=\"[email protected]\" -DHELPFILE=\"/usr/local/share/gnuplot/6.0/gnuplot.gih\" -DGNUPLOT_X11=\"`echo gnuplot_x11 | sed 's,x,x,'`\" -DGNUPLOT_DRIVER_DIR=\"/usr/local/libexec/gnuplot/6.0\"  -DGNUPLOT_QT=\"`echo gnuplot_qt | sed 's,x,x,'`\" -DQTGNUPLOT_DATA_DIR=\"/usr/local/share/gnuplot/6.0/qt\"   -g -O2 -MT term.o -MD -MP -MF $depbase.Tpo -c -o term.o term.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from term.h:289,
                 from term.c:1219:
../term/post.trm:4036:11: error: expected declaration specifiers or ‘...’ before string constant
 4036 |     fputs("%%%%BeginImage\n", gppsfile);
      |           ^~~~~~~~~~~~~~~~~~
../term/post.trm:4036:31: error: expected declaration specifiers or ‘...’ before ‘gppsfile’
 4036 |     fputs("%%%%BeginImage\n", gppsfile);
      |                               ^~~~~~~~
../term/post.trm:4039:22: error: expected ‘)’ before string constant
 4039 |     fprintf(gppsfile,"gsave %d %d N %d %d L %d %d L %d %d L Z clip\n",
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                      )
../term/post.trm:4047:5: error: expected identifier or ‘(’ before ‘if’
 4047 |     if (five_operand_image) {
      |     ^~
../term/post.trm:4065:5: error: expected identifier or ‘(’ before ‘else’
 4065 |     else {
      |     ^~~~
../term/post.trm:4122:5: error: expected identifier or ‘(’ before ‘{’ token
 4122 |     {
      |     ^
../term/post.trm:4128:5: error: expected identifier or ‘(’ before ‘if’
 4128 |     if (ps_params->level1)
      |     ^~
../term/post.trm:4130:5: error: expected identifier or ‘(’ before ‘else’
 4130 |     else {
      |     ^~~~
../term/post.trm:4136:11: error: expected declaration specifiers or ‘...’ before string constant
 4136 |     fputs("grestore\n", gppsfile);
      |           ^~~~~~~~~~~~
../term/post.trm:4136:25: error: expected declaration specifiers or ‘...’ before ‘gppsfile’
 4136 |     fputs("grestore\n", gppsfile);
      |                         ^~~~~~~~
../term/post.trm:4137:11: error: expected declaration specifiers or ‘...’ before string constant
 4137 |     fputs("%%%%EndImage\n", gppsfile);
      |           ^~~~~~~~~~~~~~~~
../term/post.trm:4137:29: error: expected declaration specifiers or ‘...’ before ‘gppsfile’
 4137 |     fputs("%%%%EndImage\n", gppsfile);
      |                             ^~~~~~~~
../term/post.trm:4138:5: warning: data definition has no type or storage class
 4138 |     free(encoded_image);
      |     ^~~~
../term/post.trm:4138:5: warning: type defaults to ‘int’ in declaration of ‘free’ [-Wimplicit-int]
../term/post.trm:4138:5: warning: parameter names (without types) in function declaration
../term/post.trm:4138:5: error: conflicting types for ‘free’; have ‘int()’
In file included from stdfn.h:107,
                 from term_api.h:39,
                 from term.c:73:
/usr/include/stdlib.h:555:13: note: previous declaration of ‘free’ with type ‘void(void *)’
  555 | extern void free (void *__ptr) __THROW;
      |             ^~~~
In file included from term.h:289,
                 from term.c:1219:
../term/post.trm:4140:5: error: expected identifier or ‘(’ before ‘return’
 4140 |     return;
      |     ^~~~~~
../term/post.trm:4141:1: error: expected identifier or ‘(’ before ‘}’ token
 4141 | }
      | ^