=> Building ftp/bbftp build started at Wed Oct 5 03:48:23 PDT 2016 port directory: /usr/ports/ftp/bbftp building for: DragonFly pkgbox64.dragonflybsd.org 4.7-DEVELOPMENT DragonFly v4.7.0.78.g7d868-DEVELOPMENT #7: Mon Aug 1 22:25:32 PDT 2016 root@pkgbox64.dragonflybsd.org:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64 maintained by: ports@FreeBSD.org ident warning: no id keywords in /build/boomdata/data/.m/bleeding-edge-default/ref/../10//usr/ports/ftp/bbftp/Makefile Makefile ident: Poudriere version: 3.1-pre Host OSVERSION: 400700 Jail OSVERSION: 400702 !!! Jail is newer than host. (Jail: 400702, Host: 400700) !!! !!! This is not supported. !!! !!! Host kernel must be same or newer than jail. !!! !!! Expect build failures. !!! ---Begin Environment--- STATUS=1 SAVED_TERM=screen MASTERMNT=/build/boomdata/data/.m/bleeding-edge-default/ref PATH=/usr/local/libexec/poudriere:/sbin:/bin:/usr/sbin:/usr/bin:/usr/pkg/bin:/usr/pkg/sbin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/pkg/xorg/bin:/usr/X11R6/bin:/root/bin:/sbin:/usr/sbin POUDRIERE_BUILD_TYPE=bulk PKGNAME=bbftp-3.0.2 OLDPWD=/root/boom PWD=/build/boomdata/data/.m/bleeding-edge-default/ref/.p/pool MASTERNAME=bleeding-edge-default TERM=cons25 USER=root HOME=/root POUDRIERE_VERSION=3.1-pre LOCALBASE=/usr/local PACKAGE_BUILDING=yes ---End Environment--- ---Begin OPTIONS List--- ---End OPTIONS List--- --CONFIGURE_ARGS-- --prefix=/usr/local ${_LATE_CONFIGURE_ARGS} --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- MAKE=gmake XDG_DATA_HOME=/wrkdirs/ftp/bbftp XDG_CONFIG_HOME=/wrkdirs/ftp/bbftp HOME=/wrkdirs/ftp/bbftp TMPDIR="/tmp" SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCVER=gcc50 CONFIG_SITE=/usr/ports/Templates/config.site lt_cv_sys_max_cmd_len=262144 --End CONFIGURE_ENV-- --MAKE_ENV-- OPENSSLBASE=/usr/local OPENSSLDIR=/usr/local/openssl OPENSSLINC=/usr/local/include OPENSSLLIB=/usr/local/lib OPENSSLRPATH=/usr/local/lib XDG_DATA_HOME=/wrkdirs/ftp/bbftp XDG_CONFIG_HOME=/wrkdirs/ftp/bbftp HOME=/wrkdirs/ftp/bbftp TMPDIR="/tmp" NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES CCVER=gcc50 PREFIX=/usr/local LOCALBASE=/usr/local LIBDIR="/usr/lib" 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 444" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" --End MAKE_ENV-- --PLIST_SUB-- OSREL=4.7 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local PORTDOCS="" PORTEXAMPLES="" LIB32DIR=lib PROFILE="@comment " DOCSDIR="share/doc/bbftp" EXAMPLESDIR="share/examples/bbftp" DATADIR="share/bbftp" WWWDIR="www/bbftp" ETCDIR="etc/bbftp" --End PLIST_SUB-- --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 --End SUB_LIST-- ---Begin make.conf--- USE_PACKAGE_DEPENDS=yes BATCH=yes WRKDIRPREFIX=/wrkdirs NO_BACKUP=yes USE_PACKAGE_DEPENDS=yes PKG_CREATE_VERBOSE=yes BATCH=yes WRKDIRPREFIX=/wrkdirs PORT_DBDIR=/options PORTSDIR=/usr/ports PACKAGES=/packages DISTDIR=/distfiles MAKE_JOBS_NUMBER=5 ---End make.conf--- =================================================== ===> 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 =========================================================================== =================================================== ===> bbftp-3.0.2 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.8.7_3.txz Installing pkg-1.8.7_3... Extracting pkg-1.8.7_3: .......... done ===> bbftp-3.0.2 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of bbftp-3.0.2 =========================================================================== =================================================== =========================================================================== =================================================== ===> 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 =========================================================================== =================================================== ===> 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. =========================================================================== =================================================== =========================================================================== =================================================== ===> 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. =========================================================================== =================================================== =========================================================================== =================================================== ===> Patching for bbftp-3.0.2 ===> Applying extra patch /usr/ports/ftp/bbftp/files/bbftp.patch =========================================================================== =================================================== ===> bbftp-3.0.2 depends on executable: gmake - not found ===> Installing existing package /packages/All/gmake-4.2.1_1.txz Installing gmake-4.2.1_1... `-- Installing indexinfo-0.2.5... `-- Extracting indexinfo-0.2.5: .... done `-- Installing gettext-runtime-0.19.8.1... `-- Extracting gettext-runtime-0.19.8.1: .......... done Extracting gmake-4.2.1_1: .......... 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.38 - not found ===> Installing existing package /packages/All/libressl-2.4.3.txz Installing libressl-2.4.3... Extracting libressl-2.4.3: .......... done ===> bbftp-3.0.2 depends on file: /usr/local/lib/libcrypto.so.38 - found ===> Returning to build of bbftp-3.0.2 =========================================================================== =================================================== =========================================================================== =================================================== ===> Configuring for bbftp-3.0.2 /bin/cp -f /usr/ports/Templates/config.guess /wrkdirs/ftp/bbftp/bbftp-3.0.2 /bin/cp -f /usr/ports/Templates/config.sub /wrkdirs/ftp/bbftp/bbftp-3.0.2 (cd /wrkdirs/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-dragonfly4.7 checking host system type... x86_64-unknown-dragonfly4.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... no 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 /wrkdirs/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-dragonfly4.7 checking host system type... x86_64-unknown-dragonfly4.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 =========================================================================== =================================================== ===> Building for bbftp-3.0.2 (cd /wrkdirs/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=/wrkdirs/ftp/bbftp XDG_CONFIG_HOME=/wrkdirs/ftp/bbftp HOME=/wrkdirs/ftp/bbftp TMPDIR="/tmp" NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES CCVER=gcc50 PREFIX=/usr/local LOCALBASE=/usr/local LIBDIR="/usr/lib" 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 444" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" gmake) gmake[1]: Entering directory '/wrkdirs/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' [-Wimplicit-function-declaration] printmessage(stderr,CASE_FATAL_ERROR,10,timestamp,"Error openning error file (%s) : %s\n",errorfile,strerror(errno)) ; ^ 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: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' [-Wimplicit-function-declaration] hisctladdr.sin_addr.s_addr = inet_addr(hostname) ; ^ 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:48:0, 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:131:101: warning: implicit declaration of function 'strerror' [-Wimplicit-function-declaration] printmessage(stderr,CASE_ERROR,66,timestamp,"Error select on control connection : %s\n",strerror(errno)); ^ 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: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:48:0, 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:228:101: warning: implicit declaration of function 'strerror' [-Wimplicit-function-declaration] printmessage(stderr,CASE_ERROR,66,timestamp,"Error select on control connection : %s\n",strerror(errno)); ^ 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: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' [-Wimplicit-function-declaration] printmessage(stderr,CASE_ERROR,71,timestamp,"Error changing directory %s (%s)\n",dirpath,strerror(savederrno)) ; ^ 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:48:0, 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:124:101: warning: implicit declaration of function 'strerror' [-Wimplicit-function-declaration] printmessage(stderr,CASE_ERROR,66,timestamp,"Error select on control connection : %s\n",strerror(errno)); ^ 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: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: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:130:119: warning: implicit declaration of function 'strerror' [-Wimplicit-function-declaration] printmessage(stderr,CASE_ERROR,35,timestamp,"Error allocating memory for %s : %s\n","curfilename",strerror(errno)) ; ^ 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:48:0, 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:131:101: warning: implicit declaration of function 'strerror' [-Wimplicit-function-declaration] printmessage(stderr,CASE_ERROR,66,timestamp,"Error select on control connection : %s\n",strerror(errno)); ^ 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: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: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:101:122: warning: implicit declaration of function 'strerror' [-Wimplicit-function-declaration] printmessage(stderr,CASE_ERROR,35,timestamp,"Error allocating memory for %s : %s\n","remotefilename",strerror(errno)) ; ^ 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' [-Wimplicit-function-declaration] write(resfd,"put ",4) ; ^ 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:48:0, 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:221:101: warning: implicit declaration of function 'strerror' [-Wimplicit-function-declaration] printmessage(stderr,CASE_ERROR,66,timestamp,"Error select on control connection : %s\n",strerror(errno)); ^ 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: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: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:146:69: warning: implicit declaration of function 'strerror' [-Wimplicit-function-declaration] sprintf(logmessage,"Error allocating memory for dirpath %s",strerror(errno)) ; ^ 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' [-Wimplicit-function-declaration] sendsock = bbftp_createdatasock(*portnumber/*,logmessage*/) ; ^ bbftp_retr.c:778:26: warning: implicit declaration of function 'accept' [-Wimplicit-function-declaration] if ( (ns = accept(sendsock,0,0) ) < 0 ) { ^ 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' [-Wimplicit-function-declaration] retcode = send(ns,&readbuffer[nbsent],lentosend,0) ; ^ 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' [-Wimplicit-function-declaration] printmessage(stderr,CASE_ERROR,66,timestamp,"Error select on control connection : %s\n",strerror(errno)); ^ 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: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' [-Wimplicit-function-declaration] printmessage(stderr,CASE_ERROR,66,timestamp,"Error select on control connection : %s\n",strerror(errno)); ^ 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: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' [-Wimplicit-function-declaration] sprintf(logmessage,"Error chmod on file %s : %s",filename,strerror(errno)) ; ^ 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: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: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' [-Wimplicit-function-declaration] sendsock = bbftp_createdatasock(*portnumber/*,logmessage*/) ; ^ bbftp_store.c:979:26: warning: implicit declaration of function 'accept' [-Wimplicit-function-declaration] if ( (ns = accept(sendsock,0,0) ) < 0 ) { ^ 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' [-Wimplicit-function-declaration] retcode = recv(ns,&readbuffer[dataonone],datatoreceive-dataonone,0) ; ^ 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' [-Wimplicit-function-declaration] printmessage(stderr,CASE_ERROR,91,timestamp,"Cannot create data socket: %s\n",strerror(errno)); ^ 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:0: /usr/include/sys/socket.h:492:5: note: expected 'socklen_t * {aka unsigned int *}' but argument is of type 'size_t * {aka long unsigned int *}' int getsockopt(int, int, int, void *, socklen_t *); ^ 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:0: /usr/include/sys/socket.h:492:5: note: expected 'socklen_t * {aka unsigned int *}' but argument is of type 'size_t * {aka long unsigned int *}' int getsockopt(int, int, int, void *, socklen_t *); ^ 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: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: 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' [-Wimplicit-function-declaration] close(incontrolsock) ; ^ 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: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' [-Wimplicit-function-declaration] pipe(reserved); ^ connecttoserver.c:210:87: warning: implicit declaration of function 'strerror' [-Wimplicit-function-declaration] printmessage(stderr,CASE_FATAL_ERROR,41,timestamp,"Pipe for ssh failed : %s", strerror(errno)) ; ^ connecttoserver.c:218:5: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration] close(reserved[0]); ^ 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:0: /usr/include/sys/socket.h:491:5: note: expected 'socklen_t * {aka unsigned int *}' but argument is of type 'size_t * {aka long unsigned int *}' int getsockname(int, struct sockaddr *, socklen_t *); ^ connecttoserver.c:547:9: warning: implicit declaration of function 'ERR_load_crypto_strings' [-Wimplicit-function-declaration] ERR_load_crypto_strings() ; ^ connecttoserver.c:564:9: warning: implicit declaration of function 'RAND_seed' [-Wimplicit-function-declaration] RAND_seed(buffrand,NBITSINKEY) ; ^ connecttoserver.c:577:126: warning: implicit declaration of function 'ERR_error_string' [-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)) ; ^ connecttoserver.c:577:143: warning: implicit declaration of function 'ERR_get_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)) ; ^ 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' [-Wimplicit-function-declaration] printmessage(stderr,CASE_ERROR,91,timestamp,"Cannot create data socket: %s\n",strerror(errno)); ^ 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:0: /usr/include/sys/socket.h:492:5: note: expected 'socklen_t * {aka unsigned int *}' but argument is of type 'size_t * {aka long unsigned int *}' int getsockopt(int, int, int, void *, socklen_t *); ^ 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:0: /usr/include/sys/socket.h:492:5: note: expected 'socklen_t * {aka unsigned int *}' but argument is of type 'size_t * {aka long unsigned int *}' int getsockopt(int, int, int, void *, socklen_t *); ^ 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:0: /usr/include/sys/socket.h:491:5: note: expected 'socklen_t * {aka unsigned int *}' but argument is of type 'size_t * {aka long unsigned int *}' int getsockname(int, struct sockaddr *, socklen_t *); ^ 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' [-Wimplicit-function-declaration] printmessage(stderr,CASE_ERROR,66,timestamp,"Error select on control connection : %s\n",strerror(errno)); ^ 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: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:86:114: warning: implicit declaration of function 'strerror' [-Wimplicit-function-declaration] printmessage(stderr,CASE_FATAL_ERROR,35,timestamp,"Error allocating memory for %s : %s\n","dupbuffercmd",strerror(errno)) ; ^ 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' [-Wimplicit-function-declaration] umask(alluse) ; ^ 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' [-Wimplicit-function-declaration] printmessage(stderr,CASE_FATAL_ERROR,32,timestamp,"Error setting signal SIGABRT : %s\n",strerror(errno)) ; ^ 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 '/wrkdirs/ftp/bbftp/bbftp-3.0.2/bbftpc' (cd /wrkdirs/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=/wrkdirs/ftp/bbftp XDG_CONFIG_HOME=/wrkdirs/ftp/bbftp HOME=/wrkdirs/ftp/bbftp TMPDIR="/tmp" NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES CCVER=gcc50 PREFIX=/usr/local LOCALBASE=/usr/local LIBDIR="/usr/lib" 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 444" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" gmake) gmake[1]: Entering directory '/wrkdirs/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: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' [-Wimplicit-function-declaration] syslog(BBFTPD_ERR, "Error openning .bbftprc file (%s) : %s \n",bbftprcfile,strerror(errno)) ; ^ 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' [-Wimplicit-function-declaration] do_daemon(argc, argv, envp); ^ 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' [-Wimplicit-function-declaration] ERR_load_crypto_strings() ; ^ bbftpd.c:784:9: warning: implicit declaration of function 'RAND_seed' [-Wimplicit-function-declaration] RAND_seed(buffrand,NBITSINKEY) ; ^ 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:0: /usr/include/sys/socket.h:490:5: note: expected 'socklen_t * {aka unsigned int *}' but argument is of type 'size_t * {aka long unsigned int *}' int getpeername(int, struct sockaddr *, socklen_t *); ^ 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:0: /usr/include/sys/socket.h:491:5: note: expected 'socklen_t * {aka unsigned int *}' but argument is of type 'size_t * {aka long unsigned int *}' int getsockname(int, struct sockaddr *, socklen_t *); ^ bbftpd.c:810:9: warning: implicit declaration of function 'sendcrypt' [-Wimplicit-function-declaration] sendcrypt() ; ^ 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: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:0: ../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' [-Wimplicit-function-declaration] sprintf(logmessage,"Error changing directory %s : %s ",dirname,strerror(errno)) ; ^ In file included from bbftpd_cd.c:47:0: ../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: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' [-Wimplicit-function-declaration] syslog(BBFTPD_ERR, "Cannot create socket to listen on: %s",strerror(errno)); ^ 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:0: 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: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: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: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' [-Wimplicit-function-declaration] syslog(BBFTPD_ERR,"Error setgid user %s : %s",username,strerror(errno)) ; ^ 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' 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' [-Wimplicit-function-declaration] retcode = recv(sock,buffer,sizeof(buffer),0) ; ^ In file included from /usr/include/sys/types.h:48:0, 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: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: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: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:0: ../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:129:88: warning: implicit declaration of function 'strerror' [-Wimplicit-function-declaration] syslog(BBFTPD_ERR,"Error allocating memory for MSG_CHCOS : %s",strerror(errno)) ; ^ In file included from bbftpd_readcontrol.c:47:0: ../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:0: ../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' [-Wimplicit-function-declaration] oldumask = umask(0) ; ^ In file included from bbftpd_readcontrol.c:47:0: ../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:0: ../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:0: ../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:0: ../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' In file included from bbftpd_readcontrol.c:47:0: ../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:0: ../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:0: ../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:0: ../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' [-Wimplicit-function-declaration] if ( bbftpd_getdatasock(requestedstreamnumber) < 0 ) { ^ In file included from bbftpd_readcontrol.c:47:0: ../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:0: ../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:0: ../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:0: ../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: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: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: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' [-Wimplicit-function-declaration] sprintf(logmessage,"Error allocating memory for dirpath %s",strerror(errno)) ; ^ 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:0: ../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:0: ../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:0: ../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:0: ../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:0: ../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:0: ../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:0: ../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:0: ../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:0: ../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:0: ../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:0: ../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:0: ../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' [-Wimplicit-function-declaration] sendsock = bbftpd_createreceivesocket(*portnumber,logmessage) ; ^ 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' [-Wimplicit-function-declaration] if ( (ns = accept(sendsock,0,0) ) < 0 ) { ^ 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' [-Wimplicit-function-declaration] retcode = send(ns,&readbuffer[nbsent],lentosend,0) ; ^ 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: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' [-Wimplicit-function-declaration] if ( fatherpid == getpid() ) { ^ bbftpd_signals.c:269:32: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration] if ( unlinkfile == 1 ) unlink(realfilename) ; ^ 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: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: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:0: /usr/include/sys/socket.h:492:5: note: expected 'socklen_t * {aka unsigned int *}' but argument is of type 'size_t * {aka long unsigned int *}' int getsockopt(int, int, int, void *, socklen_t *); ^ 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:0: /usr/include/sys/socket.h:492:5: note: expected 'socklen_t * {aka unsigned int *}' but argument is of type 'size_t * {aka long unsigned int *}' int getsockopt(int, int, int, void *, socklen_t *); ^ 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:0: /usr/include/sys/socket.h:492:5: note: expected 'socklen_t * {aka unsigned int *}' but argument is of type 'size_t * {aka long unsigned int *}' int getsockopt(int, int, int, void *, socklen_t *); ^ 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:0: /usr/include/sys/socket.h:492:5: note: expected 'socklen_t * {aka unsigned int *}' but argument is of type 'size_t * {aka long unsigned int *}' int getsockopt(int, int, int, void *, socklen_t *); ^ 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:0: /usr/include/sys/socket.h:491:5: note: expected 'socklen_t * {aka unsigned int *}' but argument is of type 'size_t * {aka long unsigned int *}' int getsockname(int, struct sockaddr *, socklen_t *); ^ 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:136:67: warning: implicit declaration of function 'strerror' [-Wimplicit-function-declaration] sprintf(logmessage,"Error utime on file %s : %s",filename,strerror(errno)) ; ^ 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' [-Wimplicit-function-declaration] retcode = rename(newfilename,oldfilename) ; ^ 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: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: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:0: ../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:0: ../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:0: ../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:0: ../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:0: ../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:0: ../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:0: ../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:0: ../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:0: ../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:0: ../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:0: ../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:0: ../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:0: ../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:0: ../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:0: ../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:0: ../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' [-Wimplicit-function-declaration] recsock = bbftpd_createreceivesocket(*portnumber,logmessage) ; ^ 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' [-Wimplicit-function-declaration] if ( (ns = accept(recsock,0,0) ) < 0 ) { ^ 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' [-Wimplicit-function-declaration] retcode = recv(ns,&readbuffer[dataonone],datatoreceive-dataonone,0) ; ^ 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: 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: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' [-Wimplicit-function-declaration] sprintf(logmessage,"Error changing directory %s : %s ",receive_buffer,strerror(errno)) ; ^ 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' 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' [-Wimplicit-function-declaration] sprintf(logmessage,"Error creation directory %s : %s",receive_buffer,strerror(errno)) ; ^ 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: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: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' [-Wimplicit-function-declaration] sprintf(logmessage,"Error stating file %s : %s ",readfilename,strerror(savederrno)) ; ^ 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: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' [-Wimplicit-function-declaration] retcode = send(sendsock,&readbuffer[nbsent],lentosend,0) ; ^ 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: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' [-Wimplicit-function-declaration] if ( unlinkfile == 1 ) unlink(currentfilename) ; ^ 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: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' [-Wimplicit-function-declaration] if ( fatherpid == getpid() ) { ^ 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: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:202:78: warning: implicit declaration of function 'strerror' [-Wimplicit-function-declaration] sprintf(logmessage,"Error stating file %s : %s ",currentfilename,strerror(savederrno)) ; ^ 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: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' [-Wimplicit-function-declaration] retcode = recv(recsock,&data_buffer[dataonone],datatoreceive-dataonone,0) ; ^ 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 '/wrkdirs/ftp/bbftp/bbftp-3.0.2/bbftpd' =========================================================================== =================================================== =========================================================================== =================================================== ===> Staging for bbftp-3.0.2 ===> Generating temporary packing list install -s -m 555 /wrkdirs/ftp/bbftp/bbftp-3.0.2/bbftpc/bbftp /wrkdirs/ftp/bbftp/stage/usr/local/bin install -s -m 555 /wrkdirs/ftp/bbftp/bbftp-3.0.2/bbftpd/bbftpd /wrkdirs/ftp/bbftp/stage/usr/local/bin install -m 444 /wrkdirs/ftp/bbftp/bbftp-3.0.2/doc/bbftp.1 /wrkdirs/ftp/bbftp/stage/usr/local/man/man1 install -m 444 /wrkdirs/ftp/bbftp/bbftp-3.0.2/doc/bbftpd.1 /wrkdirs/ftp/bbftp/stage/usr/local/man/man1 ====> Compressing man pages (compress-man) ===> Staging rc.d startup script(s) =========================================================================== =================================================== ===> Building package for bbftp-3.0.2 file sizes/checksums [5]: . done packing files [5]: . done packing directories [0]: . done =========================================================================== => Cleaning up wrkdir ===> Cleaning for bbftp-3.0.2 build of ftp/bbftp ended at Wed Oct 5 03:48:57 PDT 2016 build time: 00:00:34