Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

install_linux_deps issue on antergos/arch linux #7

Closed
sam0x17 opened this issue May 28, 2018 · 8 comments
Closed

install_linux_deps issue on antergos/arch linux #7

sam0x17 opened this issue May 28, 2018 · 8 comments
Labels

Comments

@sam0x17
Copy link
Owner

sam0x17 commented May 28, 2018

...
src/mongoc/mongoc-rand.c: In function ‘_mongoc_pseudo_rand_bytes’:
src/mongoc/mongoc-rand.c:33:5: warning: ‘RAND_pseudo_bytes’ is deprecated [-Wdeprecated-declarations]
     return RAND_pseudo_bytes(buf, num);
     ^~~~~~
In file included from /usr/include/openssl/e_os2.h:13,
                 from /usr/include/openssl/ossl_typ.h:19,
                 from /usr/include/openssl/rand.h:14,
                 from src/mongoc/mongoc-rand.c:26:
/usr/include/openssl/rand.h:47:1: note: declared here
 DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num))
 ^~~~~~~~~~~~~~~~~~
  CC       src/mongoc/libmongoc_priv_la-mongoc-sasl.lo
  CC       src/mongoc/libmongoc_1_0_la-mongoc-array.lo
src/mongoc/mongoc-stream-tls.c:100:1: error: variable ‘gMongocStreamTlsRawMethods’ has initializer but incomplete type
 static BIO_METHOD gMongocStreamTlsRawMethods = {
 ^~~~~~
src/mongoc/mongoc-stream-tls.c:101:4: warning: excess elements in struct initializer
    BIO_TYPE_FILTER,
    ^~~~~~~~~~~~~~~
src/mongoc/mongoc-stream-tls.c:101:4: note: (near initialization for ‘gMongocStreamTlsRawMethods’)
src/mongoc/mongoc-stream-tls.c:102:4: warning: excess elements in struct initializer
    "mongoc-stream-tls-glue",
    ^~~~~~~~~~~~~~~~~~~~~~~~
src/mongoc/mongoc-stream-tls.c:102:4: note: (near initialization for ‘gMongocStreamTlsRawMethods’)
src/mongoc/mongoc-stream-tls.c:103:4: warning: excess elements in struct initializer
    _mongoc_stream_tls_bio_write,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/mongoc/mongoc-stream-tls.c:103:4: note: (near initialization for ‘gMongocStreamTlsRawMethods’)
src/mongoc/mongoc-stream-tls.c:104:4: warning: excess elements in struct initializer
    _mongoc_stream_tls_bio_read,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/mongoc/mongoc-stream-tls.c:104:4: note: (near initialization for ‘gMongocStreamTlsRawMethods’)
src/mongoc/mongoc-stream-tls.c:105:4: warning: excess elements in struct initializer
    _mongoc_stream_tls_bio_puts,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/mongoc/mongoc-stream-tls.c:105:4: note: (near initialization for ‘gMongocStreamTlsRawMethods’)
src/mongoc/mongoc-stream-tls.c:106:4: warning: excess elements in struct initializer
    _mongoc_stream_tls_bio_gets,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/mongoc/mongoc-stream-tls.c:106:4: note: (near initialization for ‘gMongocStreamTlsRawMethods’)
src/mongoc/mongoc-stream-tls.c:107:4: warning: excess elements in struct initializer
    _mongoc_stream_tls_bio_ctrl,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/mongoc/mongoc-stream-tls.c:107:4: note: (near initialization for ‘gMongocStreamTlsRawMethods’)
src/mongoc/mongoc-stream-tls.c:108:4: warning: excess elements in struct initializer
    _mongoc_stream_tls_bio_create,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/mongoc/mongoc-stream-tls.c:108:4: note: (near initialization for ‘gMongocStreamTlsRawMethods’)
src/mongoc/mongoc-stream-tls.c:109:4: warning: excess elements in struct initializer
    _mongoc_stream_tls_bio_destroy
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/mongoc/mongoc-stream-tls.c:109:4: note: (near initialization for ‘gMongocStreamTlsRawMethods’)
src/mongoc/mongoc-stream-tls.c: In function ‘_mongoc_stream_tls_bio_create’:
src/mongoc/mongoc-stream-tls.c:134:5: error: dereferencing pointer to incomplete type ‘BIO’ {aka ‘struct bio_st’}
    b->init = 1;
     ^~
src/mongoc/mongoc-stream-tls.c: At top level:
src/mongoc/mongoc-stream-tls.c:100:19: error: storage size of ‘gMongocStreamTlsRawMethods’ isn’t known
 static BIO_METHOD gMongocStreamTlsRawMethods = {
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:2828: src/mongoc/libmongoc_priv_la-mongoc-stream-tls.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
src/mongoc/mongoc-ssl.c: In function ‘_mongoc_ssl_check_cert’:
src/mongoc/mongoc-ssl.c:253:16: warning: ‘ASN1_STRING_data’ is deprecated [-Wdeprecated-declarations]
                check = (char *)ASN1_STRING_data (name->d.ia5);
                ^~~~~
In file included from /usr/include/openssl/bn.h:31,
                 from /usr/include/openssl/asn1.h:24,
                 from /usr/include/openssl/objects.h:916,
                 from /usr/include/openssl/evp.h:27,
                 from /usr/include/openssl/x509.h:23,
                 from /usr/include/openssl/ssl.h:50,
                 from src/mongoc/mongoc-ssl.c:24:
/usr/include/openssl/asn1.h:553:1: note: declared here
 DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x))
 ^~~~~~~~~~~~~~~~~~
At top level:
src/mongoc/mongoc-ssl.c:515:1: warning: ‘_mongoc_ssl_thread_locking_callback’ defined but not used [-Wunused-function]
 _mongoc_ssl_thread_locking_callback (int         mode,
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/mongoc/mongoc-ssl.c:504:1: warning: ‘_mongoc_ssl_thread_id_callback’ defined but not used [-Wunused-function]
 _mongoc_ssl_thread_id_callback (void)
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: Leaving directory '/home/sam/Desktop/workspace/crystal-mongo-orm/lib/mongo-c-driver-1.1.0'
make: *** [Makefile:3727: all-recursive] Error 1
@sam0x17 sam0x17 added the bug label May 28, 2018
@sam0x17
Copy link
Owner Author

sam0x17 commented May 28, 2018

never mind, forgot to install some dependencies

@sam0x17 sam0x17 closed this as completed May 28, 2018
@ravindrangnanasekaran
Copy link

Do we have a fix for this issue. currently yocto build fails due to missing dependency.

@sam0x17
Copy link
Owner Author

sam0x17 commented Nov 9, 2018

Yeah the script no longer works. Feel free to submit a pull request if you can find a way to fix it. I use Ubuntu and they have since added the required packages to the main repos so the script is no longer necessary on my system.

@sam0x17 sam0x17 reopened this Nov 9, 2018
@sam0x17 sam0x17 closed this as completed Nov 30, 2018
@joaofl
Copy link

joaofl commented Apr 5, 2020

@sam0x17 , I've bumped into the same problem while trying to update the openssl version (non related problem).
Do you remember how you did solve this issue? What dependencies were missing there? Thanks in advance.

@sancharbanerjee
Copy link

I faced the same problem when upgrading openssl version to 1.1.1g in my yocto build environment. @sam0x17 can you provide the solution here?

@grhm
Copy link

grhm commented Nov 16, 2020

I've just had the same error, but managed to fix it by adding the following to my local.conf

PREFERRED_VERSION_openssl-native = "1.0.2j"

Thought I'd add this comment incase anyone else was having similar issues. (@sancharbanerjee ?)

@sancharbanerjee
Copy link

It isn't this simple for me. My entire build env is based on OE2.2 and I require Openssl 1.1.x... Upgradation of Openssl standalone is difficult due to chain dependencies.. I may be ending up upgrading the entire env to OE3.1 if I don't find any other solution.. @grhm

@sam0x17
Copy link
Owner Author

sam0x17 commented Nov 18, 2020

People struggling with this keep in mind the upstream dependencies for mongo_orm are, like, never updated, so you might have to use Docker to get this working properly. Just try to emulate how things were in 2018/2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants