[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

wput fails to build on Solaris 7



wput build fails on Solaris 7.

NB: I note the absence of sys/winsize.h is noted in configure, but its absence doesn't seem to be coped with in the code itself.

nb: gcc --version is 3.4.2, make --version is 3.80

# ./configure
Debug Information enabled
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... egrep
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... 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... no
checking for unistd.h... yes
checking sys/termio.h, usability... no
checking sys/termio.h, presence... no
checking for sys/termio.h,... no
checking sys/winsize.h usability... no
checking sys/winsize.h presence... no
checking for sys/winsize.h... no
checking getopt.h usability... no
checking getopt.h presence... no
checking for getopt.h... no
checking gnugetopt/getopt.h usability... no
checking gnugetopt/getopt.h presence... no
checking for gnugetopt/getopt.h... no
checking for long long... yes
checking for unsigned long long... yes
checking for int... yes
checking size of int... 4
checking for short... yes
checking size of short... 2
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
# make
cd src && make all
make[1]: Entering directory `/usr/local/esparto/build/wput/src'
gcc -Wall  -g   -c -o wput.o wput.c
wput.c: In function `read_urls':
wput.c:268: warning: subscript has type `char'
wput.c: In function `read_password_file':
wput.c:435: warning: subscript has type `char'
wput.c: In function `readwputrc':
wput.c:484: warning: subscript has type `char'
wput.c:494: warning: subscript has type `char'
wput.c:497: warning: subscript has type `char'
gcc -Wall  -g   -c -o ftp.o ftp.c
gcc -Wall  -g   -c -o utils.o utils.c
gcc -Wall  -g   -c -o progress.o progress.c
progress.c: In function `get_term_width':
progress.c:215: error: storage size of 'win' isn't known
progress.c:218: error: `TIOCGWINSZ' undeclared (first use in this function)
progress.c:218: error: (Each undeclared identifier is reported only once
progress.c:218: error: for each function it appears in.)
progress.c:215: warning: unused variable `win'
make[1]: *** [progress.o] Error 1
make[1]: Leaving directory `/usr/local/esparto/build/wput/src'
make: *** [all] Error 2