[Libssh] [PATCH] more generic makefile

Rodolphe Rocca rodolphe.rocca at kabira.fr
Thu Feb 28 09:36:43 CET 2008


On Thu, 28 Feb 2008 00:03:09 +0100
Aris Adamantiadis <aris at 0xbadc0de.be> wrote:

> Rodolphe Rocca a écrit :
> > Hello,
> > 
> > packed structures are not supported by all compilers and especially
> > not by Sun/Forte12.
> > 
> > Please find an attached patch that removes this attribute.
> Hello,
> I haven't tested it, but i'm quite sure it won't work on gcc/amd64.
> Gcc has the right to allocate 64 bits for the u32. It won't lead to
> memory corruption but the protocol won't work.

Could you give me some precisions on the choice of a packed structure
here ?

> I'll test it. If it doesn't work either on amd64 and sparc64, i'll
> get autoconf to detect the compiler capability to do attributes, else
> I'll apply your patch.

Well I tested it on x86_64 (Linux), ia64 (Linux) and SparcV9 (Solaris
10) and everything works quite well :-)



More information about the Libssh mailing list