[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-readline] build error in readline-5.x/examples/rlfe on solaris
From: |
Michael Haubenwallner |
Subject: |
[Bug-readline] build error in readline-5.x/examples/rlfe on solaris |
Date: |
Fri, 17 Nov 2006 11:20:57 +0100 |
Hi,
when building readline-5.2/examples/rlfe (same for 5.1 and 5.0) on
solaris10, it bails out with this error:
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 that solaris lacks a definition of __P in system headers like
found on linux.
Attached patch fixes that for 5.1 and 5.2.
Thanks,
haubi
--
Michael Haubenwallner SALOMON Automation GmbH
Forschung & Entwicklung A-8114 Friesach bei Graz
mailto:address@hidden http://www.salomon.at
No HTML/MIME please, see http://expita.com/nomime.html
readline-5.1-rlfe-extern.patch
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-readline] build error in readline-5.x/examples/rlfe on solaris,
Michael Haubenwallner <=