comp.security.ssh
Discussion complète de l'article :
Openssh 5 64 bit on solaris

Date

Sujet

From


03-04-2008

     Openssh 5 64 bit on solaris

leonardz@sympatico.ca

03-04-2008

         Re: Openssh 5 64 bit on solaris

Daniel Rock

04-04-2008

         Re: Openssh 5 64 bit on solaris

Chris Mattern


Article : 21877
Date : 03-04-2008
From : leonardz@sympatico.ca
Sujet : Openssh 5 64 bit on solaris

I would like to build openssh

64bit on solaris 10 U4 on a dual core opteron system

My issue is that at the link phase:

SunStudio/12/SUNWspro/bin/cc -V -o ssh ssh.o readconf.o clientloop.o
sshtty.o sshconnect.o sshconnect1.o sshconnect2.o -L. -Lopenbsd-
compat/ -L/usr/sfw/lib/amd64 -R/usr/sfw/lib/amd64 -L/usr/lib -R/usr/
lib -L/usr/sfw/lib/amd64 -lssh -lopenbsd-compat -lresolv -lcrypto -lrt
-lz -lsocket -lnsl
cc: Sun C 5.9 SunOS_i386 Patch 124868-01 2007/07/12
ld: Software Generation Utilities - Solaris Link Editors: 5.10-1.489
ld: fatal: file ssh.o: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to ssh

I need the SunStudio compilers as gcc on the system is 32 bit and will
nor build 64 bit binaries. S far as I can tell

ssh.o is a 64 bit object

file ssh.o
ssh.o: ELF 64-bit LSB relocatable AMD64 Version 1

so I am not sure what this is telling me. Has anyone succesfully built
openssh in 64bit mode on solaris?

Posez vos questions, réponses et remarques sur les forums de FrameIP


Article : 21878
Date : 03-04-2008
From : Daniel Rock
Sujet : Re: Openssh 5 64 bit on solaris

leonardz@sympatico.ca wrote:
> I would like to build openssh
>
> 64bit on solaris 10 U4 on a dual core opteron system
>
> My issue is that at the link phase:
>
> SunStudio/12/SUNWspro/bin/cc -V -o ssh ssh.o readconf.o clientloop.o
> sshtty.o sshconnect.o sshconnect1.o sshconnect2.o -L. -Lopenbsd-
> compat/ -L/usr/sfw/lib/amd64 -R/usr/sfw/lib/amd64 -L/usr/lib -R/usr/
> lib -L/usr/sfw/lib/amd64 -lssh -lopenbsd-compat -lresolv -lcrypto -lrt
> -lz -lsocket -lnsl
> cc: Sun C 5.9 SunOS_i386 Patch 124868-01 2007/07/12
> ld: Software Generation Utilities - Solaris Link Editors: 5.10-1.489
> ld: fatal: file ssh.o: wrong ELF class: ELFCLASS64
> ld: fatal: File processing errors. No output written to ssh

(1) why do you include 32 bit library paths with -L/-R?
(2) why do you include /usr/lib at all?
(3) where is the -m64 flag for cc?

> I need the SunStudio compilers as gcc on the system is 32 bit and will
> nor build 64 bit binaries.

SunStudio and gcc with both happily build 64 bit object files if getting
passed the right flags.

--
Daniel

Posez vos questions, réponses et remarques sur les forums de FrameIP


Article : 21879
Date : 04-04-2008
From : Chris Mattern
Sujet : Re: Openssh 5 64 bit on solaris

On 2008-04-03, leonardz@sympatico.ca wrote:
> I would like to build openssh
>
> 64bit on solaris 10 U4 on a dual core opteron system

Why do you want to build openssh when the system *comes* with
openssh?
>
> My issue is that at the link phase:
>
> SunStudio/12/SUNWspro/bin/cc -V -o ssh ssh.o readconf.o clientloop.o
> sshtty.o sshconnect.o sshconnect1.o sshconnect2.o -L. -Lopenbsd-
> compat/ -L/usr/sfw/lib/amd64 -R/usr/sfw/lib/amd64 -L/usr/lib -R/usr/
> lib -L/usr/sfw/lib/amd64 -lssh -lopenbsd-compat -lresolv -lcrypto -lrt
> -lz -lsocket -lnsl
> cc: Sun C 5.9 SunOS_i386 Patch 124868-01 2007/07/12
> ld: Software Generation Utilities - Solaris Link Editors: 5.10-1.489
> ld: fatal: file ssh.o: wrong ELF class: ELFCLASS64
> ld: fatal: File processing errors. No output written to ssh
>
> I need the SunStudio compilers as gcc on the system is 32 bit and will
> nor build 64 bit binaries. S far as I can tell
>
> ssh.o is a 64 bit object
>
> file ssh.o
> ssh.o: ELF 64-bit LSB relocatable AMD64 Version 1
>
> so I am not sure what this is telling me. Has anyone succesfully built
> openssh in 64bit mode on solaris?

It's possible that ld is calling in a 32-bit module from a library. Try
doing it with -m64 to force 64-bit mode.


--
Christopher Mattern

NOTICE
Thank you for noticing this new notice
Your noticing it has been noted
And will be reported to the authorities

Posez vos questions, réponses et remarques sur les forums de FrameIP




mot clé : security bit solaris ip 64 5 on ipv6 vpn tcpip ipv4 voip ssh openssh comp

Copyright © 2003-2010 FrameIP TcpIP. Tous droits réservés. Les marques et marques commerciales mentionnées appartiennent à leurs propriétaires respectifs. L'utilisation de ce site Web TcpIP implique l'acceptation des conditions d'utilisation et du règlement sur le respect de la vie privée.
Sécurité entreprise Comparatif Adsl SSII Reseaux Sécurité Test ADSL