Hello all, Have just installed suse pro 8.0, I am trying to compile (for the very first time) a program called 'troll ftpd 1.25' (ftp server). Ofcourse it didnt work at all... :-( I had to manually add packages for gcc (v. 2.95.3) and make (v. 3.79.1) after my initially installation of SuSE Pro 8. I suspect I am missing some sort of librarys or header files... Anyway, this is the output when running make: gcc -02 -W -Wall -Werror -g -o mkusers mkusers.c cc1: warnings being treated as errors mkusers.c: In function 'main': mkusers.c:17: Warning: implicit declaration of function 'sprintf' make: xxx[mkusers] Error 1 I have no idea what this mean... What could be wrong here?? best regards, tobias ----------------------------------------------------------------------------------------- This E-mail has been scanned by ScanMail and is virusfree.
On Friday 16 August 2002 15.02, Jonny Tobiassen wrote:
gcc -02 -W -Wall -Werror -g -o mkusers mkusers.c cc1: warnings being treated as errors mkusers.c: In function 'main': mkusers.c:17: Warning: implicit declaration of function 'sprintf' make: xxx[mkusers] Error 1
I have no idea what this mean...
It means that whoever created the tarball didn't test it before he uploaded
it. The actual error means that the function sprintf wasn't declared before
it was used, meaning that default types were used for things like return
type. Since the Makefile has "-Werror" the compilation stops.
You could solve it pu putting "#include
participants (2)
-
Anders Johansson
-
Jonny Tobiassen