LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   could not compile gpm (https://www.linuxquestions.org/questions/slackware-14/could-not-compile-gpm-4175734559/)

qunying 03-04-2024 03:58 PM

could not compile gpm
 
I was trying to re-compile gpm with "--without-curses" as recommended in https://invisible-island.net/ncurses/ncurses.faq.html, but found out that even with the gpm source without modification from Slackware, it could not be compiled, got the error:
Code:

checking where to install Emacs Lisp files... ./configure: eval: line 11726: syntax error near unexpected token `('
./configure: eval: line 11726: `itz_cv_path_site_lisp= mapbacktrace(#f(compiled-function (evald func args flags) #<bytecode -0xc2e99e784512f81>))'

Anyone encounter similar error?

qunying 03-04-2024 04:33 PM

I figured it out. I forgot that I built the emacs from the current source and replaced the one comes with 15.0. After restored to version 27.2, problem solved.

That leaves me a question, could gpm be compiled fine under -current? Currently I don't have a box running current yet to verify.

jloco 03-05-2024 10:27 AM

gpm fails, and has for some time. It hasn't built for at least the last month or more, which I'm sure would be fixable but I don't emacs.

Code:

checking for emacs... /usr/bin/emacs
checking where to install Emacs Lisp files... ./configure: eval: line 12623: syntax error near unexpected token `('
./configure: eval: line 12623: `itz_cv_path_site_lisp= mapbacktrace(#f(compiled-function (evald func args flags) #<bytecode 0x9307acbedae98bf>))'
: failed configure


volkerdi 03-05-2024 01:09 PM

Quote:

Originally Posted by qunying (Post 6487635)
That leaves me a question, could gpm be compiled fine under -current? Currently I don't have a box running current yet to verify.

It compiles here.

qunying 03-27-2024 01:15 PM

Since emacs in 15.0 was updated to 29.3, gpm could not be compiled (same error related to emacs elisp), I look at it a little deeper, and found the previous patch for removing emace/elisp related code is not very clean, still something is left.

After modified it a little, it compiled fine.

This need to remove the gpm.configure.diff.gz patch, and patch the source before calling to "sh autogen.sh" line.

Code:

--- gpm-1.20.7/configure.ac.footer        2012-10-26 14:21:38.000000000 -0700
+++ gpm-new/configure.ac.footer        2024-03-27 10:33:24.990473076 -0700
@@ -49,22 +49,6 @@
 AC_PATH_PROG(MAKEINFO,makeinfo,no)
 AC_PATH_PROG(DIFF,diff,no)
 AC_PATH_PROG(SED,sed,no)
-AC_PATH_PROG(emacs,emacs,no)
-
-if test ${ac_cv_path_emacs} = no ; then
-        EMACS=:
-        ELISP=
-else
-        EMACS=${ac_cv_path_emacs}
-        ELISP="emacs/t-mouse.el emacs/t-mouse.elc"
-fi
-
-if test $EMACS != : ; then
-        ITZ_PATH_SITE_LISP
-        lispdir=${itz_cv_path_site_lisp}
-else
-        lispdir='${datadir}/emacs/site-lisp'
-fi
 
 # Header-checks
 AC_CHECK_HEADERS(syslog.h linux/input.h linux/joystick.h ncurses.h ncurses/curses.h curses.h)
--- gpm-1.20.7/Makefile.in        2012-10-26 14:21:38.000000000 -0700
+++ gpm-new/Makefile.in        2024-03-27 10:42:51.557448721 -0700
@@ -19,7 +19,7 @@
 # user-overridable flags, but it's also all the implicit rule looks at.
 # missing ?
 
-SUBDIRS = src doc contrib
+SUBDIRS = src doc
 
 
 ### simple, but effective rules

Also, according to Using gpm libe with ncurses, it would be better to compile gpm with "--without-curses".


All times are GMT -5. The time now is 04:52 PM.