[5692] in Athena Bugs

home help back first fref pref prev next nref lref last post

et changes for AIX 1.1

daemon@ATHENA.MIT.EDU (John Carr)
Thu Aug 9 11:04:10 1990

To: bugs@ATHENA.MIT.EDU
Cc: dyer@ATHENA.MIT.EDU
Date: Thu, 09 Aug 90 11:03:49 EDT
From: John Carr <jfc@ATHENA.MIT.EDU>


1. Must allow choice of different versions of ranlib and install
   (this should really be under control of the top level Imake config
    files, but I changed this before I changed them)
   AIX does not need ranlib, and the default version of "install" does
   not act like BSD install.

2. The PS/2 has include files that match ANSI requirements, which
   is not what et expects.

*** internal.h.71R	Sun Jan  1 06:00:47 1989
--- internal.h	Tue Jul 31 20:00:53 1990
***************
*** 2,7 ****
--- 2,8 ----
   * internal include file for com_err package
   */
  #include "mit-sipb-copyright.h"
+ #ifndef AIX
  #ifndef __STDC__
  #undef const
  #define const
***************
*** 12,18 ****
  extern const int sys_nerr;
  
  #ifdef __STDC__
! int perror (const char *);
  #else
  int perror ();
  #endif
--- 13,24 ----
  extern const int sys_nerr;
  
  #ifdef __STDC__
! void perror (const char *);
  #else
  int perror ();
+ #endif
+ #else
+ #include <errno.h>
+ extern const char * const sys_errlist[];
+ extern int sys_nerr;
  #endif


*** Imakefile.71R	Thu May  3 11:13:37 1990
--- Imakefile	Tue Jul 31 20:07:40 1990
***************
*** 7,14 ****
  #	$Header: /afs/rel-eng.athena.mit.edu/project/release/current/source/athena/athena.lib/et/RCS/Imakefile,v 1.2 90/05/03 11:13:20 epeisach Exp $
  #	$Locker:  $
  #
! 
  CFLAGS=	-O
  #if defined(ultrix) && defined(mips) 
  # The -p on the decmips causes memory faults.
  LINTFLAGS=-uhvb
--- 7,21 ----
  #	$Header: /afs/rel-eng.athena.mit.edu/project/release/current/source/athena/athena.lib/et/RCS/Imakefile,v 1.2 90/05/03 11:13:20 epeisach Exp $
  #	$Locker:  $
  #
! #ifndef aix
  CFLAGS=	-O
+ INSTALL=install
+ RANLIB=ranlib
+ #else
+ CFLAGS= -O -DBSD -q
+ INSTALL=/usr/ucb/install
+ RANLIB=/bin/true
+ #endif
  #if defined(ultrix) && defined(mips) 
  # The -p on the decmips causes memory faults.
  LINTFLAGS=-uhvb
***************
*** 69,75 ****
  	mv $@.new $@
  
  .c.o:
! 	${CC} -c -pg ${CFLAGS} $*.c
  	mv $*.o profiled/$*.o
  	${CC} -c ${CFLAGS} $*.c
  
--- 76,82 ----
  	mv $@.new $@
  
  .c.o:
! 	${CC} -c -p ${CFLAGS} $*.c
  	mv $*.o profiled/$*.o
  	${CC} -c ${CFLAGS} $*.c
  
***************
*** 89,107 ****
  com_err.dvi: com_err.texinfo
  
  install:: all
! 	install -c -s compile_et ${DESTDIR}${BINDIR}/compile_et
! 	install -c -m 444 com_err.h ${DESTDIR}${INCDIR}/com_err.h
! 	install -c -m 444 mit-sipb-copyright.h \
  				${DESTDIR}${INCDIR}/mit-sipb-copyright.h
! 	install -c libcom_err.a ${DESTDIR}${LIBDIR}/libcom_err.a
! 	ranlib ${DESTDIR}${LIBDIR}/libcom_err.a
! 	install -c libcom_err_p.a ${DESTDIR}${LIBDIR}/libcom_err_p.a
! 	ranlib ${DESTDIR}${LIBDIR}/libcom_err_p.a
  	-mkdir ${DESTDIR}${DOCDIR}
! 	install -c com_err.texinfo ${DESTDIR}${DOCDIR}/com_err.texinfo
! 	install -c com_err.3 ${DESTDIR}/usr/man/man3/com_err.3
! 	install -c compile_et.1 ${DESTDIR}/usr/man/man1/compile_et.1
! 	install -c -m 644 llib-lcom_err.ln ${DESTDIR}${LINTDIR}/llib-lcom_err.ln
  
  TAGS:	et_name.c error_message.c compile_et.c error_table.c \
  		lex.yy.c perror.c init_et.c
--- 96,114 ----
  com_err.dvi: com_err.texinfo
  
  install:: all
! 	$(INSTALL) -c -s compile_et ${DESTDIR}${BINDIR}/compile_et
! 	$(INSTALL) -c -m 444 com_err.h ${DESTDIR}${INCDIR}/com_err.h
! 	$(INSTALL) -c -m 444 mit-sipb-copyright.h \
  				${DESTDIR}${INCDIR}/mit-sipb-copyright.h
! 	$(INSTALL) -c libcom_err.a ${DESTDIR}${LIBDIR}/libcom_err.a
! 	$(RANLIB) ${DESTDIR}${LIBDIR}/libcom_err.a
! 	$(INSTALL) -c libcom_err_p.a ${DESTDIR}${LIBDIR}/libcom_err_p.a
! 	$(RANLIB) ${DESTDIR}${LIBDIR}/libcom_err_p.a
  	-mkdir ${DESTDIR}${DOCDIR}
! 	$(INSTALL) -c com_err.texinfo ${DESTDIR}${DOCDIR}/com_err.texinfo
! 	$(INSTALL) -c com_err.3 ${DESTDIR}/usr/man/man3/com_err.3
! 	$(INSTALL) -c compile_et.1 ${DESTDIR}/usr/man/man1/compile_et.1
! 	$(INSTALL) -c -m 644 llib-lcom_err.ln ${DESTDIR}${LINTDIR}/llib-lcom_err.ln
  
  TAGS:	et_name.c error_message.c compile_et.c error_table.c \
  		lex.yy.c perror.c init_et.c
***************
*** 111,122 ****
  libcom_err.a:	$(LIBOBJS)
  	rm -f libcom_err.a
  	ar cruv libcom_err.a $(LIBOBJS)
! 	ranlib libcom_err.a
  
  libcom_err_p.a:	$(LIBOBJS)
  	rm -f libcom_err_p.a
  	(cd profiled; ar uv ../libcom_err_p.a $(LIBOBJS); \
! 		ranlib ../libcom_err_p.a)
  
  libcom_err.o:	$(LIBOBJS)
  	ld -r -s -o libcom_err.o $(LIBOBJS)
--- 118,129 ----
  libcom_err.a:	$(LIBOBJS)
  	rm -f libcom_err.a
  	ar cruv libcom_err.a $(LIBOBJS)
! 	$(RANLIB) libcom_err.a
  
  libcom_err_p.a:	$(LIBOBJS)
  	rm -f libcom_err_p.a
  	(cd profiled; ar uv ../libcom_err_p.a $(LIBOBJS); \
! 	$(RANLIB) ../libcom_err_p.a)
  
  libcom_err.o:	$(LIBOBJS)
  	ld -r -s -o libcom_err.o $(LIBOBJS)

home help back first fref pref prev next nref lref last post