[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building any ncurses source on Mac OS 10.1.5

From: Thomas Dickey
Subject: Re: Building any ncurses source on Mac OS 10.1.5
Date: Fri, 6 Feb 2004 17:30:52 -0500 (EST)

On Fri, 6 Feb 2004, Scott Corscadden wrote:

> Ah - I see. Well, assuming that I only need the most recent rollup then
> - with "patch-5.3-20040110.sh", still no luck:
> bash-2.05$ chmod u+x patch-5.3-20040110.sh
> bash-2.05$ ./patch-5.3-20040110.sh
> patching...
> cd ../objects;  cc -DHAVE_CONFIG_H -I../ncurses -I. -I. -I../include
> -I/usr/local/include/ncurses -O2  -no-cpp-precomp -c
> ../ncurses/lib_gen.c
> ../ncurses/lib_gen.c: In function `addch':
> ../ncurses/lib_gen.c:20: parse error before `%'

That's different (I seem to recall that error from one of the older
reports).  Basically the problem is that lib_gen.c is built using awk, sed
and the C preprocessor.  OSX's C preprocessor wants to be Objective C, and
behaves differently.  There are some workarounds to make tokens evaluate
(or not evaluate) in the script, and it's possible to analyze it and see
where the breakage occurs.

What I do for a first cut is to modify the script
ncurses/base/MKlib_gen.sh so it leaves its temporary files behind, rather
than remove them automatically.  That's a start - but it seems that the
real problem is in the last complicated step.  (Looking at the end of the
script, I see 9 pipes connecting pieces of it).  I (just now, for testing)
split up the part beginning with the C preprocessor so there are more
files to compare, and put the modified script and interesting generated
files in

If you put the modified script down, and make distclean/configure/make,
then the ncurses directory would have several files with "TEST" in their
names.  Comparing those against mine would at least show which step is

> > then another saying it doesn't).  I probably could fix it in a couple
> > of hours if I had that system available...
> >
> >> ../ncurses/lib_gen.c:640: unbalanced `#endif'
> >> ../ncurses/lib_gen.c:649: unbalanced `#endif'
> >> make[1]: *** [../objects/lib_gen.o] Error 1
> >> make: *** [all] Error 2
> >> bash-2.05$
> >
> > For patches, see the most recent patch-XXX.sh script in
> >     ftp://invisible-island.net/ncurses/5.3
> >
> > --
> > Thomas E. Dickey
> > http://invisible-island.net
> > ftp://invisible-island.net
> >

Thomas E. Dickey

reply via email to

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