bug-ncurses
[Top][All Lists]
Advanced

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

RE: AIX compilation problem


From: Saravanan Bellan
Subject: RE: AIX compilation problem
Date: Fri, 10 Oct 2003 20:49:40 -0700

With the latest rollup patch, ncurses-5.3-20031004-patch.sh.bz2, all my
problems are gone.

Thanks you so much.


> -----Original Message-----
> From: Saravanan Bellan 
> Sent: Wednesday, October 01, 2003 6:54 PM
> To: 'address@hidden'
> Subject: RE: AIX compilation problem
> 
> 
> When compiling with --with-caps=aix4 option , I get the following
> compilation error,
> 
>         cd ../objects;  gcc -DHAVE_CONFIG_H -I../ncurses -I.
> -D_XOPEN_SOURCE_EXTENDED -DNDEBUG -I. -I../include
> -I/usr/local/include/ncursesw -D_XOPEN_SOURCE=500 -D_ALL_SOURCE  -c
> ../ncurses/./tinfo/captoinfo.c
>         cd ../objects;  gcc -DHAVE_CONFIG_H -I../ncurses -I.
> -D_XOPEN_SOURCE_EXTENDED -DNDEBUG -I. -I../include
> -I/usr/local/include/ncursesw -D_XOPEN_SOURCE=500 -D_ALL_SOURCE  -c
> ../ncurses/codes.c
>         cd ../objects;  gcc -DHAVE_CONFIG_H -I../ncurses -I.
> -D_XOPEN_SOURCE_EXTENDED -DNDEBUG -I. -I../include
> -I/usr/local/include/ncursesw -D_XOPEN_SOURCE=500 -D_ALL_SOURCE  -c
> ../ncurses/comp_captab.c
> ../ncurses/comp_captab.c:1513: #error --> term.h and 
> comp_captab.c disagree
> about the <--
> ../ncurses/comp_captab.c:1514: #error --> numbers of booleans, numbers
> and/or strings <--
> ../ncurses/comp_captab.c:3018: #error --> term.h and 
> comp_captab.c disagree
> about the <--
> ../ncurses/comp_captab.c:3019: #error --> numbers of booleans, numbers
> and/or strings <--
> make: 1254-004 The error code from the last command is 1.
> 
> 
> Stop.
> make: 1254-004 The error code from the last command is 2.
> 
> Thanks for you help.
> -Sarva
> 
> 
> 
> > -----Original Message-----
> > From: Thomas Dickey [mailto:address@hidden
> > Sent: Wednesday, October 01, 2003 4:30 PM
> > To: Saravanan Bellan
> > Cc: 'address@hidden'
> > Subject: RE: AIX compilation problem
> > 
> > 
> > On Wed, 1 Oct 2003, Saravanan Bellan wrote:
> > 
> > > After I compile ncurses.5.3 on AIX 4.3, If I run any of the test
> > > programs, the screen is filled with garbage characters
> > > (like, 
> > "jmwuvtnnlqkxjmwuvtnvlqkxjmwuvtnalqkxjmwuvtnllqkxjmwuvtnilqkxjm")
> > 
> > is this related to the second problem?  (It's been a while 
> > since I tested
> > on AIX - early 2002 iirc - but I don't recall a problem 
> getting it to
> > build and run).
> > 
> > > ./configure CFLAGS="-D_XOPEN_SOURCE=500 -D_ALL_SOURCE"
> > >
> > > I get the same garbage with or without --enable-widec.
> > >
> > > Also I have to run any test program with 
> > TERMNFO=/usr/share/lib/terminfo
> > > set.
> > > Other wise I get 'Error Opening terminal: <term>'
> > 
> > That's easy to explain: ncurses and AIX terminfo are 
> > different formats.
> > There are alternate Caps.* files that I've made which can 
> be used when
> > compiling ncurses to adapt to some other formats, including 
> AIX (this
> > one I recall constructing for someone else who tested it).  See the
> > --with-caps configure option.
> > 
> > >
> > >
> > > > -----Original Message-----
> > > > From: Dan Kegel [mailto:address@hidden
> > > > Sent: Tuesday, September 23, 2003 8:41 PM
> > > > To: Saravanan Bellan
> > > > Cc: 'address@hidden'
> > > > Subject: Re: AIX compilation problem
> > > >
> > > >
> > > > Saravanan Bellan wrote:
> > > > > I was trying to compile ncurses 5.3 with the widec option
> > > > on AIX 4.3. After
> > > > > a lot of trial and error, I got it compiled after setting
> > > > the the following
> > > > > variables,
> > > > >
> > > > > $ ./configure CFLAGS="-D_XOPEN_SOURCE=500 -D_ALL_SOURCE"
> > > > --enable-widec
> > > > >
> > > > > _XOPEN_SOURCE used in wchar.h
> > > > > _ALL_SOURCE in sys/ioctl.h
> > > > >
> > > > > Can anyone explain what those variables mean?
> > > >
> > > > glibc uses similar defines.  From glibc's features.h:
> > > >
> > > > /* These are defined by the user (or the compiler)
> > > >     to specify the desired environment:
> > > >
> > > >     __STRICT_ANSI__  ISO Standard C.
> > > >     _ISOC99_SOURCE   Extensions to ISO C89 from ISO C99.
> > > >     _POSIX_SOURCE    IEEE Std 1003.1.
> > > >     _POSIX_C_SOURCE  If ==1, like _POSIX_SOURCE; if >=2 add
> > > > IEEE Std 1003.2;
> > > >              if >=199309L, add IEEE Std 1003.1b-1993;
> > > >              if >=199506L, add IEEE Std 1003.1c-1995
> > > >     _XOPEN_SOURCE    Includes POSIX and XPG things.  
> Set to 500 if
> > > >              Single Unix conformance is wanted, to 600 for the
> > > >              upcoming sixth revision.
> > > >     _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix 
> extensions.
> > > >     _LARGEFILE_SOURCE    Some more functions for correct 
> > standard I/O.
> > > >     _LARGEFILE64_SOURCE  Additional functionality from LFS
> > > > for large files.
> > > >     _FILE_OFFSET_BITS=N  Select default filesystem interface.
> > > >     _BSD_SOURCE      ISO C, POSIX, and 4.3BSD things.
> > > >     _SVID_SOURCE     ISO C, POSIX, and SVID things.
> > > >     _GNU_SOURCE      All of the above, plus GNU extensions.
> > > >     _REENTRANT       Select additionally reentrant object.
> > > >     _THREAD_SAFE     Same as _REENTRANT, often used by 
> > other systems.
> > > > ...
> > > >
> > > > --
> > > > Dan Kegel
> > > > http://www.kegel.com
> > > > 
> http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045
> > >
> >
> >
> > _______________________________________________
> > Bug-ncurses mailing list
> > address@hidden
> > http://mail.gnu.org/mailman/listinfo/bug-ncurses
> >
> 
> -- 
> Thomas E. Dickey
> http://invisible-island.net
> ftp://invisible-island.net
> 
> 
> _______________________________________________
> Bug-ncurses mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-ncurses
> 




reply via email to

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