[scponly] Bug report: "getopt" breaks 4.8 from 4.6 (Solaris 8 build)

Kaleb Pederson kaleb.pederson at gmail.com
Wed Nov 19 15:48:33 EST 2008


I have a patch in CVS that I hope fixes it.  If you could try it out
and let me know that would be great!

Thanks.

--Kaleb

On Wed, Nov 19, 2008 at 12:30 PM, J.D. Baldwin
<scponly at baldwin.users.panix.com> wrote:
>
> In a build on a Solaris 8 host, I can make scponly 4.6 just fine, but
> 4.8 breaks on missing header file getopt.h.
>
> ==========================================================
> Build on 4.6:
>
> # ./configure --prefix=/usr/local --enable-rsync-compat --enable-chrooted-binary --enable-passwd-compat --enable-sftp-logging-compat --enable-scp-compat --with-sftp-server=/usr/local/libexec/sftp-server
> [... lots of config feedback elided -- see below ...]
> # gmake
> gcc -g -O2 -I. -I. -DHAVE_CONFIG_H -DDEBUGFILE='"/usr/local/etc/scponly/debuglevel"' -o scponly.o -c scponly.c
> gcc -g -O2 -I. -I. -DHAVE_CONFIG_H -DDEBUGFILE='"/usr/local/etc/scponly/debuglevel"' -o helper.o -c helper.c
> gcc -g -O2 -I. -I. -DHAVE_CONFIG_H -DDEBUGFILE='"/usr/local/etc/scponly/debuglevel"' -o scponly scponly.o helper.o
> gcc -g -O2 -I. -I. -DHAVE_CONFIG_H -DDEBUGFILE='"/usr/local/etc/scponly/debuglevel"' -o groups groups.c
> #
>
> Works fine!
>
> ==========================================================
> Build on 4.8:
>
> # ./configure --prefix=/usr/local --enable-rsync-compat --enable-chrooted-binary --enable-passwd-compat --enable-sftp-logging-compat --enable-scp-compat --with-sftp-server=/usr/local/libexec/sftp-server
> [... lots of config feedback elided -- see below ...]
> # gmake
> # gmake
> 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: getopt.h: No such file or directory
> gmake: *** [scponly.o] Error 1
>
> ==========================================================
>
> The ./configure script output is identical in both cases except that
> 4.8 gives me a warning about reading the SECURITY file before enabling
> rsync-compat.  I tried building 4.8 without the rsync-compat option, but
> it made no difference.
>
> I can live with 4.6, I just thought I'd bring it to your attention.
>
> jd
>
> _______________________________________________
> scponly mailing list
> scponly at lists.ccs.neu.edu
> https://lists.ccs.neu.edu/bin/listinfo/scponly
>



More information about the scponly mailing list