for x86-freebsd readline fails because it cannot find sgtty.h in examples/rlfe/os.h. sgtty is not provided by libc anymore in FreeBSD 8.0, so termios.h should be used, but only included by os.h if we have a POSIX define. Normally I would expect that a BSD triggers a POSIX, but it does not. So a fix would be to use a ifdef for FreeBSD, or has anybody another idea? By the way, readline 5 builds flawlessly.
I don't get a clue how POSIX is detected by readline's configure system...anybody can give me a hint?
give us your config.log
Created attachment 217068 [details] config.log #ifdef POSIX # include <termios.h> # ifdef hpux # include <bsdtty.h> # endif /* hpux */ # ifdef NCCS # define MAXCC NCCS # else # define MAXCC 256 # endif #else /* POSIX */ # ifdef TERMIO # include <termio.h> # ifdef NCC # define MAXCC NCC # else # define MAXCC 256 # endif # ifdef CYTERMIO # include <cytermio.h> # endif # else /* TERMIO */ # ifndef __INTERIX # include <sgtty.h> # endif # endif /* TERMIO */ #endif /* POSIX */
Created attachment 217071 [details] config.log #ifdef POSIX # include <termios.h> # ifdef hpux # include <bsdtty.h> # endif /* hpux */ # ifdef NCCS # define MAXCC NCCS # else # define MAXCC 256 # endif #else /* POSIX */ # ifdef TERMIO # include <termio.h> # ifdef NCC # define MAXCC NCC # else # define MAXCC 256 # endif # ifdef CYTERMIO # include <cytermio.h> # endif # else /* TERMIO */ # ifndef __INTERIX # include <sgtty.h> # endif # endif /* TERMIO */ #endif /* POSIX */
check your sys/param.h
Created attachment 217097 [details, diff] readline freebsd there, try that
duurtlang
Gentoo/FreeBSD did not suffer (that's the fact I wondered about) because they are based on FreeBSD 7, which still ships sgtty.h, while 8 (where I built the Prefix on) only has termios.h. So your patch is fine. Should I abandon older profiles for FreeBSD prefix completely?
so the patch will break older freebsd's, great. what profiles are you talking about? Aren't you on an freebsd/8.0/x64 (or similar) profile?
(In reply to comment #9) > so the patch will break older freebsd's, great. Not necessarily. I do not have an installation of FreeBSD 7, but as far as I understand, sgtty.h is shipped alongside termios.h in that releases. > what profiles are you talking about? Aren't you on an freebsd/8.0/x64 (or > similar) profile? I am, but should I delete the older ones as I won't be able to support them anyway?
no, leave the profiles as is
Can someone commit that patch as my commit system is not Prefix ready and will reject the ebuild name.
Thanks mduft
@base-system, can we get this patch on the main tree? It hits Gentoo/FreeBSD-8 too, and 7.2 didn't break with it.
So let's reopen, so it is not hidden in fixed bug pile.
i dont see a problem with the patch. you're going to send it to the bash list right ? ;)
Report sent. Will commit the patch later if no objections.
Fixed in CVS.