Compiling OpenSSH 3.4p1 on SunOS 4.1.4
David Foster
foster at dim.ucsd.edu
Tue Jul 2 04:39:32 EST 2002
Note that this wasn't necessary on previous versions of
OpenSSH under SunOS 4.1.4.
Dave Foster
------------- Begin Forwarded Message -------------
Date: Mon, 1 Jul 2002 11:21:25 -0700 (PDT)
From: spl at camshaft.ucsd.edu
To: foster at dim.ucsd.edu
Subject: Re: Oh SunOS guru... (OpenSSH compile on Pitstop)
> Ok, I FINALLY GET OpenSSH to configure on Pitstop, getting around
> the OpenSSL problem, and now I get this...
>
> gcc -o ssh-agent ssh-agent.o -L. -Lopenbsd-compat/ -L/usr/local/lib
> -L/usr/local/lib -lssh -lopenbsd-compat -lz -lcrypto
> openbsd-compat//libopenbsd-compat.a(setenv.o): In function `setenv':
> /auto/usr/local_src/openssh-3.4p1/SunOS/4.1.4/openbsd-compat/setenv.c:126:
> undefined reference to `memmove'
> collect2: ld returned 1 exit status
> make: *** [ssh-agent] Error 1
>
>
> Is this brain damage in OpenSSH or SunOS 4.1.4?
Both.
Edit setenv.c and add the macro
#define memmove(s1,s2,l) bcopy(s2,s1,l)
somewhere at the top of the file.
memmove() doesn't exist in the SunOS libc.
Note that s1, and s2 are swapped. This is intentional.
------------- End Forwarded Message -------------
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
David Foster National Center for Microscopy and Imaging Research
Programmer/Analyst University of California, San Diego
dfoster at ucsd.edu Department of Neuroscience, Mail 0608
(858) 534-7968 http://ncmir.ucsd.edu/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore, all progress
depends on the unreasonable." -- George Bernard Shaw
More information about the openssh-unix-dev
mailing list