Thread View: news.software.nn
5 messages
5 total messages
Started by Jeffery Small
Fri, 07 Jan 2000 00:00
compiling nn 6.5.5 on Solaris 7
Author: Jeffery Small
Date: Fri, 07 Jan 2000 00:00
Date: Fri, 07 Jan 2000 00:00
53 lines
3154 bytes
3154 bytes
When compiling nn 6.5.5 on my Sparcstation 20/Solaris 7 machine, I get the
following problems with the file term.c using the standard s-sunos5.h and
m-sparc.h include files. Since the Solaris platform is so standard, I was
surprosed to dee this type of error. Before I dig too deeply into this I
was wondering if anyone else was having trouble like this on a Solaris 7.
Thanks.
--
C. Jeffery Small Architect CJSA LLC (206) 232-3338
jeff@cjsa.com 7000 E Mercer Way, Mercer Island, WA 98040
% cc -Iconf -O -c term.c
In file included from /usr/include/curses.h:23,
from term.c:34:
usr/include/widec.h:42: warning: `getwc' redefined
/usr/include/wchar.h:326: warning: this is the location of the previous definition
/usr/include/widec.h:43: warning: `putwc' redefined
/usr/include/wchar.h:329: warning: this is the location of the previous definition
/usr/include/widec.h:44: warning: `getwchar' redefined
/usr/include/wchar.h:327: warning: this is the location of the previous definition
/usr/include/widec.h:45: warning: `putwchar' redefined
/usr/include/wchar.h:330: warning: this is the location of the previous definition
In file included from term.c:39:
/usr/include/term.h:1060: field `Ottyb' has incomplete type
/usr/include/term.h:1061: field `Nttyb' has incomplete type
term.c: In function `enter_multi_key':
term.c:323: invalid use of undefined type `struct termio'
term.c: In function `init_term':
term.c:598: `raw_tty' has an incomplete type
term.c:601: invalid use of undefined type `struct termio'
term.c:602: invalid use of undefined type `struct termio'
term.c:603: invalid use of undefined type `struct termio'
term.c:604: invalid use of undefined type `struct termio'
term.c:607: invalid use of undefined type `struct termio'
term.c:608: invalid use of undefined type `struct termio'
term.c:608: invalid use of undefined type `struct termio'
term.c:609: invalid use of undefined type `struct termio'
term.c:651: invalid use of undefined type `struct termio'
term.c:652: invalid use of undefined type `struct termio'
term.c: In function `get_c':
term.c:1529: invalid use of undefined type `struct termio'
term.c: At top level:
term.c:235: storage size of `norm_tty' isn't known
term.c:235: storage size of `raw_tty' isn't known
*** Error code 1
make: Fatal error: Command failed for target `term.o'
Current working directory /u/src/usenet/nn/nn-6.5.5
*** Error code 1
make: Fatal error: Command failed for target `all'
Re: compiling nn 6.5.5 on Solaris 7
Author: Michael T Pins
Date: Fri, 07 Jan 2000 00:00
Date: Fri, 07 Jan 2000 00:00
22 lines
1729 bytes
1729 bytes
jeff@cjsa.com (Jeffery Small) writes: >When compiling nn 6.5.5 on my Sparcstation 20/Solaris 7 machine, I get the >following problems with the file term.c using the standard s-sunos5.h and >m-sparc.h include files. Since the Solaris platform is so standard, I was >surprosed to dee this type of error. Before I dig too deeply into this I >was wondering if anyone else was having trouble like this on a Solaris 7. It compiles/runs fine under Solaris 2.6 (in fact, that's my main development platform currently). I just tried it under Solaris 7, and sure enough term.c blows up. Looks like Sun broke something. I don't suppose you have a 2.6 box around you can compile it on? I'd really rather work on nn7 than spend more time hacking nn6. -- ************************************************************************** * Michael T Pins | mtpins@visi.com * * keeper of the nn sources | mtpins@icaen.uiowa.edu * * ftp://ftp.visi.com/users/mtpins | #include <std.disclaimer> *
Re: compiling nn 6.5.5 on Solaris 7
Author: Jeffery Small
Date: Fri, 07 Jan 2000 00:00
Date: Fri, 07 Jan 2000 00:00
40 lines
1995 bytes
1995 bytes
Thanks to both Michael and Porter for following up to my question. Porter's modification solved the problem for the moment. (I also apologize for the spelling errors in my previous post! :-)) -- C. Jeffery Small Architect CJSA LLC (206) 232-3338 jeff@cjsa.com 7000 E Mercer Way, Mercer Island, WA 98040 jpc@drum.msfc.nasa.gov (J. Porter Clark) writes: >What I ended up doing was something like this, which is really utterly >bad, stupid, silly, wrong, but it made the compile work for Sol 7 and >nothing else. The problem is that termio.h doesn't get included. >Didn't need this kludgery for Sol 2.6. >*** nn-6.5.4/term.c Wed Jun 9 13:19:01 1999 >--- nn-kludge/term.c Mon Oct 11 19:28:04 1999 >*************** >*** 32,38 **** > > #ifdef USE_TERMINFO > # include <curses.h> >! # ifndef VINTR > # include <termio.h> /* some systems don't include this in curses.h */ > # endif /* VINTR */ > # ifndef auto_left_margin >--- 32,38 ---- > > #ifdef USE_TERMINFO > # include <curses.h> >! # ifdef VINTR > # include <termio.h> /* some systems don't include this in curses.h */ > # endif /* VINTR */ > # ifndef auto_left_margin >-- >J. Porter Clark porter.clark@msfc.nasa.gov >NASA/MSFC Computers and Data Systems Group
Re: compiling nn 6.5.5 on Solaris 7
Author: J. Porter Clark
Date: Fri, 07 Jan 2000 00:00
Date: Fri, 07 Jan 2000 00:00
40 lines
2035 bytes
2035 bytes
jeff@cjsa.com (Jeffery Small) writes: >When compiling nn 6.5.5 on my Sparcstation 20/Solaris 7 machine, I get the >following problems with the file term.c using the standard s-sunos5.h and >m-sparc.h include files. Since the Solaris platform is so standard, I was >surprosed to dee this type of error. Before I dig too deeply into this I >was wondering if anyone else was having trouble like this on a Solaris 7. Me too. What I ended up doing was something like this, which is really utterly bad, stupid, silly, wrong, but it made the compile work for Sol 7 and nothing else. The problem is that termio.h doesn't get included. Didn't need this kludgery for Sol 2.6. *** nn-6.5.4/term.c Wed Jun 9 13:19:01 1999 --- nn-kludge/term.c Mon Oct 11 19:28:04 1999 *************** *** 32,38 **** #ifdef USE_TERMINFO # include <curses.h> ! # ifndef VINTR # include <termio.h> /* some systems don't include this in curses.h */ # endif /* VINTR */ # ifndef auto_left_margin --- 32,38 ---- #ifdef USE_TERMINFO # include <curses.h> ! # ifdef VINTR # include <termio.h> /* some systems don't include this in curses.h */ # endif /* VINTR */ # ifndef auto_left_margin -- J. Porter Clark porter.clark@msfc.nasa.gov NASA/MSFC Computers and Data Systems Group
Re: compiling nn 6.5.5 on Solaris 7
Author: Michael T Pins
Date: Sat, 08 Jan 2000 00:00
Date: Sat, 08 Jan 2000 00:00
76 lines
3050 bytes
3050 bytes
jpc@drum.msfc.nasa.gov (J. Porter Clark) writes: >jeff@cjsa.com (Jeffery Small) writes: >>When compiling nn 6.5.5 on my Sparcstation 20/Solaris 7 machine, I get the >>following problems with the file term.c using the standard s-sunos5.h and >>m-sparc.h include files. Since the Solaris platform is so standard, I was >>surprosed to dee this type of error. Before I dig too deeply into this I >>was wondering if anyone else was having trouble like this on a Solaris 7. >Me too. >What I ended up doing was something like this, which is really utterly >bad, stupid, silly, wrong, but it made the compile work for Sol 7 and >nothing else. The problem is that termio.h doesn't get included. >Didn't need this kludgery for Sol 2.6. And with that helpful tip, I found it. Sun rewrote sys/ptem.h, and added an #include <sys/termios.h>, which doesn't include <sys/termio.h>, but does add the define for VINTR. %$@$# Sun. Actual patch for this (which also stops a few warnings added by more Sun screwups): diff -rc nn-6.5.5/term.c nn-sol7/term.c *** nn-6.5.5/term.c Wed Jun 9 13:19:01 1999 --- nn-sol7/term.c Sat Jan 8 00:13:51 2000 *************** *** 14,24 **** #ifdef RESIZING #include <sys/ioctl.h> /* for TIOCGWINSZ */ - #ifdef SYSV_RESIZING - #include <sys/stream.h> - #include <sys/ptem.h> - #endif /* SYSV_RESIZING */ - extern int s_resized; #endif /* RESIZING */ --- 14,19 ---- *************** *** 52,57 **** --- 47,57 ---- #endif /* __FreeBSD__ */ #endif + #ifdef SYSV_RESIZING + #include <sys/stream.h> + #include <sys/ptem.h> + #endif /* SYSV_RESIZING */ + /* SYSV curses.h clash */ #undef raw diff -rc nn-6.5.5/conf/s-sunos5.h nn-sol7/conf/s-sunos5.h *** nn-6.5.5/conf/s-sunos5.h Sat Apr 29 00:34:14 1995 --- nn-sol7/conf/s-sunos5.h Sat Jan 8 00:09:56 2000 *************** *** 17,19 **** --- 17,21 ---- #include "s-sys5-4.h" /* add and Solaris/SunOS5 *specific* stuff here */ + + #define COMPILER_FLAGS -D_MSE_INT_H -- ************************************************************************** * Michael T Pins | mtpins@visi.com * * keeper of the nn sources | mtpins@icaen.uiowa.edu * * ftp://ftp.visi.com/users/mtpins | #include <std.disclaimer> *
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads