Here is a problem I got when configuring jaco3
[alleon@localhost jaco3]$ sh autogen.sh
**Warning**: I am going to run `configure' with no
arguments.
If you wish to pass any to it, please specify them on
the
`autogen.sh' command line.
processing .
checking perl version >= 5.5.3... yes
checking mico version >= 2.3.0... yes
checking for tclsh... (cached) /usr/bin/tclsh
checking for tcl.h... (cached) yes
checking tcl version >= 8.0... yes
checking expect version >= 5.28.1... yes
checking if openldap is wanted... required
checking for ldapmodify... (cached)
/usr/local/bin/ldapmodify
checking for slapd... (cached) /usr/sbin/slapd
checking for ldappasswd... (cached)
/usr/local/bin/ldappasswd
checking for openldap/ldap.h... (cached) no
checking for ldap.h... (cached) yes
checking if readline is wanted... required
checking for readline/readline.h... (cached) yes
checking trying to compile with readline... configure:
error: compile failed proably wrong readline version
...
I catch the program used to test readline, it looks
like:
#include "confdefs.h"
#include <stdio.h>
#include <readline/readline.h>
int main() {
readline("readlinetest");
; return 0; }
If I did gcc -c -Wall program.c
If I did g++ -c -Wall program.c, I get this:
In file included from
/usr/local/include/readline/keymaps.h:37,
from
/usr/local/include/readline/readline.h:36,
from truc.c:3:
/usr/local/include/readline/rltypedefs.h:48: invalid
exception specifications
/usr/local/include/readline/rltypedefs.h:51: invalid
exception specifications
/usr/local/include/readline/rltypedefs.h:52: invalid
exception specifications
/usr/local/include/readline/rltypedefs.h:54: invalid
exception specifications
/usr/local/include/readline/rltypedefs.h:55: invalid
exception specifications
/usr/local/include/readline/rltypedefs.h:57: invalid
exception specifications
/usr/local/include/readline/rltypedefs.h:59: invalid
exception specifications
/usr/local/include/readline/rltypedefs.h:62: invalid
exception specifications
/usr/local/include/readline/rltypedefs.h:65: invalid
exception specifications
/usr/local/include/readline/rltypedefs.h:70: invalid
exception specifications
/usr/local/include/readline/rltypedefs.h:73: invalid
exception specifications
/usr/local/include/readline/rltypedefs.h:75: invalid
exception specifications
/usr/local/include/readline/rltypedefs.h:76: invalid
exception specifications
/usr/local/include/readline/rltypedefs.h:78: invalid
exception specifications
/usr/local/include/readline/rltypedefs.h:79: invalid
exception specifications
/usr/local/include/readline/rltypedefs.h:80: invalid
exception specifications
/usr/local/include/readline/rltypedefs.h:81: invalid
exception specifications
In file included from
/usr/local/include/readline/readline.h:37,
from truc.c:3:
/usr/local/include/readline/tilde.h:55: invalid
exception specifications
Any idea ... I use readline 4.2
Guillaume
Logged In: YES
user_id=34761
I use readline version 4.1 and it works fine, so this is
probably a version problem. I checked the readline changelog
and there are changes there that might have an impact.
The rltypedefs.h is a new file in readline 4.2 and the
problem only seem to occur in the c++ case. Since the tests
are compiled with mico-c++ this triggers the problem.
A probable workaround until we fix the problem is to use
readline version 4.1