Thanks for the patch! I applied it on readline-5.2 which I added to the tree for the occasion ;)
On 16-11-2006 09:50:04 +0100, Michael Haubenwallner wrote: > Hi, > > emerging sys-libs/readline-5.1_p4 bails out with this error: > > i386-sun-solaris2.10-gcc -c -I. -I. -pipe -O2 rlfe.c > In file included from rlfe.c:76: > extern.h:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before > '__P' > extern.h:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before > '__P' > rlfe.c: In function 'set_edit_mode': > rlfe.c:763: warning: incompatible implicit declaration of built-in function > 'index' > make: *** [rlfe.o] Error 1 > > > Reason is (compared with x86 Gentoo Linux), that Solaris does not > provide "#define __P" in system headers as found on Linux. > > Attached patch fixes that. > > /haubi/ > -- > Michael Haubenwallner SALOMON Automation GmbH > Forschung & Entwicklung A-8114 Friesach bei Graz > mailto:[EMAIL PROTECTED] http://www.salomon.at > No HTML/MIME please, see http://expita.com/nomime.html > Index: sys-libs/readline/files/readline-5.1-rlfe-extern.patch > =================================================================== > --- sys-libs/readline/files/readline-5.1-rlfe-extern.patch (revision 0) > +++ sys-libs/readline/files/readline-5.1-rlfe-extern.patch (revision 0) > @@ -0,0 +1,17 @@ > +--- examples/rlfe/extern.h.orig 2006-09-28 11:33:35.372527000 +0200 > ++++ examples/rlfe/extern.h 2006-09-28 11:39:01.460499000 +0200 > +@@ -27,6 +27,14 @@ > + #define __attribute__(x) > + #endif > + > ++#ifndef __P > ++# if defined(__STDC__) || defined(__cplusplus) > ++# define __P(p) p > ++# else > ++# define __P > ++# endif > ++#endif /* __P */ > ++ > + /* pty.c */ > + extern int OpenPTY __P((char **)); > + extern void InitPTY __P((int)); > Index: sys-libs/readline/readline-5.1_p4.ebuild > =================================================================== > --- sys-libs/readline/readline-5.1_p4.ebuild (revision 2336) > +++ sys-libs/readline/readline-5.1_p4.ebuild (working copy) > @@ -50,6 +50,7 @@ > epatch "${FILESDIR}"/${MY_P}-rlfe-build.patch #116483 > epatch "${FILESDIR}"/${MY_P}-rlfe-uclibc.patch > epatch "${FILESDIR}"/${MY_P}-rlfe-libutil.patch > + epatch "${FILESDIR}"/${MY_P}-rlfe-extern.patch > > ln -s ../.. examples/rlfe/readline > -- Fabian Groffen Gentoo on a different level -- [EMAIL PROTECTED] mailing list
