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

Kaleb Pederson kaleb.pederson at gmail.com
Tue Apr 15 21:57:49 EDT 2008


On 4/15/08, jworm <jwormhk at yahoo.com.hk> wrote:
> I am using Solaris 9 with 64-bit SPARC 9 now. I configure scponly as
> following:
>
> #./configure --enable-winscp-compat --enable-scp-compat
...
> checking getopt.h usability... no
> checking getopt.h presence... no
> checking for getopt.h... no
...
> 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
...
>
> Could someone help me? Thanks.

Well, apparently our configure checks are not smart enough.  Autoconf
validates that getopt is present and fines that it is, but there isn't
a usable getopt.h, which apparently we don't require in the configure
script.

I'll try to take a look in the near future to see if I can fix the
checks, but autoconf isn't my strong point.  Are you interested in a
quick fix?

Thanks.

--Kaleb



More information about the scponly mailing list