begin quoting Stewart C. Strait as of Wed, Nov 21, 2007 at 03:29:59AM -0800:
> On Sat, Nov 17, 2007 at 08:17:48PM -0800, James G. Sack (jim) wrote:
> > Stewart C. Strait wrote:
> > > I'm trying to link an ncurses C application that built ok on RH 7,
> > > but on Ubuntu 7.10 I get the fatal link error:
> > >
> > > undefined reference to '__ctype_b'
> ...
Perhaps a search of all the various include files on the RH 7 box would
find out what ctype_b is defined as.
On neither of my Solaris boxes do I find any string 'ctype_b', nor is it
a basic C type... so it would be interesting to find out of it's a
typdef or a #define or what, and what it's defined as.
Of course, I don't have ncurses installed:
% find /usr/include/ -type f -exec grep -l ctype_b {} \;
% find /usr/include/ -name '*curse*'
/usr/include/curses.h
%
[snip]
> It's the other way around. ncurses has __ctype_b,
> libc does not. It has a newer replacement for it. It looks
> like ncurses needs rewriting to build with this libc, but I'm not
> sure. Where are these gurus? Is there a Google search that
> would reveal any of their writings?
The one link mentionied that __ctype_b was 'replaced with' __ctype_b_loc
(for better locale support); one potential solution would be to (a) verify
that you have __ctype_b_loc defined on the ubuntu system, (b) verify that
none of your sources uses __ctype_b_loc, and (c) do a global replace of
ctype_b with ctype_b_loc.
Localization is a wonderful thing, perhaps, but I can't say that I've
been impressed with most of the so-called "solutions"; but then, that's
just me. I have my own way of approaching problems, and my weighting of
concerns don't always match anyone else's.
--
See this log in my own eye? Good. Now, about the splinter in yours...
Stewart Stremler
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg