Username: Password: Remember me
Search + Advanced
Package Details

atftp 0.7.11-2
http://freshmeat.net/projects/atftp/
a client/server implementation of the TFTP protocol that implements RFCs 1350, 2090, 2347, 2348, and 2349

Category: network

Submitter:
Maintainer: CybrixSystems
Votes: 1

License: GPL

Last Updated: 2013/10/04 - 12:17:31 +0000
First Submitted: 2012/06/05 - 01:50:38 +0000

Tarball :: PKGBUILD

Dependenciespcre readline 

Sources

Comment by: whoami on Sun, 17 Jan 2016 17:56:43 +0000


Hi. Trying install atftp but the build failed.

It says:

[code]
In file included from tftp.h:22:0,
                 from tftp.c:46:
tftp_def.h:52:14: warning: inline function ‘Strncpy’ declared but never defined
 inline char *Strncpy(char *to, const char *from, size_t size);
              ^
if gcc -DHAVE_CONFIG_H -I. -I. -I.   -D_FORTIFY_SOURCE=2  -g -Wall -D_REENTRANT -O2 -MT tftp_io.o -MD -MP -MF ".deps/tftp_io.Tpo" -c -o tftp_io.o tftp_io.c; 
then mv -f ".deps/tftp_io.Tpo" ".deps/tftp_io.Po"; else rm -f ".deps/tftp_io.Tpo"; exit 1; fi
tftp_io.c: In function ‘tftp_get_packet’:
tftp_io.c:320:33: warning: passing argument 1 of ‘sockaddr_get_port’ from incompatible pointer type [-Wincompatible-pointer-types]
           if (sockaddr_get_port(&sa) == 0)
                                 ^
In file included from tftp_io.h:22:0,
                 from tftp_io.c:31:
tftp_def.h:57:10: note: expected ‘const struct sockaddr_storage *’ but argument is of type ‘struct sockaddr_storage **’
 uint16_t sockaddr_get_port(const struct sockaddr_storage *);
          ^
tftp_io.c: At top level:
tftp_def.h:52:14: warning: inline function ‘Strncpy’ declared but never defined
 inline char *Strncpy(char *to, const char *from, size_t size);
              ^
if gcc -DHAVE_CONFIG_H -I. -I. -I.   -D_FORTIFY_SOURCE=2  -g -Wall -D_REENTRANT -O2 -MT logger.o -MD -MP -MF ".deps/logger.Tpo" -c -o logger.o logger.c; 
then mv -f ".deps/logger.Tpo" ".deps/logger.Po"; else rm -f ".deps/logger.Tpo"; exit 1; fi
logger.c: In function ‘logger’:
logger.c:117:45: warning: implicit declaration of function ‘pthread_self’ [-Wimplicit-function-declaration]
                        log_ident, getpid(), pthread_self(), message);
                                             ^
if gcc -DHAVE_CONFIG_H -I. -I. -I.   -D_FORTIFY_SOURCE=2  -g -Wall -D_REENTRANT -O2 -MT options.o -MD -MP -MF ".deps/options.Tpo" -c -o options.o options.c; 
then mv -f ".deps/options.Tpo" ".deps/options.Po"; else rm -f ".deps/options.Tpo"; exit 1; fi
In file included from options.h:20:0,
                 from options.c:34:
tftp_def.h:52:14: warning: inline function ‘Strncpy’ declared but never defined
 inline char *Strncpy(char *to, const char *from, size_t size);
              ^
if gcc -DHAVE_CONFIG_H -I. -I. -I.   -D_FORTIFY_SOURCE=2  -g -Wall -D_REENTRANT -O2 -MT tftp_def.o -MD -MP -MF ".deps/tftp_def.Tpo" -c -o tftp_def.o tftp_def.c; 
then mv -f ".deps/tftp_def.Tpo" ".deps/tftp_def.Po"; else rm -f ".deps/tftp_def.Tpo"; exit 1; fi
tftp_def.c:42:6: warning: excess elements in array initializer
      { "", "", 0, 0}
      ^
tftp_def.c:42:6: note: (near initialization for ‘tftp_default_options’)
if gcc -DHAVE_CONFIG_H -I. -I. -I.   -D_FORTIFY_SOURCE=2  -g -Wall -D_REENTRANT -O2 -MT tftp_file.o -MD -MP -MF ".deps/tftp_file.Tpo" -c -o tftp_file.o tftp_file.c; 
then mv -f ".deps/tftp_file.Tpo" ".deps/tftp_file.Po"; else rm -f ".deps/tftp_file.Tpo"; exit 1; fi
In file included from tftp.h:22:0,
                 from tftp_file.c:31:
tftp_def.h:52:14: warning: inline function ‘Strncpy’ declared but never defined
 inline char *Strncpy(char *to, const char *from, size_t size);
              ^
if gcc -DHAVE_CONFIG_H -I. -I. -I.   -D_FORTIFY_SOURCE=2  -g -Wall -D_REENTRANT -O2 -MT argz.o -MD -MP -MF ".deps/argz.Tpo" -c -o argz.o argz.c; 
then mv -f ".deps/argz.Tpo" ".deps/argz.Po"; else rm -f ".deps/argz.Tpo"; exit 1; fi
argz.c:44:8: error: redefinition of ‘argz_next’
 char * argz_next (const char *argz, size_t argz_len, const char *entry)
        ^
In file included from argz.c:42:0:
argz.h:196:1: note: previous definition of ‘argz_next’ was here
 argz_next (__const char *__argz, size_t __argz_len,
 ^
Makefile:371: set di istruzioni per l'obiettivo "argz.o" non riuscito
make[2]: *** [argz.o] Errore 1
make[2]: uscita dalla directory "/tmp/ccrbuild-1000/atftp/atftp/src/atftp-0.7.dfsg"
Makefile:484: set di istruzioni per l'obiettivo "all-recursive" non riuscito
make[1]: *** [all-recursive] Errore 1
make[1]: uscita dalla directory "/tmp/ccrbuild-1000/atftp/atftp/src/atftp-0.7.dfsg"
Makefile:239: set di istruzioni per l'obiettivo "all" non riuscito
make: *** [all] Errore 2
==> ERRORE: Si è verificato un errore in build().
    L'operazione sta per essere interrotta...
The build failed.
[/code]

Do you know how to fix it?
Thanks!!!