[Gcl-devel] building maxima with gcl



Sorry, I was stupid. maxima is not involved at all. ANSI gcl in Gentoo 
(produced by compiling from sources: gcl-2.6.7 plus Debian patches 34) is 
broken. If I simply start it and say

grozin at laptop ~/maxima-5.14.0/src $ gcl
GCL (GNU Common Lisp)  2.6.8 ANSI    Nov 28 2007 17:42:17
Source License: LGPL(gcl,gmp), GPL(unexec,bfd,xgcl)
Binary License:  GPL due to GPL'ed components: (XGCL READLINE BFD UNEXEC)
Modifications of this banner must retain notice of a compatible license
Dedicated to the memory of W. Schelter

Use (help) to get some basic information on how to use GCL.
Temporary directory for compiler files set to /tmp/

>(compiler::emit-fn t)

Loading /usr/lib/gcl-2.6.8/xgcl-2/../cmpnew/gcl_collectfn.o
Error in EVAL [or a callee]: Can't open file 
"/usr/lib/gcl-2.6.8/xgcl-2/../cmpnew/gcl_collectfn.data"

Fast links are on: do (use-fast-links nil) for debugging
Broken at EVAL.  Type :H for Help.
  1 (Continue) Retry loading file 
"/usr/lib/gcl-2.6.8/xgcl-2/../cmpnew/gcl_collectfn.o".
  2 (Abort) Return to top level.
dbl:>>

I get the same error. gcl cannot load gcl_collectfn.o .

The process by which gcl is compiled in Gentoo seems rather 
straightforward:

1. Unpack gcl-2.6.7

2. Apply Debian patch 34

3. Apply some patch to configure which fixes http://bugs.gentoo.org/103483 
. The comment about it says:
The LANG vars aren't reset early enough so when sed tries to use [a-zA-Z] in
option parsing, it may break.

4. Replace all gcl-doc by gcl-2.6.7-r3 in info/makefile

5. Configure. On my system, for example,

./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man 
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc 
--localstatedir=/var/lib --enable-tkconfig=/usr/lib 
--enable-tclconfig=/usr/lib --enable-locbfd --disable-dynsysbfd 
--disable-statsysbfd --enable-dynsysgmp --enable-readline --with-x 
--disable-debug --enable-ansi --enable-xdr=no 
--enable-infodir=/usr/share/info 
--enable-emacsdir=/usr/share/emacs/site-lisp/gcl --build=i686-pc-linux-gnu

6. make

7. Some sed'ding of gcl.1 man page

8. make DESTDIR="${D}" install
where ${D} is some temporary tree used by portage; later,everything will 
be copied to / by ebuild.

Plus some details: emacs support, etc. Nothing very special. But the 
resulting gcl is broken - it cannot load gcl_collectfn.o .

Could somebody help me to repair gcl on Gentoo?

Andrey