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"
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.
I used the 1.1.6 ebuild and modified it slightly. Works for me! Will attach ebuild and patch.
Created attachment 37320 [details] based on 1.1.6 ebuild in portage tree
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...
octave-forge 2004-07-07 (bug 60265) builds against 1.2.2. (I don't know of any other software which depends on ginac?)
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.
1.2.3 builds fine for me using ebuild from 1.1.6. Octave (bug 60265) builds against it.
*** Bug 62551 has been marked as a duplicate of this bug. ***
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.
Looks like ORSA likes the new ginac -> ginac 1.2.3 is in portage now.