crypt/des/dx86-out.s fails on NetBSD

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

crypt/des/dx86-out.s fails on NetBSD

GOTOU Yuuzou
Hi,

cyrpt/des/dx86-out.s makes some errors in build process.
For now, I can only attach a summary of make report.
Please let me know if you need more information.

--
gotoyuzo


% make report
...

making all in crypto/des...
gcc -I.. -I../.. -I../../include -DOPENSSL_THREADS -pthread -D_THREAD_SAFE -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIOS -O3 -fomit-frame-pointer -Wall -DOPENSSL_BN_ASM_PART_WORDS -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -c -c dx86-out.s
dx86-out.s: Assembler messages:
dx86-out.s:2487: Error: alignment not a power of 2
dx86-out.s:2497: Error: alignment not a power of 2
dx86-out.s:2673: Error: alignment not a power of 2
dx86-out.s:2683: Error: alignment not a power of 2
*** Error code 1
...

OpenSSL self-test report:

OpenSSL version:  0.9.8-beta5
Last change:      Correct naming of the 'chil' and '4758cca' ENGINEs. Thi...
Options:          --prefix=/usr/local/ssl098 no-gmp no-krb5 no-mdc2 no-rc5 no-shared no-sse2 no-zlib no-zlib-dynamic
OS (uname):       NetBSD sawara 3.99.5 NetBSD 3.99.5 (GENERIC_LAPTOP) #0: Sun Jun  5 06:40:03 JST 2005  root@sawara:/usr/NetBSD/obj/i386/usr/src/sys/arch/i386/compile/GENERIC_LAPTOP i386
OS (config):      i686-whatever-netbsd
Target (default): BSD-x86
Target:           BSD-x86
Compiler:         Using built-in specs.
Configured with: /home/nick/work/netbsd/src/tools/gcc/../../gnu/dist/gcc/configure --enable-long-long --disable-multilib --enable-threads --disable-symvers --build=i386-unknown-netbsdelf2.0. --host=i386--netbsdelf --target=i386--netbsdelf
Thread model: posix
gcc version 3.3.3 (NetBSD nb3 20040520)

Failure!
[...]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: crypt/des/dx86-out.s fails on NetBSD

Andy Polyakov
> cyrpt/des/dx86-out.s makes some errors in build process.
> For now, I can only attach a summary of make report.
> Please let me know if you need more information.

 > gcc -I.. -I../.. -I../../include -DOPENSSL_THREADS -pthread
-D_THREAD_SAFE -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN
-DTERMIOS -O3 -fomit-frame-pointer -Wall -DOPENSSL_BN_ASM_PART_WORDS
-DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -c -c dx86-out.s
 > dx86-out.s: Assembler messages:
 > dx86-out.s:2487: Error: alignment not a power of 2

 > Target:           BSD-x86
 > Configured with: ... --target=i386--netbsdelf

Apparently it fails to recognize your target as ELF.

1. Verify that you can build if you configure with './Configure
BSD-x86-elf ...', where '...' stand for options you would otherwise pass
to ./config.

2. See ./config script line 663 and below and speculate why do you think
it doesn't recognize your system as ELF? Maybe shared libraries reside
in /shlib?

A.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: crypt/des/dx86-out.s fails on NetBSD

GOTOU Yuuzou
Hi,

In message <[hidden email]>,
 `Andy Polyakov <[hidden email]>' wrote:
>  > Target:           BSD-x86
>  > Configured with: ... --target=i386--netbsdelf
>
> Apparently it fails to recognize your target as ELF.
>
> 1. Verify that you can build if you configure with './Configure
> BSD-x86-elf ...', where '...' stand for options you would otherwise pass
> to ./config.

Thanks, that works perfectly.

> 2. See ./config script line 663 and below and speculate why do you think
> it doesn't recognize your system as ELF? Maybe shared libraries reside
> in /shlib?

Hmm, file(1) doesn't follow symlinks by default.
How about to use -L option?

  % file /usr/lib/libc.so.12.129
  /usr/lib/libc.so.12.129: symbolic link to `../../lib/libc.so.12.129'
  % file -L /usr/lib/libc.so.12.129
  /usr/lib/libc.so.12.129: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped

--
gotoyuzo
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: crypt/des/dx86-out.s fails on NetBSD

Andy Polyakov
>>2. See ./config script line 663 and below and speculate why do you think
>>it doesn't recognize your system as ELF? Maybe shared libraries reside
>>in /shlib?
>
>
> Hmm, file(1) doesn't follow symlinks by default.
> How about to use -L option?
>
>   % file /usr/lib/libc.so.12.129
>   /usr/lib/libc.so.12.129: symbolic link to `../../lib/libc.so.12.129'
>   % file -L /usr/lib/libc.so.12.129
>   /usr/lib/libc.so.12.129: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped

But note that it uses 'ls /usr/lib/libc.so.* /lib/libc.so.* | tail -1',
which in your case should result in /lib/libc.so.12.129. Is
/lib/libc.so.12.129 symbolic link too and if so where does it point? A.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: crypt/des/dx86-out.s fails on NetBSD

GOTOU Yuuzou
In message <[hidden email]>,
 `Andy Polyakov <[hidden email]>' wrote:

> >>2. See ./config script line 663 and below and speculate why do you think
> >>it doesn't recognize your system as ELF? Maybe shared libraries reside
> >>in /shlib?
> >
> > Hmm, file(1) doesn't follow symlinks by default.
> > How about to use -L option?
> >
> >   % file /usr/lib/libc.so.12.129
> >   /usr/lib/libc.so.12.129: symbolic link to `../../lib/libc.so.12.129'
> >   % file -L /usr/lib/libc.so.12.129
> >   /usr/lib/libc.so.12.129: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped
>
> But note that it uses 'ls /usr/lib/libc.so.* /lib/libc.so.* | tail -1',
> which in your case should result in /lib/libc.so.12.129. Is
> /lib/libc.so.12.129 symbolic link too and if so where does it point? A.

You missed that ls sorts the result :)

  % ls /usr/lib/libc.so.* /lib/libc.so.* | cat
  /lib/libc.so.12@
  /lib/libc.so.12.125
  /lib/libc.so.12.129
  /usr/lib/libc.so.12@
  /usr/lib/libc.so.12.125@
  /usr/lib/libc.so.12.129@

--
gotoyuzo
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: crypt/des/dx86-out.s fails on NetBSD

Andy Polyakov
>>>>2. See ./config script line 663 and below and speculate why do you think
>>>>it doesn't recognize your system as ELF? Maybe shared libraries reside
>>>>in /shlib?
>>>
>>>Hmm, file(1) doesn't follow symlinks by default.
>>>How about to use -L option?
>>>
>>>  % file /usr/lib/libc.so.12.129
>>>  /usr/lib/libc.so.12.129: symbolic link to `../../lib/libc.so.12.129'
>>>  % file -L /usr/lib/libc.so.12.129
>>>  /usr/lib/libc.so.12.129: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped
>>
>>But note that it uses 'ls /usr/lib/libc.so.* /lib/libc.so.* | tail -1',
>>which in your case should result in /lib/libc.so.12.129. Is
>>/lib/libc.so.12.129 symbolic link too and if so where does it point? A.
>
>
> You missed that ls sorts the result :)
>
>   % ls /usr/lib/libc.so.* /lib/libc.so.* | cat
>   /lib/libc.so.12@
>   /lib/libc.so.12.125
>   /lib/libc.so.12.129
>   /usr/lib/libc.so.12@
>   /usr/lib/libc.so.12.125@
>   /usr/lib/libc.so.12.129@

please verify http://cvs.openssl.org/chngview?cn=14073. a.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]