Thread View: news.software.nn
4 messages
4 total messages
Started by Ken West
Sat, 17 Apr 1993 00:10
How do you compile under Solaris 2.1?
Author: Ken West
Date: Sat, 17 Apr 1993 00:10
Date: Sat, 17 Apr 1993 00:10
30 lines
1729 bytes
1729 bytes
Does anybody know the write incantation to get nn to compile and run under Solaris 2.1. I've tried most of the the obvious things and I get a persistent series of messages like the following: /usr/ucb/cc -Iconf -O -c term.c "/usr/ucbinclude/curses.h", line 76: syntax error before or at: '\b' "/usr/ucbinclude/curses.h", line 76: warning: old-style declaration; add "int" "/usr/ucbinclude/curses.h", line 76: warning: old-style declaration; add "int" "/usr/ucbinclude/curses.h", line 76: warning: old-style declaration; add "int" "/usr/ucbinclude/curses.h", line 76: warning: old-style declaration; add "int" .. Anybody had any luck getting this thing to compile? Thanks. ---------- Ken West Protocol Systems, Incorporated 8500 SW Creekside Place Beaverton, Oregon 97005-7107 (503) 526-8500 (503) 526-4200 FAX kenw@protocol.com ...uunet!protocol!kenw It's not safe out here! It's wonderous-- with things to satiate desires both subtle and gross... but it's not for the timid." --Q, "Q Who"
Re: How do you compile under Solaris 2.1?
Author: Richard M. Mathews
Date: Mon, 19 Apr 1993 22:44
Date: Mon, 19 Apr 1993 22:44
38 lines
1951 bytes
1951 bytes
kenw@protocol.com (Ken West) writes:
>Does anybody know the write incantation to get nn to compile
>and run under Solaris 2.1.
Well, first, I don't compile with /usr/ucb/cc (or with any BSD compatibility
stuff). Then I use the attached s-sunos5.h file (hopefully to be included
with patch 19). Finally, on Solaris for x86, I use m-sun386i.h. I find
that to be a better 386 header than m-i80386.h even when not running on
a 386i. For Solaris on Sparc, you would, of course, use m-sparc.h.
Richard M. Mathews D efend
E stonian-Latvian-Lithuanian
Richard.Mathews@West.Sun.COM I ndependence
------------------------s-sunos5.h-----------------------
/*
* For SunOS v5 (which is a component of Solaris v2)
* From: Richard M. Mathews (Richard.Mathews@West.Sun.COM) 1/7/93
* Mike Sullivan (Mike.Sullivan@Eng.Sun.COM)
* Works for both Solaris SPARC and Solaris X86.
*/
/*
* Sys V plus some
*/
#include "s-sys5.h"
#define HAVE_SYSLOG
#define SYSV_RESIZING
#define HAVE_JOBCONTROL
#ifdef NNTP
#include <memory.h>
#define bcopy(s1, s2, n) memcpy(s2, s1, n)
#define bzero(s1, n) memset(s1, 0, n)
#define EXTRA_LIB -lsocket -lnsl
#endif
Re: How do you compile under Solaris 2.1?
Author: ada chan
Date: Mon, 19 Apr 1993 22:50
Date: Mon, 19 Apr 1993 22:50
55 lines
2715 bytes
2715 bytes
In article <1993Apr17.001024.17783@protocol.com> kenw@protocol.com (Ken West) writes: >Does anybody know the write incantation to get nn to compile >and run under Solaris 2.1. I've tried most of the the >obvious things and I get a persistent series of messages >like the following: > >/usr/ucb/cc -Iconf -O -c term.c >"/usr/ucbinclude/curses.h", line 76: syntax error before or at: '\b' >"/usr/ucbinclude/curses.h", line 76: warning: old-style declaration; add "int" >"/usr/ucbinclude/curses.h", line 76: warning: old-style declaration; add "int" >"/usr/ucbinclude/curses.h", line 76: warning: old-style declaration; add "int" >"/usr/ucbinclude/curses.h", line 76: warning: old-style declaration; add "int" >... > >Anybody had any luck getting this thing to compile? > >Thanks. > >---------- > (signature deleted) I'm having a very similar problem. I am trying to compile nn 6.4.18 under Sun OS 4.1.2. I get the messages: cc -Iconf -g -target sun4 -c term.c "/usr/include/curses.h", line 42: syntax error at or near constant '\b' "/usr/include/curses.h", line 44: syntax error at or near constant '\r' "/usr/include/curses.h", line 47: syntax error at or near constant '\n' "term.c", line 125: undefined structure or union "term.c", line 125: undefined structure or union "term.c", line 210: c_cc undefined "term.c", line 210: VINTR undefined "term.c", line 367: TCGETA undefined "term.c", line 457: c_iflag undefine . . . The list goes on. My first problem was that I did not have term.h in /usr/include so the variable "auto_left_margin" was not defined. I fixed it by copying a term.h from some- where else. I don't know if there are any consequences to doing that or whether it's related to the above problem. If anyone has any ideas, I would appreciate knowing it also. Thank you. Ada Chan UC San Francisco, Library (415) 476-6867 P.S. I'm using Stanford U.'s account until I can get our own news set up.
Re: How do you compile under Solaris 2.1?
Author: Richard M. Mathews
Date: Tue, 20 Apr 1993 19:00
Date: Tue, 20 Apr 1993 19:00
69 lines
3355 bytes
3355 bytes
alc@leland.Stanford.EDU (ada chan) writes:
>I'm having a very similar problem. I am trying to compile nn 6.4.18 under Sun
>OS 4.1.2. I get the messages:
>cc -Iconf -g -target sun4 -c term.c
>"/usr/include/curses.h", line 42: syntax error at or near constant '\b'
Your problem is that nn's global.h defines BS to be '\b', but curses
expects BS to be a variable name. I would consider BS to have been a
very poor choices of names for either nn or curses to use. It would
probably be a good idea to change this in nn.
Below is the conf file from the version of nn we have running on SunOS 4.1.
Note that it uses s-sunos4-0.h rather than sunos4-v.h (I didn't do the
building of this, so I don't know why that choice was made or under what
circumstances s-sunos4-v.h does work).
Richard M. Mathews D efend
E stonian-Latvian-Lithuanian
Richard.Mathews@West.Sun.COM I ndependence
------------------------------------------------------------------------
VERSION="6.4.16"
INEWS="/var/spool/news/clients/bin/inews"
INEWS_DIR="/var/spool/news/clients/bin"
AWK="awk"
NNTP=true ACTIVE=/var/spool/news/clients/lib/nn/ACTIVE
NNTPCACHE=
LOG=/var/spool/news/clients/lib/nn/Log
TMP=${TMPDIR-/usr/tmp}
DB=/var/spool/news/clients/lib/nn
BIN=/var/spool/news/clients/bin
LIB=/var/spool/news/clients/lib/nn
RECMAIL="/usr/lib/sendmail -t"
SPOOL=/var/spool/news/spool
NLIB=/var/spool/news/lib
MASTER=/var/spool/news/bin
HELP=/var/spool/news/clients/lib/nn/help
DBDATA="/var/spool/news/clients/lib/nn/DATA"
DBSHORTNAME=false
OWNER=news GROUP=news
AUTH=false
#define RELEASE "6.4"
#include <stdio.h>
#include <ctype.h>
#define NETWORK_DATABASE
#define NNTP
#define NNTP_SERVER "server"
#define NNTP_POST
#include "s-sunos4-0.h"
#define DEFAULT_PAGER "more"
#define DEFAULT_PRINTER "lpr -p -JNEWS"
#define RESIZING
#include "m-sparc.h"
#define OWNER "news"
#define GROUP "news"
#define BIN_DIRECTORY "/var/spool/news/clients/bin"
#define LIB_DIRECTORY "/var/spool/news/clients/lib/nn"
#define MASTER_DIRECTORY "/var/spool/news/bin"
#define DB_DIRECTORY "/var/spool/news/clients/lib/nn"
#define DB_LONG_NAMES
#define NEWS_DIRECTORY "/var/spool/news/spool"
#define NEWS_LIB_DIRECTORY "/var/spool/news/lib"
#define INEWS_PATH "/var/spool/news/clients/bin/inews"
#define REC_MAIL "/usr/lib/sendmail -t"
#define HAVE_ROUTING
#define BUG_REPORT_ADDRESS "nn-bugs@dkuug.dk"
#define FOLDER_DIRECTORY "~/News"
#define NAME_LENGTH 16
#include "global.h"
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