Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 6947 - dev-lisp/gcl/gcl-2.4.3.ebuild update
Summary: dev-lisp/gcl/gcl-2.4.3.ebuild update
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-23 15:45 UTC by Lars S. Jensen
Modified: 2003-02-04 19:42 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-lisp/gcl/gcl-2.4.3.ebuild (gcl-2.4.3.ebuild,1.33 KB, text/plain)
2002-08-23 15:47 UTC, Lars S. Jensen
Details
update dev-lisp/gcl/gcl-2.4.3.ebuild (gcl-2.4.3.ebuild,1.73 KB, text/plain)
2002-09-04 18:16 UTC, Lars S. Jensen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars S. Jensen 2002-08-23 15:45:07 UTC
Update gcl to the current release (bug fix) to build Maxima.

Summary: 2.4.3 released

Due to additional integer handling bugs that have come to
light recently, 2.4.3 is being released. Maxima compilation as well
as all known integer/bignum examples which failed to compile
previously have been tested and are in working order. 

Summary: 2.4.2 released

This is a bug fix only release meant as a stabilization of Dr. Schelter's
earlier work. This will hopefully be a solid base for building maxima until the
new 2.5.0 is released.
Comment 1 Lars S. Jensen 2002-08-23 15:47:02 UTC
Created attachment 3361 [details]
dev-lisp/gcl/gcl-2.4.3.ebuild
Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-08-27 15:45:34 UTC
I'm not going to be able to squeeze this in before 1.4 is released.
Comment 3 Ole Tange 2002-09-03 03:02:24 UTC
I just tried the attached ebuild. You need a dependency: texi2html. 
(You probably already had that installed and never noticed it was used. I did 
not have it installed). 
 
Comment 4 George Shapovalov (RETIRED) gentoo-dev 2002-09-03 19:43:29 UTC
Hi guys

Karl: I will, since this update seems to fix #7403 (assigned to me).

Ole, Lars: I have committed and masked the ebuild, please test.

Thanks for submission!

George
Comment 5 Lars S. Jensen 2002-09-04 15:34:29 UTC
I compiled Maxima and test it -- that was OK but there are some bugs in the
installation of gcl-2.4.3:

1) a symlink: >>> /usr/bin/gcl.exe ->
/var/tmp/portage/gcl-2.4.3/image//usr/lib/gcl-2.5.0/unixport/saved_gcl

ll /usr/bin/gcl.exe
lrwxrwxrwx    1 root     root           70 Sep  4 22:04 /usr/bin/gcl.exe ->
/var/tmp/portage/gcl-2.4.3/image//usr/lib/gcl-2.5.0/unixport/saved_gcl

2) loading of tkl.o Error: The function TK::GET-AUTOLOADS is undefined.
 --- and it depend on TCL/TK -- I have it installed: 

gcc -pipe -fwritable-strings  -DVOL=volatile
-I/var/tmp/portage/gcl-2.4.3/work/gcl-2.4.3/o -fsigned-char -c -march=i686 -O3
-pipe -I../o -I../h -I/usr/lib/../include -I/usr/lib/../include
-I/usr/X11R6/include -O4   tkAppInit.c
gcc -pipe -fwritable-strings  -DVOL=volatile
-I/var/tmp/portage/gcl-2.4.3/work/gcl-2.4.3/o -fsigned-char -c -march=i686 -O3
-pipe -I../o -I../h -I/usr/lib/../include -I/usr/lib/../include
-I/usr/X11R6/include -O4   tkMain.c
gcc -pipe -fwritable-strings  -DVOL=volatile
-I/var/tmp/portage/gcl-2.4.3/work/gcl-2.4.3/o -fsigned-char guis.o tkAppInit.o
tkMain.o -o gcltkaux  -L/usr/lib -ltk8.3
-L/var/tmp/portage/tk-8.3.3-r1/work/tk8.3.3/unix -ltk8.3 -L/usr/X11R6/lib -lX11
-I/usr/X11R6/include -L/usr/lib -ltcl8.3  `echo -ldl  -lm | sed -e s:-lieee::g`
 -lm -lreadline -lncurses  /usr/lib/libbfd.a /usr/lib/libiberty.a ../o/gcllib.a

echo '(load "../tkl.o")(TK::GET-AUTOLOADS (directory "*.lisp"))' |
../../unixport/saved_gcl) 
GCL (GNU Common Lisp)  Version(2.5.0) Wed Sep  4 22:04:15 CEST 2002
Licensed under GNU Library General Public License
Contains Enhancements by W. Schelter

>
Loading ../tkl.o

Error: free(3) error.
Fast links are on: do (si::use-fast-links nil) for debugging
Error signalled by EVAL.
Broken at LOAD.  Type :H for Help.
>>
Error: The function TK::GET-AUTOLOADS is undefined.
Fast links are on: do (si::use-fast-links nil) for debugging
Error signalled by EVALHOOK.
Backtrace: system:universal-error-handler > EVALHOOK

Broken at LOAD.
>>make[1]: Leaving directory `/var/tmp/portage/gcl-2.4.3/work/gcl-2.4.3/gcl-tk'
(cd info ; make)

Comment 6 Lars S. Jensen 2002-09-04 18:13:23 UTC
I did more test with gcl-tk (gcc-2.95.4): 
The problem is with the build in '/var/tmp/portage/.../'

This bug (feature) is also in /usr/lib/tkConfig.sh:
 TK_BUILD_LIB_SPEC='-L/var/tmp/portage/tk-8.3.3-r1/work/tk8.3.3/unix -ltk8.3'

root]#gcl
GCL (GNU Common Lisp)  Version(2.5.0) Wed Sep  4 23:16:12 CEST 2002
Licensed under GNU Library General Public License
Contains Enhancements by W. Schelter
>(si::tkconnect)
Loading /usr/lib/gcl-2.5.0/gcl-tk/tkl.o
start address -T 839e000 Finished loading /usr/lib/gcl-2.5.0/gcl-tk/tkl.o
"/usr/lib/gcl-2.5.0/gcl-tk/gcltksrv 127.0.0.1 5016 24472 localhost:0.0
"/usr/lib/gcl-2.5.0/gcl-tk/gcltksrv:
/var/tmp/portage/gcl-2.4.3/image//usr/lib/gcl-2.5.0/gcl-tk/gcltkaux: No such
file or directory
/usr/lib/gcl-2.5.0/gcl-tk/gcltksrv: exec:
/var/tmp/portage/gcl-2.4.3/image//usr/lib/gcl-2.5.0/gcl-tk/gcltkaux: cannot
execute: No such file or directory

the bug is in /usr/lib/gcl-2.5.0/gcl-tk/gcltksrv:
  GCL_TK_DIR=/var/tmp/portage/gcl-2.4.3/image//usr/lib/gcl-2.5.0/gcl-tk
change it to: 
  GCL_TK_DIR=/usr/lib/gcl-2.5.0/gcl-tk
worked.

I have update the ebuild by adding
	# fix the GCL_TK_DIR=/var/tmp/portage/gcl-2.4.3/image//
	mv ${D}/usr/lib/gcl-2.5.0/gcl-tk/gcltksrv ${D}/usr/lib/gcl-2.5.0/gcl-tk/gcltksrv.orig
	sed -e "s:${D}::g" < ${D}/usr/lib/gcl-2.5.0/gcl-tk/gcltksrv.orig >
${D}/usr/lib/gcl-2.5.0/gcl-tk/gcltksrv
	rm ${D}/usr/lib/gcl-2.5.0/gcl-tk/gcltksrv.orig
	chmod 0755 ${D}/usr/lib/gcl-2.5.0/gcl-tk/gcltksrv
to the end of src_install():

Still TCL/TK (TK::GET-AUTOLOADS) problem and the demo is not working in this
release of gcl -- see the readme
This version is better that 2.4.0 and I can live with the TCL/TK problem.
Comment 7 Lars S. Jensen 2002-09-04 18:16:02 UTC
Created attachment 3660 [details]
update dev-lisp/gcl/gcl-2.4.3.ebuild

fix the GCL_TK_DIR=/var/tmp/portage/gcl-2.4.3/image problem
Comment 8 George Shapovalov (RETIRED) gentoo-dev 2002-09-04 22:30:59 UTC
Hi Lars

Thanks for tracking some more issues.
I updated the ebuild (still masked).

BTW, I changed that absolute symlink by gcl.exe to relative (do we need this
under Linux at all? From the name it seems to be some "compatibility" thing,
though 'file' says that's an elf binary).

I also added dependency on gmp, since I see that gcl supports it.

George
Comment 9 Lars S. Jensen 2002-09-05 17:54:32 UTC
It looks OK.

For you information: I used/had installed a patched version of gmp-4.1-r1 (-r2)
with bugfixes from the gmp homepage:
22,37d20
< 
< #  mpz_class::get_num and get_den return a special type which behaves 
< #  like mpz_class& but is not identical. 
< #  An actual mpz_class& can be obtained with this patch.
< #  This is a change to the C++ ABI (inline code only) 
< 	patch < ${FILESDIR}/gmpxx.h.getnum.diff
< 
< #  mpz_powm_ui may return a result outside the range 0 to m-1 in 
< #  certain circumstances (e==1, abs(b)>m, m normalized).
< 	cd ${S}/mpz
< 	patch < ${FILESDIR}/powm_ui.c.41.diff
< 
< #  mpf_inp_str returns an incorrect character count for valid input, 
< #  and leaks memory for invalid input.
< 	cd ${S}/mpf
< 	patch < ${FILESDIR}/mpf_inp_str.c.diff

Maxima (CVS) xmaxima + make check :
Running test suite with gcl...

*** Summary results for tests recorded in
*** log file tests-gcl.log:
Error summary:
Error(s) found in rtest15.mac: (4)

Expected failures (known bugs in this version of Maxima):
rtest15.mac: (4)

Timing:
real time : 10.450 secs
run time  : 92.170 secs
*** end of summary for tests-gcl.log
Comment 10 George Shapovalov (RETIRED) gentoo-dev 2002-09-05 18:34:00 UTC
Hi

Lars: thanks for testing!

So, does this look now ready to go to everybody? I'll unmask it topmorrow if
nobody will voice against till then.

George
Comment 11 George Shapovalov (RETIRED) gentoo-dev 2002-09-06 14:07:40 UTC
Unmasked, since there were no objections. Closing this bug now.

Thanks everybody, especially Lars!

George