problem installing gnuplot

Ozan Kahramanogullari <[email protected]> Thu, 9 Jan 2025 22:38:22 +0100
Newsgroups gmane.comp.graphics.gnuplot.devel
Message-ID <CAPiqqL=gkG4t2RwSizXjoW7m=FY79tX7kFDk8Z2_mo2+1z2Hvw@mail.gmail.com>
Hi,

I am trying to install gnuplot following the instructions in the INSTALL
file.

I could run  "./prepare" and "./configure" without problems but "make"
failed with the error  message below.

I tried to debug the code, but it exceeded my capacity to do a quick fix. I
also checked online, but I could not find a solution.

Can anyone help?

I am using an M1 Mac, in case it is relevant.

Best,
Ozan

=======================
 Ozan Kahramanoğulları, PhD
              ozan-k.com
=======================

(base) ozan@MBP-FVFGT17VQ05N gnuplot-gnuplot-main % make

/Library/Developer/CommandLineTools/usr/bin/make  all-recursive

Making all in config

make[2]: Nothing to be done for `all'.

Making all in m4

make[2]: Nothing to be done for `all'.

Making all in term

make[2]: Nothing to be done for `all'.

Making all in src

Making timestamp.h

/Library/Developer/CommandLineTools/usr/bin/make  all-recursive

Making all in wxterminal

make[4]: Nothing to be done for `all'.

Making all in qtterminal

make[4]: Nothing to be done for `all'.

depbase=`echo term.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\

gcc -DHAVE_CONFIG_H -I. -I..  -I../term -I../term
-DBINDIR=\"/usr/local/bin\"
-DX11_DRIVER_DIR=\"/usr/local/libexec/gnuplot/6.1\"
-DQT_DRIVER_DIR=\"/usr/local/libexec/gnuplot/6.1\"
-DGNUPLOT_SHARE_DIR=\"/usr/local/share/gnuplot/6.1\"
-DGNUPLOT_PS_DIR=\"/usr/local/share/gnuplot/6.1/PostScript\"
-DGNUPLOT_JS_DIR=\"/usr/local/share/gnuplot/6.1/js\"
-DGNUPLOT_LUA_DIR=\"/usr/local/share/gnuplot/6.1/lua\" -DCONTACT=\"
[email protected]\"
-DHELPFILE=\"/usr/local/share/gnuplot/6.1/gnuplot.gih\"
-DGNUPLOT_X11=\"`echo gnuplot_x11 | sed 's,x,x,'`\"
-DGNUPLOT_DRIVER_DIR=\"/usr/local/libexec/gnuplot/6.1\"  -DGNUPLOT_QT=\"`echo
gnuplot_qt | sed 's,x,x,'`\"
-DQTGNUPLOT_DATA_DIR=\"/usr/local/share/gnuplot/6.1/qt\" -I/usr/X11/include
-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.c:1214:

In file included from ./term.h:187:

*../term/x11.trm:1084:6: **warning: **'fork' is deprecated: Use posix_spawn
or fork [-Wdeprecated-declarations]*

 1084 |         if (fork() == 0) {

      | *            ^*

*/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:604:1:
note: *'fork' has been explicitly marked deprecated here

  604 | __deprecated_msg("Use posix_spawn or fork")

      | *^*

*/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:218:48:
note: *expanded from macro '__deprecated_msg'

  218 |         #define __deprecated_msg(_msg)
__attribute__((__deprecated__(_msg)))

      | *                                                      ^*

*term.c:1382:13: **error: **call to undeclared function 'rl_getc'; ISO C99
and later do not support implicit function declarations
[-Wimplicit-function-declaration]*

 1382 |         nextchar = nextchar();

      | *                   ^*

*term.c:1360:22: note: *expanded from macro 'nextchar'

 1360 |   #define nextchar() rl_getc(stdin)

      | *                     ^*

1 warning and 1 error generated.

make[4]: *** [term.o] Error 1

make[3]: *** [all-recursive] Error 1

make[2]: *** [all] Error 2

make[1]: *** [all-recursive] Error 1

make: *** [all] Error 2

_______________________________________________
gnuplot-beta mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta