mailing list of musl libc
 help / color / mirror / code / Atom feed
* inetutils issues
@ 2012-11-26  1:46 Matias A. Fonzo
  2012-11-26  2:54 ` Rich Felker
  0 siblings, 1 reply; 2+ messages in thread
From: Matias A. Fonzo @ 2012-11-26  1:46 UTC (permalink / raw)
  To: musl

Hi there,

GNU inetutils (the replacement of the BSD net-utils) needs two
missing legacy headers in order to have the following commands working:
tftp, ftp, and probably others.

arpa/tftp.h
arpa/ftp.h

Also the compilation fails with the file "utmp_login.c", who is trying
to look for some aliases on include/utmp.h - more specifically, these
aliases present on the include/utmp.h from Glibc, says:

/* Compatibility names for the strings of the canonical file names.  */
#define UTMP_FILE       _PATH_UTMP
#define UTMP_FILENAME   _PATH_UTMP
#define WTMP_FILE       _PATH_WTMP
#define WTMP_FILENAME   _PATH_WTMP

I've added the lines in the utmp.h provided by Musl just after the line
39, and the compilation has been passed. I want to know if this is
correct and if this can be solved in the upstream side.

Thanks,
Matias.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: inetutils issues
  2012-11-26  1:46 inetutils issues Matias A. Fonzo
@ 2012-11-26  2:54 ` Rich Felker
  0 siblings, 0 replies; 2+ messages in thread
From: Rich Felker @ 2012-11-26  2:54 UTC (permalink / raw)
  To: musl

On Sun, Nov 25, 2012 at 10:46:22PM -0300, Matias A. Fonzo wrote:
> Hi there,
> 
> GNU inetutils (the replacement of the BSD net-utils) needs two
> missing legacy headers in order to have the following commands working:
> tftp, ftp, and probably others.
> 
> arpa/tftp.h
> arpa/ftp.h

I don't have any fundamental objection to adding these.

> Also the compilation fails with the file "utmp_login.c", who is trying
> to look for some aliases on include/utmp.h - more specifically, these
> aliases present on the include/utmp.h from Glibc, says:
> 
> /* Compatibility names for the strings of the canonical file names.  */
> #define UTMP_FILE       _PATH_UTMP
> #define UTMP_FILENAME   _PATH_UTMP
> #define WTMP_FILE       _PATH_WTMP
> #define WTMP_FILENAME   _PATH_WTMP
> 
> I've added the lines in the utmp.h provided by Musl just after the line
> 39, and the compilation has been passed. I want to know if this is
> correct and if this can be solved in the upstream side.

Yes and no. The idea of omitting it is to signal to applications that
utmp and wtmp are not used/supported, but I doubt any apps pay
attention to this, so it might be better to just define the macros to
point to standard or dummy pathnames.... Anyone else have input on
this?

Rich


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-11-26  2:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-26  1:46 inetutils issues Matias A. Fonzo
2012-11-26  2:54 ` Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).