Summary: | app-text/highlight-2.4.8 fails to compile | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | VinnieNZ <spamtrap+gentoo> |
Component: | Current packages | Assignee: | Gentoo SGML project <sgml> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | normal | CC: | tex, XL |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
URL: | http://www.andre-simon.de/dokuwiki/doku.php?id=en:installation_linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
VinnieNZ
2007-06-14 23:49:33 UTC
Sorry for the spam, but I forgot that I should probably add the fix here as well, incase the website doesn't work for some reason: * On RHEL 3 with gcc 3.x, this error appears re/Pattern.cpp: In member function `bool Pattern::quantifyCurly(int&, int&)’: re/Pattern.cpp:138: `isdigit’ undeclared (first use this function) To fix, simply edit highlight/re/Pattern.cpp and add #include <ctype.h> to the includes. A temporary work around is to extract the archive somewhere, edit the file as above, re-tar.bz2 up the directory and stick the new copy into /usr/portage/distfiles. Then change to /usr/portage/app-text/highlight and run a 'ebuild highlight-2.4.8.ebuild digest' and 'emerge -av app-text/highlight'. This allowed me to install highlight for the moment. Cannot confirm. The problem might occur due to the rather old version of "gcc" you are using. At least with "gcc-4.1.2" <ctype.h> is automatically included on some very nested level ... See "http://www.gentoo.org/doc/en/gcc-upgrading.xml" on how to upgrade gcc on gentoo. NOTE that upgrading gcc might break (parts of) your system, so be careful and make sure you've followed the instructions. Cheers, Axel Please try 2.6.9. *highlight-2.6.9 (04 May 2008) 04 May 2008; Samuli Suominen <drac@gentoo.org> +files/highlight-2.6.9-asneeded.patch, +files/highlight-2.6.9-gcc43.patch, +highlight-2.6.9.ebuild: Version bump with GCC 4.3 and -Wl,--as-needed patch by Peter Alfredsen. Can't test sorry. Since this bug was filed almost a year ago the machine has been retired for a new one, so this is no longer a problem for me. |