[Bug 735] ssh-keygen, SunOS 4.1.4, Undefined symbol _strtoul

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Thu Oct 9 00:34:21 EST 2003


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

           Summary: ssh-keygen, SunOS 4.1.4, Undefined symbol _strtoul
           Product: Portable OpenSSH
           Version: -current
          Platform: Sparc
        OS/Version: SunOS
            Status: NEW
          Severity: major
          Priority: P2
         Component: ssh-keygen
        AssignedTo: openssh-bugs at mindrot.org
        ReportedBy: Howard.J.Bampton at Motorola.com


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.]



------- 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