=> Building ftp/bbftp Started : Thursday, 7 MAR 2019 at 07:07:53 UTC Platform: 5.5-DEVELOPMENT DragonFly v5.5.0.192.g15ae7f0-DEVELOPMENT #34: Tue Feb 19 09:07:07 PST 2019 root@pkgbox64.dragonflybsd.org:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64 -------------------------------------------------- -- Environment -------------------------------------------------- UNAME_r=5.5-SYNTH UNAME_m=x86_64 UNAME_p=x86_64 UNAME_v=DragonFly 5.5-SYNTH UNAME_s=DragonFly PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SSL_NO_VERIFY_PEER=1 TERM=dumb PKG_CACHEDIR=/var/cache/pkg8 PKG_DBDIR=/var/db/pkg8 PORTSDIR=/xports LANG=C HOME=/root USER=root -------------------------------------------------- -- Options -------------------------------------------------- -------------------------------------------------- -- CONFIGURE_ENV -------------------------------------------------- MAKE=gmake XDG_DATA_HOME=/construction/ftp/bbftp XDG_CONFIG_HOME=/construction/ftp/bbftp HOME=/construction/ftp/bbftp TMPDIR="/tmp" PATH=/construction/ftp/bbftp/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCVER=gcc80 CONFIG_SITE=/xports/Templates/config.site lt_cv_sys_max_cmd_len=262144 -------------------------------------------------- -- CONFIGURE_ARGS -------------------------------------------------- --prefix=/usr/local ${_LATE_CONFIGURE_ARGS} -------------------------------------------------- -- MAKE_ENV -------------------------------------------------- OPENSSLBASE=/usr/local OPENSSLDIR=/usr/local/openssl OPENSSLINC=/usr/local/include OPENSSLLIB=/usr/local/lib OPENSSLRPATH=/usr/local/lib XDG_DATA_HOME=/construction/ftp/bbftp XDG_CONFIG_HOME=/construction/ftp/bbftp HOME=/construction/ftp/bbftp TMPDIR="/tmp" PATH=/construction/ftp/bbftp/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES CCVER=gcc80 PREFIX=/usr/local LOCALBASE=/usr/local NOPROFILE=1 CC="cc" CFLAGS="-pipe -O2 -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -Wl,-rpath,/usr/local/lib " LIBS="" CXX="c++" CXXFLAGS=" -pipe -O2 -fno-strict-aliasing " MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" -------------------------------------------------- -- MAKE_ARGS -------------------------------------------------- DESTDIR=/construction/ftp/bbftp/stage -------------------------------------------------- -- PLIST_SUB -------------------------------------------------- OSREL=5.5 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib PROFILE="@comment " DOCSDIR="share/doc/bbftp" EXAMPLESDIR="share/examples/bbftp" DATADIR="share/bbftp" WWWDIR="www/bbftp" ETCDIR="etc/bbftp" -------------------------------------------------- -- SUB_LIST -------------------------------------------------- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/bbftp DOCSDIR=/usr/local/share/doc/bbftp EXAMPLESDIR=/usr/local/share/examples/bbftp WWWDIR=/usr/local/www/bbftp ETCDIR=/usr/local/etc/bbftp -------------------------------------------------- -- /etc/make.conf -------------------------------------------------- SYNTHPROFILE=Release-BE USE_PACKAGE_DEPENDS_ONLY=yes PACKAGE_BUILDING=yes BATCH=yes PKG_CREATE_VERBOSE=yes PORTSDIR=/xports DISTDIR=/distfiles WRKDIRPREFIX=/construction PORT_DBDIR=/options PACKAGES=/packages MAKE_JOBS_NUMBER_LIMIT=5 LICENSES_ACCEPTED= NONE HAVE_COMPAT_IA32_KERN= CONFIGURE_MAX_CMD_LEN=262144 _PERL5_FROM_BIN=5.26.2 _ALTCCVERSION_921dbbb2=none _OBJC_ALTCCVERSION_921dbbb2=none _SMP_CPUS=8 UID=0 ARCH=x86_64 OPSYS=DragonFly DFLYVERSION=500500 OSVERSION=9999999 OSREL=5.5 _OSRELEASE=5.5-SYNTH PYTHONBASE=/usr/local _PKG_CHECKED=1 -------------------------------------------------------------------------------- -- Phase: check-sanity -------------------------------------------------------------------------------- ===> NOTICE: The bbftp port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port -------------------------------------------------------------------------------- -- Phase: pkg-depends -------------------------------------------------------------------------------- ===> bbftp-3.0.2 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.10.5_5.txz Installing pkg-1.10.5_5... Extracting pkg-1.10.5_5: .......... done ===> bbftp-3.0.2 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of bbftp-3.0.2 -------------------------------------------------------------------------------- -- Phase: fetch-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: fetch -------------------------------------------------------------------------------- ===> NOTICE: The bbftp port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port ===> Fetching all distfiles required by bbftp-3.0.2 for building -------------------------------------------------------------------------------- -- Phase: checksum -------------------------------------------------------------------------------- ===> NOTICE: The bbftp port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port ===> Fetching all distfiles required by bbftp-3.0.2 for building => SHA256 Checksum OK for bbftp-3.0.2.tar.gz. -------------------------------------------------------------------------------- -- Phase: extract-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: extract -------------------------------------------------------------------------------- ===> NOTICE: The bbftp port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port ===> Fetching all distfiles required by bbftp-3.0.2 for building ===> Extracting for bbftp-3.0.2 => SHA256 Checksum OK for bbftp-3.0.2.tar.gz. -------------------------------------------------------------------------------- -- Phase: patch-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: patch -------------------------------------------------------------------------------- ===> Patching for bbftp-3.0.2 ===> Applying extra patch /xports/ftp/bbftp/files/bbftp.patch -------------------------------------------------------------------------------- -- Phase: build-depends -------------------------------------------------------------------------------- ===> bbftp-3.0.2 depends on executable: gmake - not found ===> Installing existing package /packages/All/gmake-4.2.1_3.txz Installing gmake-4.2.1_3... `-- Installing gettext-runtime-0.19.8.1_2... | `-- Installing indexinfo-0.3.1... | `-- Extracting indexinfo-0.3.1: .... done `-- Extracting gettext-runtime-0.19.8.1_2: .......... done Extracting gmake-4.2.1_3: .......... done ===> bbftp-3.0.2 depends on executable: gmake - found ===> Returning to build of bbftp-3.0.2 ===> bbftp-3.0.2 depends on file: /usr/local/lib/libcrypto.so.44 - not found ===> Installing existing package /packages/All/libressl-2.8.3.txz Installing libressl-2.8.3... Extracting libressl-2.8.3: .......... done ===> bbftp-3.0.2 depends on file: /usr/local/lib/libcrypto.so.44 - found ===> Returning to build of bbftp-3.0.2 -------------------------------------------------------------------------------- -- Phase: lib-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: configure -------------------------------------------------------------------------------- ===> Configuring for bbftp-3.0.2 /bin/cp -f /xports/Templates/config.guess /construction/ftp/bbftp/bbftp-3.0.2 /bin/cp -f /xports/Templates/config.sub /construction/ftp/bbftp/bbftp-3.0.2 (cd /construction/ftp/bbftp/bbftp-3.0.2/bbftpc && ./configure --prefix=/usr/local --prefix=/usr/local ${_LATE_CONFIGURE_ARGS} --with-ssl=/usr/local) checking for cc... cc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for executable suffix... checking for object suffix... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for a BSD compatible install... /usr/bin/install -c checking build system type... x86_64-unknown-dragonfly5.5 checking host system type... x86_64-unknown-dragonfly5.5 checking how to run the C preprocessor... cc -E checking for dirent.h... yes checking for errno.h... yes checking for fcntl.h... yes checking for fnmatch.h... yes checking for netdb.h... yes checking for netinet/in.h... yes checking for netinet/tcp.h... yes checking for byteswap.h... no checking for pwd.h... yes checking for signal.h... yes checking for stdarg.h... yes checking for stdio.h... yes checking for string.h... yes checking for sys/socket.h... yes checking for sys/stat.h... yes checking for sys/time.h... yes checking for sys/types.h... yes checking for sys/wait.h... yes checking for syslog.h... yes checking for time.h... yes checking for unistd.h... yes checking for utime.h... yes checking for socket in -lc... yes checking for ANSI C header files... yes checking for sys/types.h... (cached) yes checking for sys/stat.h... (cached) yes checking for stdlib.h... yes checking for string.h... (cached) 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... (cached) yes checking for size_t... yes checking for chdir... yes checking for fcntl... yes checking for fnmatch... yes checking for fork... yes checking for fprintf... yes checking for free... yes checking for getopt... yes checking for getpid... yes checking for gettimeofday... yes checking for kill... yes checking for localtime... yes checking for openlog... yes checking for opendir... yes checking for random... yes checking for readdir... yes checking for read... yes checking for select... yes checking for setsid... yes checking for sigaction... yes checking for sigemptyset... yes checking for sleep... yes checking for sprintf... yes checking for srandom... yes checking for strcmp... yes checking for strcpy... yes checking for strerror... yes checking for strftime... yes checking for strlen... yes checking for syslog... yes checking for unlink... yes checking for waitpid... yes checking for write... yes checking for siginfo struct... found checking for signal to use... using standard signals checking for SA_NOCLDWAIT flag... found checking for long long... yes checking size of long long... 8 checking for off_t... yes checking size of off_t... 8 checking how to printf a long long... using %lld checking whether byte ordering is bigendian... no checking for ntohll... no checking for bswap_64... no checking for sysconf... yes checking for getpassphrase... no checking for getpass... yes checking for library containing getservbyname_r... no checking for library containing sched_get_priority_max... no checking for /usr/local/include/shift/rfio_api.h... no checking for rfio_open... no configure: WARNING: RFIO not installed checking for /usr/local/lib/libcrypto.a... yes checking for openssl/rsa.h... yes checking for library containing dlopen... none required checking for compress in -lz... yes checking for zlib.h... yes checking for zconf.h... yes configure: creating ./config.status config.status: creating Makefile config.status: creating bbftp.h (cd /construction/ftp/bbftp/bbftp-3.0.2/bbftpd && ./configure --prefix=/usr/local --prefix=/usr/local ${_LATE_CONFIGURE_ARGS} --with-ssl=/usr/local) checking for cc... cc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for executable suffix... checking for object suffix... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for a BSD compatible install... /usr/bin/install -c checking build system type... x86_64-unknown-dragonfly5.5 checking host system type... x86_64-unknown-dragonfly5.5 checking how to run the C preprocessor... cc -E checking for crypt.h... no checking for dirent.h... yes checking for errno.h... yes checking for fcntl.h... yes checking for fnmatch.h... yes checking for glob.h... yes checking for limits.h... yes checking for netdb.h... yes checking for netinet/in.h... yes checking for netinet/tcp.h... yes checking for pwd.h... yes checking for security/pam_appl.h... yes checking for shadow.h... no checking for signal.h... yes checking for stdio.h... yes checking for stdlib.h... yes checking for sys/socket.h... yes checking for sys/stat.h... yes checking for sys/time.h... yes checking for sys/types.h... yes checking for sys/wait.h... yes checking for syslog.h... yes checking for unistd.h... yes checking for userpw.h... no checking for utime.h... yes checking for byteswap.h... no checking for socket in -lc... yes checking for chdir... yes checking for fcntl... yes checking for fnmatch... yes checking for fork... yes checking for free... yes checking for freopen... yes checking for getcwd... yes checking for getopt... yes checking for getpwnam... yes checking for gettimeofday... yes checking for glob... yes checking for globfree... yes checking for kill... yes checking for mkdir... yes checking for openlog... yes checking for opendir... yes checking for random... yes checking for readdir... yes checking for read... yes checking for select... yes checking for setgid... yes checking for setsid... yes checking for setuid... yes checking for sigaction... yes checking for sigemptyset... yes checking for sleep... yes checking for sprintf... yes checking for srandom... yes checking for strcmp... yes checking for strcpy... yes checking for strerror... yes checking for strlen... yes checking for sysconf... yes checking for syslog... yes checking for unlink... yes checking for waitpid... yes checking for ANSI C header files... yes checking for sys/types.h... (cached) yes checking for sys/stat.h... (cached) yes checking for stdlib.h... (cached) 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... (cached) yes checking for long long... yes checking size of long long... 8 checking for ntohll... no checking for off_t... yes checking size of off_t... 8 checking how to printf a long long... using %lld checking whether byte ordering is bigendian... no checking for library containing dlopen... none required checking for library containing getservbyname_r... no checking for library containing sched_get_priority_max... no checking for /usr/local/include/shift/rfio_api.h... no checking for rfio_open... no configure: WARNING: RFIO not installed checking for /usr/local/lib/libcrypto.a... yes checking for openssl/rsa.h... yes checking for library containing dlopen... (cached) none required checking for compress in -lz... yes checking for zlib.h... yes checking for zconf.h... yes configure: creating ./config.status config.status: creating Makefile config.status: creating startup config.status: creating bbftpd.h -------------------------------------------------------------------------------- -- Phase: build -------------------------------------------------------------------------------- ===> Building for bbftp-3.0.2 (cd /construction/ftp/bbftp/bbftp-3.0.2/bbftpc && /usr/bin/env OPENSSLBASE=/usr/local OPENSSLDIR=/usr/local/openssl OPENSSLINC=/usr/local/include OPENSSLLIB=/usr/local/lib OPENSSLRPATH=/usr/local/lib XDG_DATA_HOME=/construction/ftp/bbftp XDG_CONFIG_HOME=/construction/ftp/bbftp HOME=/construction/ftp/bbftp TMPDIR="/tmp" PATH=/construction/ftp/bbftp/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES CCVER=gcc80 PREFIX=/usr/local LOCALBASE=/usr/local NOPROFILE=1 CC="cc" CFLAGS="-pipe -O2 -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -Wl,-rpath,/usr/local/lib " LIBS="" CXX="c++" CXXFLAGS=" -pipe -O2 -fno-strict-aliasing " MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" gmake) gmake[1]: Entering directory '/construction/ftp/bbftp/bbftp-3.0.2/bbftpc' cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o bbftp.o bbftp.c bbftp.c:325:1: warning: return type defaults to 'int' [-Wimplicit-int] main(argc, argv, envp) ^~~~ bbftp.c: In function 'main': bbftp.c:417:110: warning: implicit declaration of function 'zlibVersion' [-Wimplicit-function-declaration] printmessage(stdout,CASE_NORMAL,0,timestamp," compression with Zlib-%s\n", zlibVersion()) ; ^~~~~~~~~~~ bbftp.c:467:113: warning: implicit declaration of function 'strerror'; did you mean 'hstrerror'? [-Wimplicit-function-declaration] printmessage(stderr,CASE_FATAL_ERROR,10,timestamp,"Error openning error file (%s) : %s\n",errorfile,strerror(errno)) ; ^~~~~~~~ hstrerror bbftp.c:568:53: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] if ( (resultfile = (char *) malloc (strlen(inputfile) + 5 )) == NULL ) { ^~~~~~ bbftp.c:568:53: warning: incompatible implicit declaration of built-in function 'strlen' bbftp.c:568:53: note: include '' or provide a declaration of 'strlen' bbftp.c:62:1: +#include #endif bbftp.c:568:53: if ( (resultfile = (char *) malloc (strlen(inputfile) + 5 )) == NULL ) { ^~~~~~ bbftp.c:571:17: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(resultfile,inputfile) ; ^~~~~~ bbftp.c:571:17: warning: incompatible implicit declaration of built-in function 'strcpy' bbftp.c:571:17: note: include '' or provide a declaration of 'strcpy' bbftp.c:572:17: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] strcat(resultfile,".res") ; ^~~~~~ bbftp.c:572:17: warning: incompatible implicit declaration of built-in function 'strcat' bbftp.c:572:17: note: include '' or provide a declaration of 'strcat' bbftp.c:712:51: warning: incompatible implicit declaration of built-in function 'strlen' if ( (sshremotecmd = (char *) malloc (strlen(SSHREMOTECMD)+1) ) == NULL ) { ^~~~~~ bbftp.c:712:51: note: include '' or provide a declaration of 'strlen' bbftp.c:715:13: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(sshremotecmd,SSHREMOTECMD) ; ^~~~~~ bbftp.c:715:13: note: include '' or provide a declaration of 'strcpy' bbftp.c:721:18: warning: implicit declaration of function 'strstr' [-Wimplicit-function-declaration] if ( strstr(sshremotecmd," -s") == NULL ) { ^~~~~~ bbftp.c:721:18: warning: incompatible implicit declaration of built-in function 'strstr' bbftp.c:721:18: note: include '' or provide a declaration of 'strstr' bbftp.c:722:59: warning: incompatible implicit declaration of built-in function 'strlen' if ( ( tmpsshremotecmd = (char *) malloc (strlen(sshremotecmd) + 4) ) == NULL ) { ^~~~~~ bbftp.c:722:59: note: include '' or provide a declaration of 'strlen' bbftp.c:730:45: warning: incompatible implicit declaration of built-in function 'strlen' if ( (sshcmd = (char *) malloc (strlen(SSHCMD)+1) ) == NULL ) { ^~~~~~ bbftp.c:730:45: note: include '' or provide a declaration of 'strlen' bbftp.c:733:13: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(sshcmd,SSHCMD) ; ^~~~~~ bbftp.c:733:13: note: include '' or provide a declaration of 'strcpy' bbftp.c:748:20: warning: incompatible implicit declaration of built-in function 'strlen' for (j=0 ; j < strlen(hostname) ; j++) { ^~~~~~ bbftp.c:748:20: note: include '' or provide a declaration of 'strlen' bbftp.c:749:14: warning: implicit declaration of function 'isalpha' [-Wimplicit-function-declaration] if ( isalpha(hostname[j]) ) { ^~~~~~~ bbftp.c:755:21: warning: implicit declaration of function 'isdigit' [-Wimplicit-function-declaration] } else if ( isdigit(hostname[j]) ) { ^~~~~~~ bbftp.c:766:38: warning: implicit declaration of function 'inet_addr'; did you mean 'h_addr'? [-Wimplicit-function-declaration] hisctladdr.sin_addr.s_addr = inet_addr(hostname) ; ^~~~~~~~~ h_addr bbftp.c:770:32: warning: implicit declaration of function 'inet_ntoa' [-Wimplicit-function-declaration] calchostname = (char *)inet_ntoa(hisctladdr.sin_addr) ; ^~~~~~~~~ bbftp.c:770:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] calchostname = (char *)inet_ntoa(hisctladdr.sin_addr) ; ^ bbftp.c:771:14: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if ( strcmp(hostname,calchostname) ) { ^~~~~~ bbftp.c:784:13: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] memcpy(&hisctladdr.sin_addr, hp->h_addr_list[0], hp->h_length) ; ^~~~~~ bbftp.c:784:13: warning: incompatible implicit declaration of built-in function 'memcpy' bbftp.c:784:13: note: include '' or provide a declaration of 'memcpy' bbftp.c:820:53: warning: incompatible implicit declaration of built-in function 'strlen' } else if ( (bbftprcfile = (char *) malloc (strlen(mypasswd->pw_dir)+10) ) == NULL ) { ^~~~~~ bbftp.c:820:53: note: include '' or provide a declaration of 'strlen' bbftp.c:823:13: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(bbftprcfile,mypasswd->pw_dir) ; ^~~~~~ bbftp.c:823:13: note: include '' or provide a declaration of 'strcpy' bbftp.c:824:13: warning: incompatible implicit declaration of built-in function 'strcat' strcat(bbftprcfile,"/.bbftprc") ; ^~~~~~ bbftp.c:824:13: note: include '' or provide a declaration of 'strcat' bbftp.c:828:14: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] if ( strncmp(bbftprcfile,"none",4) != 0 ) { ^~~~~~~ bbftp.c:872:31: warning: implicit declaration of function 'strchr' [-Wimplicit-function-declaration] carret = (char *) strchr (carret, 10); ^~~~~~ bbftp.c:872:31: warning: incompatible implicit declaration of built-in function 'strchr' bbftp.c:872:31: note: include '' or provide a declaration of 'strchr' bbftp.c:1133:44: warning: incompatible implicit declaration of built-in function 'strlen' if ( (buffercmd = (char *) malloc (strlen(bbftpcmd)+1)) == NULL ) { ^~~~~~ bbftp.c:1133:44: note: include '' or provide a declaration of 'strlen' bbftp.c:1222:18: warning: implicit declaration of function 'treatcommand' [-Wimplicit-function-declaration] if ( treatcommand(buffercmd) == 0 ) { ^~~~~~~~~~~~ bbftp.c:1223:39: warning: incompatible implicit declaration of built-in function 'strlen' write(resfd,buffercmd,strlen(buffercmd)) ; ^~~~~~ bbftp.c:1223:39: note: include '' or provide a declaration of 'strlen' bbftp.c:1226:39: warning: incompatible implicit declaration of built-in function 'strlen' write(resfd,buffercmd,strlen(buffercmd)) ; ^~~~~~ bbftp.c:1226:39: note: include '' or provide a declaration of 'strlen' bbftp.c:1234:30: warning: incompatible implicit declaration of built-in function 'strlen' while ((maxlen < strlen(bbftpcmd)) && (bbftpcmd[maxlen] == ' ')) maxlen++ ; ^~~~~~ bbftp.c:1234:30: note: include '' or provide a declaration of 'strlen' bbftp.c:1235:31: warning: incompatible implicit declaration of built-in function 'strlen' while ( (maxlen < strlen(bbftpcmd)) && (bbftpcmd[maxlen] != ';') ) { ^~~~~~ bbftp.c:1235:31: note: include '' or provide a declaration of 'strlen' bbftp.c:1240:28: warning: incompatible implicit declaration of built-in function 'strlen' if ( maxlen == strlen(bbftpcmd) ) retcode = 1 ; ^~~~~~ bbftp.c:1240:28: note: include '' or provide a declaration of 'strlen' cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o bbftp_cd.o bbftp_cd.c In file included from /usr/include/sys/types.h:47, from /usr/include/stdio.h:41, from bbftp_cd.c:37: bbftp_cd.c: In function 'bbftp_cd': bbftp_cd.c:78:25: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] msg->msglen = ntohl(strlen(dirpath)+sizeof(int)) ; ^~~~~~ bbftp_cd.c:78:25: warning: incompatible implicit declaration of built-in function 'strlen' bbftp_cd.c:78:25: note: include '' or provide a declaration of 'strlen' bbftp_cd.c:48:1: +#include bbftp_cd.c:78:25: msg->msglen = ntohl(strlen(dirpath)+sizeof(int)) ; ^~~~~~ bbftp_cd.c:131:101: warning: implicit declaration of function 'strerror'; did you mean 'perror'? [-Wimplicit-function-declaration] printmessage(stderr,CASE_ERROR,66,timestamp,"Error select on control connection : %s\n",strerror(errno)); ^~~~~~~~ perror bbftp_cd.c:170:37: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] if ( (buffer = (char *) malloc(msglen+1) ) == NULL) { ^~~~~~ bbftp_cd.c:170:37: warning: incompatible implicit declaration of built-in function 'malloc' bbftp_cd.c:170:37: note: include '' or provide a declaration of 'malloc' bbftp_cd.c:48:1: +#include bbftp_cd.c:170:37: if ( (buffer = (char *) malloc(msglen+1) ) == NULL) { ^~~~~~ bbftp_cd.c:180:17: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(buffer) ; ^~~~ bbftp_cd.c:180:17: warning: incompatible implicit declaration of built-in function 'free' bbftp_cd.c:180:17: note: include '' or provide a declaration of 'free' bbftp_cd.c:190:17: warning: incompatible implicit declaration of built-in function 'free' free(buffer) ; ^~~~ bbftp_cd.c:190:17: note: include '' or provide a declaration of 'free' bbftp_cd.c:218:37: warning: incompatible implicit declaration of built-in function 'malloc' if ( (buffer = (char *) malloc(msglen+1) ) == NULL) { ^~~~~~ bbftp_cd.c:218:37: note: include '' or provide a declaration of 'malloc' bbftp_cd.c:228:17: warning: incompatible implicit declaration of built-in function 'free' free(buffer) ; ^~~~ bbftp_cd.c:228:17: note: include '' or provide a declaration of 'free' bbftp_cd.c:233:21: warning: incompatible implicit declaration of built-in function 'free' free(remotedir) ; ^~~~ bbftp_cd.c:233:21: note: include '' or provide a declaration of 'free' cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o bbftp_get.o bbftp_get.c In file included from /usr/include/sys/types.h:47, from /usr/include/netinet/in.h:36, from bbftp_get.c:38: bbftp_get.c: In function 'bbftp_get': bbftp_get.c:188:25: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] msg->msglen = ntohl(strlen(remotefilename)) ; ^~~~~~ bbftp_get.c:188:25: warning: incompatible implicit declaration of built-in function 'strlen' bbftp_get.c:188:25: note: include '' or provide a declaration of 'strlen' bbftp_get.c:51:1: +#include bbftp_get.c:188:25: msg->msglen = ntohl(strlen(remotefilename)) ; ^~~~~~ bbftp_get.c:228:101: warning: implicit declaration of function 'strerror'; did you mean 'perror'? [-Wimplicit-function-declaration] printmessage(stderr,CASE_ERROR,66,timestamp,"Error select on control connection : %s\n",strerror(errno)); ^~~~~~~~ perror bbftp_get.c:265:37: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] if ( (buffer = (char *) malloc(msglen+1) ) == NULL) { ^~~~~~ bbftp_get.c:265:37: warning: incompatible implicit declaration of built-in function 'malloc' bbftp_get.c:265:37: note: include '' or provide a declaration of 'malloc' bbftp_get.c:51:1: +#include bbftp_get.c:265:37: if ( (buffer = (char *) malloc(msglen+1) ) == NULL) { ^~~~~~ bbftp_get.c:277:17: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(buffer) ; ^~~~ bbftp_get.c:277:17: warning: incompatible implicit declaration of built-in function 'free' bbftp_get.c:277:17: note: include '' or provide a declaration of 'free' bbftp_get.c:287:17: warning: incompatible implicit declaration of built-in function 'free' free(buffer) ; ^~~~ bbftp_get.c:287:17: note: include '' or provide a declaration of 'free' bbftp_get.c:312:37: warning: incompatible implicit declaration of built-in function 'malloc' if ( (buffer = (char *) malloc(msglen+1) ) == NULL) { ^~~~~~ bbftp_get.c:312:37: note: include '' or provide a declaration of 'malloc' bbftp_get.c:324:17: warning: incompatible implicit declaration of built-in function 'free' free(buffer) ; ^~~~ bbftp_get.c:324:17: note: include '' or provide a declaration of 'free' bbftp_get.c:330:13: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] strncpy(lastaccess,msg_store_v2->lastaccess,8) ; ^~~~~~~ bbftp_get.c:330:13: warning: incompatible implicit declaration of built-in function 'strncpy' bbftp_get.c:330:13: note: include '' or provide a declaration of 'strncpy' bbftp_get.c:347:41: warning: incompatible implicit declaration of built-in function 'malloc' if ( (myports = (int *) malloc (requestedstreamnumber*sizeof(int)) ) == NULL ) { ^~~~~~ bbftp_get.c:347:41: note: include '' or provide a declaration of 'malloc' bbftp_get.c:352:21: warning: incompatible implicit declaration of built-in function 'free' free(buffer); ^~~~ bbftp_get.c:352:21: note: include '' or provide a declaration of 'free' bbftp_get.c:360:21: warning: incompatible implicit declaration of built-in function 'free' free(buffer) ; ^~~~ bbftp_get.c:360:21: note: include '' or provide a declaration of 'free' bbftp_get.c:409:13: warning: incompatible implicit declaration of built-in function 'free' free(buffer) ; ^~~~ bbftp_get.c:409:13: note: include '' or provide a declaration of 'free' bbftp_get.c:414:9: warning: incompatible implicit declaration of built-in function 'free' free(buffer) ; ^~~~ bbftp_get.c:414:9: note: include '' or provide a declaration of 'free' bbftp_get.c:432:13: warning: incompatible implicit declaration of built-in function 'free' free(buffer) ; ^~~~ bbftp_get.c:432:13: note: include '' or provide a declaration of 'free' bbftp_get.c:437:9: warning: incompatible implicit declaration of built-in function 'free' free(buffer) ; ^~~~ bbftp_get.c:437:9: note: include '' or provide a declaration of 'free' bbftp_get.c:519:21: warning: incompatible implicit declaration of built-in function 'free' free(buffer) ; ^~~~ bbftp_get.c:519:21: note: include '' or provide a declaration of 'free' bbftp_get.c:524:17: warning: incompatible implicit declaration of built-in function 'free' free(buffer) ; ^~~~ bbftp_get.c:524:17: note: include '' or provide a declaration of 'free' bbftp_get.c:540:13: warning: incompatible implicit declaration of built-in function 'free' free(buffer) ; ^~~~ bbftp_get.c:540:13: note: include '' or provide a declaration of 'free' bbftp_get.c:546:9: warning: incompatible implicit declaration of built-in function 'free' free(buffer) ; ^~~~ bbftp_get.c:546:9: note: include '' or provide a declaration of 'free' bbftp_get.c:549:5: warning: incompatible implicit declaration of built-in function 'free' free(buffer) ; ^~~~ bbftp_get.c:549:5: note: include '' or provide a declaration of 'free' bbftp_get.c:554:29: warning: incompatible implicit declaration of built-in function 'malloc' if ( (buffer = (char *) malloc (requestedstreamnumber*sizeof(int))) == NULL) { ^~~~~~ bbftp_get.c:554:29: note: include '' or provide a declaration of 'malloc' bbftp_get.c:579:32: warning: incompatible implicit declaration of built-in function 'malloc' if ( (mychildren = (int *) malloc (requestedstreamnumber*sizeof(int))) == NULL) { ^~~~~~ bbftp_get.c:579:32: note: include '' or provide a declaration of 'malloc' bbftp_get.c:613:33: warning: incompatible implicit declaration of built-in function 'malloc' if ( (readbuffer = (char *) malloc (buffersizeperstream*1024)) == NULL) { ^~~~~~ bbftp_get.c:613:33: note: include '' or provide a declaration of 'malloc' bbftp_get.c:643:37: warning: incompatible implicit declaration of built-in function 'malloc' if ( (compbuffer = (char *) malloc (buffersizeperstream*1024)) == NULL) { ^~~~~~ bbftp_get.c:643:37: note: include '' or provide a declaration of 'malloc' bbftp_get.c:673:31: warning: incompatible implicit declaration of built-in function 'malloc' if ( (myports = (int *) malloc (requestedstreamnumber*sizeof(int)) ) == NULL ) { ^~~~~~ bbftp_get.c:673:31: note: include '' or provide a declaration of 'malloc' bbftp_get.c:698:31: warning: incompatible implicit declaration of built-in function 'malloc' if ( (mysockets = (int *) malloc (requestedstreamnumber*sizeof(int)) ) == NULL ) { ^~~~~~ bbftp_get.c:698:31: note: include '' or provide a declaration of 'malloc' bbftp_get.c:1020:38: warning: incompatible implicit declaration of built-in function 'malloc' if ( ( buffer = (char *) malloc (msglen+1) ) == NULL ) { ^~~~~~ bbftp_get.c:1020:38: note: include '' or provide a declaration of 'malloc' bbftp_get.c:1166:38: warning: incompatible implicit declaration of built-in function 'malloc' if ( ( buffer = (char *) malloc (msglen+1) ) == NULL ) { ^~~~~~ bbftp_get.c:1166:38: note: include '' or provide a declaration of 'malloc' cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o bbftp_lcd.o bbftp_lcd.c bbftp_lcd.c: In function 'bbftp_lcd': bbftp_lcd.c:67:10: warning: implicit declaration of function 'chdir' [-Wimplicit-function-declaration] if ( chdir(dirpath) < 0 ) { ^~~~~ bbftp_lcd.c:74:102: warning: implicit declaration of function 'strerror'; did you mean 'perror'? [-Wimplicit-function-declaration] printmessage(stderr,CASE_ERROR,71,timestamp,"Error changing directory %s (%s)\n",dirpath,strerror(savederrno)) ; ^~~~~~~~ perror cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o bbftp_list.o bbftp_list.c In file included from /usr/include/sys/types.h:47, from /usr/include/netinet/in.h:36, from bbftp_list.c:32: bbftp_list.c: In function 'bbftp_list': bbftp_list.c:69:25: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] msg->msglen = ntohl(strlen(line)+sizeof(int)) ; ^~~~~~ bbftp_list.c:69:25: warning: incompatible implicit declaration of built-in function 'strlen' bbftp_list.c:69:25: note: include '' or provide a declaration of 'strlen' bbftp_list.c:42:1: +#include bbftp_list.c:69:25: msg->msglen = ntohl(strlen(line)+sizeof(int)) ; ^~~~~~ bbftp_list.c:124:101: warning: implicit declaration of function 'strerror'; did you mean 'perror'? [-Wimplicit-function-declaration] printmessage(stderr,CASE_ERROR,66,timestamp,"Error select on control connection : %s\n",strerror(errno)); ^~~~~~~~ perror bbftp_list.c:163:37: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] if ( (buffer = (char *) malloc(msglen+1) ) == NULL) { ^~~~~~ bbftp_list.c:163:37: warning: incompatible implicit declaration of built-in function 'malloc' bbftp_list.c:163:37: note: include '' or provide a declaration of 'malloc' bbftp_list.c:42:1: +#include bbftp_list.c:163:37: if ( (buffer = (char *) malloc(msglen+1) ) == NULL) { ^~~~~~ bbftp_list.c:173:17: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(buffer) ; ^~~~ bbftp_list.c:173:17: warning: incompatible implicit declaration of built-in function 'free' bbftp_list.c:173:17: note: include '' or provide a declaration of 'free' bbftp_list.c:183:17: warning: incompatible implicit declaration of built-in function 'free' free(buffer) ; ^~~~ bbftp_list.c:183:17: note: include '' or provide a declaration of 'free' bbftp_list.c:219:46: warning: incompatible implicit declaration of built-in function 'malloc' if ( ((*filelist) = (char *) malloc(msglen+1) ) == NULL) { ^~~~~~ bbftp_list.c:219:46: note: include '' or provide a declaration of 'malloc' bbftp_list.c:229:21: warning: incompatible implicit declaration of built-in function 'free' free(*filelist) ; ^~~~ bbftp_list.c:229:21: note: include '' or provide a declaration of 'free' cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o bbftp_mget.o bbftp_mget.c bbftp_mget.c: In function 'bbftp_mget': bbftp_mget.c:67:11: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if ( !strcmp(localdir,"./")) { ^~~~~~ bbftp_mget.c:112:29: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] tmpchar = tmpfile + strlen(tmpfile) + 1 ; ^~~~~~ bbftp_mget.c:112:29: warning: incompatible implicit declaration of built-in function 'strlen' bbftp_mget.c:112:29: note: include '' or provide a declaration of 'strlen' bbftp_mget.c:42:1: +#include bbftp_mget.c:112:29: tmpchar = tmpfile + strlen(tmpfile) + 1 ; ^~~~~~ bbftp_mget.c:129:46: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] if ( (curfilename = (char *) malloc (strlen(localdir)+strlen(slash)+2) ) == NULL ) { ^~~~~~ bbftp_mget.c:129:46: warning: incompatible implicit declaration of built-in function 'malloc' bbftp_mget.c:129:46: note: include '' or provide a declaration of 'malloc' bbftp_mget.c:42:1: +#include bbftp_mget.c:129:46: if ( (curfilename = (char *) malloc (strlen(localdir)+strlen(slash)+2) ) == NULL ) { ^~~~~~ bbftp_mget.c:130:119: warning: implicit declaration of function 'strerror'; did you mean 'perror'? [-Wimplicit-function-declaration] printmessage(stderr,CASE_ERROR,35,timestamp,"Error allocating memory for %s : %s\n","curfilename",strerror(errno)) ; ^~~~~~~~ perror bbftp_mget.c:132:21: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(*filelist) ; ^~~~ bbftp_mget.c:132:21: warning: incompatible implicit declaration of built-in function 'free' bbftp_mget.c:132:21: note: include '' or provide a declaration of 'free' bbftp_mget.c:132:26: warning: passing argument 1 of 'free' makes pointer from integer without a cast [-Wint-conversion] free(*filelist) ; ^~~~~~~~~ bbftp_mget.c:132:26: note: expected 'void *' but argument is of type 'char' bbftp_mget.c:135:47: warning: incompatible implicit declaration of built-in function 'malloc' if ( (realfilename = (char *) malloc (strlen(localdir)+strlen(slash)+30)) == NULL ) { ^~~~~~ bbftp_mget.c:135:47: note: include '' or provide a declaration of 'malloc' bbftp_mget.c:138:21: warning: incompatible implicit declaration of built-in function 'free' free(curfilename) ; ^~~~ bbftp_mget.c:138:21: note: include '' or provide a declaration of 'free' bbftp_mget.c:139:26: warning: passing argument 1 of 'free' makes pointer from integer without a cast [-Wint-conversion] free(*filelist) ; ^~~~~~~~~ bbftp_mget.c:139:26: note: expected 'void *' but argument is of type 'char' bbftp_mget.c:255:5: warning: incompatible implicit declaration of built-in function 'free' free(filelist) ; ^~~~ bbftp_mget.c:255:5: note: include '' or provide a declaration of 'free' cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o bbftp_mkdir.o bbftp_mkdir.c In file included from /usr/include/sys/types.h:47, from /usr/include/stdio.h:41, from bbftp_mkdir.c:37: bbftp_mkdir.c: In function 'bbftp_mkdir': bbftp_mkdir.c:78:25: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] msg->msglen = ntohl(strlen(dirpath)+sizeof(int)) ; ^~~~~~ bbftp_mkdir.c:78:25: warning: incompatible implicit declaration of built-in function 'strlen' bbftp_mkdir.c:78:25: note: include '' or provide a declaration of 'strlen' bbftp_mkdir.c:48:1: +#include bbftp_mkdir.c:78:25: msg->msglen = ntohl(strlen(dirpath)+sizeof(int)) ; ^~~~~~ bbftp_mkdir.c:131:101: warning: implicit declaration of function 'strerror'; did you mean 'perror'? [-Wimplicit-function-declaration] printmessage(stderr,CASE_ERROR,66,timestamp,"Error select on control connection : %s\n",strerror(errno)); ^~~~~~~~ perror bbftp_mkdir.c:170:37: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] if ( (buffer = (char *) malloc(msglen+1) ) == NULL) { ^~~~~~ bbftp_mkdir.c:170:37: warning: incompatible implicit declaration of built-in function 'malloc' bbftp_mkdir.c:170:37: note: include '' or provide a declaration of 'malloc' bbftp_mkdir.c:48:1: +#include bbftp_mkdir.c:170:37: if ( (buffer = (char *) malloc(msglen+1) ) == NULL) { ^~~~~~ bbftp_mkdir.c:180:17: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(buffer) ; ^~~~ bbftp_mkdir.c:180:17: warning: incompatible implicit declaration of built-in function 'free' bbftp_mkdir.c:180:17: note: include '' or provide a declaration of 'free' bbftp_mkdir.c:190:17: warning: incompatible implicit declaration of built-in function 'free' free(buffer) ; ^~~~ bbftp_mkdir.c:190:17: note: include '' or provide a declaration of 'free' bbftp_mkdir.c:218:37: warning: incompatible implicit declaration of built-in function 'malloc' if ( (buffer = (char *) malloc(msglen+1) ) == NULL) { ^~~~~~ bbftp_mkdir.c:218:37: note: include '' or provide a declaration of 'malloc' bbftp_mkdir.c:228:17: warning: incompatible implicit declaration of built-in function 'free' free(buffer) ; ^~~~ bbftp_mkdir.c:228:17: note: include '' or provide a declaration of 'free' bbftp_mkdir.c:233:13: warning: incompatible implicit declaration of built-in function 'free' free(buffer) ; ^~~~ bbftp_mkdir.c:233:13: note: include '' or provide a declaration of 'free' cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o bbftp_mput.o bbftp_mput.c bbftp_mput.c: In function 'bbftp_mput': bbftp_mput.c:83:29: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] tmpchar = tmpfile + strlen(tmpfile) + 1 ; ^~~~~~ bbftp_mput.c:83:29: warning: incompatible implicit declaration of built-in function 'strlen' bbftp_mput.c:83:29: note: include '' or provide a declaration of 'strlen' bbftp_mput.c:40:1: +#include bbftp_mput.c:83:29: tmpchar = tmpfile + strlen(tmpfile) + 1 ; ^~~~~~ bbftp_mput.c:100:49: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] if ( (remotefilename = (char *) malloc (strlen(remotedir)+strlen(slash)+2)) == NULL ) { ^~~~~~ bbftp_mput.c:100:49: warning: incompatible implicit declaration of built-in function 'malloc' bbftp_mput.c:100:49: note: include '' or provide a declaration of 'malloc' bbftp_mput.c:40:1: +#include bbftp_mput.c:100:49: if ( (remotefilename = (char *) malloc (strlen(remotedir)+strlen(slash)+2)) == NULL ) { ^~~~~~ bbftp_mput.c:101:122: warning: implicit declaration of function 'strerror'; did you mean 'perror'? [-Wimplicit-function-declaration] printmessage(stderr,CASE_ERROR,35,timestamp,"Error allocating memory for %s : %s\n","remotefilename",strerror(errno)) ; ^~~~~~~~ perror bbftp_mput.c:103:21: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(*filelist) ; ^~~~ bbftp_mput.c:103:21: warning: incompatible implicit declaration of built-in function 'free' bbftp_mput.c:103:21: note: include '' or provide a declaration of 'free' bbftp_mput.c:103:26: warning: passing argument 1 of 'free' makes pointer from integer without a cast [-Wint-conversion] free(*filelist) ; ^~~~~~~~~ bbftp_mput.c:103:26: note: expected 'void *' but argument is of type 'char' bbftp_mput.c:111:46: warning: incompatible implicit declaration of built-in function 'malloc' if ( (curfilename = (char *) malloc (strlen(tmpfile)+1)) == NULL ) { ^~~~~~ bbftp_mput.c:111:46: note: include '' or provide a declaration of 'malloc' bbftp_mput.c:114:21: warning: incompatible implicit declaration of built-in function 'free' free(remotefilename) ; ^~~~ bbftp_mput.c:114:21: note: include '' or provide a declaration of 'free' bbftp_mput.c:115:26: warning: passing argument 1 of 'free' makes pointer from integer without a cast [-Wint-conversion] free(*filelist) ; ^~~~~~~~~ bbftp_mput.c:115:26: note: expected 'void *' but argument is of type 'char' bbftp_mput.c:118:47: warning: incompatible implicit declaration of built-in function 'malloc' if ( (realfilename = (char *) malloc (strlen(tmpfile)+1)) == NULL ) { ^~~~~~ bbftp_mput.c:118:47: note: include '' or provide a declaration of 'malloc' bbftp_mput.c:121:21: warning: incompatible implicit declaration of built-in function 'free' free(remotefilename) ; ^~~~ bbftp_mput.c:121:21: note: include '' or provide a declaration of 'free' bbftp_mput.c:123:26: warning: passing argument 1 of 'free' makes pointer from integer without a cast [-Wint-conversion] free(*filelist) ; ^~~~~~~~~ bbftp_mput.c:123:26: note: expected 'void *' but argument is of type 'char' bbftp_mput.c:137:17: warning: incompatible implicit declaration of built-in function 'free' free(remotefilename) ; ^~~~ bbftp_mput.c:137:17: note: include '' or provide a declaration of 'free' bbftp_mput.c:159:25: warning: implicit declaration of function 'sleep' [-Wimplicit-function-declaration] sleep(WAITRETRYTIME) ; ^~~~~ bbftp_mput.c:183:21: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] write(resfd,"put ",4) ; ^~~~~ fwrite bbftp_mput.c:221:5: warning: incompatible implicit declaration of built-in function 'free' free(filelist) ; ^~~~ bbftp_mput.c:221:5: note: include '' or provide a declaration of 'free' cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o bbftp_put.o bbftp_put.c In file included from /usr/include/sys/types.h:47, from /usr/include/netinet/in.h:36, from bbftp_put.c:38: bbftp_put.c: In function 'bbftp_put': bbftp_put.c:183:25: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] msg->msglen = ntohl(strlen(remotefilename)) ; ^~~~~~ bbftp_put.c:183:25: warning: incompatible implicit declaration of built-in function 'strlen' bbftp_put.c:183:25: note: include '' or provide a declaration of 'strlen' bbftp_put.c:51:1: +#include bbftp_put.c:183:25: msg->msglen = ntohl(strlen(remotefilename)) ; ^~~~~~ bbftp_put.c:221:101: warning: implicit declaration of function 'strerror'; did you mean 'perror'? [-Wimplicit-function-declaration] printmessage(stderr,CASE_ERROR,66,timestamp,"Error select on control connection : %s\n",strerror(errno)); ^~~~~~~~ perror bbftp_put.c:259:37: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] if ( (buffer = (char *) malloc(msglen+1) ) == NULL) { ^~~~~~ bbftp_put.c:259:37: warning: incompatible implicit declaration of built-in function 'malloc' bbftp_put.c:259:37: note: include '' or provide a declaration of 'malloc' bbftp_put.c:51:1: +#include bbftp_put.c:259:37: if ( (buffer = (char *) malloc(msglen+1) ) == NULL) { ^~~~~~ bbftp_put.c:271:17: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(buffer) ; ^~~~ bbftp_put.c:271:17: warning: incompatible implicit declaration of built-in function 'free' bbftp_put.c:271:17: note: include '' or provide a declaration of 'free' bbftp_put.c:281:17: warning: incompatible implicit declaration of built-in function 'free' free(buffer) ; ^~~~ bbftp_put.c:281:17: note: include '' or provide a declaration of 'free' bbftp_put.c:305:37: warning: incompatible implicit declaration of built-in function 'malloc' if ( (buffer = (char *) malloc(msglen+1) ) == NULL) { ^~~~~~ bbftp_put.c:305:37: note: include '' or provide a declaration of 'malloc' bbftp_put.c:317:17: warning: incompatible implicit declaration of built-in function 'free' free(buffer) ; ^~~~ bbftp_put.c:317:17: note: include '' or provide a declaration of 'free' bbftp_put.c:327:41: warning: incompatible implicit declaration of built-in function 'malloc' if ( (myports = (int *) malloc (requestedstreamnumber*sizeof(int)) ) == NULL ) { ^~~~~~ bbftp_put.c:327:41: note: include '' or provide a declaration of 'malloc' bbftp_put.c:332:21: warning: incompatible implicit declaration of built-in function 'free' free(buffer); ^~~~ bbftp_put.c:332:21: note: include '' or provide a declaration of 'free' bbftp_put.c:340:21: warning: incompatible implicit declaration of built-in function 'free' free(buffer) ; ^~~~ bbftp_put.c:340:21: note: include '' or provide a declaration of 'free' bbftp_put.c:399:5: warning: incompatible implicit declaration of built-in function 'free' free(buffer) ; ^~~~ bbftp_put.c:399:5: note: include '' or provide a declaration of 'free' bbftp_put.c:404:29: warning: incompatible implicit declaration of built-in function 'malloc' if ( (buffer = (char *) malloc (requestedstreamnumber*sizeof(int))) == NULL) { ^~~~~~ bbftp_put.c:404:29: note: include '' or provide a declaration of 'malloc' bbftp_put.c:427:32: warning: incompatible implicit declaration of built-in function 'malloc' if ( (mychildren = (int *) malloc (requestedstreamnumber*sizeof(int))) == NULL) { ^~~~~~ bbftp_put.c:427:32: note: include '' or provide a declaration of 'malloc' bbftp_put.c:459:33: warning: incompatible implicit declaration of built-in function 'malloc' if ( (readbuffer = (char *) malloc (buffersizeperstream*1024)) == NULL) { ^~~~~~ bbftp_put.c:459:33: note: include '' or provide a declaration of 'malloc' bbftp_put.c:487:37: warning: incompatible implicit declaration of built-in function 'malloc' if ( (compbuffer = (char *) malloc (buffersizeperstream*1024)) == NULL) { ^~~~~~ bbftp_put.c:487:37: note: include '' or provide a declaration of 'malloc' bbftp_put.c:515:31: warning: incompatible implicit declaration of built-in function 'malloc' if ( (myports = (int *) malloc (requestedstreamnumber*sizeof(int)) ) == NULL ) { ^~~~~~ bbftp_put.c:515:31: note: include '' or provide a declaration of 'malloc' bbftp_put.c:538:31: warning: incompatible implicit declaration of built-in function 'malloc' if ( (mysockets = (int *) malloc (requestedstreamnumber*sizeof(int)) ) == NULL ) { ^~~~~~ bbftp_put.c:538:31: note: include '' or provide a declaration of 'malloc' bbftp_put.c:851:38: warning: incompatible implicit declaration of built-in function 'malloc' if ( ( buffer = (char *) malloc (msglen+1) ) == NULL ) { ^~~~~~ bbftp_put.c:851:38: note: include '' or provide a declaration of 'malloc' bbftp_put.c:927:38: warning: incompatible implicit declaration of built-in function 'malloc' if ( ( buffer = (char *) malloc (msglen+1) ) == NULL ) { ^~~~~~ bbftp_put.c:927:38: note: include '' or provide a declaration of 'malloc' cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o bbftp_retr.o bbftp_retr.c bbftp_retr.c: In function 'bbftp_retrlistdir': bbftp_retr.c:145:30: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] if ( (dirpath = (char *) malloc ( strlen(pattern) + 1 + 3 )) == NULL ) { ^~~~~~ bbftp_retr.c:145:30: warning: incompatible implicit declaration of built-in function 'malloc' bbftp_retr.c:145:30: note: include '' or provide a declaration of 'malloc' bbftp_retr.c:55:1: +#include #endif bbftp_retr.c:145:30: if ( (dirpath = (char *) malloc ( strlen(pattern) + 1 + 3 )) == NULL ) { ^~~~~~ bbftp_retr.c:145:39: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] if ( (dirpath = (char *) malloc ( strlen(pattern) + 1 + 3 )) == NULL ) { ^~~~~~ bbftp_retr.c:145:39: warning: incompatible implicit declaration of built-in function 'strlen' bbftp_retr.c:145:39: note: include '' or provide a declaration of 'strlen' bbftp_retr.c:55:1: +#include #endif bbftp_retr.c:145:39: if ( (dirpath = (char *) malloc ( strlen(pattern) + 1 + 3 )) == NULL ) { ^~~~~~ bbftp_retr.c:146:69: warning: implicit declaration of function 'strerror'; did you mean 'gzerror'? [-Wimplicit-function-declaration] sprintf(logmessage,"Error allocating memory for dirpath %s",strerror(errno)) ; ^~~~~~~~ gzerror bbftp_retr.c:151:17: warning: incompatible implicit declaration of built-in function 'strlen' lastslash = strlen(pointer) - 1 ; ^~~~~~ bbftp_retr.c:151:17: note: include '' or provide a declaration of 'strlen' bbftp_retr.c:161:13: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(dirpath) ; ^~~~ bbftp_retr.c:161:13: warning: incompatible implicit declaration of built-in function 'free' bbftp_retr.c:161:13: note: include '' or provide a declaration of 'free' bbftp_retr.c:164:9: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(dirpath,"./") ; ^~~~~~ bbftp_retr.c:164:9: warning: incompatible implicit declaration of built-in function 'strcpy' bbftp_retr.c:164:9: note: include '' or provide a declaration of 'strcpy' bbftp_retr.c:173:13: warning: incompatible implicit declaration of built-in function 'free' free(dirpath) ; ^~~~ bbftp_retr.c:173:13: note: include '' or provide a declaration of 'free' bbftp_retr.c:176:9: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(dirpath,"/") ; ^~~~~~ bbftp_retr.c:176:9: note: include '' or provide a declaration of 'strcpy' bbftp_retr.c:184:9: warning: incompatible implicit declaration of built-in function 'free' free(dirpath) ; ^~~~ bbftp_retr.c:184:9: note: include '' or provide a declaration of 'free' bbftp_retr.c:192:9: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(dirpath,pointer) ; ^~~~~~ bbftp_retr.c:192:9: note: include '' or provide a declaration of 'strcpy' bbftp_retr.c:199:13: warning: incompatible implicit declaration of built-in function 'free' free(dirpath) ; ^~~~ bbftp_retr.c:199:13: note: include '' or provide a declaration of 'free' bbftp_retr.c:229:55: warning: incompatible implicit declaration of built-in function 'malloc' if ( ( current_item = (struct keepfile *) malloc( sizeof(struct keepfile)) ) == NULL ) { ^~~~~~ bbftp_retr.c:229:55: note: include '' or provide a declaration of 'malloc' bbftp_retr.c:234:21: warning: incompatible implicit declaration of built-in function 'free' free(current_item->filename) ; ^~~~ bbftp_retr.c:234:21: note: include '' or provide a declaration of 'free' bbftp_retr.c:240:17: warning: incompatible implicit declaration of built-in function 'free' free(dirpath) ; ^~~~ bbftp_retr.c:240:17: note: include '' or provide a declaration of 'free' bbftp_retr.c:243:54: warning: incompatible implicit declaration of built-in function 'malloc' if ( ( current_item->filename = (char *) malloc( strlen(dirpath) + strlen(dp->d_name) + 1) ) == NULL ) { ^~~~~~ bbftp_retr.c:243:54: note: include '' or provide a declaration of 'malloc' bbftp_retr.c:249:17: warning: incompatible implicit declaration of built-in function 'free' free(current_item) ; ^~~~ bbftp_retr.c:249:17: note: include '' or provide a declaration of 'free' bbftp_retr.c:280:21: warning: incompatible implicit declaration of built-in function 'free' free(current_item->filename) ; ^~~~ bbftp_retr.c:280:21: note: include '' or provide a declaration of 'free' bbftp_retr.c:286:17: warning: incompatible implicit declaration of built-in function 'free' free(dirpath) ; ^~~~ bbftp_retr.c:286:17: note: include '' or provide a declaration of 'free' bbftp_retr.c:330:13: warning: incompatible implicit declaration of built-in function 'free' free(current_item->filename) ; ^~~~ bbftp_retr.c:330:13: note: include '' or provide a declaration of 'free' bbftp_retr.c:335:9: warning: incompatible implicit declaration of built-in function 'free' free(dirpath) ; ^~~~ bbftp_retr.c:335:9: note: include '' or provide a declaration of 'free' bbftp_retr.c:348:13: warning: incompatible implicit declaration of built-in function 'free' free(current_item->filename) ; ^~~~ bbftp_retr.c:348:13: note: include '' or provide a declaration of 'free' bbftp_retr.c:353:9: warning: incompatible implicit declaration of built-in function 'free' free(dirpath) ; ^~~~ bbftp_retr.c:353:9: note: include '' or provide a declaration of 'free' bbftp_retr.c:359:33: warning: incompatible implicit declaration of built-in function 'malloc' if ( ( *filelist = (char *) malloc (lengthtosend) ) == NULL ) { ^~~~~~ bbftp_retr.c:359:33: note: include '' or provide a declaration of 'malloc' bbftp_retr.c:365:13: warning: incompatible implicit declaration of built-in function 'free' free(current_item->filename) ; ^~~~ bbftp_retr.c:365:13: note: include '' or provide a declaration of 'free' bbftp_retr.c:370:9: warning: incompatible implicit declaration of built-in function 'free' free(dirpath) ; ^~~~ bbftp_retr.c:370:9: note: include '' or provide a declaration of 'free' bbftp_retr.c:386:9: warning: incompatible implicit declaration of built-in function 'free' free(current_item->filename) ; ^~~~ bbftp_retr.c:386:9: note: include '' or provide a declaration of 'free' bbftp_retr.c:391:5: warning: incompatible implicit declaration of built-in function 'free' free(dirpath) ; ^~~~ bbftp_retr.c:391:5: note: include '' or provide a declaration of 'free' bbftp_retr.c: In function 'bbftp_retrtransferfile': bbftp_retr.c:664:24: warning: implicit declaration of function 'bbftp_createdatasock'; did you mean 'getdatasock'? [-Wimplicit-function-declaration] sendsock = bbftp_createdatasock(*portnumber/*,logmessage*/) ; ^~~~~~~~~~~~~~~~~~~~ getdatasock bbftp_retr.c:778:26: warning: implicit declaration of function 'accept'; did you mean 'acct'? [-Wimplicit-function-declaration] if ( (ns = accept(sendsock,0,0) ) < 0 ) { ^~~~~~ acct bbftp_retr.c:824:29: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] memcpy(readbuffer,compbuffer,buffersizeperstream*1024) ; ^~~~~~ bbftp_retr.c:824:29: warning: incompatible implicit declaration of built-in function 'memcpy' bbftp_retr.c:824:29: note: include '' or provide a declaration of 'memcpy' bbftp_retr.c:873:39: warning: implicit declaration of function 'send'; did you mean 'sync'? [-Wimplicit-function-declaration] retcode = send(ns,&readbuffer[nbsent],lentosend,0) ; ^~~~ sync cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o bbftp_setremotecos.o bbftp_setremotecos.c bbftp_setremotecos.c: In function 'bbftp_setremotecos': bbftp_setremotecos.c:122:101: warning: implicit declaration of function 'strerror'; did you mean 'perror'? [-Wimplicit-function-declaration] printmessage(stderr,CASE_ERROR,66,timestamp,"Error select on control connection : %s\n",strerror(errno)); ^~~~~~~~ perror bbftp_setremotecos.c:161:37: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] if ( (buffer = (char *) malloc(msglen+1) ) == NULL) { ^~~~~~ bbftp_setremotecos.c:161:37: warning: incompatible implicit declaration of built-in function 'malloc' bbftp_setremotecos.c:161:37: note: include '' or provide a declaration of 'malloc' bbftp_setremotecos.c:47:1: +#include bbftp_setremotecos.c:161:37: if ( (buffer = (char *) malloc(msglen+1) ) == NULL) { ^~~~~~ bbftp_setremotecos.c:171:17: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(buffer) ; ^~~~ bbftp_setremotecos.c:171:17: warning: incompatible implicit declaration of built-in function 'free' bbftp_setremotecos.c:171:17: note: include '' or provide a declaration of 'free' bbftp_setremotecos.c:181:17: warning: incompatible implicit declaration of built-in function 'free' free(buffer) ; ^~~~ bbftp_setremotecos.c:181:17: note: include '' or provide a declaration of 'free' bbftp_setremotecos.c:209:37: warning: incompatible implicit declaration of built-in function 'malloc' if ( (buffer = (char *) malloc(msglen+1) ) == NULL) { ^~~~~~ bbftp_setremotecos.c:209:37: note: include '' or provide a declaration of 'malloc' bbftp_setremotecos.c:219:17: warning: incompatible implicit declaration of built-in function 'free' free(buffer) ; ^~~~ bbftp_setremotecos.c:219:17: note: include '' or provide a declaration of 'free' bbftp_setremotecos.c:224:13: warning: incompatible implicit declaration of built-in function 'free' free(buffer) ; ^~~~ bbftp_setremotecos.c:224:13: note: include '' or provide a declaration of 'free' cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o bbftp_setremoteumask.o bbftp_setremoteumask.c bbftp_setremoteumask.c: In function 'bbftp_setremoteumask': bbftp_setremoteumask.c:123:101: warning: implicit declaration of function 'strerror'; did you mean 'perror'? [-Wimplicit-function-declaration] printmessage(stderr,CASE_ERROR,66,timestamp,"Error select on control connection : %s\n",strerror(errno)); ^~~~~~~~ perror bbftp_setremoteumask.c:162:37: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] if ( (buffer = (char *) malloc(msglen+1) ) == NULL) { ^~~~~~ bbftp_setremoteumask.c:162:37: warning: incompatible implicit declaration of built-in function 'malloc' bbftp_setremoteumask.c:162:37: note: include '' or provide a declaration of 'malloc' bbftp_setremoteumask.c:48:1: +#include bbftp_setremoteumask.c:162:37: if ( (buffer = (char *) malloc(msglen+1) ) == NULL) { ^~~~~~ bbftp_setremoteumask.c:172:17: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(buffer) ; ^~~~ bbftp_setremoteumask.c:172:17: warning: incompatible implicit declaration of built-in function 'free' bbftp_setremoteumask.c:172:17: note: include '' or provide a declaration of 'free' bbftp_setremoteumask.c:182:17: warning: incompatible implicit declaration of built-in function 'free' free(buffer) ; ^~~~ bbftp_setremoteumask.c:182:17: note: include '' or provide a declaration of 'free' bbftp_setremoteumask.c:210:37: warning: incompatible implicit declaration of built-in function 'malloc' if ( (buffer = (char *) malloc(msglen+1) ) == NULL) { ^~~~~~ bbftp_setremoteumask.c:210:37: note: include '' or provide a declaration of 'malloc' bbftp_setremoteumask.c:220:17: warning: incompatible implicit declaration of built-in function 'free' free(buffer) ; ^~~~ bbftp_setremoteumask.c:220:17: note: include '' or provide a declaration of 'free' bbftp_setremoteumask.c:225:13: warning: incompatible implicit declaration of built-in function 'free' free(buffer) ; ^~~~ bbftp_setremoteumask.c:225:13: note: include '' or provide a declaration of 'free' cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o bbftp_store.o bbftp_store.c bbftp_store.c: In function 'bbftp_storechmod': bbftp_store.c:139:67: warning: implicit declaration of function 'strerror'; did you mean 'gzerror'? [-Wimplicit-function-declaration] sprintf(logmessage,"Error chmod on file %s : %s",filename,strerror(errno)) ; ^~~~~~~~ gzerror bbftp_store.c: In function 'bbftp_storemkdir': bbftp_store.c:335:30: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] if ( (dirpath = (char *) malloc (strlen(dirname)+1) ) == NULL ) { ^~~~~~ bbftp_store.c:335:30: warning: incompatible implicit declaration of built-in function 'malloc' bbftp_store.c:335:30: note: include '' or provide a declaration of 'malloc' bbftp_store.c:52:1: +#include #endif bbftp_store.c:335:30: if ( (dirpath = (char *) malloc (strlen(dirname)+1) ) == NULL ) { ^~~~~~ bbftp_store.c:335:38: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] if ( (dirpath = (char *) malloc (strlen(dirname)+1) ) == NULL ) { ^~~~~~ bbftp_store.c:335:38: warning: incompatible implicit declaration of built-in function 'strlen' bbftp_store.c:335:38: note: include '' or provide a declaration of 'strlen' bbftp_store.c:52:1: +#include #endif bbftp_store.c:335:38: if ( (dirpath = (char *) malloc (strlen(dirname)+1) ) == NULL ) { ^~~~~~ bbftp_store.c:340:5: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy (dirpath, dirname); ^~~~~~ bbftp_store.c:340:5: warning: incompatible implicit declaration of built-in function 'strcpy' bbftp_store.c:340:5: note: include '' or provide a declaration of 'strcpy' bbftp_store.c:357:30: warning: implicit declaration of function 'strchr' [-Wimplicit-function-declaration] slash = (char *) strchr (slash, '/'); ^~~~~~ bbftp_store.c:357:30: warning: incompatible implicit declaration of built-in function 'strchr' bbftp_store.c:357:30: note: include '' or provide a declaration of 'strchr' bbftp_store.c:402:25: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(dirpath) ; ^~~~ bbftp_store.c:402:25: warning: incompatible implicit declaration of built-in function 'free' bbftp_store.c:402:25: note: include '' or provide a declaration of 'free' bbftp_store.c:405:25: warning: incompatible implicit declaration of built-in function 'free' free(dirpath) ; ^~~~ bbftp_store.c:405:25: note: include '' or provide a declaration of 'free' bbftp_store.c:411:21: warning: incompatible implicit declaration of built-in function 'free' free(dirpath) ; ^~~~ bbftp_store.c:411:21: note: include '' or provide a declaration of 'free' bbftp_store.c:463:17: warning: incompatible implicit declaration of built-in function 'free' free(dirpath) ; ^~~~ bbftp_store.c:463:17: note: include '' or provide a declaration of 'free' bbftp_store.c:466:17: warning: incompatible implicit declaration of built-in function 'free' free(dirpath) ; ^~~~ bbftp_store.c:466:17: note: include '' or provide a declaration of 'free' bbftp_store.c:472:13: warning: incompatible implicit declaration of built-in function 'free' free(dirpath) ; ^~~~ bbftp_store.c:472:13: note: include '' or provide a declaration of 'free' bbftp_store.c:478:13: warning: incompatible implicit declaration of built-in function 'free' free(dirpath) ; ^~~~ bbftp_store.c:478:13: note: include '' or provide a declaration of 'free' bbftp_store.c:482:5: warning: incompatible implicit declaration of built-in function 'free' free(dirpath) ; ^~~~ bbftp_store.c:482:5: note: include '' or provide a declaration of 'free' bbftp_store.c: In function 'bbftp_storecreatefile': bbftp_store.c:532:31: warning: incompatible implicit declaration of built-in function 'malloc' if ( (filepath = (char *) malloc (strlen(filename)+1) ) == NULL ) { ^~~~~~ bbftp_store.c:532:31: note: include '' or provide a declaration of 'malloc' bbftp_store.c:532:39: warning: incompatible implicit declaration of built-in function 'strlen' if ( (filepath = (char *) malloc (strlen(filename)+1) ) == NULL ) { ^~~~~~ bbftp_store.c:532:39: note: include '' or provide a declaration of 'strlen' bbftp_store.c:537:5: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy (filepath, filename); ^~~~~~ bbftp_store.c:537:5: note: include '' or provide a declaration of 'strcpy' bbftp_store.c:544:17: warning: incompatible implicit declaration of built-in function 'strlen' lastslash = strlen(filepath) - 1 ; ^~~~~~ bbftp_store.c:544:17: note: include '' or provide a declaration of 'strlen' bbftp_store.c:562:9: warning: incompatible implicit declaration of built-in function 'free' free(filepath) ; ^~~~ bbftp_store.c:562:9: note: include '' or provide a declaration of 'free' bbftp_store.c:590:17: warning: incompatible implicit declaration of built-in function 'free' free(filepath) ; ^~~~ bbftp_store.c:590:17: note: include '' or provide a declaration of 'free' bbftp_store.c:600:21: warning: incompatible implicit declaration of built-in function 'free' free(filepath) ; ^~~~ bbftp_store.c:600:21: note: include '' or provide a declaration of 'free' bbftp_store.c:604:25: warning: incompatible implicit declaration of built-in function 'free' free(filepath) ; ^~~~ bbftp_store.c:604:25: note: include '' or provide a declaration of 'free' bbftp_store.c:612:17: warning: incompatible implicit declaration of built-in function 'free' free(filepath) ; ^~~~ bbftp_store.c:612:17: note: include '' or provide a declaration of 'free' bbftp_store.c:626:17: warning: incompatible implicit declaration of built-in function 'free' free(filepath) ; ^~~~ bbftp_store.c:626:17: note: include '' or provide a declaration of 'free' bbftp_store.c:636:9: warning: incompatible implicit declaration of built-in function 'free' free(filepath) ; ^~~~ bbftp_store.c:636:9: note: include '' or provide a declaration of 'free' bbftp_store.c:671:13: warning: incompatible implicit declaration of built-in function 'free' free(filepath) ; ^~~~ bbftp_store.c:671:13: note: include '' or provide a declaration of 'free' bbftp_store.c:675:13: warning: incompatible implicit declaration of built-in function 'free' free(filepath) ; ^~~~ bbftp_store.c:675:13: note: include '' or provide a declaration of 'free' bbftp_store.c:681:9: warning: incompatible implicit declaration of built-in function 'free' free(filepath) ; ^~~~ bbftp_store.c:681:9: note: include '' or provide a declaration of 'free' bbftp_store.c:742:13: warning: incompatible implicit declaration of built-in function 'free' free(filepath) ; ^~~~ bbftp_store.c:742:13: note: include '' or provide a declaration of 'free' bbftp_store.c:746:13: warning: incompatible implicit declaration of built-in function 'free' free(filepath) ; ^~~~ bbftp_store.c:746:13: note: include '' or provide a declaration of 'free' bbftp_store.c: In function 'bbftp_storetransferfile': bbftp_store.c:844:24: warning: implicit declaration of function 'bbftp_createdatasock'; did you mean 'getdatasock'? [-Wimplicit-function-declaration] sendsock = bbftp_createdatasock(*portnumber/*,logmessage*/) ; ^~~~~~~~~~~~~~~~~~~~ getdatasock bbftp_store.c:979:26: warning: implicit declaration of function 'accept'; did you mean 'acct'? [-Wimplicit-function-declaration] if ( (ns = accept(sendsock,0,0) ) < 0 ) { ^~~~~~ acct bbftp_store.c:1008:25: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(i) ; ^~~~ bbftp_store.c:1008:25: warning: incompatible implicit declaration of built-in function 'exit' bbftp_store.c:1008:25: note: include '' or provide a declaration of 'exit' bbftp_store.c:1061:35: warning: implicit declaration of function 'recv'; did you mean 'read'? [-Wimplicit-function-declaration] retcode = recv(ns,&readbuffer[dataonone],datatoreceive-dataonone,0) ; ^~~~ read bbftp_store.c:1092:25: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] memcpy(readbuffer,compbuffer,buffersizeperstream*1024) ; ^~~~~~ bbftp_store.c:1092:25: warning: incompatible implicit declaration of built-in function 'memcpy' bbftp_store.c:1092:25: note: include '' or provide a declaration of 'memcpy' bbftp_store.c:1132:17: warning: incompatible implicit declaration of built-in function 'exit' exit(ETIMEDOUT) ; ^~~~ bbftp_store.c:1132:17: note: include '' or provide a declaration of 'exit' cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o bbftp_socket.o bbftp_socket.c bbftp_socket.c: In function 'bbftp_createdatasock': bbftp_socket.c:91:87: warning: implicit declaration of function 'strerror'; did you mean 'perror'? [-Wimplicit-function-declaration] printmessage(stderr,CASE_ERROR,91,timestamp,"Cannot create data socket: %s\n",strerror(errno)); ^~~~~~~~ perror bbftp_socket.c:107:67: warning: passing argument 5 of 'getsockopt' from incompatible pointer type [-Wincompatible-pointer-types] if ( getsockopt(sock,SOL_SOCKET,SO_RCVBUF,(char *)&tcpwinsize,&addrlen) < 0 ) { ^~~~~~~~ In file included from bbftp_socket.c:34: /usr/include/sys/socket.h:493:50: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} int getsockopt(int, int, int, void * __restrict, socklen_t * __restrict); ^~~~~~~~~~~~~~~~~~~~~~ bbftp_socket.c:123:68: warning: passing argument 5 of 'getsockopt' from incompatible pointer type [-Wincompatible-pointer-types] if ( getsockopt(sock,SOL_SOCKET, SO_SNDBUF,(char *)&tcpwinsize,&addrlen) < 0 ) { ^~~~~~~~ In file included from bbftp_socket.c:34: /usr/include/sys/socket.h:493:50: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} int getsockopt(int, int, int, void * __restrict, socklen_t * __restrict); ^~~~~~~~~~~~~~~~~~~~~~ cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o bbftp_utils.o bbftp_utils.c bbftp_utils.c: In function 'printmessage': bbftp_utils.c:110:13: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(clogtime,"") ; ^~~~~~ bbftp_utils.c:110:13: warning: incompatible implicit declaration of built-in function 'strcpy' bbftp_utils.c:110:13: note: include '' or provide a declaration of 'strcpy' bbftp_utils.c:44:1: +#include #ifdef HAVE_BYTESWAP_H bbftp_utils.c:110:13: strcpy(clogtime,"") ; ^~~~~~ bbftp_utils.c:113:17: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(clogtime,"") ; ^~~~~~ bbftp_utils.c:113:17: note: include '' or provide a declaration of 'strcpy' bbftp_utils.c:119:14: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] if ( strlen(clogtime) > 0 ) { ^~~~~~ bbftp_utils.c:119:14: warning: incompatible implicit declaration of built-in function 'strlen' bbftp_utils.c:119:14: note: include '' or provide a declaration of 'strlen' bbftp_utils.c:146:9: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(errcode) ; ^~~~ bbftp_utils.c:146:9: warning: incompatible implicit declaration of built-in function 'exit' bbftp_utils.c:146:9: note: include '' or provide a declaration of 'exit' bbftp_utils.c:44:1: +#include #ifdef HAVE_BYTESWAP_H bbftp_utils.c:146:9: exit(errcode) ; ^~~~ bbftp_utils.c: In function 'strip_trailing_slashes': bbftp_utils.c:199:10: warning: incompatible implicit declaration of built-in function 'strlen' last = strlen (path) - 1; ^~~~~~ bbftp_utils.c:199:10: note: include '' or provide a declaration of 'strlen' bbftp_utils.c: In function 'bbftp_close_control': bbftp_utils.c:207:5: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] close(incontrolsock) ; ^~~~~ pclose bbftp_utils.c: In function 'bbftp_free_all_var': bbftp_utils.c:217:9: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(myports) ; ^~~~ bbftp_utils.c:217:9: warning: incompatible implicit declaration of built-in function 'free' bbftp_utils.c:217:9: note: include '' or provide a declaration of 'free' bbftp_utils.c:221:9: warning: incompatible implicit declaration of built-in function 'free' free(mychildren) ; ^~~~ bbftp_utils.c:221:9: note: include '' or provide a declaration of 'free' bbftp_utils.c:225:9: warning: incompatible implicit declaration of built-in function 'free' free(realfilename) ; ^~~~ bbftp_utils.c:225:9: note: include '' or provide a declaration of 'free' bbftp_utils.c:229:9: warning: incompatible implicit declaration of built-in function 'free' free(curfilename) ; ^~~~ bbftp_utils.c:229:9: note: include '' or provide a declaration of 'free' bbftp_utils.c:233:9: warning: incompatible implicit declaration of built-in function 'free' free(mysockets) ; ^~~~ bbftp_utils.c:233:9: note: include '' or provide a declaration of 'free' bbftp_utils.c:237:9: warning: incompatible implicit declaration of built-in function 'free' free(readbuffer) ; ^~~~ bbftp_utils.c:237:9: note: include '' or provide a declaration of 'free' bbftp_utils.c:241:9: warning: incompatible implicit declaration of built-in function 'free' free(compbuffer) ; ^~~~ bbftp_utils.c:241:9: note: include '' or provide a declaration of 'free' cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o connecttoserver.o connecttoserver.c connecttoserver.c: In function 'splitargs': connecttoserver.c:110:11: warning: implicit declaration of function 'isspace' [-Wimplicit-function-declaration] if (isspace (c)) continue; ^~~~~~~ connecttoserver.c:118:9: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] strncpy (num, p+1, 2); num[2]= '\0'; ^~~~~~~ connecttoserver.c:118:9: warning: incompatible implicit declaration of built-in function 'strncpy' connecttoserver.c:118:9: note: include '' or provide a declaration of 'strncpy' connecttoserver.c:52:1: +#include #endif connecttoserver.c:118:9: strncpy (num, p+1, 2); num[2]= '\0'; ^~~~~~~ connecttoserver.c:124:18: warning: implicit declaration of function 'isdigit' [-Wimplicit-function-declaration] } else if (isdigit (c)) { ^~~~~~~ connecttoserver.c:125:9: warning: incompatible implicit declaration of built-in function 'strncpy' strncpy (num, p, 3); num[3]= '\0'; ^~~~~~~ connecttoserver.c:125:9: note: include '' or provide a declaration of 'strncpy' connecttoserver.c:132:21: warning: implicit declaration of function 'strchr' [-Wimplicit-function-declaration] r= (char *) strchr (esc, c); ^~~~~~ connecttoserver.c:132:21: warning: incompatible implicit declaration of built-in function 'strchr' connecttoserver.c:132:21: note: include '' or provide a declaration of 'strchr' connecttoserver.c: In function 'connectviassh': connecttoserver.c:205:5: warning: implicit declaration of function 'pipe'; did you mean 'popen'? [-Wimplicit-function-declaration] pipe(reserved); ^~~~ popen connecttoserver.c:210:87: warning: implicit declaration of function 'strerror'; did you mean 'perror'? [-Wimplicit-function-declaration] printmessage(stderr,CASE_FATAL_ERROR,41,timestamp,"Pipe for ssh failed : %s", strerror(errno)) ; ^~~~~~~~ perror connecttoserver.c:218:5: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] close(reserved[0]); ^~~~~ pclose connecttoserver.c:225:21: warning: implicit declaration of function 'fork' [-Wimplicit-function-declaration] if ( (retcode = fork()) == 0 ) { ^~~~ connecttoserver.c:235:9: warning: implicit declaration of function 'dup2' [-Wimplicit-function-declaration] dup2(pin[0], 0); ^~~~ connecttoserver.c:241:18: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] largbuf= strlen (sshcmd)+1; ^~~~~~ connecttoserver.c:241:18: warning: incompatible implicit declaration of built-in function 'strlen' connecttoserver.c:241:18: note: include '' or provide a declaration of 'strlen' connecttoserver.c:289:9: warning: implicit declaration of function 'execvp' [-Wimplicit-function-declaration] execvp(args[0], args); ^~~~~~ connecttoserver.c: In function 'connectviapassword': connecttoserver.c:495:64: warning: passing argument 3 of 'getsockname' from incompatible pointer type [-Wincompatible-pointer-types] if (getsockname(tmpctrlsock,(struct sockaddr*) &myctladdr, &addrlen) < 0) { ^~~~~~~~ In file included from connecttoserver.c:40: /usr/include/sys/socket.h:492:52: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); ^~~~~~~~~~~~~~~~~~~~~~ connecttoserver.c:547:9: warning: implicit declaration of function 'ERR_load_crypto_strings'; did you mean 'ERR_load_RSA_strings'? [-Wimplicit-function-declaration] ERR_load_crypto_strings() ; ^~~~~~~~~~~~~~~~~~~~~~~ ERR_load_RSA_strings connecttoserver.c:564:9: warning: implicit declaration of function 'RAND_seed'; did you mean 'RAND_MAX'? [-Wimplicit-function-declaration] RAND_seed(buffrand,NBITSINKEY) ; ^~~~~~~~~ RAND_MAX connecttoserver.c:577:126: warning: implicit declaration of function 'ERR_error_string'; did you mean 'ERR_load_BN_strings'? [-Wimplicit-function-declaration] printmessage(stderr,CASE_ERROR,56,timestamp,"Error reading encrypted message : %s (%s)\n","getting RSA",(char *) ERR_error_string(ERR_get_error(),NULL)) ; ^~~~~~~~~~~~~~~~ ERR_load_BN_strings connecttoserver.c:577:143: warning: implicit declaration of function 'ERR_get_error'; did you mean 'lh_MEM_error'? [-Wimplicit-function-declaration] printmessage(stderr,CASE_ERROR,56,timestamp,"Error reading encrypted message : %s (%s)\n","getting RSA",(char *) ERR_error_string(ERR_get_error(),NULL)) ; ^~~~~~~~~~~~~ lh_MEM_error connecttoserver.c:577:117: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] printmessage(stderr,CASE_ERROR,56,timestamp,"Error reading encrypted message : %s (%s)\n","getting RSA",(char *) ERR_error_string(ERR_get_error(),NULL)) ; ^ connecttoserver.c:586:120: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] printmessage(stderr,CASE_ERROR,56,timestamp,"Error reading encrypted message : %s (%s)\n","getting BIGNUM",(char *) ERR_error_string(ERR_get_error(),NULL)) ; ^ connecttoserver.c:592:120: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] printmessage(stderr,CASE_ERROR,56,timestamp,"Error reading encrypted message : %s (%s)\n","getting BIGNUM",(char *) ERR_error_string(ERR_get_error(),NULL)) ; ^ connecttoserver.c:601:120: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] printmessage(stderr,CASE_ERROR,56,timestamp,"Error reading encrypted message : %s (%s)\n","copying pubkey",(char *) ERR_error_string(ERR_get_error(),NULL)) ; ^ connecttoserver.c:607:125: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] printmessage(stderr,CASE_ERROR,56,timestamp,"Error reading encrypted message : %s (%s)\n","copying pubexponent",(char *) ERR_error_string(ERR_get_error(),NULL)) ; ^ connecttoserver.c:612:13: warning: incompatible implicit declaration of built-in function 'strlen' if (strlen(username) > lenrsa - 41 ) { ^~~~~~ connecttoserver.c:612:13: note: include '' or provide a declaration of 'strlen' connecttoserver.c:617:13: warning: incompatible implicit declaration of built-in function 'strlen' if (strlen(password) > lenrsa - 41 ) { ^~~~~~ connecttoserver.c:617:13: note: include '' or provide a declaration of 'strlen' connecttoserver.c:624:53: warning: incompatible implicit declaration of built-in function 'strlen' if ( (msg_rsa->numuser = RSA_public_encrypt(strlen(username),(unsigned char *)username,msg_rsa->cryptuser,hisrsa,RSA_PKCS1_OAEP_PADDING)) < 0 ) { ^~~~~~ connecttoserver.c:624:53: note: include '' or provide a declaration of 'strlen' connecttoserver.c:627:133: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] printmessage(stderr,CASE_ERROR,56,timestamp,"Error reading encrypted message : %s (%s)\n","RSA_public_encrypt username",(char *) ERR_error_string(ERR_get_error(),NULL)) ; ^ connecttoserver.c:633:53: warning: incompatible implicit declaration of built-in function 'strlen' if ( (msg_rsa->numpass = RSA_public_encrypt(strlen(password),(unsigned char *)password,msg_rsa->cryptpass,hisrsa,RSA_PKCS1_OAEP_PADDING)) < 0 ) { ^~~~~~ connecttoserver.c:633:53: note: include '' or provide a declaration of 'strlen' connecttoserver.c:636:133: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] printmessage(stderr,CASE_ERROR,56,timestamp,"Error reading encrypted message : %s (%s)\n","RSA_public_encrypt password",(char *) ERR_error_string(ERR_get_error(),NULL)) ; ^ connecttoserver.c: In function 'reconnecttoserver': connecttoserver.c:1042:13: warning: implicit declaration of function 'sleep' [-Wimplicit-function-declaration] sleep(WAITRETRYTIME) ; ^~~~~ cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o getdatasock.o getdatasock.c getdatasock.c: In function 'getdatasock': getdatasock.c:92:91: warning: implicit declaration of function 'strerror'; did you mean 'perror'? [-Wimplicit-function-declaration] printmessage(stderr,CASE_ERROR,91,timestamp,"Cannot create data socket: %s\n",strerror(errno)); ^~~~~~~~ perror getdatasock.c:127:82: warning: passing argument 5 of 'getsockopt' from incompatible pointer type [-Wincompatible-pointer-types] if ( getsockopt(*mysockfree,SOL_SOCKET,SO_SNDBUF,(char *)&tcpwinsize,&addrlen) < 0 ) { ^~~~~~~~ In file included from getdatasock.c:40: /usr/include/sys/socket.h:493:50: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} int getsockopt(int, int, int, void * __restrict, socklen_t * __restrict); ^~~~~~~~~~~~~~~~~~~~~~ getdatasock.c:136:82: warning: passing argument 5 of 'getsockopt' from incompatible pointer type [-Wincompatible-pointer-types] if ( getsockopt(*mysockfree,SOL_SOCKET,SO_RCVBUF,(char *)&tcpwinsize,&addrlen) < 0 ) { ^~~~~~~~ In file included from getdatasock.c:40: /usr/include/sys/socket.h:493:50: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} int getsockopt(int, int, int, void * __restrict, socklen_t * __restrict); ^~~~~~~~~~~~~~~~~~~~~~ getdatasock.c:167:62: warning: passing argument 3 of 'getsockname' from incompatible pointer type [-Wincompatible-pointer-types] if (getsockname(*mysockfree,(struct sockaddr *)&sck, &addrlen) < 0) { ^~~~~~~~ In file included from getdatasock.c:40: /usr/include/sys/socket.h:492:52: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); ^~~~~~~~~~~~~~~~~~~~~~ cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o readmessage.o readmessage.c cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o sendproto.o sendproto.c sendproto.c: In function 'sendproto': sendproto.c:113:101: warning: implicit declaration of function 'strerror'; did you mean 'perror'? [-Wimplicit-function-declaration] printmessage(stderr,CASE_ERROR,66,timestamp,"Error select on control connection : %s\n",strerror(errno)); ^~~~~~~~ perror cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o treatcommand.o treatcommand.c treatcommand.c: In function 'treatcommand': treatcommand.c:85:35: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] if ( (dupbuffercmd = (char *) malloc (strlen(buffercmd)+1) ) == NULL ) { ^~~~~~ treatcommand.c:85:35: warning: incompatible implicit declaration of built-in function 'malloc' treatcommand.c:85:35: note: include '' or provide a declaration of 'malloc' treatcommand.c:45:1: +#include treatcommand.c:85:35: if ( (dupbuffercmd = (char *) malloc (strlen(buffercmd)+1) ) == NULL ) { ^~~~~~ treatcommand.c:85:43: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] if ( (dupbuffercmd = (char *) malloc (strlen(buffercmd)+1) ) == NULL ) { ^~~~~~ treatcommand.c:85:43: warning: incompatible implicit declaration of built-in function 'strlen' treatcommand.c:85:43: note: include '' or provide a declaration of 'strlen' treatcommand.c:45:1: +#include treatcommand.c:85:43: if ( (dupbuffercmd = (char *) malloc (strlen(buffercmd)+1) ) == NULL ) { ^~~~~~ treatcommand.c:86:114: warning: implicit declaration of function 'strerror'; did you mean 'perror'? [-Wimplicit-function-declaration] printmessage(stderr,CASE_FATAL_ERROR,35,timestamp,"Error allocating memory for %s : %s\n","dupbuffercmd",strerror(errno)) ; ^~~~~~~~ perror treatcommand.c:88:5: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy (dupbuffercmd, buffercmd); ^~~~~~ treatcommand.c:88:5: warning: incompatible implicit declaration of built-in function 'strcpy' treatcommand.c:88:5: note: include '' or provide a declaration of 'strcpy' treatcommand.c:94:40: warning: incompatible implicit declaration of built-in function 'strlen' while ( *mybuffercmd == ' ' && j < strlen(dupbuffercmd) ) { ^~~~~~ treatcommand.c:94:40: note: include '' or provide a declaration of 'strlen' treatcommand.c:103:9: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(dupbuffercmd) ; ^~~~ treatcommand.c:103:9: warning: incompatible implicit declaration of built-in function 'free' treatcommand.c:103:9: note: include '' or provide a declaration of 'free' treatcommand.c:109:9: warning: incompatible implicit declaration of built-in function 'strlen' j = strlen(mybuffercmd) - 1 ; ^~~~~~ treatcommand.c:109:9: note: include '' or provide a declaration of 'strlen' treatcommand.c:118:9: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:118:9: note: include '' or provide a declaration of 'free' treatcommand.c:123:23: warning: implicit declaration of function 'strchr' [-Wimplicit-function-declaration] action = (char *) strchr (action, ' '); ^~~~~~ treatcommand.c:123:23: warning: incompatible implicit declaration of built-in function 'strchr' treatcommand.c:123:23: note: include '' or provide a declaration of 'strchr' treatcommand.c:127:11: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] if ( !strncmp(mybuffercmd,"cd",2) || ^~~~~~~ treatcommand.c:167:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:167:21: note: include '' or provide a declaration of 'free' treatcommand.c:177:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:177:21: note: include '' or provide a declaration of 'free' treatcommand.c:200:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:200:21: note: include '' or provide a declaration of 'free' treatcommand.c:210:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:210:21: note: include '' or provide a declaration of 'free' treatcommand.c:219:53: warning: incompatible implicit declaration of built-in function 'malloc' if ( (remotefilename = (char *) malloc (strlen(action)+1)) == NULL ) { ^~~~~~ treatcommand.c:219:53: note: include '' or provide a declaration of 'malloc' treatcommand.c:222:25: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:222:25: note: include '' or provide a declaration of 'free' treatcommand.c:225:50: warning: incompatible implicit declaration of built-in function 'malloc' if ( (curfilename = (char *) malloc (strlen(action)+1) ) == NULL ) { ^~~~~~ treatcommand.c:225:50: note: include '' or provide a declaration of 'malloc' treatcommand.c:228:25: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:228:25: note: include '' or provide a declaration of 'free' treatcommand.c:232:51: warning: incompatible implicit declaration of built-in function 'malloc' if ( (realfilename = (char *) malloc (strlen(action)+30)) == NULL ) { ^~~~~~ treatcommand.c:232:51: note: include '' or provide a declaration of 'malloc' treatcommand.c:235:25: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:235:25: note: include '' or provide a declaration of 'free' treatcommand.c:265:57: warning: incompatible implicit declaration of built-in function 'malloc' if ( (remotefilename = (char *) malloc (strlen(action)+1)) == NULL ) { ^~~~~~ treatcommand.c:265:57: note: include '' or provide a declaration of 'malloc' treatcommand.c:268:29: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:268:29: note: include '' or provide a declaration of 'free' treatcommand.c:272:54: warning: incompatible implicit declaration of built-in function 'malloc' if ( (curfilename = (char *) malloc (strlen(action)+1) ) == NULL ) { ^~~~~~ treatcommand.c:272:54: note: include '' or provide a declaration of 'malloc' treatcommand.c:275:29: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:275:29: note: include '' or provide a declaration of 'free' treatcommand.c:279:55: warning: incompatible implicit declaration of built-in function 'malloc' if ( (realfilename = (char *) malloc (strlen(action)+30)) == NULL ) { ^~~~~~ treatcommand.c:279:55: note: include '' or provide a declaration of 'malloc' treatcommand.c:282:29: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:282:29: note: include '' or provide a declaration of 'free' treatcommand.c:307:57: warning: incompatible implicit declaration of built-in function 'malloc' if ( (remotefilename = (char *) malloc (strlen(action)+1)) == NULL ) { ^~~~~~ treatcommand.c:307:57: note: include '' or provide a declaration of 'malloc' treatcommand.c:310:29: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:310:29: note: include '' or provide a declaration of 'free' treatcommand.c:314:54: warning: incompatible implicit declaration of built-in function 'malloc' if ( (curfilename = (char *) malloc (strlen(startfn)+strlen(action)+1) ) == NULL ) { ^~~~~~ treatcommand.c:314:54: note: include '' or provide a declaration of 'malloc' treatcommand.c:317:29: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:317:29: note: include '' or provide a declaration of 'free' treatcommand.c:321:55: warning: incompatible implicit declaration of built-in function 'malloc' if ( (realfilename = (char *) malloc (strlen(startfn)+strlen(action)+30)) == NULL ) { ^~~~~~ treatcommand.c:321:55: note: include '' or provide a declaration of 'malloc' treatcommand.c:324:29: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:324:29: note: include '' or provide a declaration of 'free' treatcommand.c:334:33: warning: implicit declaration of function 'rindex' [-Wimplicit-function-declaration] if (rindex(remotefilename, '/') != NULL) { ^~~~~~ treatcommand.c:334:33: warning: incompatible implicit declaration of built-in function 'rindex' treatcommand.c:357:17: warning: incompatible implicit declaration of built-in function 'free' free(remotefilename) ; ^~~~ treatcommand.c:357:17: note: include '' or provide a declaration of 'free' treatcommand.c:368:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:368:21: note: include '' or provide a declaration of 'free' treatcommand.c:378:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:378:21: note: include '' or provide a declaration of 'free' treatcommand.c:395:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:395:21: note: include '' or provide a declaration of 'free' treatcommand.c:405:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:405:21: note: include '' or provide a declaration of 'free' treatcommand.c:414:53: warning: incompatible implicit declaration of built-in function 'malloc' if ( (remotefilename = (char *) malloc (strlen(action)+1)) == NULL ) { ^~~~~~ treatcommand.c:414:53: note: include '' or provide a declaration of 'malloc' treatcommand.c:417:25: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:417:25: note: include '' or provide a declaration of 'free' treatcommand.c:420:52: warning: incompatible implicit declaration of built-in function 'malloc' if ( (localfilename = (char *) malloc (2+1)) == NULL ) { ^~~~~~ treatcommand.c:420:52: note: include '' or provide a declaration of 'malloc' treatcommand.c:423:25: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:423:25: note: include '' or provide a declaration of 'free' treatcommand.c:438:57: warning: incompatible implicit declaration of built-in function 'malloc' if ( (remotefilename = (char *) malloc (strlen(action)+1)) == NULL ) { ^~~~~~ treatcommand.c:438:57: note: include '' or provide a declaration of 'malloc' treatcommand.c:441:29: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:441:29: note: include '' or provide a declaration of 'free' treatcommand.c:444:56: warning: incompatible implicit declaration of built-in function 'malloc' if ( (localfilename = (char *) malloc (2+1)) == NULL ) { ^~~~~~ treatcommand.c:444:56: note: include '' or provide a declaration of 'malloc' treatcommand.c:447:29: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:447:29: note: include '' or provide a declaration of 'free' treatcommand.c:457:57: warning: incompatible implicit declaration of built-in function 'malloc' if ( (remotefilename = (char *) malloc (strlen(action)+1)) == NULL ) { ^~~~~~ treatcommand.c:457:57: note: include '' or provide a declaration of 'malloc' treatcommand.c:460:29: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:460:29: note: include '' or provide a declaration of 'free' treatcommand.c:463:56: warning: incompatible implicit declaration of built-in function 'malloc' if ( (localfilename = (char *) malloc (strlen(startfn)+1)) == NULL ) { ^~~~~~ treatcommand.c:463:56: note: include '' or provide a declaration of 'malloc' treatcommand.c:466:29: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:466:29: note: include '' or provide a declaration of 'free' treatcommand.c:475:17: warning: incompatible implicit declaration of built-in function 'free' free(remotefilename) ; ^~~~ treatcommand.c:475:17: note: include '' or provide a declaration of 'free' treatcommand.c:487:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:487:21: note: include '' or provide a declaration of 'free' treatcommand.c:497:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:497:21: note: include '' or provide a declaration of 'free' treatcommand.c:514:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:514:21: note: include '' or provide a declaration of 'free' treatcommand.c:524:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:524:21: note: include '' or provide a declaration of 'free' treatcommand.c:533:52: warning: incompatible implicit declaration of built-in function 'malloc' if ( (localfilename = (char *) malloc (strlen(action)+1)) == NULL ) { ^~~~~~ treatcommand.c:533:52: note: include '' or provide a declaration of 'malloc' treatcommand.c:536:25: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:536:25: note: include '' or provide a declaration of 'free' treatcommand.c:539:53: warning: incompatible implicit declaration of built-in function 'malloc' if ( (remotefilename = (char *) malloc (2+1)) == NULL ) { ^~~~~~ treatcommand.c:539:53: note: include '' or provide a declaration of 'malloc' treatcommand.c:542:25: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:542:25: note: include '' or provide a declaration of 'free' treatcommand.c:557:56: warning: incompatible implicit declaration of built-in function 'malloc' if ( (localfilename = (char *) malloc (strlen(action)+1)) == NULL ) { ^~~~~~ treatcommand.c:557:56: note: include '' or provide a declaration of 'malloc' treatcommand.c:560:29: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:560:29: note: include '' or provide a declaration of 'free' treatcommand.c:563:57: warning: incompatible implicit declaration of built-in function 'malloc' if ( (remotefilename = (char *) malloc (2+1)) == NULL ) { ^~~~~~ treatcommand.c:563:57: note: include '' or provide a declaration of 'malloc' treatcommand.c:566:29: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:566:29: note: include '' or provide a declaration of 'free' treatcommand.c:576:56: warning: incompatible implicit declaration of built-in function 'malloc' if ( (localfilename = (char *) malloc (strlen(action)+1)) == NULL ) { ^~~~~~ treatcommand.c:576:56: note: include '' or provide a declaration of 'malloc' treatcommand.c:579:29: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:579:29: note: include '' or provide a declaration of 'free' treatcommand.c:582:57: warning: incompatible implicit declaration of built-in function 'malloc' if ( (remotefilename = (char *) malloc (strlen(startfn)+1)) == NULL ) { ^~~~~~ treatcommand.c:582:57: note: include '' or provide a declaration of 'malloc' treatcommand.c:585:29: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:585:29: note: include '' or provide a declaration of 'free' treatcommand.c:594:17: warning: incompatible implicit declaration of built-in function 'free' free(remotefilename) ; ^~~~ treatcommand.c:594:17: note: include '' or provide a declaration of 'free' treatcommand.c:606:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:606:21: note: include '' or provide a declaration of 'free' treatcommand.c:616:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:616:21: note: include '' or provide a declaration of 'free' treatcommand.c:625:53: warning: incompatible implicit declaration of built-in function 'malloc' if ( (remotefilename = (char *) malloc (strlen(action)+1)) == NULL ) { ^~~~~~ treatcommand.c:625:53: note: include '' or provide a declaration of 'malloc' treatcommand.c:628:25: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:628:25: note: include '' or provide a declaration of 'free' treatcommand.c:631:50: warning: incompatible implicit declaration of built-in function 'malloc' if ( (curfilename = (char *) malloc (strlen(action)+1) ) == NULL ) { ^~~~~~ treatcommand.c:631:50: note: include '' or provide a declaration of 'malloc' treatcommand.c:634:25: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:634:25: note: include '' or provide a declaration of 'free' treatcommand.c:638:51: warning: incompatible implicit declaration of built-in function 'malloc' if ( (realfilename = (char *) malloc (strlen(action)+11)) == NULL ) { ^~~~~~ treatcommand.c:638:51: note: include '' or provide a declaration of 'malloc' treatcommand.c:641:25: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:641:25: note: include '' or provide a declaration of 'free' treatcommand.c:659:57: warning: incompatible implicit declaration of built-in function 'malloc' if ( (remotefilename = (char *) malloc (strlen(action)+1)) == NULL ) { ^~~~~~ treatcommand.c:659:57: note: include '' or provide a declaration of 'malloc' treatcommand.c:662:29: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:662:29: note: include '' or provide a declaration of 'free' treatcommand.c:666:54: warning: incompatible implicit declaration of built-in function 'malloc' if ( (curfilename = (char *) malloc (strlen(action)+1) ) == NULL ) { ^~~~~~ treatcommand.c:666:54: note: include '' or provide a declaration of 'malloc' treatcommand.c:669:29: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:669:29: note: include '' or provide a declaration of 'free' treatcommand.c:673:55: warning: incompatible implicit declaration of built-in function 'malloc' if ( (realfilename = (char *) malloc (strlen(action)+11)) == NULL ) { ^~~~~~ treatcommand.c:673:55: note: include '' or provide a declaration of 'malloc' treatcommand.c:676:29: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:676:29: note: include '' or provide a declaration of 'free' treatcommand.c:689:57: warning: incompatible implicit declaration of built-in function 'malloc' if ( (remotefilename = (char *) malloc (strlen(startfn)+strlen(action)+1) ) == NULL ) { ^~~~~~ treatcommand.c:689:57: note: include '' or provide a declaration of 'malloc' treatcommand.c:692:29: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:692:29: note: include '' or provide a declaration of 'free' treatcommand.c:695:54: warning: incompatible implicit declaration of built-in function 'malloc' if ( (curfilename = (char *) malloc (strlen(action)+1) ) == NULL ) { ^~~~~~ treatcommand.c:695:54: note: include '' or provide a declaration of 'malloc' treatcommand.c:698:29: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:698:29: note: include '' or provide a declaration of 'free' treatcommand.c:702:55: warning: incompatible implicit declaration of built-in function 'malloc' if ( (realfilename = (char *) malloc (strlen(action)+11)) == NULL ) { ^~~~~~ treatcommand.c:702:55: note: include '' or provide a declaration of 'malloc' treatcommand.c:705:29: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:705:29: note: include '' or provide a declaration of 'free' treatcommand.c:716:33: warning: incompatible implicit declaration of built-in function 'rindex' if (rindex(curfilename, '/') != NULL) { ^~~~~~ treatcommand.c:725:17: warning: incompatible implicit declaration of built-in function 'free' free(remotefilename) ; ^~~~ treatcommand.c:725:17: note: include '' or provide a declaration of 'free' treatcommand.c:736:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:736:21: note: include '' or provide a declaration of 'free' treatcommand.c:746:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:746:21: note: include '' or provide a declaration of 'free' treatcommand.c:753:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:753:21: note: include '' or provide a declaration of 'free' treatcommand.c:759:17: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:759:17: note: include '' or provide a declaration of 'free' treatcommand.c:808:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:808:21: note: include '' or provide a declaration of 'free' treatcommand.c:818:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:818:21: note: include '' or provide a declaration of 'free' treatcommand.c:825:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:825:21: note: include '' or provide a declaration of 'free' treatcommand.c:829:17: warning: implicit declaration of function 'umask'; did you mean 'fd_mask'? [-Wimplicit-function-declaration] umask(alluse) ; ^~~~~ fd_mask treatcommand.c:831:17: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:831:17: note: include '' or provide a declaration of 'free' treatcommand.c:844:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:844:21: note: include '' or provide a declaration of 'free' treatcommand.c:854:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:854:21: note: include '' or provide a declaration of 'free' treatcommand.c:861:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:861:21: note: include '' or provide a declaration of 'free' treatcommand.c:866:17: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:866:17: note: include '' or provide a declaration of 'free' treatcommand.c:879:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:879:21: note: include '' or provide a declaration of 'free' treatcommand.c:889:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:889:21: note: include '' or provide a declaration of 'free' treatcommand.c:925:25: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:925:25: note: include '' or provide a declaration of 'free' treatcommand.c:956:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:956:21: note: include '' or provide a declaration of 'free' treatcommand.c:961:17: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:961:17: note: include '' or provide a declaration of 'free' treatcommand.c:973:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:973:21: note: include '' or provide a declaration of 'free' treatcommand.c:983:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:983:21: note: include '' or provide a declaration of 'free' treatcommand.c:990:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:990:21: note: include '' or provide a declaration of 'free' treatcommand.c:1005:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:1005:21: note: include '' or provide a declaration of 'free' treatcommand.c:1015:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:1015:21: note: include '' or provide a declaration of 'free' treatcommand.c:1022:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:1022:21: note: include '' or provide a declaration of 'free' treatcommand.c:1037:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:1037:21: note: include '' or provide a declaration of 'free' treatcommand.c:1047:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:1047:21: note: include '' or provide a declaration of 'free' treatcommand.c:1054:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:1054:21: note: include '' or provide a declaration of 'free' treatcommand.c:1060:17: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:1060:17: note: include '' or provide a declaration of 'free' treatcommand.c:1072:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:1072:21: note: include '' or provide a declaration of 'free' treatcommand.c:1082:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:1082:21: note: include '' or provide a declaration of 'free' treatcommand.c:1089:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:1089:21: note: include '' or provide a declaration of 'free' treatcommand.c:1095:17: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:1095:17: note: include '' or provide a declaration of 'free' treatcommand.c:1107:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:1107:21: note: include '' or provide a declaration of 'free' treatcommand.c:1117:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:1117:21: note: include '' or provide a declaration of 'free' treatcommand.c:1124:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:1124:21: note: include '' or provide a declaration of 'free' treatcommand.c:1130:17: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:1130:17: note: include '' or provide a declaration of 'free' treatcommand.c:1142:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:1142:21: note: include '' or provide a declaration of 'free' treatcommand.c:1152:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:1152:21: note: include '' or provide a declaration of 'free' treatcommand.c:1159:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:1159:21: note: include '' or provide a declaration of 'free' treatcommand.c:1165:17: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:1165:17: note: include '' or provide a declaration of 'free' treatcommand.c:1177:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:1177:21: note: include '' or provide a declaration of 'free' treatcommand.c:1187:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:1187:21: note: include '' or provide a declaration of 'free' treatcommand.c:1194:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:1194:21: note: include '' or provide a declaration of 'free' treatcommand.c:1200:17: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:1200:17: note: include '' or provide a declaration of 'free' treatcommand.c:1212:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:1212:21: note: include '' or provide a declaration of 'free' treatcommand.c:1222:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:1222:21: note: include '' or provide a declaration of 'free' treatcommand.c:1229:21: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:1229:21: note: include '' or provide a declaration of 'free' treatcommand.c:1235:17: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:1235:17: note: include '' or provide a declaration of 'free' treatcommand.c:1284:13: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:1284:13: note: include '' or provide a declaration of 'free' treatcommand.c:1287:7: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:1287:7: note: include '' or provide a declaration of 'free' treatcommand.c:1292:9: warning: incompatible implicit declaration of built-in function 'free' free(dupbuffercmd) ; ^~~~ treatcommand.c:1292:9: note: include '' or provide a declaration of 'free' cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o writemessage.o writemessage.c cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o setsignals.o setsignals.c setsignals.c: In function 'blockallsignals': setsignals.c:103:97: warning: implicit declaration of function 'strerror'; did you mean 'perror'? [-Wimplicit-function-declaration] printmessage(stderr,CASE_FATAL_ERROR,32,timestamp,"Error setting signal SIGABRT : %s\n",strerror(errno)) ; ^~~~~~~~ perror cc -o bbftp bbftp.o bbftp_cd.o bbftp_get.o bbftp_lcd.o bbftp_list.o bbftp_mget.o bbftp_mkdir.o bbftp_mput.o bbftp_put.o bbftp_retr.o bbftp_setremotecos.o bbftp_setremoteumask.o bbftp_store.o bbftp_socket.o bbftp_utils.o connecttoserver.o getdatasock.o readmessage.o sendproto.o treatcommand.o writemessage.o setsignals.o /usr/local/lib/libcrypto.a -lz gmake[1]: Leaving directory '/construction/ftp/bbftp/bbftp-3.0.2/bbftpc' (cd /construction/ftp/bbftp/bbftp-3.0.2/bbftpd && /usr/bin/env OPENSSLBASE=/usr/local OPENSSLDIR=/usr/local/openssl OPENSSLINC=/usr/local/include OPENSSLLIB=/usr/local/lib OPENSSLRPATH=/usr/local/lib XDG_DATA_HOME=/construction/ftp/bbftp XDG_CONFIG_HOME=/construction/ftp/bbftp HOME=/construction/ftp/bbftp TMPDIR="/tmp" PATH=/construction/ftp/bbftp/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES CCVER=gcc80 PREFIX=/usr/local LOCALBASE=/usr/local NOPROFILE=1 CC="cc" CFLAGS="-pipe -O2 -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -Wl,-rpath,/usr/local/lib " LIBS="" CXX="c++" CXXFLAGS=" -pipe -O2 -fno-strict-aliasing " MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" gmake) gmake[1]: Entering directory '/construction/ftp/bbftp/bbftp-3.0.2/bbftpd' cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o bbftpd.o bbftpd.c bbftpd.c:366:1: warning: return type defaults to 'int' [-Wimplicit-int] main (argc,argv,envp) ^~~~ bbftpd.c: In function 'main': bbftpd.c:422:73: warning: implicit declaration of function 'zlibVersion' [-Wimplicit-function-declaration] printf(" compression with Zlib-%s\n", zlibVersion()) ; ^~~~~~~~~~~ bbftpd.c:456:32: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] for ( i=0 ; i< strlen(optarg) ; i++ ) { ^~~~~~ bbftpd.c:456:32: warning: incompatible implicit declaration of built-in function 'strlen' bbftpd.c:456:32: note: include '' or provide a declaration of 'strlen' bbftpd.c:94:1: +#include bbftpd.c:456:32: for ( i=0 ; i< strlen(optarg) ; i++ ) { ^~~~~~ bbftpd.c:457:33: warning: implicit declaration of function 'toupper' [-Wimplicit-function-declaration] optarg[i] = toupper(optarg[i]) ; ^~~~~~~ bbftpd.c:460:23: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if ( !strcmp(optarg,"EMERGENCY") ) { ^~~~~~ bbftpd.c:569:50: warning: incompatible implicit declaration of built-in function 'strlen' if ( (bbftprcfile = (char *) malloc (strlen("/etc/bbftpd.conf")+1 )) == NULL ) { ^~~~~~ bbftpd.c:569:50: note: include '' or provide a declaration of 'strlen' bbftpd.c:572:3: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(bbftprcfile,"/etc/bbftpd.conf"); ^~~~~~ bbftpd.c:572:3: warning: incompatible implicit declaration of built-in function 'strcpy' bbftpd.c:572:3: note: include '' or provide a declaration of 'strcpy' bbftpd.c:578:53: warning: incompatible implicit declaration of built-in function 'strlen' } else if ( (bbftprcfile = (char *) malloc (strlen(mypasswd->pw_dir)+10) ) == NULL ) { ^~~~~~ bbftpd.c:578:53: note: include '' or provide a declaration of 'strlen' bbftpd.c:581:13: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(bbftprcfile,mypasswd->pw_dir) ; ^~~~~~ bbftpd.c:581:13: note: include '' or provide a declaration of 'strcpy' bbftpd.c:582:13: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] strcat(bbftprcfile,"/.bbftprc") ; ^~~~~~ bbftpd.c:582:13: warning: incompatible implicit declaration of built-in function 'strcat' bbftpd.c:582:13: note: include '' or provide a declaration of 'strcat' bbftpd.c:586:14: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] if ( strncmp(bbftprcfile,"none",4) != 0 ) { ^~~~~~~ bbftpd.c:601:92: warning: implicit declaration of function 'strerror'; did you mean 'hstrerror'? [-Wimplicit-function-declaration] syslog(BBFTPD_ERR, "Error openning .bbftprc file (%s) : %s \n",bbftprcfile,strerror(errno)) ; ^~~~~~~~ hstrerror bbftpd.c:628:31: warning: implicit declaration of function 'strchr' [-Wimplicit-function-declaration] carret = (char *) strchr (carret, 10); ^~~~~~ bbftpd.c:628:31: warning: incompatible implicit declaration of built-in function 'strchr' bbftpd.c:628:31: note: include '' or provide a declaration of 'strchr' bbftpd.c:715:9: warning: implicit declaration of function 'do_daemon'; did you mean 'daemon'? [-Wimplicit-function-declaration] do_daemon(argc, argv, envp); ^~~~~~~~~ daemon bbftpd.c:745:13: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(currentusername,result->pw_name) ; ^~~~~~ bbftpd.c:745:13: note: include '' or provide a declaration of 'strcpy' bbftpd.c:759:77: warning: implicit declaration of function 'inet_ntoa' [-Wimplicit-function-declaration] syslog(BBFTPD_INFO,"bbftpd started by : %s from %s",currentusername,inet_ntoa(his_addr.sin_addr)) ; ^~~~~~~~~ bbftpd.c:767:9: warning: implicit declaration of function 'ERR_load_crypto_strings'; did you mean 'ERR_load_RSA_strings'? [-Wimplicit-function-declaration] ERR_load_crypto_strings() ; ^~~~~~~~~~~~~~~~~~~~~~~ ERR_load_RSA_strings bbftpd.c:784:9: warning: implicit declaration of function 'RAND_seed'; did you mean 'RAND_MAX'? [-Wimplicit-function-declaration] RAND_seed(buffrand,NBITSINKEY) ; ^~~~~~~~~ RAND_MAX bbftpd.c:797:71: warning: passing argument 3 of 'getpeername' from incompatible pointer type [-Wincompatible-pointer-types] if (getpeername(incontrolsock, (struct sockaddr *) &his_addr, &addrlen) < 0) { ^~~~~~~~ In file included from bbftpd.c:70: /usr/include/sys/socket.h:491:52: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); ^~~~~~~~~~~~~~~~~~~~~~ bbftpd.c:802:72: warning: passing argument 3 of 'getsockname' from incompatible pointer type [-Wincompatible-pointer-types] if (getsockname(incontrolsock, (struct sockaddr *) &ctrl_addr, &addrlen) < 0) { ^~~~~~~~ In file included from bbftpd.c:70: /usr/include/sys/socket.h:492:52: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); ^~~~~~~~~~~~~~~~~~~~~~ bbftpd.c:810:9: warning: implicit declaration of function 'sendcrypt'; did you mean 'encrypt'? [-Wimplicit-function-declaration] sendcrypt() ; ^~~~~~~~~ encrypt bbftpd.c:905:22: warning: implicit declaration of function 'loginsequence' [-Wimplicit-function-declaration] if ( loginsequence() < 0 ) { ^~~~~~~~~~~~~ bbftpd.c:1000:18: warning: implicit declaration of function 'set_signals_v1' [-Wimplicit-function-declaration] if ( set_signals_v1() < 0 ) { ^~~~~~~~~~~~~~ bbftpd.c:1012:18: warning: implicit declaration of function 'readcontrol' [-Wimplicit-function-declaration] if ( readcontrol(msg->code,msg->msglen) < 0 ) { ^~~~~~~~~~~ cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o bbftpd_cd.o bbftpd_cd.c bbftpd_cd.c: In function 'bbftpd_cd': bbftpd_cd.c:63:29: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] if ( (buffer = (char *) malloc (msglen+1) ) == NULL ) { ^~~~~~ bbftpd_cd.c:63:29: warning: incompatible implicit declaration of built-in function 'malloc' bbftpd_cd.c:63:29: note: include '' or provide a declaration of 'malloc' bbftpd_cd.c:51:1: +#include bbftpd_cd.c:63:29: if ( (buffer = (char *) malloc (msglen+1) ) == NULL ) { ^~~~~~ bbftpd_cd.c:68:33: warning: incompatible implicit declaration of built-in function 'malloc' if ( (logmessage = (char *) malloc (msglen+1024) ) == NULL ) { ^~~~~~ bbftpd_cd.c:68:33: note: include '' or provide a declaration of 'malloc' In file included from bbftpd_cd.c:47: ../includes/common.h:95:33: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_cd.c:71:9: note: in expansion of macro 'FREE' FREE(buffer) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_cd.c:71:9: note: in expansion of macro 'FREE' FREE(buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_cd.c:71:9: note: in expansion of macro 'FREE' FREE(buffer) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_cd.c:82:9: note: in expansion of macro 'FREE' FREE(buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_cd.c:82:9: note: in expansion of macro 'FREE' FREE(buffer) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_cd.c:83:9: note: in expansion of macro 'FREE' FREE(logmessage) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_cd.c:83:9: note: in expansion of macro 'FREE' FREE(logmessage) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_cd.c:98:9: note: in expansion of macro 'FREE' FREE(logmessage) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_cd.c:98:9: note: in expansion of macro 'FREE' FREE(logmessage) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_cd.c:99:9: note: in expansion of macro 'FREE' FREE(buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_cd.c:99:9: note: in expansion of macro 'FREE' FREE(buffer) ; ^~~~ bbftpd_cd.c:112:72: warning: implicit declaration of function 'strerror'; did you mean 'perror'? [-Wimplicit-function-declaration] sprintf(logmessage,"Error changing directory %s : %s ",dirname,strerror(errno)) ; ^~~~~~~~ perror In file included from bbftpd_cd.c:47: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_cd.c:129:13: note: in expansion of macro 'FREE' FREE(buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_cd.c:129:13: note: in expansion of macro 'FREE' FREE(buffer) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_cd.c:130:13: note: in expansion of macro 'FREE' FREE(logmessage) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_cd.c:130:13: note: in expansion of macro 'FREE' FREE(logmessage) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_cd.c:133:13: note: in expansion of macro 'FREE' FREE(logmessage) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_cd.c:133:13: note: in expansion of macro 'FREE' FREE(logmessage) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_cd.c:134:13: note: in expansion of macro 'FREE' FREE(buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_cd.c:134:13: note: in expansion of macro 'FREE' FREE(buffer) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_cd.c:144:13: note: in expansion of macro 'FREE' FREE(logmessage) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_cd.c:144:13: note: in expansion of macro 'FREE' FREE(logmessage) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_cd.c:145:13: note: in expansion of macro 'FREE' FREE(buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_cd.c:145:13: note: in expansion of macro 'FREE' FREE(buffer) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_cd.c:150:5: note: in expansion of macro 'FREE' FREE(logmessage) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_cd.c:150:5: note: in expansion of macro 'FREE' FREE(logmessage) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_cd.c:151:5: note: in expansion of macro 'FREE' FREE(buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_cd.c:151:5: note: in expansion of macro 'FREE' FREE(buffer) ; ^~~~ cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o bbftpd_check.o bbftpd_check.c bbftpd_check.c: In function 'checkfromwhere': bbftpd_check.c:88:69: warning: implicit declaration of function 'strerror' [-Wimplicit-function-declaration] syslog(BBFTPD_ERR, "Cannot create checkreceive socket : %s",strerror(errno)); ^~~~~~~~ bbftpd_check.c:91:9: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1) ; ^~~~ bbftpd_check.c:91:9: warning: incompatible implicit declaration of built-in function 'exit' bbftpd_check.c:91:9: note: include '' or provide a declaration of 'exit' bbftpd_check.c:48:1: +#include bbftpd_check.c:91:9: exit(1) ; ^~~~ bbftpd_check.c:105:9: warning: incompatible implicit declaration of built-in function 'exit' exit(1) ; ^~~~ bbftpd_check.c:105:9: note: include '' or provide a declaration of 'exit' bbftpd_check.c:114:9: warning: incompatible implicit declaration of built-in function 'exit' exit(1) ; ^~~~ bbftpd_check.c:114:9: note: include '' or provide a declaration of 'exit' bbftpd_check.c:122:9: warning: incompatible implicit declaration of built-in function 'exit' exit(1) ; ^~~~ bbftpd_check.c:122:9: note: include '' or provide a declaration of 'exit' bbftpd_check.c:130:9: warning: incompatible implicit declaration of built-in function 'exit' exit(1) ; ^~~~ bbftpd_check.c:130:9: note: include '' or provide a declaration of 'exit' bbftpd_check.c:137:9: warning: incompatible implicit declaration of built-in function 'exit' exit(1) ; ^~~~ bbftpd_check.c:137:9: note: include '' or provide a declaration of 'exit' bbftpd_check.c:155:9: warning: incompatible implicit declaration of built-in function 'exit' exit(1) ; ^~~~ bbftpd_check.c:155:9: note: include '' or provide a declaration of 'exit' bbftpd_check.c:169:9: warning: incompatible implicit declaration of built-in function 'exit' exit(1) ; ^~~~ bbftpd_check.c:169:9: note: include '' or provide a declaration of 'exit' bbftpd_check.c:188:9: warning: incompatible implicit declaration of built-in function 'exit' exit(1) ; ^~~~ bbftpd_check.c:188:9: note: include '' or provide a declaration of 'exit' bbftpd_check.c:198:9: warning: incompatible implicit declaration of built-in function 'exit' exit(1) ; ^~~~ bbftpd_check.c:198:9: note: include '' or provide a declaration of 'exit' bbftpd_check.c:205:9: warning: incompatible implicit declaration of built-in function 'exit' exit(1) ; ^~~~ bbftpd_check.c:205:9: note: include '' or provide a declaration of 'exit' bbftpd_check.c:214:9: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ bbftpd_check.c:214:9: note: include '' or provide a declaration of 'exit' bbftpd_check.c:222:9: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ bbftpd_check.c:222:9: note: include '' or provide a declaration of 'exit' bbftpd_check.c:232:9: warning: incompatible implicit declaration of built-in function 'exit' exit(1) ; ^~~~ bbftpd_check.c:232:9: note: include '' or provide a declaration of 'exit' bbftpd_check.c:239:9: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ bbftpd_check.c:239:9: note: include '' or provide a declaration of 'exit' bbftpd_check.c:252:9: warning: incompatible implicit declaration of built-in function 'exit' exit(1) ; ^~~~ bbftpd_check.c:252:9: note: include '' or provide a declaration of 'exit' cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o bbftpd_crypt.o bbftpd_crypt.c bbftpd_crypt.c: In function 'sendcrypt': bbftpd_crypt.c:86:9: warning: implicit declaration of function 'writemessage' [-Wimplicit-function-declaration] if (writemessage(outcontrolsock,buf,MINMESSLEN,sendcontrolto) < 0 ) { ^~~~~~~~~~~~ cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o bbftpd_daemon.o bbftpd_daemon.c bbftpd_daemon.c: In function 'do_daemon': bbftpd_daemon.c:94:68: warning: implicit declaration of function 'strerror'; did you mean 'hstrerror'? [-Wimplicit-function-declaration] syslog(BBFTPD_ERR, "Cannot create socket to listen on: %s",strerror(errno)); ^~~~~~~~ hstrerror cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o bbftpd_list.o bbftpd_list.c In file included from bbftpd_list.c:47: bbftpd_list.c: In function 'bbftpd_list': ../includes/common.h:95:33: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_list.c:84:13: note: in expansion of macro 'FREE' FREE(filelist) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_list.c:84:13: note: in expansion of macro 'FREE' FREE(filelist) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_list.c:84:13: note: in expansion of macro 'FREE' FREE(filelist) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_list.c:89:17: note: in expansion of macro 'FREE' FREE(filelist) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_list.c:89:17: note: in expansion of macro 'FREE' FREE(filelist) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_list.c:93:13: note: in expansion of macro 'FREE' FREE(filelist) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_list.c:93:13: note: in expansion of macro 'FREE' FREE(filelist) ; ^~~~ cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o bbftpd_login.o bbftpd_login.c bbftpd_login.c: In function 'PAM_conv': bbftpd_login.c:94:37: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] reply = (struct pam_response *) malloc(sizeof(struct pam_response) * num_msg); ^~~~~~ bbftpd_login.c:94:37: warning: incompatible implicit declaration of built-in function 'malloc' bbftpd_login.c:94:37: note: include '' or provide a declaration of 'malloc' bbftpd_login.c:71:1: +#include #endif bbftpd_login.c:94:37: reply = (struct pam_response *) malloc(sizeof(struct pam_response) * num_msg); ^~~~~~ bbftpd_login.c:92:30: warning: implicit declaration of function 'strdup' [-Wimplicit-function-declaration] #define COPY_STRING(s) (s) ? strdup(s) : NULL ^~~~~~ bbftpd_login.c:104:35: note: in expansion of macro 'COPY_STRING' reply[replies].resp = COPY_STRING(PAM_password); ^~~~~~~~~~~ bbftpd_login.c:92:30: warning: incompatible implicit declaration of built-in function 'strdup' #define COPY_STRING(s) (s) ? strdup(s) : NULL ^~~~~~ bbftpd_login.c:104:35: note: in expansion of macro 'COPY_STRING' reply[replies].resp = COPY_STRING(PAM_password); ^~~~~~~~~~~ bbftpd_login.c: In function 'loginsequence': bbftpd_login.c:157:5: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration] sprintf(logmessage,"bbftpd version %s",VERSION) ; ^~~~~~~ bbftpd_login.c:157:5: warning: incompatible implicit declaration of built-in function 'sprintf' bbftpd_login.c:157:5: note: include '' or provide a declaration of 'sprintf' bbftpd_login.c:71:1: +#include #endif bbftpd_login.c:157:5: sprintf(logmessage,"bbftpd version %s",VERSION) ; ^~~~~~~ bbftpd_login.c:176:18: warning: implicit declaration of function 'decodersapass' [-Wimplicit-function-declaration] if ( decodersapass(receive_buffer,username,password) < 0 ) { ^~~~~~~~~~~~~ bbftpd_login.c:178:17: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] strcat(logmessage," : Decode user/password error") ; ^~~~~~ bbftpd_login.c:178:17: warning: incompatible implicit declaration of built-in function 'strcat' bbftpd_login.c:178:17: note: include '' or provide a declaration of 'strcat' bbftpd_login.c:71:1: +#include #endif bbftpd_login.c:178:17: strcat(logmessage," : Decode user/password error") ; ^~~~~~ bbftpd_login.c:188:13: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] strncpy(username, msg_rsa->cryptuser, strlen(msg_rsa->cryptuser)); ^~~~~~~ bbftpd_login.c:188:13: warning: incompatible implicit declaration of built-in function 'strncpy' bbftpd_login.c:188:13: note: include '' or provide a declaration of 'strncpy' bbftpd_login.c:188:51: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] strncpy(username, msg_rsa->cryptuser, strlen(msg_rsa->cryptuser)); ^~~~~~ bbftpd_login.c:188:51: warning: incompatible implicit declaration of built-in function 'strlen' bbftpd_login.c:188:51: note: include '' or provide a declaration of 'strlen' bbftpd_login.c:195:13: warning: incompatible implicit declaration of built-in function 'strcat' strcat(logmessage," : Unknwon encryption") ; ^~~~~~ bbftpd_login.c:195:13: note: include '' or provide a declaration of 'strcat' bbftpd_login.c:204:9: warning: incompatible implicit declaration of built-in function 'strcat' strcat(logmessage," : Unknown user (") ; ^~~~~~ bbftpd_login.c:204:9: note: include '' or provide a declaration of 'strcat' bbftpd_login.c:280:5: warning: incompatible implicit declaration of built-in function 'strcat' strcat(logmessage," : PAM Error") ; ^~~~~~ bbftpd_login.c:280:5: note: include '' or provide a declaration of 'strcat' bbftpd_login.c:355:64: warning: implicit declaration of function 'strerror'; did you mean 'pam_strerror'? [-Wimplicit-function-declaration] syslog(BBFTPD_ERR,"Error setgid user %s : %s",username,strerror(errno)) ; ^~~~~~~~ pam_strerror bbftpd_login.c:357:20: warning: passing argument 2 of 'strcat' makes pointer from integer without a cast [-Wint-conversion] strcat(logmessage,strerror(errno)); ^~~~~~~~~~~~~~~ bbftpd_login.c:357:20: note: expected 'const char *' but argument is of type 'int' bbftpd_login.c:364:20: warning: passing argument 2 of 'strcat' makes pointer from integer without a cast [-Wint-conversion] strcat(logmessage,strerror(errno)); ^~~~~~~~~~~~~~~ bbftpd_login.c:364:20: note: expected 'const char *' but argument is of type 'int' bbftpd_login.c:371:20: warning: passing argument 2 of 'strcat' makes pointer from integer without a cast [-Wint-conversion] strcat(logmessage,strerror(errno)); ^~~~~~~~~~~~~~~ bbftpd_login.c:371:20: note: expected 'const char *' but argument is of type 'int' bbftpd_login.c:378:20: warning: passing argument 2 of 'strcat' makes pointer from integer without a cast [-Wint-conversion] strcat(logmessage,strerror(errno)); ^~~~~~~~~~~~~~~ bbftpd_login.c:378:20: note: expected 'const char *' but argument is of type 'int' bbftpd_login.c:384:5: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(currentusername,username) ; ^~~~~~ bbftpd_login.c:384:5: warning: incompatible implicit declaration of built-in function 'strcpy' bbftpd_login.c:384:5: note: include '' or provide a declaration of 'strcpy' bbftpd_login.c:188:13: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] strncpy(username, msg_rsa->cryptuser, strlen(msg_rsa->cryptuser)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bbftpd_login.c:190:13: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] strncpy(password, msg_rsa->cryptpass, strlen(msg_rsa->cryptpass)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o bbftpd_message.o bbftpd_message.c bbftpd_message.c: In function 'readmessage': bbftpd_message.c:91:98: warning: implicit declaration of function 'strerror' [-Wimplicit-function-declaration] syslog(BBFTPD_ERR,"Read message : Receive error : MSG (%d,%d) : %s",msglen,nbget,strerror(errno)) ; ^~~~~~~~ bbftpd_message.c: In function 'discardmessage': bbftpd_message.c:135:23: warning: implicit declaration of function 'recv'; did you mean 'read'? [-Wimplicit-function-declaration] retcode = recv(sock,buffer,sizeof(buffer),0) ; ^~~~ read In file included from /usr/include/sys/types.h:47, from /usr/include/netinet/in.h:36, from bbftpd_message.c:46: bbftpd_message.c: In function 'reply': bbftpd_message.c:202:26: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] mess->msglen = ntohl(strlen(str)) ; ^~~~~~ bbftpd_message.c:202:26: warning: incompatible implicit declaration of built-in function 'strlen' bbftpd_message.c:202:26: note: include '' or provide a declaration of 'strlen' bbftpd_message.c:57:1: +#include bbftpd_message.c:202:26: mess->msglen = ntohl(strlen(str)) ; ^~~~~~ bbftpd_message.c:209:9: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1) ; ^~~~ bbftpd_message.c:209:9: warning: incompatible implicit declaration of built-in function 'exit' bbftpd_message.c:209:9: note: include '' or provide a declaration of 'exit' bbftpd_message.c:57:1: +#include bbftpd_message.c:209:9: exit(1) ; ^~~~ bbftpd_message.c:215:9: warning: incompatible implicit declaration of built-in function 'exit' exit(1) ; ^~~~ bbftpd_message.c:215:9: note: include '' or provide a declaration of 'exit' cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o bbftpd_mkdir.o bbftpd_mkdir.c bbftpd_mkdir.c: In function 'bbftpd_mkdir': bbftpd_mkdir.c:60:29: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] if ( (buffer = (char *) malloc (msglen+1) ) == NULL ) { ^~~~~~ bbftpd_mkdir.c:60:29: warning: incompatible implicit declaration of built-in function 'malloc' bbftpd_mkdir.c:60:29: note: include '' or provide a declaration of 'malloc' bbftpd_mkdir.c:47:1: +#include bbftpd_mkdir.c:60:29: if ( (buffer = (char *) malloc (msglen+1) ) == NULL ) { ^~~~~~ bbftpd_mkdir.c:65:33: warning: incompatible implicit declaration of built-in function 'malloc' if ( (logmessage = (char *) malloc (msglen+1024) ) == NULL ) { ^~~~~~ bbftpd_mkdir.c:65:33: note: include '' or provide a declaration of 'malloc' In file included from bbftpd_mkdir.c:43: ../includes/common.h:95:33: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_mkdir.c:68:9: note: in expansion of macro 'FREE' FREE(buffer) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_mkdir.c:68:9: note: in expansion of macro 'FREE' FREE(buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_mkdir.c:68:9: note: in expansion of macro 'FREE' FREE(buffer) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_mkdir.c:79:9: note: in expansion of macro 'FREE' FREE(buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_mkdir.c:79:9: note: in expansion of macro 'FREE' FREE(buffer) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_mkdir.c:80:9: note: in expansion of macro 'FREE' FREE(logmessage) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_mkdir.c:80:9: note: in expansion of macro 'FREE' FREE(logmessage) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_mkdir.c:94:9: note: in expansion of macro 'FREE' FREE(buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_mkdir.c:94:9: note: in expansion of macro 'FREE' FREE(buffer) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_mkdir.c:95:9: note: in expansion of macro 'FREE' FREE(logmessage) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_mkdir.c:95:9: note: in expansion of macro 'FREE' FREE(logmessage) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_mkdir.c:99:9: note: in expansion of macro 'FREE' FREE(buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_mkdir.c:99:9: note: in expansion of macro 'FREE' FREE(buffer) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_mkdir.c:100:9: note: in expansion of macro 'FREE' FREE(logmessage) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_mkdir.c:100:9: note: in expansion of macro 'FREE' FREE(logmessage) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_mkdir.c:105:9: note: in expansion of macro 'FREE' FREE(buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_mkdir.c:105:9: note: in expansion of macro 'FREE' FREE(buffer) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_mkdir.c:106:9: note: in expansion of macro 'FREE' FREE(logmessage) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_mkdir.c:106:9: note: in expansion of macro 'FREE' FREE(logmessage) ; ^~~~ cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o bbftpd_readcontrol.o bbftpd_readcontrol.c bbftpd_readcontrol.c: In function 'bbftpd_readcontrol': bbftpd_readcontrol.c:128:53: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] if ( (receive_buffer = (char *) malloc (msglen)) == NULL ) { ^~~~~~ bbftpd_readcontrol.c:128:53: warning: incompatible implicit declaration of built-in function 'malloc' bbftpd_readcontrol.c:128:53: note: include '' or provide a declaration of 'malloc' bbftpd_readcontrol.c:53:1: +#include bbftpd_readcontrol.c:128:53: if ( (receive_buffer = (char *) malloc (msglen)) == NULL ) { ^~~~~~ bbftpd_readcontrol.c:129:88: warning: implicit declaration of function 'strerror'; did you mean 'perror'? [-Wimplicit-function-declaration] syslog(BBFTPD_ERR,"Error allocating memory for MSG_CHCOS : %s",strerror(errno)) ; ^~~~~~~~ perror In file included from bbftpd_readcontrol.c:47: ../includes/common.h:95:33: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:135:25: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:135:25: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:135:25: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:151:21: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:151:21: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ bbftpd_readcontrol.c:163:53: warning: incompatible implicit declaration of built-in function 'malloc' if ( (receive_buffer = (char *) malloc (msglen)) == NULL ) { ^~~~~~ bbftpd_readcontrol.c:163:53: note: include '' or provide a declaration of 'malloc' In file included from bbftpd_readcontrol.c:47: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:170:25: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:170:25: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ bbftpd_readcontrol.c:183:32: warning: implicit declaration of function 'umask'; did you mean 'fd_mask'? [-Wimplicit-function-declaration] oldumask = umask(0) ; ^~~~~ fd_mask In file included from bbftpd_readcontrol.c:47: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:188:21: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:188:21: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ bbftpd_readcontrol.c:200:52: warning: incompatible implicit declaration of built-in function 'malloc' if ( (receive_buffer = (char *) malloc (msglen+1) ) == NULL ) { ^~~~~~ bbftpd_readcontrol.c:200:52: note: include '' or provide a declaration of 'malloc' In file included from bbftpd_readcontrol.c:47: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:213:24: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:213:24: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:224:20: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:224:20: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ bbftpd_readcontrol.c:237:53: warning: incompatible implicit declaration of built-in function 'malloc' if ( (receive_buffer = (char *) malloc (msglen)) == NULL ) { ^~~~~~ bbftpd_readcontrol.c:237:53: note: include '' or provide a declaration of 'malloc' In file included from bbftpd_readcontrol.c:47: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:243:25: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:243:25: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:270:21: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:270:21: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ bbftpd_readcontrol.c:276:53: warning: incompatible implicit declaration of built-in function 'malloc' if ( (receive_buffer = (char *) malloc (msglen)) == NULL ) { ^~~~~~ bbftpd_readcontrol.c:276:53: note: include '' or provide a declaration of 'malloc' In file included from bbftpd_readcontrol.c:47: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:282:25: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:282:25: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ bbftpd_readcontrol.c:293:21: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] strncpy(lastaccess,msg_store_v2->lastaccess,8) ; ^~~~~~~ bbftpd_readcontrol.c:293:21: warning: incompatible implicit declaration of built-in function 'strncpy' bbftpd_readcontrol.c:293:21: note: include '' or provide a declaration of 'strncpy' bbftpd_readcontrol.c:53:1: +#include bbftpd_readcontrol.c:293:21: strncpy(lastaccess,msg_store_v2->lastaccess,8) ; ^~~~~~~ In file included from bbftpd_readcontrol.c:47: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:325:21: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:325:21: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ bbftpd_readcontrol.c:350:50: warning: incompatible implicit declaration of built-in function 'malloc' if ( (curfilename = (char *) malloc (msglen+1)) == NULL ) { ^~~~~~ bbftpd_readcontrol.c:350:50: note: include '' or provide a declaration of 'malloc' bbftpd_readcontrol.c:355:51: warning: incompatible implicit declaration of built-in function 'malloc' if ( (realfilename = (char *) malloc (msglen+30)) == NULL ) { ^~~~~~ bbftpd_readcontrol.c:355:51: note: include '' or provide a declaration of 'malloc' bbftpd_readcontrol.c:451:53: warning: incompatible implicit declaration of built-in function 'malloc' if ( (myports = (int *) malloc (requestedstreamnumber*sizeof(int))) == NULL ) { ^~~~~~ bbftpd_readcontrol.c:451:53: note: include '' or provide a declaration of 'malloc' bbftpd_readcontrol.c:463:56: warning: incompatible implicit declaration of built-in function 'malloc' if ( (mychildren = (int *) malloc (requestedstreamnumber*sizeof(int))) == NULL) { ^~~~~~ bbftpd_readcontrol.c:463:56: note: include '' or provide a declaration of 'malloc' bbftpd_readcontrol.c:475:57: warning: incompatible implicit declaration of built-in function 'malloc' if ( (readbuffer = (char *) malloc (buffersizeperstream*1024)) == NULL) { ^~~~~~ bbftpd_readcontrol.c:475:57: note: include '' or provide a declaration of 'malloc' bbftpd_readcontrol.c:489:61: warning: incompatible implicit declaration of built-in function 'malloc' if ( (compbuffer = (char *) malloc (buffersizeperstream*1024)) == NULL) { ^~~~~~ bbftpd_readcontrol.c:489:61: note: include '' or provide a declaration of 'malloc' bbftpd_readcontrol.c:499:61: warning: incompatible implicit declaration of built-in function 'malloc' if ( (receive_buffer = (char *) malloc (STORMESSLEN_V2)) == NULL ) { ^~~~~~ bbftpd_readcontrol.c:499:61: note: include '' or provide a declaration of 'malloc' In file included from bbftpd_readcontrol.c:47: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:523:33: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:523:33: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ bbftpd_readcontrol.c:533:29: warning: incompatible implicit declaration of built-in function 'strncpy' strncpy(msg_store_v2->lastaccess,lastaccess,8) ; ^~~~~~~ bbftpd_readcontrol.c:533:29: note: include '' or provide a declaration of 'strncpy' In file included from bbftpd_readcontrol.c:47: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:559:33: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:559:33: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ bbftpd_readcontrol.c:567:57: warning: incompatible implicit declaration of built-in function 'malloc' if ( (mysockets = (int *) malloc (requestedstreamnumber*sizeof(int))) == NULL ) { ^~~~~~ bbftpd_readcontrol.c:567:57: note: include '' or provide a declaration of 'malloc' In file included from bbftpd_readcontrol.c:47: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:571:33: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:571:33: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ bbftpd_readcontrol.c:574:36: warning: implicit declaration of function 'bbftpd_getdatasock'; did you mean 'bbftpd_readcontrol'? [-Wimplicit-function-declaration] if ( bbftpd_getdatasock(requestedstreamnumber) < 0 ) { ^~~~~~~~~~~~~~~~~~ bbftpd_readcontrol In file included from bbftpd_readcontrol.c:47: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:578:33: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:578:33: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:595:33: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:595:33: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:600:29: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:600:29: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ bbftpd_readcontrol.c:624:50: warning: incompatible implicit declaration of built-in function 'malloc' if ( (curfilename = (char *) malloc (msglen+1)) == NULL ) { ^~~~~~ bbftpd_readcontrol.c:624:50: note: include '' or provide a declaration of 'malloc' bbftpd_readcontrol.c:656:53: warning: incompatible implicit declaration of built-in function 'malloc' if ( (myports = (int *) malloc (requestedstreamnumber*sizeof(int))) == NULL ) { ^~~~~~ bbftpd_readcontrol.c:656:53: note: include '' or provide a declaration of 'malloc' bbftpd_readcontrol.c:667:56: warning: incompatible implicit declaration of built-in function 'malloc' if ( (mychildren = (int *) malloc (requestedstreamnumber*sizeof(int))) == NULL) { ^~~~~~ bbftpd_readcontrol.c:667:56: note: include '' or provide a declaration of 'malloc' bbftpd_readcontrol.c:678:57: warning: incompatible implicit declaration of built-in function 'malloc' if ( (readbuffer = (char *) malloc (buffersizeperstream*1024)) == NULL) { ^~~~~~ bbftpd_readcontrol.c:678:57: note: include '' or provide a declaration of 'malloc' bbftpd_readcontrol.c:692:61: warning: incompatible implicit declaration of built-in function 'malloc' if ( (compbuffer = (char *) malloc (buffersizeperstream*1024)) == NULL) { ^~~~~~ bbftpd_readcontrol.c:692:61: note: include '' or provide a declaration of 'malloc' bbftpd_readcontrol.c:705:57: warning: incompatible implicit declaration of built-in function 'malloc' if ( (receive_buffer = (char *) malloc (STORMESSLEN_V2)) == NULL ) { ^~~~~~ bbftpd_readcontrol.c:705:57: note: include '' or provide a declaration of 'malloc' In file included from bbftpd_readcontrol.c:47: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:727:29: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:727:29: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ bbftpd_readcontrol.c:737:25: warning: incompatible implicit declaration of built-in function 'strncpy' strncpy(msg_store_v2->lastaccess,lastaccess,8) ; ^~~~~~~ bbftpd_readcontrol.c:737:25: note: include '' or provide a declaration of 'strncpy' In file included from bbftpd_readcontrol.c:47: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:763:29: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:763:29: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ bbftpd_readcontrol.c:778:57: warning: incompatible implicit declaration of built-in function 'malloc' if ( (mysockets = (int *) malloc (requestedstreamnumber*sizeof(int))) == NULL ) { ^~~~~~ bbftpd_readcontrol.c:778:57: note: include '' or provide a declaration of 'malloc' In file included from bbftpd_readcontrol.c:47: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:782:33: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:782:33: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:789:33: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:789:33: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:806:33: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:806:33: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:812:25: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_readcontrol.c:812:25: note: in expansion of macro 'FREE' FREE(receive_buffer) ; ^~~~ cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o bbftpd_retr.o bbftpd_retr.c bbftpd_retr.c: In function 'bbftpd_retrlistdir': bbftpd_retr.c:146:9: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration] sprintf(logmessage,"Fail to LIST : RFIO not supported") ; ^~~~~~~ bbftpd_retr.c:146:9: warning: incompatible implicit declaration of built-in function 'sprintf' bbftpd_retr.c:146:9: note: include '' or provide a declaration of 'sprintf' bbftpd_retr.c:56:1: +#include #endif bbftpd_retr.c:146:9: sprintf(logmessage,"Fail to LIST : RFIO not supported") ; ^~~~~~~ bbftpd_retr.c:155:30: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] if ( (dirpath = (char *) malloc ( strlen(pattern) + 1 + 3 )) == NULL ) { ^~~~~~ bbftpd_retr.c:155:30: warning: incompatible implicit declaration of built-in function 'malloc' bbftpd_retr.c:155:30: note: include '' or provide a declaration of 'malloc' bbftpd_retr.c:56:1: +#include #endif bbftpd_retr.c:155:30: if ( (dirpath = (char *) malloc ( strlen(pattern) + 1 + 3 )) == NULL ) { ^~~~~~ bbftpd_retr.c:155:39: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] if ( (dirpath = (char *) malloc ( strlen(pattern) + 1 + 3 )) == NULL ) { ^~~~~~ bbftpd_retr.c:155:39: warning: incompatible implicit declaration of built-in function 'strlen' bbftpd_retr.c:155:39: note: include '' or provide a declaration of 'strlen' bbftpd_retr.c:56:1: +#include #endif bbftpd_retr.c:155:39: if ( (dirpath = (char *) malloc ( strlen(pattern) + 1 + 3 )) == NULL ) { ^~~~~~ bbftpd_retr.c:156:9: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Error allocating memory for dirpath %s",strerror(errno)) ; ^~~~~~~ bbftpd_retr.c:156:9: note: include '' or provide a declaration of 'sprintf' bbftpd_retr.c:156:69: warning: implicit declaration of function 'strerror'; did you mean 'gzerror'? [-Wimplicit-function-declaration] sprintf(logmessage,"Error allocating memory for dirpath %s",strerror(errno)) ; ^~~~~~~~ gzerror bbftpd_retr.c:160:17: warning: incompatible implicit declaration of built-in function 'strlen' lastslash = strlen(pointer) - 1 ; ^~~~~~ bbftpd_retr.c:160:17: note: include '' or provide a declaration of 'strlen' bbftpd_retr.c:169:13: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"opendir . failed : %s ",strerror(errno)) ; ^~~~~~~ bbftpd_retr.c:169:13: note: include '' or provide a declaration of 'sprintf' In file included from bbftpd_retr.c:48: ../includes/common.h:95:33: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:171:17: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:171:17: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:171:17: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:174:17: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:174:17: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ bbftpd_retr.c:178:9: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(dirpath,"./") ; ^~~~~~ bbftpd_retr.c:178:9: warning: incompatible implicit declaration of built-in function 'strcpy' bbftpd_retr.c:178:9: note: include '' or provide a declaration of 'strcpy' bbftpd_retr.c:186:13: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"opendir / failed : %s ",strerror(errno)) ; ^~~~~~~ bbftpd_retr.c:186:13: note: include '' or provide a declaration of 'sprintf' In file included from bbftpd_retr.c:48: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:188:17: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:188:17: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:191:17: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:191:17: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ bbftpd_retr.c:195:9: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(dirpath,"/") ; ^~~~~~ bbftpd_retr.c:195:9: note: include '' or provide a declaration of 'strcpy' bbftpd_retr.c:201:9: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Pattern %s ends with a /",pattern) ; ^~~~~~~ bbftpd_retr.c:201:9: note: include '' or provide a declaration of 'sprintf' In file included from bbftpd_retr.c:48: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:202:9: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:202:9: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ bbftpd_retr.c:210:9: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(dirpath,pointer) ; ^~~~~~ bbftpd_retr.c:210:9: note: include '' or provide a declaration of 'strcpy' bbftpd_retr.c:216:13: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"opendir %s failed : %s ",dirpath,strerror(errno)) ; ^~~~~~~ bbftpd_retr.c:216:13: note: include '' or provide a declaration of 'sprintf' In file included from bbftpd_retr.c:48: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:218:17: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:218:17: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:221:17: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:221:17: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ bbftpd_retr.c:252:55: warning: incompatible implicit declaration of built-in function 'malloc' if ( ( current_item = (struct keepfile *) malloc( sizeof(struct keepfile)) ) == NULL ) { ^~~~~~ bbftpd_retr.c:252:55: note: include '' or provide a declaration of 'malloc' bbftpd_retr.c:253:17: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Error getting memory for structure : %s",strerror(errno)) ; ^~~~~~~ bbftpd_retr.c:253:17: note: include '' or provide a declaration of 'sprintf' bbftpd_retr.c:256:21: warning: incompatible implicit declaration of built-in function 'free' free(current_item->filename) ; ^~~~ bbftpd_retr.c:256:21: note: include '' or provide a declaration of 'free' In file included from bbftpd_retr.c:48: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:262:17: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:262:17: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ bbftpd_retr.c:265:54: warning: incompatible implicit declaration of built-in function 'malloc' if ( ( current_item->filename = (char *) malloc( strlen(dirpath) + strlen(dp->d_name) + 1) ) == NULL ) { ^~~~~~ bbftpd_retr.c:265:54: note: include '' or provide a declaration of 'malloc' bbftpd_retr.c:266:17: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Error getting memory for filename : %s",strerror(errno)) ; ^~~~~~~ bbftpd_retr.c:266:17: note: include '' or provide a declaration of 'sprintf' In file included from bbftpd_retr.c:48: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:270:17: note: in expansion of macro 'FREE' FREE(current_item) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:270:17: note: in expansion of macro 'FREE' FREE(current_item) ; ^~~~ bbftpd_retr.c:273:21: warning: incompatible implicit declaration of built-in function 'free' free(current_item->filename) ; ^~~~ bbftpd_retr.c:273:21: note: include '' or provide a declaration of 'free' In file included from bbftpd_retr.c:48: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:279:17: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:279:17: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ bbftpd_retr.c:291:13: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(current_item->filename,"%s%s",dirpath,dp->d_name) ; ^~~~~~~ bbftpd_retr.c:291:13: note: include '' or provide a declaration of 'sprintf' bbftpd_retr.c:300:21: warning: incompatible implicit declaration of built-in function 'free' free(current_item->filename) ; ^~~~ bbftpd_retr.c:300:21: note: include '' or provide a declaration of 'free' In file included from bbftpd_retr.c:48: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:306:17: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:306:17: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ bbftpd_retr.c:345:9: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Error on readdir %s (%s) ",dirpath,strerror(errno)) ; ^~~~~~~ bbftpd_retr.c:345:9: note: include '' or provide a declaration of 'sprintf' bbftpd_retr.c:348:13: warning: incompatible implicit declaration of built-in function 'free' free(current_item->filename) ; ^~~~ bbftpd_retr.c:348:13: note: include '' or provide a declaration of 'free' In file included from bbftpd_retr.c:48: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:354:9: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:354:9: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ bbftpd_retr.c:366:13: warning: incompatible implicit declaration of built-in function 'free' free(current_item->filename) ; ^~~~ bbftpd_retr.c:366:13: note: include '' or provide a declaration of 'free' In file included from bbftpd_retr.c:48: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:371:9: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:371:9: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ bbftpd_retr.c:377:33: warning: incompatible implicit declaration of built-in function 'malloc' if ( ( *filelist = (char *) malloc (lengthtosend) ) == NULL ) { ^~~~~~ bbftpd_retr.c:377:33: note: include '' or provide a declaration of 'malloc' bbftpd_retr.c:378:9: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Error allocating memory for filelist %s",strerror(errno)) ; ^~~~~~~ bbftpd_retr.c:378:9: note: include '' or provide a declaration of 'sprintf' bbftpd_retr.c:382:13: warning: incompatible implicit declaration of built-in function 'free' free(current_item->filename) ; ^~~~ bbftpd_retr.c:382:13: note: include '' or provide a declaration of 'free' In file included from bbftpd_retr.c:48: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:387:9: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:387:9: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ bbftpd_retr.c:393:9: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(filepos,"%s",current_item->filename) ; ^~~~~~~ bbftpd_retr.c:393:9: note: include '' or provide a declaration of 'sprintf' bbftpd_retr.c:403:9: warning: incompatible implicit declaration of built-in function 'free' free(current_item->filename) ; ^~~~ bbftpd_retr.c:403:9: note: include '' or provide a declaration of 'free' In file included from bbftpd_retr.c:48: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:408:5: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_retr.c:408:5: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ bbftpd_retr.c: In function 'bbftpd_retrcheckfile': bbftpd_retr.c:455:9: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Fail to retreive : RFIO not supported") ; ^~~~~~~ bbftpd_retr.c:455:9: note: include '' or provide a declaration of 'sprintf' bbftpd_retr.c:476:9: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Error stating file %s : %s ",filename,strerror(savederrno)) ; ^~~~~~~ bbftpd_retr.c:476:9: note: include '' or provide a declaration of 'sprintf' bbftpd_retr.c:491:13: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"File %s is a directory",filename) ; ^~~~~~~ bbftpd_retr.c:491:13: note: include '' or provide a declaration of 'sprintf' bbftpd_retr.c:495:5: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(lastaccess,"%08x",statbuf.st_atime) ; ^~~~~~~ bbftpd_retr.c:495:5: note: include '' or provide a declaration of 'sprintf' bbftpd_retr.c: In function 'bbftpd_retrtransferfile': bbftpd_retr.c:614:24: warning: implicit declaration of function 'bbftpd_createreceivesocket'; did you mean 'bbftpd_private_receive_connection'? [-Wimplicit-function-declaration] sendsock = bbftpd_createreceivesocket(*portnumber,logmessage) ; ^~~~~~~~~~~~~~~~~~~~~~~~~~ bbftpd_private_receive_connection bbftpd_retr.c:685:17: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(i) ; ^~~~ bbftpd_retr.c:685:17: warning: incompatible implicit declaration of built-in function 'exit' bbftpd_retr.c:685:17: note: include '' or provide a declaration of 'exit' bbftpd_retr.c:696:17: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ bbftpd_retr.c:696:17: note: include '' or provide a declaration of 'exit' bbftpd_retr.c:702:26: warning: implicit declaration of function 'accept'; did you mean 'acct'? [-Wimplicit-function-declaration] if ( (ns = accept(sendsock,0,0) ) < 0 ) { ^~~~~~ acct bbftpd_retr.c:707:17: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ bbftpd_retr.c:707:17: note: include '' or provide a declaration of 'exit' bbftpd_retr.c:747:29: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] memcpy(readbuffer,compbuffer,buffersizeperstream*1024) ; ^~~~~~ bbftpd_retr.c:747:29: warning: incompatible implicit declaration of built-in function 'memcpy' bbftpd_retr.c:747:29: note: include '' or provide a declaration of 'memcpy' bbftpd_retr.c:780:29: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ bbftpd_retr.c:780:29: note: include '' or provide a declaration of 'exit' bbftpd_retr.c:804:29: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ bbftpd_retr.c:804:29: note: include '' or provide a declaration of 'exit' bbftpd_retr.c:810:29: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ bbftpd_retr.c:810:29: note: include '' or provide a declaration of 'exit' bbftpd_retr.c:812:39: warning: implicit declaration of function 'send'; did you mean 'sync'? [-Wimplicit-function-declaration] retcode = send(ns,&readbuffer[nbsent],lentosend,0) ; ^~~~ sync bbftpd_retr.c:817:33: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ bbftpd_retr.c:817:33: note: include '' or provide a declaration of 'exit' bbftpd_retr.c:823:33: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ bbftpd_retr.c:823:33: note: include '' or provide a declaration of 'exit' bbftpd_retr.c:834:21: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ bbftpd_retr.c:834:21: note: include '' or provide a declaration of 'exit' bbftpd_retr.c:843:17: warning: incompatible implicit declaration of built-in function 'exit' exit(ETIMEDOUT) ; ^~~~ bbftpd_retr.c:843:17: note: include '' or provide a declaration of 'exit' bbftpd_retr.c:849:17: warning: incompatible implicit declaration of built-in function 'exit' exit(1) ; ^~~~ bbftpd_retr.c:849:17: note: include '' or provide a declaration of 'exit' bbftpd_retr.c:856:13: warning: incompatible implicit declaration of built-in function 'exit' exit(0) ; ^~~~ bbftpd_retr.c:856:13: note: include '' or provide a declaration of 'exit' bbftpd_retr.c:866:17: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"fork failed : %s ",strerror(errno)) ; ^~~~~~~ bbftpd_retr.c:866:17: note: include '' or provide a declaration of 'sprintf' cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o bbftpd_signals.o bbftpd_signals.c bbftpd_signals.c: In function 'bbftpd_sigchld': bbftpd_signals.c:145:29: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration] sprintf(logmessage,"Disk quota excedeed or No Space left on device") ; ^~~~~~~ bbftpd_signals.c:145:29: warning: incompatible implicit declaration of built-in function 'sprintf' bbftpd_signals.c:145:29: note: include '' or provide a declaration of 'sprintf' bbftpd_signals.c:49:1: +#include bbftpd_signals.c:145:29: sprintf(logmessage,"Disk quota excedeed or No Space left on device") ; ^~~~~~~ bbftpd_signals.c:149:33: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Interrupted by signal") ; ^~~~~~~ bbftpd_signals.c:149:33: note: include '' or provide a declaration of 'sprintf' bbftpd_signals.c:151:33: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Error on server: %s",strerror(retcode)) ; ^~~~~~~ bbftpd_signals.c:151:33: note: include '' or provide a declaration of 'sprintf' bbftpd_signals.c:151:74: warning: implicit declaration of function 'strerror' [-Wimplicit-function-declaration] sprintf(logmessage,"Error on server: %s",strerror(retcode)) ; ^~~~~~~~ bbftpd_signals.c:180:17: warning: implicit declaration of function 'sscanf' [-Wimplicit-function-declaration] sscanf(lastaccess,"%08x",&ftime.actime) ; ^~~~~~ bbftpd_signals.c:180:17: warning: incompatible implicit declaration of built-in function 'sscanf' bbftpd_signals.c:180:17: note: include '' or provide a declaration of 'sscanf' bbftpd_signals.c:220:17: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"PUT %s %s %" LONG_LONG_FORMAT" %.3g %.3g %.3g", currentusername, curfilename, filesize, s, bs / 1024.0,(8.0*bs) / (1024.0 * 1024.0)); ^~~~~~~ bbftpd_signals.c:220:17: note: include '' or provide a declaration of 'sprintf' bbftpd_signals.c:237:17: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"GET %s %s %" LONG_LONG_FORMAT" %.3g %.3g %.3g", currentusername, curfilename, filesize, s, bs / 1024.0,(8.0*bs) / (1024.0 * 1024.0)); ^~~~~~~ bbftpd_signals.c:237:17: note: include '' or provide a declaration of 'sprintf' bbftpd_signals.c: In function 'bbftpd_sigterm': bbftpd_signals.c:262:23: warning: implicit declaration of function 'getpid'; did you mean 'waitpid'? [-Wimplicit-function-declaration] if ( fatherpid == getpid() ) { ^~~~~~ waitpid bbftpd_signals.c:269:32: warning: implicit declaration of function 'unlink'; did you mean 'unix'? [-Wimplicit-function-declaration] if ( unlinkfile == 1 ) unlink(realfilename) ; ^~~~~~ unix bbftpd_signals.c:271:9: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(0) ; ^~~~ bbftpd_signals.c:271:9: warning: incompatible implicit declaration of built-in function 'exit' bbftpd_signals.c:271:9: note: include '' or provide a declaration of 'exit' bbftpd_signals.c:49:1: +#include bbftpd_signals.c:271:9: exit(0) ; ^~~~ bbftpd_signals.c:273:9: warning: incompatible implicit declaration of built-in function 'exit' exit(EINTR) ; ^~~~ bbftpd_signals.c:273:9: note: include '' or provide a declaration of 'exit' cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o bbftpd_socket.o bbftpd_socket.c bbftpd_socket.c: In function 'bbftpd_createreceivesocket': bbftpd_socket.c:91:86: warning: implicit declaration of function 'strerror' [-Wimplicit-function-declaration] syslog(BBFTPD_ERR, "Cannot create receive socket on port %d : %s",portnumber,strerror(errno)); ^~~~~~~~ bbftpd_socket.c:92:9: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration] sprintf(logmessage,"Cannot create receive socket on port %d : %s",portnumber,strerror(errno)) ; ^~~~~~~ bbftpd_socket.c:92:9: warning: incompatible implicit declaration of built-in function 'sprintf' bbftpd_socket.c:92:9: note: include '' or provide a declaration of 'sprintf' bbftpd_socket.c:45:1: +#include bbftpd_socket.c:92:9: sprintf(logmessage,"Cannot create receive socket on port %d : %s",portnumber,strerror(errno)) ; ^~~~~~~ bbftpd_socket.c:98:9: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Cannot set SO_REUSEADDR on receive socket port %d : %s",portnumber,strerror(errno)) ; ^~~~~~~ bbftpd_socket.c:98:9: note: include '' or provide a declaration of 'sprintf' bbftpd_socket.c:109:67: warning: passing argument 5 of 'getsockopt' from incompatible pointer type [-Wincompatible-pointer-types] if ( getsockopt(sock,SOL_SOCKET,SO_RCVBUF,(char *)&tcpwinsize,&addrlen) < 0 ) { ^~~~~~~~ In file included from bbftpd_socket.c:36: /usr/include/sys/socket.h:493:50: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} int getsockopt(int, int, int, void * __restrict, socklen_t * __restrict); ^~~~~~~~~~~~~~~~~~~~~~ bbftpd_socket.c:112:9: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Cannot get SO_RCVBUF on receive socket port %d : %s",portnumber,strerror(errno)) ; ^~~~~~~ bbftpd_socket.c:112:9: note: include '' or provide a declaration of 'sprintf' bbftpd_socket.c:116:9: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Receive buffer on port %d cannot be set to %d Bytes, Value is %d Bytes",portnumber,1024*recvwinsize,tcpwinsize) ; ^~~~~~~ bbftpd_socket.c:116:9: note: include '' or provide a declaration of 'sprintf' bbftpd_socket.c:127:68: warning: passing argument 5 of 'getsockopt' from incompatible pointer type [-Wincompatible-pointer-types] if ( getsockopt(sock,SOL_SOCKET, SO_SNDBUF,(char *)&tcpwinsize,&addrlen) < 0 ) { ^~~~~~~~ In file included from bbftpd_socket.c:36: /usr/include/sys/socket.h:493:50: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} int getsockopt(int, int, int, void * __restrict, socklen_t * __restrict); ^~~~~~~~~~~~~~~~~~~~~~ bbftpd_socket.c:130:9: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Cannot get SO_SNDBUF on receive socket port %d : %s",portnumber,strerror(errno)) ; ^~~~~~~ bbftpd_socket.c:130:9: note: include '' or provide a declaration of 'sprintf' bbftpd_socket.c:134:9: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Send buffer on port %d cannot be set to %d Bytes, Value is %d Bytes",portnumber,1024*sendwinsize,tcpwinsize) ; ^~~~~~~ bbftpd_socket.c:134:9: note: include '' or provide a declaration of 'sprintf' bbftpd_socket.c:140:9: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Cannot set TCP_NODELAY on receive socket port %d : %s",portnumber,strerror(errno)) ; ^~~~~~~ bbftpd_socket.c:140:9: note: include '' or provide a declaration of 'sprintf' bbftpd_socket.c:157:9: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Cannot bind on receive socket port %d : %s",portnumber,strerror(errno)) ; ^~~~~~~ bbftpd_socket.c:157:9: note: include '' or provide a declaration of 'sprintf' bbftpd_socket.c:175:13: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Cannot connect receive socket port %s:%d : %s",inet_ntoa(his_addr.sin_addr),portnumber,strerror(errno)) ; ^~~~~~~ bbftpd_socket.c:175:13: note: include '' or provide a declaration of 'sprintf' bbftpd_socket.c:175:80: warning: implicit declaration of function 'inet_ntoa' [-Wimplicit-function-declaration] sprintf(logmessage,"Cannot connect receive socket port %s:%d : %s",inet_ntoa(his_addr.sin_addr),portnumber,strerror(errno)) ; ^~~~~~~~~ bbftpd_socket.c: In function 'bbftpd_getdatasock': bbftpd_socket.c:262:82: warning: passing argument 5 of 'getsockopt' from incompatible pointer type [-Wincompatible-pointer-types] if ( getsockopt(*mysockfree,SOL_SOCKET,SO_SNDBUF,(char *)&tcpwinsize,&addrlen) < 0 ) { ^~~~~~~~ In file included from bbftpd_socket.c:36: /usr/include/sys/socket.h:493:50: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} int getsockopt(int, int, int, void * __restrict, socklen_t * __restrict); ^~~~~~~~~~~~~~~~~~~~~~ bbftpd_socket.c:271:82: warning: passing argument 5 of 'getsockopt' from incompatible pointer type [-Wincompatible-pointer-types] if ( getsockopt(*mysockfree,SOL_SOCKET,SO_RCVBUF,(char *)&tcpwinsize,&addrlen) < 0 ) { ^~~~~~~~ In file included from bbftpd_socket.c:36: /usr/include/sys/socket.h:493:50: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} int getsockopt(int, int, int, void * __restrict, socklen_t * __restrict); ^~~~~~~~~~~~~~~~~~~~~~ bbftpd_socket.c:300:62: warning: passing argument 3 of 'getsockname' from incompatible pointer type [-Wincompatible-pointer-types] if (getsockname(*mysockfree,(struct sockaddr *)&sck, &addrlen) < 0) { ^~~~~~~~ In file included from bbftpd_socket.c:36: /usr/include/sys/socket.h:492:52: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); ^~~~~~~~~~~~~~~~~~~~~~ cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o bbftpd_store.o bbftpd_store.c bbftpd_store.c: In function 'bbftpd_storeutime': bbftpd_store.c:136:9: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration] sprintf(logmessage,"Error utime on file %s : %s",filename,strerror(errno)) ; ^~~~~~~ bbftpd_store.c:136:9: warning: incompatible implicit declaration of built-in function 'sprintf' bbftpd_store.c:136:9: note: include '' or provide a declaration of 'sprintf' bbftpd_store.c:55:1: +#include #endif bbftpd_store.c:136:9: sprintf(logmessage,"Error utime on file %s : %s",filename,strerror(errno)) ; ^~~~~~~ bbftpd_store.c:136:67: warning: implicit declaration of function 'strerror'; did you mean 'gzerror'? [-Wimplicit-function-declaration] sprintf(logmessage,"Error utime on file %s : %s",filename,strerror(errno)) ; ^~~~~~~~ gzerror bbftpd_store.c: In function 'bbftpd_storechmod': bbftpd_store.c:172:9: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Error chmod on file %s : %s",filename,strerror(errno)) ; ^~~~~~~ bbftpd_store.c:172:9: note: include '' or provide a declaration of 'sprintf' bbftpd_store.c: In function 'bbftpd_storerename': bbftpd_store.c:206:15: warning: implicit declaration of function 'rename'; did you mean 'revoke'? [-Wimplicit-function-declaration] retcode = rename(newfilename,oldfilename) ; ^~~~~~ revoke bbftpd_store.c:208:9: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Error renaming %s to %s : %s",newfilename,oldfilename,strerror(errno)) ; ^~~~~~~ bbftpd_store.c:208:9: note: include '' or provide a declaration of 'sprintf' bbftpd_store.c: In function 'bbftpd_storecheckoptions': bbftpd_store.c:281:9: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Fail to store : RFIO not supported") ; ^~~~~~~ bbftpd_store.c:281:9: note: include '' or provide a declaration of 'sprintf' bbftpd_store.c: In function 'bbftpd_storemkdir': bbftpd_store.c:334:9: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Fail to mkdir : RFIO not supported") ; ^~~~~~~ bbftpd_store.c:334:9: note: include '' or provide a declaration of 'sprintf' bbftpd_store.c:341:30: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] if ( (dirpath = (char *) malloc (strlen(dirname)+1) ) == NULL ) { ^~~~~~ bbftpd_store.c:341:30: warning: incompatible implicit declaration of built-in function 'malloc' bbftpd_store.c:341:30: note: include '' or provide a declaration of 'malloc' bbftpd_store.c:55:1: +#include #endif bbftpd_store.c:341:30: if ( (dirpath = (char *) malloc (strlen(dirname)+1) ) == NULL ) { ^~~~~~ bbftpd_store.c:341:38: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] if ( (dirpath = (char *) malloc (strlen(dirname)+1) ) == NULL ) { ^~~~~~ bbftpd_store.c:341:38: warning: incompatible implicit declaration of built-in function 'strlen' bbftpd_store.c:341:38: note: include '' or provide a declaration of 'strlen' bbftpd_store.c:55:1: +#include #endif bbftpd_store.c:341:38: if ( (dirpath = (char *) malloc (strlen(dirname)+1) ) == NULL ) { ^~~~~~ bbftpd_store.c:342:9: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Error allocating memory for dirpath : %s",strerror(errno)) ; ^~~~~~~ bbftpd_store.c:342:9: note: include '' or provide a declaration of 'sprintf' bbftpd_store.c:345:5: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy (dirpath, dirname); ^~~~~~ bbftpd_store.c:345:5: warning: incompatible implicit declaration of built-in function 'strcpy' bbftpd_store.c:345:5: note: include '' or provide a declaration of 'strcpy' bbftpd_store.c:362:30: warning: implicit declaration of function 'strchr' [-Wimplicit-function-declaration] slash = (char *) strchr (slash, '/'); ^~~~~~ bbftpd_store.c:362:30: warning: incompatible implicit declaration of built-in function 'strchr' bbftpd_store.c:362:30: note: include '' or provide a declaration of 'strchr' bbftpd_store.c:383:21: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Error creation directory %s (%s)",basedir,strerror(savederrno)) ; ^~~~~~~ bbftpd_store.c:383:21: note: include '' or provide a declaration of 'sprintf' In file included from bbftpd_store.c:47: ../includes/common.h:95:33: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:406:25: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:406:25: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:406:25: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:409:25: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:409:25: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ bbftpd_store.c:413:21: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"%s exists but is not a directory",basedir) ; ^~~~~~~ bbftpd_store.c:413:21: note: include '' or provide a declaration of 'sprintf' In file included from bbftpd_store.c:47: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:414:21: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:414:21: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ bbftpd_store.c:442:13: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Error creation directory %s (%s)",basedir,strerror(savederrno)) ; ^~~~~~~ bbftpd_store.c:442:13: note: include '' or provide a declaration of 'sprintf' In file included from bbftpd_store.c:47: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:465:17: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:465:17: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:468:17: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:468:17: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ bbftpd_store.c:472:13: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"%s exists but is not a directory",basedir) ; ^~~~~~~ bbftpd_store.c:472:13: note: include '' or provide a declaration of 'sprintf' In file included from bbftpd_store.c:47: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:473:13: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:473:13: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:479:13: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:479:13: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:483:5: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:483:5: note: in expansion of macro 'FREE' FREE(dirpath) ; ^~~~ bbftpd_store.c: In function 'bbftpd_storecreatefile': bbftpd_store.c:529:9: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Fail to create file : RFIO not supported") ; ^~~~~~~ bbftpd_store.c:529:9: note: include '' or provide a declaration of 'sprintf' bbftpd_store.c:536:31: warning: incompatible implicit declaration of built-in function 'malloc' if ( (filepath = (char *) malloc (strlen(filename)+1) ) == NULL ) { ^~~~~~ bbftpd_store.c:536:31: note: include '' or provide a declaration of 'malloc' bbftpd_store.c:536:39: warning: incompatible implicit declaration of built-in function 'strlen' if ( (filepath = (char *) malloc (strlen(filename)+1) ) == NULL ) { ^~~~~~ bbftpd_store.c:536:39: note: include '' or provide a declaration of 'strlen' bbftpd_store.c:537:9: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Error allocating memory for filepath : %s",strerror(errno)) ; ^~~~~~~ bbftpd_store.c:537:9: note: include '' or provide a declaration of 'sprintf' bbftpd_store.c:540:5: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy (filepath, filename); ^~~~~~ bbftpd_store.c:540:5: note: include '' or provide a declaration of 'strcpy' bbftpd_store.c:547:17: warning: incompatible implicit declaration of built-in function 'strlen' lastslash = strlen(filepath) - 1 ; ^~~~~~ bbftpd_store.c:547:17: note: include '' or provide a declaration of 'strlen' bbftpd_store.c:563:9: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Filename %s ends with a /",filepath) ; ^~~~~~~ bbftpd_store.c:563:9: note: include '' or provide a declaration of 'sprintf' In file included from bbftpd_store.c:47: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:564:9: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:564:9: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ bbftpd_store.c:590:17: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Error stating directory %s : %s ",filepath,strerror(savederrno)) ; ^~~~~~~ bbftpd_store.c:590:17: note: include '' or provide a declaration of 'sprintf' In file included from bbftpd_store.c:47: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:591:17: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:591:17: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ bbftpd_store.c:599:21: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Directory (%s) creation needed but TROPT_DIR not set",filepath) ; ^~~~~~~ bbftpd_store.c:599:21: note: include '' or provide a declaration of 'sprintf' In file included from bbftpd_store.c:47: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:600:21: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:600:21: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:604:25: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:604:25: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ bbftpd_store.c:610:17: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Error stating directory %s : %s ",filepath,strerror(savederrno)) ; ^~~~~~~ bbftpd_store.c:610:17: note: include '' or provide a declaration of 'sprintf' In file included from bbftpd_store.c:47: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:611:17: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:611:17: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ bbftpd_store.c:624:17: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"%s is a not a directory",filepath) ; ^~~~~~~ bbftpd_store.c:624:17: note: include '' or provide a declaration of 'sprintf' In file included from bbftpd_store.c:47: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:625:17: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:625:17: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ bbftpd_store.c:652:13: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Error stating file %s : %s ",filepath,strerror(savederrno)) ; ^~~~~~~ bbftpd_store.c:652:13: note: include '' or provide a declaration of 'sprintf' In file included from bbftpd_store.c:47: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:653:13: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:653:13: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ bbftpd_store.c:660:13: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Error stating file %s : %s ",filepath,strerror(savederrno)) ; ^~~~~~~ bbftpd_store.c:660:13: note: include '' or provide a declaration of 'sprintf' In file included from bbftpd_store.c:47: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:661:13: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:661:13: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ bbftpd_store.c:669:13: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"File %s is a directory",filepath) ; ^~~~~~~ bbftpd_store.c:669:13: note: include '' or provide a declaration of 'sprintf' In file included from bbftpd_store.c:47: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:670:13: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:670:13: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ bbftpd_store.c:677:13: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"File %s is not writable",filepath) ; ^~~~~~~ bbftpd_store.c:677:13: note: include '' or provide a declaration of 'sprintf' In file included from bbftpd_store.c:47: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:678:13: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:678:13: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ bbftpd_store.c:700:9: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Error creation file %s : %s ",filepath,strerror(errno)) ; ^~~~~~~ bbftpd_store.c:700:9: note: include '' or provide a declaration of 'sprintf' In file included from bbftpd_store.c:47: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:717:17: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:717:17: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:720:13: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:720:13: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ bbftpd_store.c:727:9: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(statmessage,"PUT %s %s 0 0 0.0 0.0", currentusername, filepath); ^~~~~~~ bbftpd_store.c:727:9: note: include '' or provide a declaration of 'sprintf' In file included from bbftpd_store.c:47: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:729:9: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:729:9: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ bbftpd_store.c:782:9: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Error closing file %s : %s ",filepath,strerror(savederrno)) ; ^~~~~~~ bbftpd_store.c:782:9: note: include '' or provide a declaration of 'sprintf' In file included from bbftpd_store.c:47: ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:784:13: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:784:13: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:787:13: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:787:13: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ ../includes/common.h:95:33: warning: incompatible implicit declaration of built-in function 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:791:5: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ ../includes/common.h:95:33: note: include '' or provide a declaration of 'free' #define FREE(X) if(X != NULL) { free(X), X=NULL;} ^~~~ bbftpd_store.c:791:5: note: in expansion of macro 'FREE' FREE(filepath) ; ^~~~ bbftpd_store.c: In function 'bbftpd_storetransferfile': bbftpd_store.c:894:23: warning: implicit declaration of function 'bbftpd_createreceivesocket'; did you mean 'bbftpd_private_receive_connection'? [-Wimplicit-function-declaration] recsock = bbftpd_createreceivesocket(*portnumber,logmessage) ; ^~~~~~~~~~~~~~~~~~~~~~~~~~ bbftpd_private_receive_connection bbftpd_store.c:960:17: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(i) ; ^~~~ bbftpd_store.c:960:17: warning: incompatible implicit declaration of built-in function 'exit' bbftpd_store.c:960:17: note: include '' or provide a declaration of 'exit' bbftpd_store.c:981:21: warning: incompatible implicit declaration of built-in function 'exit' exit(255) ; ^~~~ bbftpd_store.c:981:21: note: include '' or provide a declaration of 'exit' bbftpd_store.c:984:21: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ bbftpd_store.c:984:21: note: include '' or provide a declaration of 'exit' bbftpd_store.c:997:17: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ bbftpd_store.c:997:17: note: include '' or provide a declaration of 'exit' bbftpd_store.c:1000:26: warning: implicit declaration of function 'accept'; did you mean 'acct'? [-Wimplicit-function-declaration] if ( (ns = accept(recsock,0,0) ) < 0 ) { ^~~~~~ acct bbftpd_store.c:1006:17: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ bbftpd_store.c:1006:17: note: include '' or provide a declaration of 'exit' bbftpd_store.c:1028:25: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ bbftpd_store.c:1028:25: note: include '' or provide a declaration of 'exit' bbftpd_store.c:1069:25: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ bbftpd_store.c:1069:25: note: include '' or provide a declaration of 'exit' bbftpd_store.c:1076:25: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ bbftpd_store.c:1076:25: note: include '' or provide a declaration of 'exit' bbftpd_store.c:1078:35: warning: implicit declaration of function 'recv'; did you mean 'read'? [-Wimplicit-function-declaration] retcode = recv(ns,&readbuffer[dataonone],datatoreceive-dataonone,0) ; ^~~~ read bbftpd_store.c:1085:29: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ bbftpd_store.c:1085:29: note: include '' or provide a declaration of 'exit' bbftpd_store.c:1092:29: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ bbftpd_store.c:1092:29: note: include '' or provide a declaration of 'exit' bbftpd_store.c:1113:29: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ bbftpd_store.c:1113:29: note: include '' or provide a declaration of 'exit' bbftpd_store.c:1115:25: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] memcpy(readbuffer,compbuffer,buffersizeperstream*1024) ; ^~~~~~ bbftpd_store.c:1115:25: warning: incompatible implicit declaration of built-in function 'memcpy' bbftpd_store.c:1115:25: note: include '' or provide a declaration of 'memcpy' bbftpd_store.c:1139:29: warning: incompatible implicit declaration of built-in function 'exit' exit(255) ; ^~~~ bbftpd_store.c:1139:29: note: include '' or provide a declaration of 'exit' bbftpd_store.c:1142:29: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ bbftpd_store.c:1142:29: note: include '' or provide a declaration of 'exit' bbftpd_store.c:1160:17: warning: incompatible implicit declaration of built-in function 'exit' exit(ETIMEDOUT) ; ^~~~ bbftpd_store.c:1160:17: note: include '' or provide a declaration of 'exit' bbftpd_store.c:1167:13: warning: incompatible implicit declaration of built-in function 'exit' exit(0) ; ^~~~ bbftpd_store.c:1167:13: note: include '' or provide a declaration of 'exit' bbftpd_store.c:1178:17: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"fork failed : %s ",strerror(errno)) ; ^~~~~~~ bbftpd_store.c:1178:17: note: include '' or provide a declaration of 'sprintf' cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o bbftpd_utils.o bbftpd_utils.c bbftpd_utils.c: In function 'strip_trailing_slashes': bbftpd_utils.c:54:10: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] last = strlen (path) - 1; ^~~~~~ bbftpd_utils.c:54:10: warning: incompatible implicit declaration of built-in function 'strlen' bbftpd_utils.c:54:10: note: include '' or provide a declaration of 'strlen' bbftpd_utils.c:34:1: +#include bbftpd_utils.c:54:10: last = strlen (path) - 1; ^~~~~~ bbftpd_utils.c: In function 'free_all_var': bbftpd_utils.c:74:9: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(curfilename) ; ^~~~ bbftpd_utils.c:74:9: warning: incompatible implicit declaration of built-in function 'free' bbftpd_utils.c:74:9: note: include '' or provide a declaration of 'free' bbftpd_utils.c:34:1: +#include bbftpd_utils.c:74:9: free(curfilename) ; ^~~~ bbftpd_utils.c:79:9: warning: incompatible implicit declaration of built-in function 'free' free(realfilename) ; ^~~~ bbftpd_utils.c:79:9: note: include '' or provide a declaration of 'free' bbftpd_utils.c:83:9: warning: incompatible implicit declaration of built-in function 'free' free(myports) ; ^~~~ bbftpd_utils.c:83:9: note: include '' or provide a declaration of 'free' bbftpd_utils.c:87:9: warning: incompatible implicit declaration of built-in function 'free' free(mychildren) ; ^~~~ bbftpd_utils.c:87:9: note: include '' or provide a declaration of 'free' bbftpd_utils.c:91:9: warning: incompatible implicit declaration of built-in function 'free' free(mysockets) ; ^~~~ bbftpd_utils.c:91:9: note: include '' or provide a declaration of 'free' bbftpd_utils.c:95:9: warning: incompatible implicit declaration of built-in function 'free' free(readbuffer) ; ^~~~ bbftpd_utils.c:95:9: note: include '' or provide a declaration of 'free' bbftpd_utils.c:99:9: warning: incompatible implicit declaration of built-in function 'free' free(compbuffer) ; ^~~~ bbftpd_utils.c:99:9: note: include '' or provide a declaration of 'free' cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o changetodir.o changetodir.c changetodir.c: In function 'changetodir': changetodir.c:73:9: warning: implicit declaration of function 'reply' [-Wimplicit-function-declaration] reply(MSG_BAD_NO_RETRY,"Directory too long") ; ^~~~~ changetodir.c:79:10: warning: implicit declaration of function 'readmessage' [-Wimplicit-function-declaration] if ( readmessage(msgsock,receive_buffer,msglen,recvcontrolto) < 0 ) { ^~~~~~~~~~~ changetodir.c:101:79: warning: implicit declaration of function 'strerror'; did you mean 'perror'? [-Wimplicit-function-declaration] sprintf(logmessage,"Error changing directory %s : %s ",receive_buffer,strerror(errno)) ; ^~~~~~~~ perror changetodir.c:132:13: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(currentdir) ; ^~~~ changetodir.c:132:13: warning: incompatible implicit declaration of built-in function 'free' changetodir.c:132:13: note: include '' or provide a declaration of 'free' changetodir.c:53:1: +#include changetodir.c:132:13: free(currentdir) ; ^~~~ cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o createadir.o createadir.c createadir.c: In function 'createadir': createadir.c:75:9: warning: implicit declaration of function 'reply' [-Wimplicit-function-declaration] reply(MSG_BAD_NO_RETRY,"Directory too long") ; ^~~~~ createadir.c:81:10: warning: implicit declaration of function 'readmessage' [-Wimplicit-function-declaration] if ( readmessage(msgsock,receive_buffer,msglen,recvcontrolto) < 0 ) { ^~~~~~~~~~~ createadir.c:103:78: warning: implicit declaration of function 'strerror'; did you mean 'perror'? [-Wimplicit-function-declaration] sprintf(logmessage,"Error creation directory %s : %s",receive_buffer,strerror(errno)) ; ^~~~~~~~ perror cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o createreceivesock.o createreceivesock.c createreceivesock.c: In function 'createreceivesock': createreceivesock.c:82:75: warning: implicit declaration of function 'strerror' [-Wimplicit-function-declaration] syslog(BBFTPD_ERR, "Cannot create receive socket %d : %s",socknum,strerror(errno)); ^~~~~~~~ createreceivesock.c:83:9: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration] sprintf(logmessage,"Cannot create receive socket %d : %s",socknum,strerror(errno)) ; ^~~~~~~ createreceivesock.c:83:9: warning: incompatible implicit declaration of built-in function 'sprintf' createreceivesock.c:83:9: note: include '' or provide a declaration of 'sprintf' createreceivesock.c:63:1: +#include createreceivesock.c:83:9: sprintf(logmessage,"Cannot create receive socket %d : %s",socknum,strerror(errno)) ; ^~~~~~~ createreceivesock.c:89:9: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Cannot set SO_REUSEADDR on receive socket %d : %s",socknum,strerror(errno)) ; ^~~~~~~ createreceivesock.c:89:9: note: include '' or provide a declaration of 'sprintf' createreceivesock.c:95:9: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Cannot set SO_RCVBUF on receive socket %d : %s",socknum,strerror(errno)) ; ^~~~~~~ createreceivesock.c:95:9: note: include '' or provide a declaration of 'sprintf' createreceivesock.c:101:9: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Cannot set SO_SNDBUF on receive socket %d : %s",socknum,strerror(errno)) ; ^~~~~~~ createreceivesock.c:101:9: note: include '' or provide a declaration of 'sprintf' createreceivesock.c:107:9: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Cannot set TCP_NODELAY on receive socket %d : %s",socknum,strerror(errno)) ; ^~~~~~~ createreceivesock.c:107:9: note: include '' or provide a declaration of 'sprintf' createreceivesock.c:124:9: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Cannot bind on receive socket %d : %s",socknum,strerror(errno)) ; ^~~~~~~ createreceivesock.c:124:9: note: include '' or provide a declaration of 'sprintf' createreceivesock.c:144:13: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Cannot connect receive socket %d : %s",socknum,strerror(errno)) ; ^~~~~~~ createreceivesock.c:144:13: note: include '' or provide a declaration of 'sprintf' cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o readcontrol.o readcontrol.c readcontrol.c: In function 'readcontrol': readcontrol.c:105:31: warning: implicit declaration of function 'storeafile' [-Wimplicit-function-declaration] retcode = storeafile(msgcode) ; ^~~~~~~~~~ readcontrol.c:121:31: warning: implicit declaration of function 'sendafile' [-Wimplicit-function-declaration] retcode = sendafile(msgcode) ; ^~~~~~~~~ readcontrol.c:141:21: warning: implicit declaration of function 'reply' [-Wimplicit-function-declaration] reply(MSG_BAD_NO_RETRY,"Retreive RFIO not supported") ; ^~~~~ readcontrol.c:148:31: warning: implicit declaration of function 'createadir' [-Wimplicit-function-declaration] retcode = createadir(msgcode,msglen) ; ^~~~~~~~~~ readcontrol.c:152:31: warning: implicit declaration of function 'changetodir' [-Wimplicit-function-declaration] retcode = changetodir(msgcode,msglen) ; ^~~~~~~~~~~ readcontrol.c:156:31: warning: implicit declaration of function 'sendlist' [-Wimplicit-function-declaration] retcode = sendlist(msgcode,msglen) ; ^~~~~~~~ readcontrol.c:161:31: warning: implicit declaration of function 'discardmessage' [-Wimplicit-function-declaration] retcode = discardmessage(msgsock,msglen,recvcontrolto) ; ^~~~~~~~~~~~~~ cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o sendafile.o sendafile.c sendafile.c: In function 'sendafile': sendafile.c:166:5: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(currentfilename,"") ; ^~~~~~ sendafile.c:166:5: warning: incompatible implicit declaration of built-in function 'strcpy' sendafile.c:166:5: note: include '' or provide a declaration of 'strcpy' sendafile.c:81:1: +#include #endif sendafile.c:166:5: strcpy(currentfilename,"") ; ^~~~~~ sendafile.c:167:21: warning: implicit declaration of function 'readmessage' [-Wimplicit-function-declaration] if ( (retcode = readmessage(msgsock,receive_buffer,STORMESSLEN,recvcontrolto) ) < 0 ) { ^~~~~~~~~~~ sendafile.c:212:71: warning: implicit declaration of function 'strerror'; did you mean 'gzerror'? [-Wimplicit-function-declaration] sprintf(logmessage,"Error stating file %s : %s ",readfilename,strerror(savederrno)) ; ^~~~~~~~ gzerror sendafile.c:219:13: warning: implicit declaration of function 'reply' [-Wimplicit-function-declaration] reply(MSG_BAD_NO_RETRY,logmessage) ; ^~~~~ sendafile.c:303:10: warning: implicit declaration of function 'writemessage' [-Wimplicit-function-declaration] if ( writemessage(msgsock,send_buffer,MINMESSLEN,recvcontrolto) < 0 ) { ^~~~~~~~~~~~ sendafile.c:371:24: warning: implicit declaration of function 'createreceivesock' [-Wimplicit-function-declaration] sendsock = createreceivesock(msg_store->port[i-1],i,logmessage) ; ^~~~~~~~~~~~~~~~~ sendafile.c:384:13: warning: implicit declaration of function 'clean_child' [-Wimplicit-function-declaration] clean_child() ; ^~~~~~~~~~~ sendafile.c:432:17: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(i) ; ^~~~ sendafile.c:432:17: warning: incompatible implicit declaration of built-in function 'exit' sendafile.c:432:17: note: include '' or provide a declaration of 'exit' sendafile.c:81:1: +#include #endif sendafile.c:432:17: exit(i) ; ^~~~ sendafile.c:443:17: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ sendafile.c:443:17: note: include '' or provide a declaration of 'exit' sendafile.c:484:29: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] memcpy(readbuffer,buffercomp,READBUFLEN) ; ^~~~~~ sendafile.c:484:29: warning: incompatible implicit declaration of built-in function 'memcpy' sendafile.c:484:29: note: include '' or provide a declaration of 'memcpy' sendafile.c:493:29: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ sendafile.c:493:29: note: include '' or provide a declaration of 'exit' sendafile.c:520:29: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ sendafile.c:520:29: note: include '' or provide a declaration of 'exit' sendafile.c:526:29: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ sendafile.c:526:29: note: include '' or provide a declaration of 'exit' sendafile.c:528:39: warning: implicit declaration of function 'send'; did you mean 'sync'? [-Wimplicit-function-declaration] retcode = send(sendsock,&readbuffer[nbsent],lentosend,0) ; ^~~~ sync sendafile.c:533:33: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ sendafile.c:533:33: note: include '' or provide a declaration of 'exit' sendafile.c:539:33: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ sendafile.c:539:33: note: include '' or provide a declaration of 'exit' sendafile.c:549:21: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ sendafile.c:549:21: note: include '' or provide a declaration of 'exit' sendafile.c:558:17: warning: incompatible implicit declaration of built-in function 'exit' exit(ETIMEDOUT) ; ^~~~ sendafile.c:558:17: note: include '' or provide a declaration of 'exit' sendafile.c:564:17: warning: incompatible implicit declaration of built-in function 'exit' exit(1) ; ^~~~ sendafile.c:564:17: note: include '' or provide a declaration of 'exit' sendafile.c:569:13: warning: incompatible implicit declaration of built-in function 'exit' exit(0) ; ^~~~ sendafile.c:569:13: note: include '' or provide a declaration of 'exit' cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o sendlist.o sendlist.c sendlist.c: In function 'sendlist': sendlist.c:78:9: warning: implicit declaration of function 'reply' [-Wimplicit-function-declaration] reply(MSG_BAD_NO_RETRY,"String too long") ; ^~~~~ sendlist.c:84:10: warning: implicit declaration of function 'readmessage' [-Wimplicit-function-declaration] if ( readmessage(msgsock,receive_buffer,msglen,recvcontrolto) < 0 ) { ^~~~~~~~~~~ sendlist.c:109:18: warning: implicit declaration of function 'writemessage' [-Wimplicit-function-declaration] if ( writemessage(msgsock,send_buffer,MINMESSLEN,recvcontrolto) < 0 ) { ^~~~~~~~~~~~ sendlist.c:132:39: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] msg->msglen = msg->msglen+strlen(tmpfile)+1 ; ^~~~~~ sendlist.c:132:39: warning: incompatible implicit declaration of built-in function 'strlen' sendlist.c:132:39: note: include '' or provide a declaration of 'strlen' sendlist.c:53:1: +#include sendlist.c:132:39: msg->msglen = msg->msglen+strlen(tmpfile)+1 ; ^~~~~~ sendlist.c:146:47: warning: incompatible implicit declaration of built-in function 'strlen' if ( writemessage(msgsock,tmpfile,strlen(tmpfile)+1,recvcontrolto) < 0 ) { ^~~~~~ sendlist.c:146:47: note: include '' or provide a declaration of 'strlen' cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o signals_routines.o signals_routines.c signals_routines.c: In function 'in_sigchld_v1': signals_routines.c:138:48: warning: implicit declaration of function 'unlink'; did you mean 'unix'? [-Wimplicit-function-declaration] if ( unlinkfile == 1 ) unlink(currentfilename) ; ^~~~~~ unix signals_routines.c:140:29: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration] sprintf(logmessage,"Disk quota excedeed or No Space left on device") ; ^~~~~~~ signals_routines.c:140:29: warning: incompatible implicit declaration of built-in function 'sprintf' signals_routines.c:140:29: note: include '' or provide a declaration of 'sprintf' signals_routines.c:45:1: +#include signals_routines.c:140:29: sprintf(logmessage,"Disk quota excedeed or No Space left on device") ; ^~~~~~~ signals_routines.c:144:33: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"Interrupted by signal") ; ^~~~~~~ signals_routines.c:144:33: note: include '' or provide a declaration of 'sprintf' signals_routines.c:146:33: warning: incompatible implicit declaration of built-in function 'sprintf' sprintf(logmessage,"%s",strerror(retcode)) ; ^~~~~~~ signals_routines.c:146:33: note: include '' or provide a declaration of 'sprintf' signals_routines.c:146:57: warning: implicit declaration of function 'strerror' [-Wimplicit-function-declaration] sprintf(logmessage,"%s",strerror(retcode)) ; ^~~~~~~~ signals_routines.c: In function 'in_sigterm_v1': signals_routines.c:186:23: warning: implicit declaration of function 'getpid'; did you mean 'waitpid'? [-Wimplicit-function-declaration] if ( fatherpid == getpid() ) { ^~~~~~ waitpid signals_routines.c:195:9: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(0) ; ^~~~ signals_routines.c:195:9: warning: incompatible implicit declaration of built-in function 'exit' signals_routines.c:195:9: note: include '' or provide a declaration of 'exit' signals_routines.c:45:1: +#include signals_routines.c:195:9: exit(0) ; ^~~~ signals_routines.c:197:9: warning: incompatible implicit declaration of built-in function 'exit' exit(EINTR) ; ^~~~ signals_routines.c:197:9: note: include '' or provide a declaration of 'exit' cc -g -O2 -I../includes -I./ -I/usr/local/include -c -o storeafile.o storeafile.c storeafile.c: In function 'storeafile': storeafile.c:160:21: warning: implicit declaration of function 'readmessage' [-Wimplicit-function-declaration] if ( (retcode = readmessage(msgsock,receive_buffer,STORMESSLEN,recvcontrolto)) < 0 ) { ^~~~~~~~~~~ storeafile.c:167:5: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(currentfilename,msg_store->filename) ; ^~~~~~ storeafile.c:167:5: warning: incompatible implicit declaration of built-in function 'strcpy' storeafile.c:167:5: note: include '' or provide a declaration of 'strcpy' storeafile.c:81:1: +#include #endif storeafile.c:167:5: strcpy(currentfilename,msg_store->filename) ; ^~~~~~ storeafile.c:202:78: warning: implicit declaration of function 'strerror'; did you mean 'gzerror'? [-Wimplicit-function-declaration] sprintf(logmessage,"Error stating file %s : %s ",currentfilename,strerror(savederrno)) ; ^~~~~~~~ gzerror storeafile.c:204:13: warning: implicit declaration of function 'reply' [-Wimplicit-function-declaration] reply(MSG_BAD_NO_RETRY,logmessage) ; ^~~~~ storeafile.c:345:23: warning: implicit declaration of function 'createreceivesock' [-Wimplicit-function-declaration] recsock = createreceivesock(msg_store->port[i-1],i,logmessage) ; ^~~~~~~~~~~~~~~~~ storeafile.c:359:13: warning: implicit declaration of function 'clean_child' [-Wimplicit-function-declaration] clean_child() ; ^~~~~~~~~~~ storeafile.c:406:17: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(i) ; ^~~~ storeafile.c:406:17: warning: incompatible implicit declaration of built-in function 'exit' storeafile.c:406:17: note: include '' or provide a declaration of 'exit' storeafile.c:81:1: +#include #endif storeafile.c:406:17: exit(i) ; ^~~~ storeafile.c:427:21: warning: incompatible implicit declaration of built-in function 'exit' exit(255) ; ^~~~ storeafile.c:427:21: note: include '' or provide a declaration of 'exit' storeafile.c:430:21: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ storeafile.c:430:21: note: include '' or provide a declaration of 'exit' storeafile.c:443:17: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ storeafile.c:443:17: note: include '' or provide a declaration of 'exit' storeafile.c:460:25: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ storeafile.c:460:25: note: include '' or provide a declaration of 'exit' storeafile.c:508:25: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ storeafile.c:508:25: note: include '' or provide a declaration of 'exit' storeafile.c:515:25: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ storeafile.c:515:25: note: include '' or provide a declaration of 'exit' storeafile.c:517:35: warning: implicit declaration of function 'recv'; did you mean 'read'? [-Wimplicit-function-declaration] retcode = recv(recsock,&data_buffer[dataonone],datatoreceive-dataonone,0) ; ^~~~ read storeafile.c:524:29: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ storeafile.c:524:29: note: include '' or provide a declaration of 'exit' storeafile.c:531:29: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ storeafile.c:531:29: note: include '' or provide a declaration of 'exit' storeafile.c:552:29: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ storeafile.c:552:29: note: include '' or provide a declaration of 'exit' storeafile.c:554:25: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] memcpy(data_buffer,comp_buffer,READBUFLEN) ; ^~~~~~ storeafile.c:554:25: warning: incompatible implicit declaration of built-in function 'memcpy' storeafile.c:554:25: note: include '' or provide a declaration of 'memcpy' storeafile.c:578:29: warning: incompatible implicit declaration of built-in function 'exit' exit(255) ; ^~~~ storeafile.c:578:29: note: include '' or provide a declaration of 'exit' storeafile.c:581:29: warning: incompatible implicit declaration of built-in function 'exit' exit(i) ; ^~~~ storeafile.c:581:29: note: include '' or provide a declaration of 'exit' storeafile.c:594:18: warning: implicit declaration of function 'writemessage' [-Wimplicit-function-declaration] if ( writemessage(recsock,data_buffer,MINMESSLEN,sendcontrolto) < 0 ) { ^~~~~~~~~~~~ storeafile.c:599:17: warning: incompatible implicit declaration of built-in function 'exit' exit(ETIMEDOUT) ; ^~~~ storeafile.c:599:17: note: include '' or provide a declaration of 'exit' storeafile.c:604:13: warning: incompatible implicit declaration of built-in function 'exit' exit(0) ; ^~~~ storeafile.c:604:13: note: include '' or provide a declaration of 'exit' cc -o bbftpd bbftpd.o bbftpd_cd.o bbftpd_check.o bbftpd_crypt.o bbftpd_daemon.o bbftpd_list.o bbftpd_login.o bbftpd_message.o bbftpd_mkdir.o bbftpd_readcontrol.o bbftpd_retr.o bbftpd_signals.o bbftpd_socket.o bbftpd_store.o bbftpd_utils.o changetodir.o createadir.o createreceivesock.o readcontrol.o sendafile.o sendlist.o signals_routines.o storeafile.o -lpam /usr/local/lib/libcrypto.a -lz gmake[1]: Leaving directory '/construction/ftp/bbftp/bbftp-3.0.2/bbftpd' -------------------------------------------------------------------------------- -- Phase: run-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: stage -------------------------------------------------------------------------------- ===> Staging for bbftp-3.0.2 ===> Generating temporary packing list install -s -m 555 /construction/ftp/bbftp/bbftp-3.0.2/bbftpc/bbftp /construction/ftp/bbftp/stage/usr/local/bin install -s -m 555 /construction/ftp/bbftp/bbftp-3.0.2/bbftpd/bbftpd /construction/ftp/bbftp/stage/usr/local/bin install -m 444 /construction/ftp/bbftp/bbftp-3.0.2/doc/bbftp.1 /construction/ftp/bbftp/stage/usr/local/man/man1 install -m 444 /construction/ftp/bbftp/bbftp-3.0.2/doc/bbftpd.1 /construction/ftp/bbftp/stage/usr/local/man/man1 ====> Compressing man pages (compress-man) ===> Staging rc.d startup script(s) -------------------------------------------------------------------------------- -- Phase: package -------------------------------------------------------------------------------- ===> Building package for bbftp-3.0.2 file sizes/checksums [5]: . done packing files [5]: . done packing directories [0]: . done -------------------------------------------------- -- Termination -------------------------------------------------- Finished: Thursday, 7 MAR 2019 at 07:08:27 UTC Duration: 00:00:33