tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: deleting telnet/telnetd
On Thu, Dec 20, 2018 at 3:52 PM Rhialto <rhialto%falu.nl@localhost> wrote:
>
> On Wed 19 Dec 2018 at 22:10:22 -0800, John Nemeth wrote:
> > PuTTY comes with a built-in terminal emulator and GUI based
> > menus. As far as I know, there is no way use it via a CLI. If
> > somebody does know of one, please tell us.
>
> I suppose that the telnet protocol part can be used separetely.
>
> Trying to build putty-0.70 on NetBSD 8, it fails:
>
> gmake[1]: Entering directory '/home/rhialto/tmp/putty-0.70'
> depbase=`echo unix/uxpgnt.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
> gcc -DHAVE_CONFIG_H -I. -I././ -I./charset/ -I./windows/ -I./unix/ -I/usr/pkg/include/gtk-3.0 -I/usr/pkg/include/pango-1.0 -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include -I/usr/pkg/include/fribidi -I/usr/pkg/include/cairo -I/usr/X11R7/include/pixman-1 -I/usr/pkg/include/freetype2 -I/usr/pkg/include/uuid -I/usr/pkg/include/libpng16 -I/usr/X11R7/include -I/usr/pkg/include/harfbuzz -I/usr/pkg/include/gdk-pixbuf-2.0 -D_REENTRANT -I/usr/pkg/include/glib/gio-unix-2.0/ -D_REENTRANT -I/usr/pkg/include/atk-1.0 -D_REENTRANT -I/usr/pkg/include/at-spi2-atk/2.0 -I/usr/pkg/include/at-spi-2.0 -I/usr/pkg/include/dbus-1.0 -I/usr/pkg/lib/dbus-1.0/include -pthread -Wall -Werror -g -O2 -MT unix/uxpgnt.o -MD -MP -MF $depbase.Tpo -c -o unix/uxpgnt.o unix/uxpgnt.c &&\
> mv -f $depbase.Tpo $depbase.Po
> unix/uxpgnt.c: In function 'pageant_fork_and_print_env':
> unix/uxpgnt.c:272:9: error: too few arguments to function 'setpgrp'
> setpgrp();
> ^
> In file included from unix/uxpgnt.c:15:0:
> /usr/include/unistd.h:275:6: note: declared here
> int setpgrp(pid_t, pid_t); /* obsoleted by setpgid() */
> ^
>
> The comment above that line in unistd.h says
>
> /* XXX prototype wrong! */
> int setpgrp(pid_t, pid_t); /* obsoleted by setpgid() */
>
> Why do we have a known incorrect prototype there? It breaks software. It
> contradicts the manpage too.
>
> -Olaf.
> --
> ___ Olaf 'Rhialto' Seibert -- "What good is a Ring of Power
> \X/ rhialto/at/falu.nl -- if you're unable...to Speak." - Agent Elrond
Maybe we can use [1] to write new client. As we probably don't need a telnetd.
[1] https://github.com/seanmiddleditch/libtelnet
--
Regards.
Adam
Home |
Main Index |
Thread Index |
Old Index