This is a multi-part message in MIME format...

------------=_1190587464-284-1
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Hi Andy,

There is no problem with C compiler and tools around it under OpenBSD exc=
ept
assembler. It's assember adds undescores to all the public symbols in the
object files and linker can't find them when tries to produce binaries an=
d
libraries are produced with unresolved symbols like I said in my original
post. Finally, I tried with no-asm option as it worked fine. I got binari=
es.
The only thing remains is to check if it's possible to get asm used. You
know that without this openssl works much slower.

Output of config -t is below:
Operating system: i386-whatever-openbsd
Configuring for OpenBSD-i386
/usr/bin/perl ./Configure OpenBSD-i386 386

Regards,
Dmitri.

On 9/16/07, Andy Polyakov via RT wrote:
>
> > as of the latest openbsd (v4.1)
> > seems it's impossible to compile openssl 0.9.7m package with asm enab=

led
> > assembler adds underscores before the names and causes make to fail t=

o
> build
> > apps
> > For example DES_encrypt appears as many U DES_encrypt and one T

> _DES_encrypt
> > in the nm output for libcrypto.a
> >
> > I tried to add -fleading-underscore and -Wa,--no-underscore
> > first one caused even more problems - some symbols were expected to h=

ave
> two
> > underscrores
> > latter one was not recognized by the assembler (-mno-underscore faile=

d
> to go
> > too)
> >
> > with no-asm everything went well
> >
> > as a timesaver for the other people, it would be fine to add checks i=

f
> > assembler is "broken" and issue warnings about it.

>
> Could you submit output from './config -t'? If it says "configuring for
> BSD-x86," then it must be explanation. OpenBSD has switched to ELF and
> "underscore-free" BSD-x86-elf should have been used. ./config attempts
> to detect ELF-based OpenBSD, but detection must have went wrong. Open
> ./config in text editor, search to "mimic ld" and try to figure out wha=

t
> might have went wrong. A.
>
>
>



------------=_1190587464-284-1
Content-Type: text/html; charset="ISO-8859-1"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
RT-Attachment: 1555/17651/7345

Hi Andy,

 

There is no problem with C compiler and tools around it under OpenBSD except assembler. It's assember adds undescores to all the public symbols in the object files and linker can't find them when tries to produce binaries and libraries are produced with unresolved symbols like I said in my original post. Finally, I tried with no-asm option as it worked fine. I got binaries. The only thing remains is to check if it's possible to get asm used. You know that without this openssl works much slower.

 

Output of config -t is below:

Operating system: i386-whatever-openbsd

Configuring for OpenBSD-i386

/usr/bin/perl ./Configure OpenBSD-i386 386

 

Regards,
Dmitri.
 

On 9/16/07, Andy Polyakov via RT <rt@openssl.org> wrote:
> as of the latest openbsd (v4.1)
> seems it's impossible to compile openssl 0.9.7m package with asm enabled

> assembler adds underscores before the names and causes make to fail to build
> apps
> For example DES_encrypt appears as many U DES_encrypt and one T _DES_encrypt
> in the nm output for libcrypto.a

>
> I tried to add -fleading-underscore and -Wa,--no-underscore
> first one caused even more problems - some symbols were expected to have two
> underscrores
> latter one was not recognized by the assembler (-mno-underscore failed to go

> too)
>
> with no-asm everything went well
>
> as a timesaver for the other people, it would be fine to add checks if
> assembler is "broken" and issue warnings about it.


Could you submit output from './config -t'? If it says "configuring for
BSD-x86," then it must be explanation. OpenBSD has switched to ELF and
"underscore-free" BSD-x86-elf should have been used. ./config attempts

to detect ELF-based OpenBSD, but detection must have went wrong. Open
./config in text editor, search to "mimic ld" and try to figure out what
might have went wrong. A.





------------=_1190587464-284-1--
__________________________________________________ ____________________
OpenSSL Project http://www.openssl.org
Development Mailing List openssl-dev@openssl.org
Automated List Manager majordomo@openssl.org