[Bug 615] OpenSSH 3.6.1p2 ON SCO 3.2v4.2 + STRICTMODES -->yes (broken dirname in libgen)

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Mon Sep 8 23:11:38 EST 2003


http://bugzilla.mindrot.org/show_bug.cgi?id=615





------- Additional Comments From vikashb at comparexafrica.co.za  2003-09-08 23:11 -------

time.h (/usr/include)
125  #if !defined(_XOPEN_SOURCE) && !defined(_POSIX_SOURCE) && !__STDC__
126  extern void ftime ( struct timeb * );
127  extern char *   nl_cxtime( long *, char * );
128  extern char *   nl_ascxtime( struct tm *, char * );
129  #endif

-current breaks with :
#ifndef HAVE_TCSENDBREAK
int tcsendbreak(int,int);

in "openbsd-compat/bsd-misc.h"  line 96
and  "openbsd-compat/bsd-misc.c"  line 183

I don't understand the problem here,
SCO 3.2v4 has tcsendbreak in <termios.h> { int tcsendbreak (fildes, duration) }

from config.log:

configure:6033: gcc -o conftest -g -O2 -Wall -Wpointer-arith -Wno-uninitialized
 -Dftruncate=chsize -I/usr/local/include  -L/usr/local/lib conftest.c -lintl -lz
 -lsocket  -los -lprot -lx -ltinfo -lm >&5
undefined                       first referenced
 symbol                             in file
tcsendbreak                         /usr/tmp/cca153591.o
ld fatal: Symbol referencing errors. No output written to conftest

is configure is missing the -lc  ?
the sco man page for tcsendbreak() states 
    cc  . . .  -lc

I looked at config.h of 3.6p2 and there is no TCSENDBREAK,
on -current, HAVE_TCSENDBREAK is undefined in config.h
if I define HAVE_TCSENDBREAK then the make stops at 

        gcc -g -O2 -Wall -Wpointer-arith -Wno-uninitialized -I. -I.
-I/usr/local/ssl/include  -Dftruncate=chsize -I/usr/local/include
-DSSHDIR=\"/etc/ssh\"  -D_PATH_SSH_PROGRAM=\"/usr/local/bin/ssh\" 
-D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh-askpass\" 
-D_PATH_SFTP_SERVER=\"/usr/local/libexec/sftp-server\" 
-D_PATH_SSH_KEY_SIGN=\"/usr/local/libexec/ssh-keysign\" 
-D_PATH_SSH_PIDDIR=\"/etc/ssh\"  -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" 
-DSSH_RAND_HELPER=\"/usr/local/libexec/ssh-rand-helper\" -DHAVE_CONFIG_H -c
ssh-keygen.c
In file included from /usr/local/include/sys/time.h:34,
                 from includes.h:34,
                 from ssh-keygen.c:14:
/usr/local/lib/gcc-lib/i386-unknown-sco3.2v4.2/2.7.2.3/include/time.h:126:
warning: `struct timeb' declared inside parameter list
/usr/local/lib/gcc-lib/i386-unknown-sco3.2v4.2/2.7.2.3/include/time.h:126:
warning: its scope is only this definition or declaration,
/usr/local/lib/gcc-lib/i386-unknown-sco3.2v4.2/2.7.2.3/include/time.h:126:
warning: which is probably not what you want.
ssh-keygen.c: In function `do_change_comment':
ssh-keygen.c:740: warning: implicit declaration of function `fdopen'
ssh-keygen.c:740: warning: assignment makes pointer from integer without a cast
ssh-keygen.c: In function `main':
ssh-keygen.c:798: `PATH_MAX' undeclared (first use this function)
ssh-keygen.c:798: (Each undeclared identifier is reported only once
ssh-keygen.c:798: for each function it appears in.)
ssh-keygen.c:826: warning: implicit declaration of function `gethostname'
ssh-keygen.c:1118: warning: assignment makes pointer from integer without a cast
ssh-keygen.c:798: warning: unused variable `out_file'
*** Error code 1

The above problem is resolved by the following:
#diff defines.h.org defines.h
52a53,55
> #ifndef PATH_MAX
> # define PATH_MAX 64
> #endif

I am not sure if the figure of 64 is safe!

I can now get the code to compile and if execute ./sshd -p 5000 -d -d -d
all seems well, i have not done a complete test yet, but i can login as root





------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the openssh-bugs mailing list