1 With -Werror=implicit-function-declaration prototypes must exist.
3 mod_wrap doesn't need -lnsl (it's dependency of libwrap on some systems).
5 --- proftpd-1.3.7a/configure.in.orig 2020-08-30 11:46:50.771847975 +0200
6 +++ proftpd-1.3.7a/configure.in 2020-08-30 12:26:24.125657081 +0200
9 dnl Checks for libraries. Yes, this is the hard way, but it's necessary.
10 AC_CACHE_CHECK(for standalone crypt,pr_cv_lib_standalone_crypt,
11 - AC_TRY_LINK(,[crypt();],
13 + #define _MISC_SOURCE
16 pr_cv_lib_standalone_crypt="yes", pr_cv_lib_standalone_crypt="no" ))
18 if test "$pr_cv_lib_standalone_crypt" = "no"; then
22 AC_CACHE_CHECK(for standalone gethostbyname,pr_cv_lib_standalone_gethost,
23 - AC_TRY_LINK(,[gethostbyname();],
24 + AC_TRY_LINK([#include <netdb.h>],[gethostbyname("");],
25 pr_cv_lib_standalone_gethost="yes",
26 pr_cv_lib_standalone_gethost="no" ))
28 @@ -1385,7 +1388,12 @@
31 AC_CACHE_CHECK(for standalone inet_aton,pr_cv_lib_standalone_aton,
32 - AC_TRY_LINK(,[inet_aton();],
34 + #define _DEFAULT_SOURCE
35 + #include <sys/socket.h>
36 + #include <netinet/in.h>
37 + #include <arpa/inet.h>
38 + ],[inet_aton("", (void*)0);],
39 pr_cv_lib_standalone_aton="yes",
40 pr_cv_lib_standalone_aton="no" ))
45 AC_CACHE_CHECK(for standalone nsl functions,pr_cv_lib_standalone_nsl,[
46 - AC_TRY_LINK(,[gethostent();],
47 + AC_TRY_LINK([#include <netdb.h>],[gethostent();],
48 pr_cv_lib_standalone_nsl="yes", pr_cv_lib_standalone_nsl="no") ])
50 if test "$pr_cv_lib_standalone_nsl" = "no"; then
54 AC_CACHE_CHECK(for standalone socket functions,pr_cv_lib_standalone_sockets,
55 - AC_TRY_LINK(,[bind();],
56 + AC_TRY_LINK([#include <sys/socket.h>],[bind(0, (void*)0, 0);],
57 pr_cv_lib_standalone_sockets="yes", pr_cv_lib_standalone_sockets="no"))
59 if test "$pr_cv_lib_standalone_sockets" = "no"; then
60 --- proftpd-1.3.7a/contrib/mod_wrap.c.orig 2020-08-30 12:55:56.649387829 +0200
61 +++ proftpd-1.3.7a/contrib/mod_wrap.c 2020-08-30 12:56:04.492678672 +0200
63 * the source code for OpenSSL in the source distribution.
65 * -- DO NOT MODIFY THE TWO LINES BELOW --
66 - * $Libraries: -lwrap -lnsl$
67 + * $Libraries: -lwrap$
70 #define MOD_WRAP_VERSION "mod_wrap/1.2.4"