[OpenSSL-1.0.2] undefined reference to `OPENSSL_cpuid_setup'
dependall ===> tests/crypto/libcrypto/rc4
# link rc4/h_rc4test
/usr/tooldir/bin/i486--netbsdelf-gcc --sysroot=/usr/src/obj.i386/destdir.i386 -o h_rc4test rc4test.o -lcrypto -lcrypt -Wl,-rpath-link,/usr/src/obj.i386/destdir.i386/lib -L=/lib
rc4test.o: In function `main':
/usr/src/crypto/external/bsd/openssl/dist/crypto/rc4/rc4test.c:127: undefined reference to `OPENSSL_cpuid_setup'
collect2: ld returned 1 exit status
*** Failed target: h_rc4test
*** Failed command: /usr/tooldir/bin/i486--netbsdelf-gcc --sysroot=/usr/src/obj.i386/destdir.i386 -o h_rc4test rc4test.o -lcrypto -lcrypt -Wl,-rpath-link,/usr/src/obj.i386/destdir.i386/lib -L=/lib
*** Error code 1
Stop.
nbmake: stopped in /usr/src/tests/crypto/libcrypto/rc4
Comments (15)
-
reporter -
reporter - changed status to resolved
BUGFIX: Issue
#183- undefined reference to `OPENSSL_cpuid_setup'.cherry-picked forn OpenSSL master branch: https://github.com/openssl/openssl/commit/795e1231738ccebecfa031ecc4da75fcdd4ffc0a
Don't call cpuid in test; done as init.
Reviewed-by: Andy Polyakov appro@openssl.org
→ <<cset 60080e3cd3c3>>
-
reporter BUGFIX: Issue
#183- remove local hack from regen, it is useless anymore.→ <<cset 09b424726c30>>
-
reporter BUGFIX: Issue
#183- undefined reference to `OPENSSL_cpuid_setup'.cherry-picked forn OpenSSL master branch: https://github.com/openssl/openssl/commit/795e1231738ccebecfa031ecc4da75fcdd4ffc0a
Don't call cpuid in test; done as init.
Reviewed-by: Andy Polyakov appro@openssl.org
→ <<cset d9e83b1f957b>>
-
reporter BUGFIX: Issue
#183- remove local hack from regen, it is useless anymore.→ <<cset dcf7523dcd34>>
-
reporter BUGFIX: Issue
#183- undefined reference to `OPENSSL_cpuid_setup'.cherry-picked forn OpenSSL master branch: https://github.com/openssl/openssl/commit/795e1231738ccebecfa031ecc4da75fcdd4ffc0a
Don't call cpuid in test; done as init.
Reviewed-by: Andy Polyakov appro@openssl.org
→ <<cset 47d0c7a0c374>>
-
reporter BUGFIX: Issue
#183- remove local hack from regen, it is useless anymore.→ <<cset 352856f6857b>>
-
reporter BUGFIX: Issue
#183- undefined reference to `OPENSSL_cpuid_setup'.cherry-picked forn OpenSSL master branch: https://github.com/openssl/openssl/commit/795e1231738ccebecfa031ecc4da75fcdd4ffc0a
Don't call cpuid in test; done as init.
Reviewed-by: Andy Polyakov appro@openssl.org
→ <<cset d2b6f1c471e1>>
-
reporter BUGFIX: Issue
#183- remove local hack from regen, it is useless anymore.→ <<cset 02d43744e1e4>>
-
reporter BUGFIX: Issue
#183- undefined reference to `OPENSSL_cpuid_setup'.cherry-picked forn OpenSSL master branch: https://github.com/openssl/openssl/commit/795e1231738ccebecfa031ecc4da75fcdd4ffc0a
Don't call cpuid in test; done as init.
Reviewed-by: Andy Polyakov appro@openssl.org
→ <<cset 9ac46bdd0b6e>>
-
reporter BUGFIX: Issue
#183- remove local hack from regen, it is useless anymore.→ <<cset 7fc2a1764896>>
-
reporter BUGFIX: Issue
#183- undefined reference to `OPENSSL_cpuid_setup'.cherry-picked forn OpenSSL master branch: https://github.com/openssl/openssl/commit/795e1231738ccebecfa031ecc4da75fcdd4ffc0a
Don't call cpuid in test; done as init.
Reviewed-by: Andy Polyakov appro@openssl.org
→ <<cset bed454556332>>
-
reporter BUGFIX: Issue
#183- remove local hack from regen, it is useless anymore.→ <<cset 601f8e00e4c8>>
-
reporter BUGFIX: Issue
#183- undefined reference to `OPENSSL_cpuid_setup'.cherry-picked forn OpenSSL master branch: https://github.com/openssl/openssl/commit/795e1231738ccebecfa031ecc4da75fcdd4ffc0a
Don't call cpuid in test; done as init.
Reviewed-by: Andy Polyakov appro@openssl.org
→ <<cset d38ddd27471e>>
-
reporter BUGFIX: Issue
#183- remove local hack from regen, it is useless anymore.→ <<cset 33b58a4aa46f>>
- Log in to comment
OPENSSL_cpuid_setup marked as hidden, and called from only .ini section execution.
this code intend to try call OPENSSL_cpuid_setup when libcrypto is static linked and no reference to it.
but this is completely wrong, use -Wl,--whole-archive libcrypto.a to link.