I have some minor updates available to nsh.
Nothing ground breaking, and as always, more is needed.
The main nsh page is at: http://www.nmedia.net/nsh/
Please use this area for discussion about nsh.
I have some minor updates available to nsh.
Nothing ground breaking, and as always, more is needed.
The main nsh page is at: http://www.nmedia.net/nsh/
Please use this area for discussion about nsh.
You must be logged in to post a comment.
Hello Chris,
I’m trying to compile nsh under OpenBSD 4.8
I got this error message:
# make
cc -O -Wmissing-prototypes -Wformat -Wall -Wpointer-arith -Wbad-function-cast -c arp.c
sh /root/chris/nsh/2/nsh/compile.sh
cc -O -Wmissing-prototypes -Wformat -Wall -Wpointer-arith -Wbad-function-cast -c compile.c
cc -O -Wmissing-prototypes -Wformat -Wall -Wpointer-arith -Wbad-function-cast -c main.c
cc -O -Wmissing-prototypes -Wformat -Wall -Wpointer-arith -Wbad-function-cast -c genget.c
cc -O -Wmissing-prototypes -Wformat -Wall -Wpointer-arith -Wbad-function-cast -c commands.c
cc -O -Wmissing-prototypes -Wformat -Wall -Wpointer-arith -Wbad-function-cast -c stats.c
cc -O -Wmissing-prototypes -Wformat -Wall -Wpointer-arith -Wbad-function-cast -c routesys.c
cc -O -Wmissing-prototypes -Wformat -Wall -Wpointer-arith -Wbad-function-cast -c ctl.c
cc -O -Wmissing-prototypes -Wformat -Wall -Wpointer-arith -Wbad-function-cast -c show.c
show.c:498: error: static declaration of ‘line’ follows non-static declaration
externs.h:17: error: previous declaration of ‘line’ was here
*** Error code 1
Stop in /root/chris/nsh/2/nsh (line 92 of /usr/share/mk/sys.mk).
Can you help me with fixing this error please? Also i want to learn if nsh project will go on.
Thanks.
This was exposed by better declaration checking in gcc 4.2. It is already fixed in cvs. I’ll post a new snap shortly.
Thanks Chris.
I’ve checked cvs via http://www.nmedia.net/cgi-bin/cvsweb/nsh/ but could not find any new code. So how can i get this? Cheers!
I need to publish a new snapshot. My cvs tree is not automatically synced with the web-cvs.
Just an FYI for anyone finding this site, here’s the diff that let me build nsh on OpenBSD 4.8. (Please correct me if I’m wrong.)
Grr, the HTML filter blocked part of the diff. Let me try again.
498c498,499
< static char line[MAXHOSTNAMELEN];
—
> // static char line[MAXHOSTNAMELEN];
> extern char line[MAXHOSTNAMELEN];