[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


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 
extern.h:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
rlfe.c: In function 'set_edit_mode':
rlfe.c:763: warning: incompatible implicit declaration of built-in function 
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.

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

Attachment: readline-5.1-rlfe-extern.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]