Sony NEWS-OS 3.3: Unterschied zwischen den Versionen

Aus Knowledgebase
Zur Navigation springen Zur Suche springen
Zeile 15: Zeile 15:
  
 
--------------
 
--------------
 +
 
.cshrc:
 
.cshrc:
  
Zeile 63: Zeile 64:
 
---------
 
---------
  
gawk 3.0.6
+
'''gawk 3.0.6:'''
protos.h
+
protos.h
typedef int mode_t;
+
typedef int mode_t;
config.h:
+
config.h:
#undef STRTOD
+
#undef STRTOD
  
 
----------------
 
----------------
Zeile 79: Zeile 80:
 
----------------
 
----------------
  
tin-2.4.4-snapshot:
+
'''tin-2.4.4-snapshot:'''
  
./configure --enable-nntp-only --with-domain=pcde.inka.de --with-nntp-default-server=news.akk.org --disable-nls --enable-broken-system-fix m68k-sony-newsos3.3 --with-shell=/usr/local/bin/bash --with-editor=/usr/local/bin/vim --with-domain=pcde.inka.de  
+
./configure --enable-nntp-only --with-domain=pcde.inka.de --with-nntp-default-server=news.akk.org --disable-nls --enable-broken-system-fix m68k-sony-newsos3.3 --with-shell=/usr/local/bin/bash --with-editor=/usr/local/bin/vim --with-domain=pcde.inka.de  
  
include/autoconf.h
+
include/autoconf.h
#      define DECL_FREE 1
+
#      define DECL_FREE 1
#      define DECL_MALLOC 1
+
#      define DECL_MALLOC 1
#      define DECL_REALLOC 1
+
#      define DECL_REALLOC 1
  
add to pcre/pcre_globals.c:
+
add to pcre/pcre_globals.c:
  
extern void *malloc(size_t);
+
extern void *malloc(size_t);
extern void *realloc(void *, size_t);
+
extern void *realloc(void *, size_t);
extern void free(void *);
+
extern void free(void *);
  
pcre/dftables.c:
+
pcre/dftables.c:
NEWS-OS3.3 fopen() doesn't understand argument "wb", but fails
+
NEWS-OS3.3 fopen() doesn't understand argument "wb", but fails
silently, rather then giving an error message.
+
silently, rather then giving an error message.
Change to "w+"
+
Change to "w+"
  
also needs tolower and toupper fixes.
+
also needs tolower and toupper fixes.
  
 
---------------------------------
 
---------------------------------
  
make-3.77:
+
'''make-3.77:'''
#define NULL 0
+
#define NULL 0
typedef int size_t;
+
typedef int size_t;
doesn't work
+
doesn't work
  
make-3.76.1:
+
'''make-3.76.1:'''
works
+
works
  
grep-2.4.2
+
'''grep-2.4.2: FAILs'''
edit src/system.h to undef HAVE unistd.h
+
edit src/system.h to undef HAVE unistd.h
SEEK_CUR needs to be defined.
+
SEEK_CUR needs to be defined.
lseek lives in <sys/file.h>
+
lseek lives in <sys/file.h>
NEWS-OS doesn't have strcoll()
+
NEWS-OS doesn't have strcoll()
doesn't work
+
doesn't work
  
  
grep-2.2:
+
'''grep-2.2:'''
works
+
works
  
  
m4-1.4.5: FAIL
+
'''m4-1.4.5: FAIL'''
NEWS-OS doesn't know about MB_CUR_MAX
+
NEWS-OS doesn't know about MB_CUR_MAX
doesn't work.
+
doesn't work.
  
  
m4-1.4.3:
+
'''m4-1.4.3:'''
works
+
works
  
top-3.3:
 
NEWS-OS doesn't have pid_t
 
typedef int pid_t;
 
  
 +
'''top-3.3:'''
 +
NEWS-OS doesn't have pid_t
 +
typedef int pid_t;
  
vim-4.6:
 
  
add
+
'''vim-4.6:'''
#include <sys/file.h>
+
add
#ifndef SEEK_SET
+
#include <sys/file.h>
#define SEEK_SET 0
+
#ifndef SEEK_SET
#endif
+
#define SEEK_SET 0
 +
#endif
 +
#ifndef SEEK_END
 +
#define SEEK_END 2
 +
#endif
  
#ifndef SEEK_END
+
to:
#define SEEK_END 2
+
fileio.c
#endif
+
memfile.c
 +
memline.c
  
to:
+
also needs strstr()
fileio.c
+
use libmissing
memfile.c
 
memline.c
 
  
also needs strstr()
+
NEWS-OS doesn't have dirent.h.
use libmissing
+
Replace #include dirent.h with sys/dir.h in ctags/ctags.c
  
 
+
won't compile ctags. don't use ctags. vim alone works.
NEWS-OS doesn't have dirent.h.
 
Replace #include dirent.h with sys/dir.h in ctags/ctags.c
 
 
 
won't compile ctags. don't use ctags. vim alone works.
 
  
  
Zeile 174: Zeile 173:
 
-------------
 
-------------
  
#ifndef SEEK_SET
+
#ifndef SEEK_SET
#define SEEK_SET 0
+
#define SEEK_SET 0
#endif
+
#endif
  
#ifndef SEEK_END
+
#ifndef SEEK_END
#define SEEK_END 2
+
#define SEEK_END 2
#endif
+
#endif
  
 
-------------
 
-------------
  
#ifndef L_tmpnam
+
#ifndef L_tmpnam
#define L_tmpnam 25
+
#define L_tmpnam 25
#endif
+
#endif
  
 
-------------
 
-------------
  
binutils-2.9.1: FAIL
+
'''binutils-2.9.1: FAIL'''
 
+
gas needs to be like a Sun3. doesn't work.
gas needs to be like a Sun3. doesn't work.
 
  
 
-------------
 
-------------

Version vom 3. April 2019, 01:16 Uhr

Sony NEWS-OS 3.3 on NEWS-1850


NEWS-OS 3.3 is a pretty straight 4.3BSD (Tahoe?). The NEWS-1850 is a dual M68030 machine (25MHz; one of the 030 is an "I/O processor") with 16MB of RAM soldered.

NEWS-OS 3.3
Sony NEWS 1850 workstation

It is not possible to change root's HOME directory to /root...


.cshrc:

if ($term == xterm-256color) then
       setenv TERM vt100
endif



.profile:

if [ $TERM = "xterm-256color" ]
   then TERM=vt100; export TERM
fi
# set a fancy prompt
PS1='\u@\h:\w\$ '
export PS1

make-3.75

gcc-2.7.2.3:

./configure --enable-languages=c

cpplib.c:

#ifndef errno
extern int errno;
#endif


gcc-2.95.3: FAILS

needs
CONFIG_SHELL=/bin/bash
SHELL=/bin/bash
--enable-languages=c --disable-nls --disable-multilib
fix Makefile. remove c++ from LANGUAGES
libiberty:
size_t is declared in <stddef.h>
mkstemp.c | size_t
setenv.c  | size_t, NULL undefined
failes with internal compiler error 4

gawk 3.0.6:

protos.h
typedef int mode_t;
config.h:
#undef STRTOD

NEWS-OS doesn't know about struct dirent


NEWS-OS has buggy tolower() and topper().


tin-2.4.4-snapshot:

./configure --enable-nntp-only --with-domain=pcde.inka.de --with-nntp-default-server=news.akk.org --disable-nls --enable-broken-system-fix m68k-sony-newsos3.3 --with-shell=/usr/local/bin/bash --with-editor=/usr/local/bin/vim --with-domain=pcde.inka.de 
include/autoconf.h
#       define DECL_FREE 1
#       define DECL_MALLOC 1
#       define DECL_REALLOC 1
add to pcre/pcre_globals.c:
extern void *malloc(size_t);
extern void *realloc(void *, size_t);
extern void free(void *);
pcre/dftables.c:
NEWS-OS3.3 fopen() doesn't understand argument "wb", but fails
silently, rather then giving an error message.
Change to "w+"
also needs tolower and toupper fixes.

make-3.77:

#define NULL 0
typedef int size_t;
doesn't work

make-3.76.1:

works

grep-2.4.2: FAILs

edit src/system.h to undef HAVE unistd.h
SEEK_CUR needs to be defined.
lseek lives in <sys/file.h>
NEWS-OS doesn't have strcoll()
doesn't work


grep-2.2:

works


m4-1.4.5: FAIL

NEWS-OS doesn't know about MB_CUR_MAX
doesn't work.


m4-1.4.3:

works


top-3.3:

NEWS-OS doesn't have pid_t
typedef int pid_t;


vim-4.6:

add
#include <sys/file.h>
#ifndef SEEK_SET
#define SEEK_SET 0
#endif
#ifndef SEEK_END
#define SEEK_END 2
#endif
to:
fileio.c
memfile.c
memline.c
also needs strstr()
use libmissing
NEWS-OS doesn't have dirent.h.
Replace #include dirent.h with sys/dir.h in ctags/ctags.c
won't compile ctags. don't use ctags. vim alone works.



/usr/local/lib/gcc-lib/m68k-sony-newsos/2.7.2.3/include/machine/machparam.h:88: /warning: /*' within comment

apparent bug in news-os include files. fix in /usr/local/lib/gcc-lib/m68k-sony-newsos/2.7.2.3/include/machine/machparam.h and in /usr/include/include/machine/machparam.h


#ifndef SEEK_SET
#define SEEK_SET 0
#endif
#ifndef SEEK_END
#define SEEK_END 2
#endif

#ifndef L_tmpnam
#define L_tmpnam 25
#endif

binutils-2.9.1: FAIL

gas needs to be like a Sun3. doesn't work.

libmissing: remove strftime.o and uname.o, because it won't compile