Running phase: unpackPhase
unpacking source archive /nix/store/vfg2sacli4kwq69f7lvdv6vdh6zzgvpz-pptpd-1.4.0.tar.gz
source root is pptpd-1.4.0
setting SOURCE_DATE_EPOCH to timestamp 1382511757 of file "pptpd-1.4.0/Makefile.in"
Running phase: patchPhase
applying patch /nix/store/f91kkaqdj82ix3brmys5jagp8ymnkgzn-ppp-2.5.0-compat.patch
patching file plugins/pptpd-logwtmp.c
substituteStream() in derivation pptpd-1.4.0: WARNING: '--replace' is deprecated, use --replace-{fail,warn,quiet}. (file 'plugins/Makefile')
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
patching script interpreter paths in ./configure
./configure: interpreter directive changed from "#! /bin/sh" to "/nix/store/11ciq72n4fdv8rw6wgjgasfv4mjs1jrw-bash-5.2p37/bin/sh"
configure flags: --disable-dependency-tracking --prefix=/nix/store/am7i1rcvlrr55g4ivr2k8rzrdvchzph6-pptpd-1.4.0
checking for a BSD-compatible install... /nix/store/fr9yr63a1267cr0r86w18c77mh3xavcc-coreutils-9.6/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /nix/store/fr9yr63a1267cr0r86w18c77mh3xavcc-coreutils-9.6/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking command line for use of BSD PPP... default standard pppd
checking command line for use of SLIRP... default no
checking command line for syslog facility name... default LOG_DAEMON
checking command line for bcrelay build... default no
checking command line for VRF build... default no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for ranlib... ranlib
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether #! works in shell scripts... yes
checking for setsid... yes
checking for daemon... yes
checking for setproctitle... no
checking for getservbyname... yes
checking for strlcpy... yes
checking for fork... yes
checking for memmove... yes
checking for strerror... yes
checking for writev... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /nix/store/yz6nq9v29l3g990w8zlqsnzlzbicd3b3-gnugrep-3.11/bin/grep
checking for egrep... /nix/store/yz6nq9v29l3g990w8zlqsnzlzbicd3b3-gnugrep-3.11/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking pty.h usability... yes
checking pty.h presence... yes
checking for pty.h... yes
checking for string.h... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking libutil.h usability... no
checking libutil.h presence... no
checking for libutil.h... no
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking for size_t... yes
checking for ssize_t... yes
checking for u_int8_t... yes
checking for u_int16_t... yes
checking for u_int32_t... yes
checking for socklen_t... yes
checking for accept in -lc... yes
checking for gethostbyname in -lc... yes
checking for openpty in -lc... yes
checking for gettext in -lc... yes
checking for accept in -lsocket... no
checking for gethostbyname in -lnsl... no
checking for openpty in -lutil... yes
checking for gettext in -lintl... no
===============================================================================
Configuration chosen:
   PPPd:               Standard.
   LIBWRAP security:   No.
   Broadcast Relay:    No.
   VRF support:        No.
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
Running phase: buildPhase
build flags: SHELL=/nix/store/11ciq72n4fdv8rw6wgjgasfv4mjs1jrw-bash-5.2p37/bin/bash
make  all-am
make[1]: Entering directory '/build/pptpd-1.4.0'
gcc -DHAVE_CONFIG_H -I. -I.    -O2 -fno-builtin -Wall -DSBINDIR='"/nix/store/am7i1rcvlrr55g4ivr2k8rzrdvchzph6-pptpd-1.4.0/sbin"' -c pqueue.c
gcc -DHAVE_CONFIG_H -I. -I.    -O2 -fno-builtin -Wall -DSBINDIR='"/nix/store/am7i1rcvlrr55g4ivr2k8rzrdvchzph6-pptpd-1.4.0/sbin"' -c pptpd.c
gcc -DHAVE_CONFIG_H -I. -I.    -O2 -fno-builtin -Wall -DSBINDIR='"/nix/store/am7i1rcvlrr55g4ivr2k8rzrdvchzph6-pptpd-1.4.0/sbin"' -c configfile.c
gcc -DHAVE_CONFIG_H -I. -I.    -O2 -fno-builtin -Wall -DSBINDIR='"/nix/store/am7i1rcvlrr55g4ivr2k8rzrdvchzph6-pptpd-1.4.0/sbin"' -c pptpmanager.c
gcc -DHAVE_CONFIG_H -I. -I.    -O2 -fno-builtin -Wall -DSBINDIR='"/nix/store/am7i1rcvlrr55g4ivr2k8rzrdvchzph6-pptpd-1.4.0/sbin"' -c compat.c
In file included from compat.c:12:
compat.c: In function 'sigpipe_handler':
our_syslog.h:38:62: error: implicit declaration of function 'strerror'; did you mean 'perror'? [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration8;;]
   38 | #define syslog_perror(s)        syslog(LOG_ERR, "%s: %s", s, strerror(errno))
      |                                                              ^~~~~~~~
compat.c:168:5: note: in expansion of macro 'syslog_perror'
  168 |     syslog_perror("sigpipe write");
      |     ^~~~~~~~~~~~~
our_syslog.h:38:49: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wformat-Wformat=8;;]
   38 | #define syslog_perror(s)        syslog(LOG_ERR, "%s: %s", s, strerror(errno))
      |                                                 ^~~~~~~~     ~~~~~~~~~~~~~~~
      |                                                              |
      |                                                              int
compat.c:168:5: note: in expansion of macro 'syslog_perror'
  168 |     syslog_perror("sigpipe write");
      |     ^~~~~~~~~~~~~
our_syslog.h:38:55: note: format string is defined here
   38 | #define syslog_perror(s)        syslog(LOG_ERR, "%s: %s", s, strerror(errno))
      |                                                      ~^
      |                                                       |
      |                                                       char *
      |                                                      %d
compat.c: In function 'sigpipe_assign':
compat.c:178:3: error: implicit declaration of function 'memset' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration8;;]
  178 |   memset(&sa, 0, sizeof(sa));
      |   ^~~~~~
compat.c:131:1: note: 'memset' is defined in header '<string.h>'; this is probably fixable by adding '#include <string.h>'
  130 | #include <signal.h>
  +++ |+#include <string.h>
  131 | 
compat.c: In function 'sigpipe_read':
our_syslog.h:38:49: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wformat-Wformat=8;;]
   38 | #define syslog_perror(s)        syslog(LOG_ERR, "%s: %s", s, strerror(errno))
      |                                                 ^~~~~~~~     ~~~~~~~~~~~~~~~
      |                                                              |
      |                                                              int
compat.c:194:5: note: in expansion of macro 'syslog_perror'
  194 |     syslog_perror("sigpipe read");
      |     ^~~~~~~~~~~~~
our_syslog.h:38:55: note: format string is defined here
   38 | #define syslog_perror(s)        syslog(LOG_ERR, "%s: %s", s, strerror(errno))
      |                                                      ~^
      |                                                       |
      |                                                       char *
      |                                                      %d
make[1]: *** [Makefile:387: compat.o] Error 1
make[1]: Leaving directory '/build/pptpd-1.4.0'
make: *** [Makefile:277: all] Error 2