Undefined symbol OPENSSL_ia32cap_P

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Undefined symbol OPENSSL_ia32cap_P

Tim Rice

OpenSSL_0_9_8-stable branch pulled Mon May 30 19:47:25 PDT 2005.

On my unixware-7 boxes configured with the shared & no-sse2 options
i'm getting this error.
....
  LIBDEPS=" $LIBRARIES -lsocket -lnsl" \
  link_app.${shlib_target}
Undefined first referenced
  symbol      in file
OPENSSL_ia32cap_P                   ../libcrypto.so
UX:ld: ERROR: openssl: fatal error: Symbol referencing errors. No output written to openssl
*** Error code 1 (bu21)
....

-------------< testlog from make report >-------------
OpenSSL self-test report:

OpenSSL version:  0.9.8-beta4-dev
Last change:      Correct naming of the 'chil' and '4758cca' ENGINEs. Thi...
Options:          enable-shared -Kpentium_pro no-gmp no-krb5 no-mdc2 no-rc5 no-sse2 no-zlib no-zlib-dynamic
OS (uname):       UnixWare uw711 5 7.1.1 i386 x86at SCO UNIX_SVR5
OS (config):      i586-sco-unixware7
Target (default): unixware-7
Target:           unixware-7
Compiler:         UX:cc: TO FIX: Usage: cc [ -01234A:b:B:Ccd:D:e:EgGh:HI:K:l:L:o:OpPq:Q:Su:U:vVwW:X:Y:z:#Z: ] files ...

Test skipped.
------------------------------------------------------

--
Tim Rice Multitalents (707) 887-1469
[hidden email]


______________________________________________________________________
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: Undefined symbol OPENSSL_ia32cap_P

Andy Polyakov
> OpenSSL_0_9_8-stable branch pulled Mon May 30 19:47:25 PDT 2005.
>
> On my unixware-7 boxes configured with the shared & no-sse2 options
> i'm getting this error.
> ....
>         LIBDEPS=" $LIBRARIES -lsocket -lnsl" \
>         link_app.${shlib_target}
> Undefined            first referenced
>  symbol                  in file
> OPENSSL_ia32cap_P                   ../libcrypto.so
> UX:ld: ERROR: openssl: fatal error: Symbol referencing errors. No output
> written to openssl
> *** Error code 1 (bu21)
> ....

You have to speculate why do you think this happens. OPENSSL_ia32cap_P
is expected to be unconditionally declared on x86 and x86_64 platforms
regardless no-sse2 or no-whatever. With sufficient no-everything it will
remain uninitialized, but it's expected to be there. See
crypto/cryptlib.c. Is it possible that target in question doesn't define
__i386 or __i386__? When you pass -Kpentium_pro? 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: Undefined symbol OPENSSL_ia32cap_P

Tim Rice
On Tue, 31 May 2005, Andy Polyakov wrote:

>> OpenSSL_0_9_8-stable branch pulled Mon May 30 19:47:25 PDT 2005.
>>
>> On my unixware-7 boxes configured with the shared & no-sse2 options
>> i'm getting this error.
>> ....
>> Undefined            first referenced
>>  symbol                  in file
>> OPENSSL_ia32cap_P                   ../libcrypto.so
>
> You have to speculate why do you think this happens. OPENSSL_ia32cap_P is
> expected to be unconditionally declared on x86 and x86_64 platforms
> regardless no-sse2 or no-whatever. With sufficient no-everything it will
> remain uninitialized, but it's expected to be there. See crypto/cryptlib.c.
> Is it possible that target in question doesn't define __i386 or __i386__?
> When you pass -Kpentium_pro? A.

With or without -Kpentium_pro it doesn't define __i386 or __i386__
It does define i386

If I "./config shared -D__i386__ -Kpentium_pro no-sse2" it builds fine.
Perhaps add -D__i386__ to the unixware-7 target in Configure.

Now to track down the test failure (test SSL protocol).
....
test sslv3 with client authentication
Available compression methods:
   NONE
client authentication
depth=1 /C=AU/O=Dodgy Brothers/CN=Dodgy CA
depth=0 /C=AU/O=Dodgy Brothers/CN=Brother 1/CN=Brother 2
ERROR in SERVER
16395:error:1408E098:SSL routines:SSL3_GET_MESSAGE:excessive message size:s3_both.c:449:
SSLv3, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 512 bit RSA
1 handshakes of 256 bytes done
*** Error code 1 (bu21)
....

--
Tim Rice Multitalents (707) 887-1469
[hidden email]


______________________________________________________________________
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: Undefined symbol OPENSSL_ia32cap_P

Tim Rice
On Tue, 31 May 2005, Tim Rice wrote:

[snip]
> Now to track down the test failure (test SSL protocol).

That was me forgeting about UnixWare 7.1.1 having an optimizer bug
when you use the -Kpentium_pro flag.

Tests fine without it.

> .....
> test sslv3 with client authentication
> Available compression methods:
>  NONE
> client authentication
> depth=1 /C=AU/O=Dodgy Brothers/CN=Dodgy CA
> depth=0 /C=AU/O=Dodgy Brothers/CN=Brother 1/CN=Brother 2
> ERROR in SERVER
> 16395:error:1408E098:SSL routines:SSL3_GET_MESSAGE:excessive message
> size:s3_both.c:449:
> SSLv3, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 512 bit RSA
> 1 handshakes of 256 bytes done
> *** Error code 1 (bu21)
> .....
>
>

--
Tim Rice Multitalents (707) 887-1469
[hidden email]


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