[scponly] Cannot Complie scponly-4.8 on Solaris 9 with 64-bit SPARC 9]

jworm jwormhk at yahoo.com.hk
Tue Apr 15 19:04:45 EDT 2008


Dear All,

I am using Solaris 9 with 64-bit SPARC 9 now. I configure scponly as 
following:

#./configure --enable-winscp-compat --enable-scp-compat
configure: loading site script /usr/local/share/config.site
checking build system type... sparc-sun-solaris2.9
checking host system type... sparc-sun-solaris2.9
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 for a BSD-compatible install... /opt/csw/bin/ginstall -c
checking whether ln -s works... yes
checking for cut... /usr/bin/cut
checking for grep... /usr/bin/grep
checking for sort... /usr/bin/sort
checking for ldd... /usr/bin/ldd
checking for useradd... /usr/sbin/useradd
checking for chown... /usr/bin/chown
checking for chmod... /usr/bin/chmod
checking for dirname... /usr/bin/dirname
checking for id... /usr/bin/id
checking for pw... no
checking for rm... /usr/bin/rm
checking for pwd_mkdb... no
configure: enabling core WinSCP and Vanilla SCP binaries...
checking for sftp-server... /usr/lib/ssh/sftp-server
checking for ls... /usr/local/bin/ls
checking for scp... /usr/local/bin/scp
checking for rm... /usr/local/bin/rm
checking for ln... /usr/local/bin/ln
checking for mv... /usr/local/bin/mv
checking for chmod... /usr/local/bin/chmod
checking for chown... /usr/local/bin/chown
checking for chgrp... /usr/local/bin/chgrp
checking for mkdir... /usr/local/bin/mkdir
checking for rmdir... /usr/local/bin/rmdir
configure: enabling WinSCP compatability...
checking for pwd... /bin/pwd
checking for groups... /usr/ucb/groups
checking for id... /bin/id
checking for echo... /usr/ucb/echo
configure: enabling SFTP compatability...
checking for sftp-server... (cached) /usr/lib/ssh/sftp-server
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 for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking wordexp.h usability... yes
checking wordexp.h presence... yes
checking for wordexp.h... yes
checking glob.h usability... yes
checking glob.h presence... yes
checking for glob.h... yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking getopt.h usability... no
checking getopt.h presence... no
checking for getopt.h... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for working alloca.h... yes
checking for alloca... yes
checking for malloc... yes
checking for atexit... yes
checking for bzero... yes
checking for strchr... yes
checking for strerror... yes
checking for glob... yes
checking for wordexp... yes
checking for strspn... yes
checking for basename... yes
checking for getopt... yes
checking whether optreset is declared... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating setup_chroot.sh
config.status: creating config.h

and the following error is prompt when I try to make the files

#sudo make
gcc -g -O2 -I. -I. -DHAVE_CONFIG_H 
-DDEBUGFILE='"/usr/local/etc/scponly/debuglevel"' -o scponly.o -c scponly.c
In file included from scponly.c:19:
scponly.h:2:41: getopt.h: No such file or directory
scponly.c:88: error: elements of array `empty_longopts' have incomplete type
scponly.c:89: warning: excess elements in struct initializer
scponly.c:89: warning: (near initialization for `empty_longopts[0]')
scponly.c:89: warning: excess elements in struct initializer
scponly.c:89: warning: (near initialization for `empty_longopts[0]')
scponly.c:89: warning: excess elements in struct initializer
scponly.c:89: warning: (near initialization for `empty_longopts[0]')
scponly.c:89: warning: excess elements in struct initializer
scponly.c:89: warning: (near initialization for `empty_longopts[0]')
scponly.c:88: warning: array `empty_longopts' assumed to have one element
scponly.c:88: error: storage size of `empty_longopts' isn't known
make: *** [scponly.o] Error 1

Could someone help me? Thanks.

Andrew

-------------- next part --------------
HTML attachment scrubbed and removed


More information about the scponly mailing list