openssh-3-7-1p2 compiling problems on Reliant UNIX

Darren Tucker dtucker at zip.com.au
Tue Sep 30 08:51:57 EST 2003


Martin.Rottler at nuernberger.de wrote:
> I have problems compiling openssh-3-7-1p2 on Reliant UNIX.
> (same problem with 3-7-1p1)
> 
> first error was:
> ../defines.h 144: [error] CFE1101 "int8_t" has already been declared in the
> current scope
> typedef char int8_t;

The configure test tests for int8_t, int16_t and int32_t before defining
HAVE_INTXX_T.  Does your system define all three (possibly in
/usr/include/sys/types.h)?

>         cc -o ssh ssh.o readconf.o clientloop.o sshtty.o  sshconnect.o
> sshconnect1.o sshconnect2.o -L. -Lopenbsd-compat/ -L/usr/local/ssl/lib
> -L/usr/local/lib -lssh -lopenbsd-compat -lz -lsocket -lnsl  -lgen -lcrypto
> Undefined                       first referenced
>  symbol                             in file
> gmtime_r                            /usr/local/ssl/lib/libcrypto.a(o_time.o)
> cma_sigaction
> /usr/local/ssl/lib/libcrypto.a(ui_openssl.o)
> ld: ssh: fatal error: Symbol referencing errors. No output written to ssh
> make: *** Error code 1

That looks like your libcrypto is compiled with the re-entrant (threaded)
C library.  Try adding "-lc_r" to your LDFLAGS or recompile OpenSSL with
the same flags you're using with OpenSSH.  Alternatively you could compile
OpenSSH with -lc_r, however you might need to invoke your compiler as
"cc_r" or something for that to work properly.

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.




More information about the openssh-unix-dev mailing list