Subject: building usr.bin/tn3270 still complains about deprecated symbol "unix"
To: None <current-users@netbsd.org>
From: Thorsten Frueauf <s_frueau@ira.uka.de>
List: current-users
Date: 09/02/1998 17:25:10
Hello!
Today I did upgrade (? :-) my laptop to current supped at 02.09.1998
running the "new" egcs. While I saw some discussion on how to fix
source that still relies on "unix" being defined and most of them are
"fixed" with adding "-Dunix" to the Makefile I still see the following
problem:
cd /src/usr.bin/tn3270
make cleandir
make depend
[...]
depend ===> tools/prt3270
cd /usr/src/usr.bin/tn3270/tools/prt3270/../mkhits; make
cc -O -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Werror -I/usr/src/usr.bin/tn3270/tools/mkhits/../../api -c /usr/src/usr.bin/tn3270/tools/mkhits/mkhits.c
/usr/src/usr.bin/tn3270/tools/mkhits/mkhits.c:70: warning: deprecated symbol "unix" is no longer predefined
*** Error code 1
I "fixed" this by the following diff, but I am not sure if thats the
proper way to solve this, and I wonder why
src/usr.bin/tn3270/Makefile.inc is not being included where -Dunix gets
set. So anyone telling me how to fix it properly?
---snip---
--- usr.bin/tn3270/tools/mkastods/Makefile-orig Tue Jan 13 15:54:24 1998
+++ usr.bin/tn3270/tools/mkastods/Makefile Wed Sep 2 12:52:35 1998
@@ -2,5 +2,6 @@
PROG= mkastods
SRCS= mkastods.c asc_ebc.c ebc_disp.c
+CPPFLAGS+= -Dunix
.include <bsd.prog.mk>
--- usr.bin/tn3270/tools/mkastosc/Makefile-orig Tue Jan 13 15:54:24 1998
+++ usr.bin/tn3270/tools/mkastosc/Makefile Wed Sep 2 12:50:39 1998
@@ -3,7 +3,7 @@
PROG= mkastosc
SRCS= mkastosc.c dohits.c asc_ebc.c ebc_disp.c
-CPPFLAGS+=-I${.CURDIR}/../mkhits
+CPPFLAGS+=-I${.CURDIR}/../mkhits -Dunix
.PATH: ${.CURDIR}/../mkhits
.include <bsd.prog.mk>
--- usr.bin/tn3270/tools/mkdstoas/Makefile-orig Tue Jan 13 15:54:24 1998
+++ usr.bin/tn3270/tools/mkdstoas/Makefile Wed Sep 2 12:53:30 1998
@@ -2,5 +2,6 @@
PROG= mkdstoas
SRCS= mkdstoas.c asc_ebc.c ebc_disp.c
+CPPFLAGS+= -Dunix
.include <bsd.prog.mk>
--- snip ---
Greets
--
Name : Thorsten Frueauf Milano@irc cri@onaliM //
E-Mail: s_frueau@ira.uka.de oder ukfy@rz.uni-karlsruhe.de \X/