Getting make warning for Openssl 1.0.2x on MacOS

2022-07-10 Thread Sushant
While building OpenSSL 1.0.2x library I am configuring with following
options on macos:

For Macosx-32: ./Configure --openssldir=/path/to/openssl/dir shared
-mtune=generic -march=i386 -m32 -fPIC darwin-i386-cc no-asm -D_GNU_SOURCE
no-rc5 enable-tlsext no-ssl2

For Macosx-64: ./Configure --openssldir=/path/to/openssl/dir shared
-mtune=generic -fPIC darwin64-x86_64-cc -D_GNU_SOURCE no-rc5 enable-tlsext
no-ssl2

I am receiving following warnings while make: Macosx-32:
/var/folders/3g/fbblr5cx24z71164xr63lmw8gq/T//cc85SWQQ.s:1873:11:
warning: section "__textcoal_nt" is deprecated .section
__TEXT,__textcoal_nt,coalesced,pure_instructions ^ ~
/var/folders/3g/fbblr5cx24z71164xr63lmw8gq/T//cc85SWQQ.s:1873:11: note:
change section name to "__text" .section
__TEXT,__textcoal_nt,coalesced,pure_instructions ^ ~
/var/folders/3g/fbblr5cx24z71164xr63lmw8gq/T//ccGS4Iaf.s:2462:11:
warning: section "__textcoal_nt" is deprecated .section
__TEXT,__textcoal_nt,coalesced,pure_instructions ^ ~
/var/folders/3g/fbblr5cx24z71164xr63lmw8gq/T//ccGS4Iaf.s:2462:11: note:
change section name to "__text" .section
__TEXT,__textcoal_nt,coalesced,pure_instructions ^ ~

ar: creating archive ../libcrypto.a /usr/bin/ranlib: file:
../libcrypto.a(ebcdic.o) has no symbols /usr/bin/ranlib: file:
../libcrypto.a(fips_ers.o) has no symbols

ar: creating archive ../libssl.a /usr/bin/ranlib: file:
../libssl.a(s2_srvr.o) has no symbols /usr/bin/ranlib: file:
../libssl.a(s2_clnt.o) has no symbols /usr/bin/ranlib: file:
../libssl.a(s2_lib.o) has no symbols /usr/bin/ranlib: file:
../libssl.a(s2_enc.o) has no symbols /usr/bin/ranlib: file:
../libssl.a(s2_pkt.o) has no symbols /usr/bin/ranlib: file:
../libssl.a(kssl.o) has no symbols /usr/bin/ranlib: file:
../libssl.a(t1_trce.o) has no symbols /usr/bin/ranlib: file:
../libssl.a(ssl_utst.o) has no symbols

For Macosx-64: ar: creating archive ../libcrypto.a /usr/bin/ranlib: file:
../libcrypto.a(ebcdic.o) has no symbols /usr/bin/ranlib: file:
../libcrypto.a(fips_ers.o) has no symbols /usr/bin/ranlib: file:
../libcrypto.a(fips_ers.o) has no symbols /usr/bin/ranlib: file:
../libcrypto.a(ecp_nistp224.o) has no symbols /usr/bin/ranlib: file:
../libcrypto.a(ecp_nistp256.o) has no symbols /usr/bin/ranlib: file:
../libcrypto.a(ecp_nistp521.o) has no symbols /usr/bin/ranlib: file:
../libcrypto.a(ecp_nistputil.o) has no symbols /usr/bin/ranlib: file:
../libcrypto.a(rand_win.o) has no symbols /usr/bin/ranlib: file:
../libcrypto.a(rand_os2.o) has no symbols /usr/bin/ranlib: file:
../libcrypto.a(rand_nw.o) has no symbols /usr/bin/ranlib: file:
../libcrypto.a(e_rc5.o) has no symbols /usr/bin/ranlib: file:
../libcrypto.a(m_md2.o) has no symbols /usr/bin/ranlib: file:
../libcrypto.a(v3_asid.o) has no symbols /usr/bin/ranlib: file:
../libcrypto.a(v3_addr.o) has no symbols

ar: creating archive ../libssl.a /usr/bin/ranlib: file:
../libssl.a(s2_srvr.o) has no symbols /usr/bin/ranlib: file:
../libssl.a(s2_clnt.o) has no symbols /usr/bin/ranlib: file:
../libssl.a(s2_lib.o) has no symbols /usr/bin/ranlib: file:
../libssl.a(s2_enc.o) has no symbols /usr/bin/ranlib: file:
../libssl.a(s2_pkt.o) has no symbols /usr/bin/ranlib: file:
../libssl.a(kssl.o) has no symbols /usr/bin/ranlib: file:
../libssl.a(t1_trce.o) has no symbols /usr/bin/ranlib: file:
../libssl.a(ssl_utst.o) has no symbols

I get these warnings with the default options set in the configure file. Is
there a way to get rid of these warnings other than suppressing them? It
would be a great help if you can provide any workaround to resolve the
warnings.. thank you.


Fwd: Getting make warning for Openssl 1.0.2x on MacOS

2022-07-06 Thread Sushant
While building OpenSSL 1.0.2x library I am configuring with following
options on macos: For Macosx-32: ./Configure
--openssldir=/path/to/openssl/dir shared -mtune=generic -march=i386 -m32
-fPIC darwin-i386-cc no-asm -D_GNU_SOURCE no-rc5 enable-tlsext no-ssl2

For Macosx-64: ./Configure --openssldir=/path/to/openssl/dir shared
-mtune=generic -fPIC darwin64-x86_64-cc -D_GNU_SOURCE no-rc5 enable-tlsext
no-ssl2

I am receiving following warnings while make: Macosx-32:
/var/folders/3g/fbblr5cx24z71164xr63lmw8gq/T//cc85SWQQ.s:1873:11:
warning: section "__textcoal_nt" is deprecated .section
__TEXT,__textcoal_nt,coalesced,pure_instructions ^ ~
/var/folders/3g/fbblr5cx24z71164xr63lmw8gq/T//cc85SWQQ.s:1873:11: note:
change section name to "__text" .section
__TEXT,__textcoal_nt,coalesced,pure_instructions ^ ~
/var/folders/3g/fbblr5cx24z71164xr63lmw8gq/T//ccGS4Iaf.s:2462:11:
warning: section "__textcoal_nt" is deprecated .section
__TEXT,__textcoal_nt,coalesced,pure_instructions ^ ~
/var/folders/3g/fbblr5cx24z71164xr63lmw8gq/T//ccGS4Iaf.s:2462:11: note:
change section name to "__text" .section
__TEXT,__textcoal_nt,coalesced,pure_instructions ^ ~

ar: creating archive ../libcrypto.a /usr/bin/ranlib: file:
../libcrypto.a(ebcdic.o) has no symbols /usr/bin/ranlib: file:
../libcrypto.a(fips_ers.o) has no symbols

ar: creating archive ../libssl.a /usr/bin/ranlib: file:
../libssl.a(s2_srvr.o) has no symbols /usr/bin/ranlib: file:
../libssl.a(s2_clnt.o) has no symbols /usr/bin/ranlib: file:
../libssl.a(s2_lib.o) has no symbols /usr/bin/ranlib: file:
../libssl.a(s2_enc.o) has no symbols /usr/bin/ranlib: file:
../libssl.a(s2_pkt.o) has no symbols /usr/bin/ranlib: file:
../libssl.a(kssl.o) has no symbols /usr/bin/ranlib: file:
../libssl.a(t1_trce.o) has no symbols /usr/bin/ranlib: file:
../libssl.a(ssl_utst.o) has no symbols

For Macosx-64: ar: creating archive ../libcrypto.a /usr/bin/ranlib: file:
../libcrypto.a(ebcdic.o) has no symbols /usr/bin/ranlib: file:
../libcrypto.a(fips_ers.o) has no symbols /usr/bin/ranlib: file:
../libcrypto.a(fips_ers.o) has no symbols /usr/bin/ranlib: file:
../libcrypto.a(ecp_nistp224.o) has no symbols /usr/bin/ranlib: file:
../libcrypto.a(ecp_nistp256.o) has no symbols /usr/bin/ranlib: file:
../libcrypto.a(ecp_nistp521.o) has no symbols /usr/bin/ranlib: file:
../libcrypto.a(ecp_nistputil.o) has no symbols /usr/bin/ranlib: file:
../libcrypto.a(rand_win.o) has no symbols /usr/bin/ranlib: file:
../libcrypto.a(rand_os2.o) has no symbols /usr/bin/ranlib: file:
../libcrypto.a(rand_nw.o) has no symbols /usr/bin/ranlib: file:
../libcrypto.a(e_rc5.o) has no symbols /usr/bin/ranlib: file:
../libcrypto.a(m_md2.o) has no symbols /usr/bin/ranlib: file:
../libcrypto.a(v3_asid.o) has no symbols /usr/bin/ranlib: file:
../libcrypto.a(v3_addr.o) has no symbols

ar: creating archive ../libssl.a /usr/bin/ranlib: file:
../libssl.a(s2_srvr.o) has no symbols /usr/bin/ranlib: file:
../libssl.a(s2_clnt.o) has no symbols /usr/bin/ranlib: file:
../libssl.a(s2_lib.o) has no symbols /usr/bin/ranlib: file:
../libssl.a(s2_enc.o) has no symbols /usr/bin/ranlib: file:
../libssl.a(s2_pkt.o) has no symbols /usr/bin/ranlib: file:
../libssl.a(kssl.o) has no symbols /usr/bin/ranlib: file:
../libssl.a(t1_trce.o) has no symbols /usr/bin/ranlib: file:
../libssl.a(ssl_utst.o) has no symbols

I get these warnings with the default options set in the configure file. Is
there a way to get rid of these warnings other than suppressing them? It
would be a great help if you can provide any workaround to resolve the
warnings.. thank you.


Can't use an undefined value as filehandle reference at tools/c_rehash line 176

2022-08-10 Thread Sushant
Hello,

I am trying to build openssl 1.0.2zf for solaris sparc system. I am
receiving following error while make for both 32 and 64 bit platform.
However, for Solarisx86 it is not the issue.

./Configure --openssldir=solaris-sparc-32/int-src/stage_openssl shared
solaris-sparcv9-gcc no-asm -static-libgcc -fPIC -D_GNU_SOURCE -Wa, no-idea
no-mdc2 enable-tlsext no-rc5 no-ssl2

make depend

+ make
ar: creating ../libcrypto.a
ech_ossl.c: In function `ecdh_compute_key':
ech_ossl.c:119: warning: `buflen' might be used uninitialized in this
function
x509_vfy.c: In function `check_cert':
x509_vfy.c:1001: warning: `ok' might be used uninitialized in this function
ar: creating ../libssl.a
Can't use an undefined value as filehandle reference at tools/c_rehash line
176.
make[2]: *** [rehash.time] Error 255
make[1]: *** [openssl] Error 2
make: *** [build_apps] Error 1

Please can you provide any work around for the same

Best regards.