=> Building ftp/bbftp Started : Friday, 21 FEB 2020 at 09:23:59 UTC Platform: 5.7-DEVELOPMENT DragonFly v5.7.0.1432.g9cd86-DEVELOPMENT #23: Thu Feb 13 14:43:04 PST 2020 root@sting.dragonflybsd.org:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64 -------------------------------------------------- -- Environment -------------------------------------------------- UNAME_r=5.7-SYNTH UNAME_m=x86_64 UNAME_p=x86_64 UNAME_v=DragonFly 5.7-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.7 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=LiveSystem 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=15 DPORTS_BUILDER= yes DISABLE_LICENSES= yes DEFAULT_VERSIONS= ssl=openssl FORCE_PACKAGE= yes DEVELOPER= yes HAVE_COMPAT_IA32_KERN= CONFIGURE_MAX_CMD_LEN=262144 _PERL5_FROM_BIN=5.30.1 _ALTCCVERSION_921dbbb2=none _OBJC_ALTCCVERSION_921dbbb2=none _SMP_CPUS=32 UID=0 ARCH=x86_64 OPSYS=DragonFly DFLYVERSION=500709 OSVERSION=9999999 OSREL=5.7 _OSRELEASE=5.7-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.12.0_1.txz Installing pkg-1.12.0_1... Extracting pkg-1.12.0_1: .......... 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.20.1... | `-- Installing indexinfo-0.3.1... | `-- Extracting indexinfo-0.3.1: . done `-- Extracting gettext-runtime-0.20.1: .......... 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.11 - not found ===> Installing existing package /packages/All/openssl-1.1.1d,1.txz Installing openssl-1.1.1d,1... Extracting openssl-1.1.1d,1: .......... done ===> bbftp-3.0.2 depends on file: /usr/local/lib/libcrypto.so.11 - 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.7 checking host system type... x86_64-unknown-dragonfly5.7 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.7 checking host system type... x86_64-unknown-dragonfly5.7 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:44, 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:44, 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:44, 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:44, 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:44, 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:494: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:494: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:493: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 'RSA_get_method'? [-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)) ; ^~~~~~~~~~~~~ RSA_get_method 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:583:21: error: dereferencing pointer to incomplete type 'RSA' {aka 'struct rsa_st'} if ( (hisrsa->n = BN_new()) == 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) ; ^~~~~ gmake[1]: *** [: connecttoserver.o] Error 1 gmake[1]: Leaving directory '/construction/ftp/bbftp/bbftp-3.0.2/bbftpc' *** Error code 2 Stop. make: stopped in /xports/ftp/bbftp -------------------------------------------------- -- Termination -------------------------------------------------- Finished: Friday, 21 FEB 2020 at 09:24:40 UTC Duration: 00:00:41