ome / zeroc-ice-ubuntu2004

Ubuntu 20.04 ZeroC Ice Builder
0 stars 2 forks source link

FYI, fails for Ubuntu 22.04. #2

Open dominikl opened 1 year ago

dominikl commented 1 year ago

Tried to do that for Ubuntu 22.04, fails with:

+ ICE_VERSION=3.6.5
+ BUILD=dev
+ TARGET_NAME=ice-3.6.5-dev
+ wget -q https://github.com/zeroc-ice/ice/archive/v3.6.5.tar.gz
+ tar xzf v3.6.5.tar.gz
+ cd ice-3.6.5/cpp
+ make --silent prefix=/opt/ice-3.6.5-dev
making all in config
making all in src
making all in IceUtil
SHA1.cpp: In constructor 'IceUtilInternal::SHA1::Hasher::Hasher()':
SHA1.cpp:103:14: error: 'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
  103 |     SHA1_Init(&_ctx);
      |     ~~~~~~~~~^~~~~~~
In file included from SHA1.cpp:19:
/usr/include/openssl/sha.h:49:27: note: declared here
   49 | OSSL_DEPRECATEDIN_3_0 int SHA1_Init(SHA_CTX *c);
      |                           ^~~~~~~~~
SHA1.cpp: In member function 'void IceUtilInternal::SHA1::Hasher::update(const unsigned char*, size_t)':
SHA1.cpp:118:16: error: 'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
  118 |     SHA1_Update(&_ctx, reinterpret_cast<const void*>(data), length);
      |     ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from SHA1.cpp:19:
/usr/include/openssl/sha.h:50:27: note: declared here
   50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
      |                           ^~~~~~~~~~~
SHA1.cpp: In member function 'void IceUtilInternal::SHA1::Hasher::finalize(std::vector<unsigned char>&)':
SHA1.cpp:137:15: error: 'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
  137 |     SHA1_Final(&md[0], &_ctx);
      |     ~~~~~~~~~~^~~~~~~~~~~~~~~
In file included from SHA1.cpp:19:
/usr/include/openssl/sha.h:51:27: note: declared here
   51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX *c);
      |                           ^~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [../../config/Make.rules:386: SHA1.o] Error 1
make[1]: *** [Makefile:91: IceUtil] Error 2
make: *** [Makefile:51: all] Error 1

Might not be possible to support 22.04.

sbesson commented 1 year ago

Have you seen https://github.com/glencoesoftware/zeroc-ice-ubuntu2204-x86_64 especially this patch?

dominikl commented 1 year ago

Ah, thanks 👍

dominikl commented 1 year ago

Unfortunately it doesn't have the *.whl file (zeroc_ice-3.6.5-cp38-cp38-linux_x86_64.whl). I'll try if I can somehow build it using the Glencoe repository.

sbesson commented 1 year ago

Sorry that was that ZeroC Ice packages. For the Python bindings you might want to use https://github.com/glencoesoftware/zeroc-ice-py-ubuntu2204-x86_64/releases/tag/20221004. Note the wheel is built using the default Python version on this environment i.e. 3.10

jburel commented 1 year ago

https://github.com/glencoesoftware/zeroc-ice-py-ubuntu2204-x86_64 the wheel is in a different repo

dominikl commented 1 year ago

Thanks 👍