[SUMMARY] Compiling OpenSSH 3.4p1 on SunOS 4.1.x

From: David Foster <foster_at_dim.ucsd.edu>
Date: Mon Jul 01 2002 - 15:06:40 EDT
> Ok, I FINALLY GET OpenSSH to configure under SunOS 4.1.x (./configure
> was finding an older version of my OpenSSL libraries), 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.  Recompile.

memmove() doesn't exist in the SunOS libc.

Note that s1, and s2 are swapped.  This is intentional.



  =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
   David Foster    National Center for Microscopy and Imaging Research
    Programmer/Analyst     University of California, San Diego
    dfoster@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
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Mon Jul 1 15:10:47 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:48 EST