bug-inetutils
[Top][All Lists]
Advanced

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

Re: [bug-inetutils] NetBSD support.


From: Mats Erik Andersson
Subject: Re: [bug-inetutils] NetBSD support.
Date: Thu, 1 Dec 2011 22:53:06 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

torsdag den  1 december 2011 klockan 13:19 skrev Mats Erik Andersson detta:
> Dear all,
> 
> the patch text below is all that is needed to support NetBSD 5.1.
> The resulting binaries pass every test, except "ftp-localhost"
> due to the usual lack of a user "ftp".

This is not accurate, unfortunately. The problem is that "ftp" is
disabled by the configuration script! This slipped me.

The issue lies in their implementation of readline support.
Consider a standard test snippet:

  #include <stdio.h>
  #include <readline/readline.h>

  int main() {
     readline(NULL);
     return 0;
  }

Successful compilation boils down to:

   Glibc, Solaris, FreeBSD:

         gcc test.c -lreadline

   OpenBSD:

         gcc test.c -lreadline -lcurses    (or -lncurses)

   NetBSD:

         gcc test.c -ledit

Observe the different linking library. Presently, our "configure.ac"
is not able to implement this, since it only tests with "-lreadline",
which does not even exist in NetBSD 5.1. Therefore I get

   ftp_BUILD =

thus disabling the build of a FTP client.

The good thing is, that when I do the steps manually, finishing off with

    gcc ... -o ftp *.o "libraries" -ledit

then I do get a functional FTP client also in NetBSD 5.1.

Simon, could you refine the testing in "configure.ac" so far as to be
inserting "-ledit" on NetBSD?

Regards,

  Mats



reply via email to

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