Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59829 - app-sci/ginac-1.2.2 or earlier won't compile with readline-5.0
Summary: app-sci/ginac-1.2.2 or earlier won't compile with readline-5.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
: 62551 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-08-08 22:45 UTC by Howard B. Golden
Modified: 2004-09-07 02:19 UTC (History)
2 users (show)

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


Attachments
Upstream patch to ginsh/ginsh_parser.yy for ginac-1.2.2 (ginsh_parser.yy.diff,1.75 KB, patch)
2004-08-08 22:55 UTC, Howard B. Golden
Details | Diff
based on 1.1.6 ebuild in portage tree (ginac-1.2.2.ebuild,783 bytes, text/plain)
2004-08-12 16:33 UTC, Colin Macdonald
Details
based on reporters diff above (ginsh_parser.yy-1.2.2.patch,1.54 KB, patch)
2004-08-12 16:34 UTC, Colin Macdonald
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Howard B. Golden 2004-08-08 22:45:41 UTC
Attempting to compile app-sci/ginac versions <= 1.2.2 will get compile errors in module ginsh/ginsh_parser.yy due to changes in the readline API in readline-5.0. My patch has been added upstream, so it will probably appear in 1.2.3 and 1.3.0, though at this point I don't know what the plans are to release these versions. (I will e-mail Christian Bauer to find out.)

At present Gentoo has ginac-1.1.3 as stable on x86 and ginac-1.1.6 as unstable. These versions are now shown as obsolete on the ginac website http://www.ginac.de . The stable version is now 1.2.2. (However, it won't work with readline-5.0 without patching.)

Note: When Gentoo implements ginac-1.2, the SLOT should be bumped, since the ginac API has been changed in ginac-1.2.

Reproducible: Always
Steps to Reproduce:
1. emerge readline # 5.0 version
2. emerge ginac # either version 1.1.3 or 1.1.6
Actual Results:  
Making all in ginsh
make[2]: Entering directory `/var/tmp/portage/ginac-1.1.6/work/GiNaC-1.1.6/ginsh'
sed -n -f ./ginsh_fcn_help.sed <ginsh.1 >ginsh_fcn_help.h
sed -n -f ./ginsh_op_help.sed <ginsh.1 >ginsh_op_help.h
source='ginsh_parser.cc' object='ginsh_parser.o' libtool=no \
depfile='.deps/ginsh_parser.Po' tmpdepfile='.deps/ginsh_parser.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../ginac -I../ginac -DIN_GINAC   
-mcpu=athlon-xp -O2 -pipe -c -o ginsh_parser.o `test -f 'ginsh_parser.cc' ||
echo './'`ginsh_parser.cc
/home/cbauer/projects/GiNaC-1.1/ginsh/ginsh_parser.yy: In function `char**
   fcn_completion(const char*, int, int)':
/home/cbauer/projects/GiNaC-1.1/ginsh/ginsh_parser.yy:806: error: invalid
   conversion from `const char*' to `char*'
/home/cbauer/projects/GiNaC-1.1/ginsh/ginsh_parser.yy:816: error: invalid
   conversion from `const char*' to `char*'
make[2]: *** [ginsh_parser.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/ginac-1.1.6/work/GiNaC-1.1.6/ginsh'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/ginac-1.1.6/work/GiNaC-1.1.6'
make: *** [all] Error 2

!!! ERROR: app-sci/ginac-1.1.6 failed.
!!! Function src_compile, Line 25, Exitcode 2
!!! (no error message)

Expected Results:  
Should compile without error.

Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040619-r1,
2.6.7-gentoo-r9)
=================================================================
System uname: 2.6.7-gentoo-r9 i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.5.2
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/bind /var/qmail/alias /var/qmail/control
/var/spool/fax/etc /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.binarycompass.org ftp://gentoo.ccccom.com
http://128.213.5.34/gentoo/ http://gentoo.seren.com/gentoo http://gentoo.ccccom.com"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X Xaw3d acl acpi acpi4linux alsa amd antlr apache2 apm arts
artswrappersuid avi berkdb bonobo caps cdr clamav crypt cups directfb dnd doc
droproot dv dvd dvdr encode esd ethereal evo expat f77 fam fbcon foomaticdb
foreign-package foreign-sysvinit freetds gb gcj gd gd-external gdbm gif ginac
gnome gnomedb gnuplot gpm gstreamer gtk gtk2 gtkhtml guile idea imap imlib
innodb ipv6jabber jack java javamail jdepend jikes jpeg jsch junit jython kde
kerberos ldap libg++ libgda libwww lids live log4j ltsp lua lzw-tiff mad maildir
matroska mbox mcal mdb memlimit mikmod mmx motif mozilla moznoirc moznomail mpeg
mysql ncurses nls nptl oav objc ocaml oci8 odbc ofx oggvorbis ooo-kde opengl
openssh oss pam parse-clocks pda pdflib pear-db perl pg-hier pic pie plotutils
png postgres ppds python qt quicktime radeon readline ruby ruby18 samba sasl sdk
sdl skey slang slp snmp speex spell sse ssl svga tcltk tcpd tetex theora tiff
truetype type1 unicode usb utf8 video_cards_radeon wmf wxwin wxwindows x86 xalan
xemacs xerces xml xml2 xmms xprint xv yahoo yv12 zeo zlib"
Comment 1 Howard B. Golden 2004-08-08 22:55:13 UTC
Created attachment 37077 [details, diff]
Upstream patch to ginsh/ginsh_parser.yy for ginac-1.2.2

Here is the upstream patch necessary to compile with readline-5.0 or previous
versions of readline. This patch is for ginac-1.2.2. However, except for line
numbers it should also work for 1.1.3 and 1.1.6.
Comment 2 Colin Macdonald 2004-08-12 16:31:22 UTC
I used the 1.1.6 ebuild and modified it slightly.  Works for me!  Will attach ebuild and patch.
Comment 3 Colin Macdonald 2004-08-12 16:33:46 UTC
Created attachment 37320 [details]
based on 1.1.6 ebuild in portage tree
Comment 4 Colin Macdonald 2004-08-12 16:34:48 UTC
Created attachment 37322 [details, diff]
based on reporters diff above

I just deleted a few lines at the top of the .diff file and saved it as .patch.
 Hope that is ok...
Comment 5 Colin Macdonald 2004-08-13 13:19:16 UTC
octave-forge 2004-07-07 (bug 60265) builds against 1.2.2.

(I don't know of any other software which depends on ginac?)
Comment 6 Howard B. Golden 2004-08-13 16:25:20 UTC
Christian Bauer has released ginac-1.2.3 today, which includes the patch shown above. I would suggest releasing ginac-1.2.3 after whatever testing is desired. I don't know how to test ginac myself, so I can't make a recommendation about it. (I can only see if it compiles or not. At this point I'm at the "playing around" stage only.)

If ginac-1.1.3 and/or ginac-1.1.6 are going to be maintained, then the patch above should be applied IMO.
Comment 7 Colin Macdonald 2004-08-20 19:18:16 UTC
1.2.3 builds fine for me using ebuild from 1.1.6.  Octave (bug 60265) builds against it.
Comment 8 Patrick Kursawe (RETIRED) gentoo-dev 2004-09-06 06:42:13 UTC
*** Bug 62551 has been marked as a duplicate of this bug. ***
Comment 9 Patrick Kursawe (RETIRED) gentoo-dev 2004-09-06 06:46:57 UTC
ORSA also can use ginac... going to test it. Since ginac 1.2 is suppposed to be almost completely source compatible with 1.1 I don't see much reason for keeping 1.1 around if orsa compiles. We'll see.
Comment 10 Patrick Kursawe (RETIRED) gentoo-dev 2004-09-07 02:19:31 UTC
Looks like ORSA likes the new ginac -> ginac 1.2.3 is in portage now.