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

Martin.Rottler at nuernberger.de Martin.Rottler at nuernberger.de
Thu Oct 2 00:12:58 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)?

--> solution: delete compiler test lines in defines.h for int8_t, int16_t,
                     int32_t and int64_t

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

--> solution: recompile OpenSSL with option "no-threads" (parameter to
config)

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


Hinweis::
Der Inhalt dieser Mail ist vertraulich und nur fuer den Adressaten bzw.
dessen Vertreter/in bestimmt. Anderen Personen ist es nicht gestattet den Inhalt dieser Mail zu publizieren, zu verwerten, zu kopieren oder weiterzugeben. Falls Sie nicht der angegebene Adressat oder dessen Vertreter/in sind, dann senden Sie bitte die E-Mail mit einem Vermerk an den Absender zurueck (Antwort-Funktion bzw. reply email). Entfernen Sie bitte danach die Nachricht aus Ihrem System.
Informationen oder sonstige Aussagen an den Adressaten unterliegen dem Recht des Geschaeftes, zu dem sie gegeben worden sind, insbesondere den Allgemeinen Geschaefts- bzw. Versicherungsbedingungen und gegebenenfalls einer individuellen Vereinbarung. Der Inhalt der E-Mail ist nur rechtsverbindlich, wenn wir ihn dem betreffenden Adressaten schriftlich bestaetigen.




More information about the openssh-unix-dev mailing list