Bug 735 - ssh-keygen, SunOS 4.1.4, Undefined symbol _strtoul
Summary: ssh-keygen, SunOS 4.1.4, Undefined symbol _strtoul
Status: CLOSED DUPLICATE of bug 670
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh-keygen (show other bugs)
Version: -current
Hardware: SPARC SunOS
: P2 major
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-09 00:34 AEST by Howard Bampton
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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