Bug 735

Summary: ssh-keygen, SunOS 4.1.4, Undefined symbol _strtoul
Product: Portable OpenSSH Reporter: Howard Bampton <Howard.J.Bampton>
Component: ssh-keygenAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED DUPLICATE    
Severity: major    
Priority: P2    
Version: -current   
Hardware: SPARC   
OS: SunOS   

Description Howard Bampton 2003-10-09 00:34:20 AEST
gcc -o ssh-keygen ssh-keygen.o -L. -Lopenbsd-compat/ -L/usr/local/ssl/lib -L/us
r/lib -lssh -lopenbsd-compat -lz  -lcrypto 
collect2: ld returned 2 exit status
ld: Undefined symbol 
   _strtoul 
*** Error code 1
make: Fatal error: Command failed for target `ssh-keygen'

strtoul is in libc on Solaris, but not SunOS 4. 

Workaround:
Put strtoul.c (from OpenBSD or some other source)  the openssh compile
directory, and then:
gcc -o ssh-keygen ssh-keygen.o -L. -Lopenbsd-compat/ -L/usr/local/ssl/lib -L/us
r/lib -lssh -lopenbsd-compat -lz -lcrypto strtoul.o

[Resume normal make/make install sequence here.]
Comment 1 Howard Bampton 2003-10-09 00:41:11 AEST
ssh configuration :
./configure --with-mantype=man --with-ssl-dir=/usr/local/ssl --w ith-zlib=/usr/
lib --with-privsep-user=sshd --with-default-path=/usr/local/bin:/usr/bin:/site/
scripts --with-superuser-path=/usr/local/bin:/usr/bin:/usr/sbin:/usr/local/sbin

Comment 2 Darren Tucker 2003-10-09 01:01:59 AEST
This has already been fixed.  You could have also used the patch in bug #670 or
a recent snapshot.

*** This bug has been marked as a duplicate of 670 ***
Comment 3 Damien Miller 2004-04-14 12:24:19 AEST
Mass change of RESOLVED bugs to CLOSED