LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-04-2024, 03:58 PM   #1
qunying
Member
 
Registered: Jun 2002
Distribution: Slackware
Posts: 257

Rep: Reputation: 147Reputation: 147
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?
 
Old 03-04-2024, 04:33 PM   #2
qunying
Member
 
Registered: Jun 2002
Distribution: Slackware
Posts: 257

Original Poster
Rep: Reputation: 147Reputation: 147
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.

Last edited by qunying; 03-04-2024 at 04:36 PM.
 
Old 03-05-2024, 10:27 AM   #3
jloco
Member
 
Registered: Apr 2016
Location: Detroit, MI
Distribution: Slackware
Posts: 180

Rep: Reputation: 148Reputation: 148
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
 
Old 03-05-2024, 01:09 PM   #4
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,508

Rep: Reputation: 8468Reputation: 8468Reputation: 8468Reputation: 8468Reputation: 8468Reputation: 8468Reputation: 8468Reputation: 8468Reputation: 8468Reputation: 8468Reputation: 8468
Quote:
Originally Posted by qunying View Post
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.
 
Old 03-27-2024, 01:15 PM   #5
qunying
Member
 
Registered: Jun 2002
Distribution: Slackware
Posts: 257

Original Poster
Rep: Reputation: 147Reputation: 147
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".
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] gpm working erratically since upgrade to gpm-1.20.7-i486-3 RandomTroll Linux - Software 2 08-15-2014 11:53 PM
gpm no ./configure gpm-1.20.7 EDDY1 Linux From Scratch 4 11-19-2012 05:34 PM
gpm don't have rc.gpm script rudsonalves Slackware 3 08-26-2012 08:45 AM
[SOLVED] gpm-1.20.6-make install-gpm error janakiramulu Linux From Scratch 12 05-12-2011 02:00 AM
GPM compile problem. dcole Linux - Software 1 09-18-2004 12:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration