bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-inetutils] Re: ‘ifconfig --help’ segfaults


From: Simon Josefsson
Subject: [bug-inetutils] Re: ‘ifconfig --help’ segfaults
Date: Mon, 15 Mar 2010 10:51:40 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)

address@hidden (Ludovic Courtès) writes:

> Next one is this (FreeBSD):
>
> gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib 
> -I../libinetutils        -g -O2 -c pty.c
> pty.c:24:17: error: pty.h: No such file or directory
> pty.c: In function 'startslave':
> pty.c:55: warning: implicit declaration of function 'forkpty'
> gmake[2]: *** [pty.o] Error 1

I recall posting a patch about this to gnulib some time ago, I also
tried building inetutils under Mac OS X.  I'll see if I can find it...

> and this (Darwin):
>
> gcc -std=gnu99  -g -O2   -o telnetd telnetd.o pty.o term.o utility.o state.o 
> termstat.o slc.o -L../libinetutils -linetutils -L../libtelnet -ltelnet 
> ../lib/libgnu.a -lncurses -lutil    -lresolv
> Undefined symbols:
>   "_endutent", referenced from:
>       _utmp_logout in libinetutils.a(utmp_logout.o)
>   "_getutline", referenced from:
>       _utmp_logout in libinetutils.a(utmp_logout.o)
>   "_pututline", referenced from:
>       _utmp_logout in libinetutils.a(utmp_logout.o)
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make[2]: *** [telnetd] Error 1
>
> The former is documented by Gnulib (info "(gnulib) pty.h").  Not sure
> about the latter.

We should not use getutent etc, but instead the utmps stuff.

/Simon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]