Francesco wrote:
Hi,
Does anyone have any suggestions?
I am trying to install plptools. ./configure seems ok but at the end of the make listing I get teh following
<--snip-->
++ -DHAVE_CONFIG_H -I. -I. -I../include -I../lib -O2 -Wall -c ftp.cc ftp.cc: In function `int checkAbortHash(long int)': ftp.cc:169: warning: implicit declaration of function `int printf(...)' ftp.cc:169: `stdout' undeclared (first use this function) ftp.cc:169: (Each undeclared identifier is reported only once ftp.cc:169: for each function it appears in.) ftp.cc:169: warning: implicit declaration of function `int fflush(...)' ftp.cc: In function `void sigint_handler2(int)': ftp.cc:183: `stdin' undeclared (first use this function) ftp.cc:183: warning: implicit declaration of function `int fclose(...)' ftp.cc: In method `int ftp::session(class rfsv &, class rpcs &, int, char **)': ftp.cc:339: warning: `%c' yields only last 2 digits of year in some locales ftp.cc:369: warning: `%c' yields only last 2 digits of year in some locales ftp.cc:461: warning: `%c' yields only last 2 digits of year in some locales ftp.cc:786: warning: implicit declaration of function `int sscanf(...)' ftp.cc:794: warning: implicit declaration of function `int sprintf(...)' ftp.cc: At top level: ftp.cc:56: warning: `class rpcs * comp_r' defined but not used make[1]: *** [ftp.o] Error 1 make[1]: Leaving directory `/usr/local/plptools-0.6/plpftp' make: *** [all-recursive] Error 1 ++ -DHAVE_CONFIG_H -I. -I. -I../include -I../lib -O2 -Wall -c ftp.cc ftp.cc: In function `int checkAbortHash(long int)': ftp.cc:169: warning: implicit declaration of function `int printf(...)' ftp.cc:169: `stdout' undeclared (first use this function) ftp.cc:169: (Each undeclared identifier is reported only once ftp.cc:169: for each function it appears in.) ftp.cc:169: warning: implicit declaration of function `int fflush(...)' ftp.cc: In function `void sigint_handler2(int)': ftp.cc:183: `stdin' undeclared (first use this function) ftp.cc:183: warning: implicit declaration of function `int fclose(...)' ftp.cc: In method `int ftp::session(class rfsv &, class rpcs &, int, char **)': ftp.cc:339: warning: `%c' yields only last 2 digits of year in some locales ftp.cc:369: warning: `%c' yields only last 2 digits of year in some locales ftp.cc:461: warning: `%c' yields only last 2 digits of year in some locales ftp.cc:786: warning: implicit declaration of function `int sscanf(...)' ftp.cc:794: warning: implicit declaration of function `int sprintf(...)' ftp.cc: At top level: ftp.cc:56: warning: `class rpcs * comp_r' defined but not used make[1]: *** [ftp.o] Error 1 make[1]: Leaving directory `/usr/local/plptools-0.6/plpftp' make: *** [all-recursive] Error 1
When I try make install subsequently all seem sfine until the last few lines when I get the following:
ftp.cc:56: warning: `class rpcs * comp_r' defined but not used make[1]: *** [ftp.o] Error 1 make[1]: Leaving directory `/usr/local/plptools-0.6/plpftp' make: *** [install-recursive] Error 1
Many thanks (I hope)
I added #include