openssh 1.2pre13 on Linux/i386 RH4.2 problems

Berend De Schouwer bds at ucs.co.za
Mon Nov 22 01:01:09 EST 1999


Can't compile sshd.c because of pam errors.  The errors are attached
below, and I apologize for the >75 chars a line.  RH4.2, with the
latest updates, runs pam-0.57-5.  I could upgrade PAM from source, but
I'd probably break other programs.

gcc -g -O2 -Wall -I/usr/local/ssl/include -DETCDIR=\"/etc/ssh\" -DSSH_PROGRAM=\"/usr/bin/ssh\" -DASKPASS_PROGRAM=\"/usr/libexec/ssh/ssh-askpass\" -DHAVE_CONFIG_H   -c sshd.c -o sshd.o
sshd.c: In function `pam_cleanup_proc':
sshd.c:224: warning: passing arg 1 of `pam_strerror' makes integer from pointer without a cast
sshd.c:224: too many arguments to function `pam_strerror'
sshd.c:231: warning: passing arg 1 of `pam_strerror' makes integer from pointer without a cast
sshd.c:231: too many arguments to function `pam_strerror'
... more of these...
make: *** [sshd.o] Error 1

>From the 4.2 box:
grep pam_strerror _pam_types.h
extern const char *pam_strerror(int errnum);

>From a 5.2 box:
grep pam_strerror _pam_types.h
extern const char *pam_strerror(pam_handle_t *pamh, int errnum);

If I do the obvious patch of just removing the pam_handle parameter in
sshd.c, there are still non-pam warnings, and compilation breaks:
gcc -g -O2 -Wall -I/usr/local/ssl/include -DETCDIR=\"/etc/ssh\" -DSSH_PROGRAM=\"/usr/bin/ssh\" -DASKPASS_PROGRAM=\"/usr/libexec/ssh/ssh-askpass\" -DHAVE_CONFIG_H   -c sshd.c -o sshd.o
sshd.c: In function `main':
sshd.c:518: warning: implicit declaration of function `daemon'
sshd.c: In function `do_fake_authloop':
sshd.c:1526: warning: unused variable `type'
sshd.c: In function `do_child':
sshd.c:2373: warning: initialization from incompatible pointer type
gcc -g -O2 -Wall -I/usr/local/ssl/include -DETCDIR=\"/etc/ssh\" -DSSH_PROGRAM=\"/usr/bin/ssh\" -DASKPASS_PROGRAM=\"/usr/libexec/ssh/ssh-askpass\" -DHAVE_CONFIG_H   -c scp.c -o scp.o
scp.c: In function `progressmeter':
scp.c:1177: `quad_t' undeclared (first use this function)
scp.c:1177: (Each undeclared identifier is reported only once
scp.c:1177: for each function it appears in.)
scp.c:1177: parse error before `abbrevsize'
scp.c:1180: warning: implicit declaration of function `timersub'


Now, I am probably going to upgrade this box (for other reasons), but I
do wonder if anyone else has similar problems, and if anyone is
interested in fixes.

-- 
Kind regards,				  
Berend                                  
                                        
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Berend De Schouwer, +27-11-712-1435, UCS






More information about the openssh-unix-dev mailing list