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

Problem with installation on raspberry pi· B+ with RASPBIAN #525

Open
plolsuper opened this issue Jan 11, 2019 · 4 comments
Open

Problem with installation on raspberry pi· B+ with RASPBIAN #525

plolsuper opened this issue Jan 11, 2019 · 4 comments

Comments

@plolsuper
Copy link

Hello i was installing c9sdk in my raspberry and I get this error, I know that the problem is with the Librevemt library but I do not know how to solve it could someone help me?

.deps/bufferevent_openssl.Tpo -c bufferevent_openssl.c -o bufferevent_openssl.o
bufferevent_openssl.c: In function ‘bio_bufferevent_new’:
bufferevent_openssl.c:106:3: error: dereferencing pointer to incomplete type ‘BIO {aka struct bio_st}’
b->init = 0;
^~
bufferevent_openssl.c: At top level:
bufferevent_openssl.c:228:1: error: variable ‘methods_bufferevent’ has initializer but incomplete type
static BIO_METHOD methods_bufferevent = {
^~~~~~
bufferevent_openssl.c:79:27: warning: excess elements in struct initializer
#define BIO_TYPE_LIBEVENT 57
^
bufferevent_openssl.c:229:2: note: in expansion of macro ‘BIO_TYPE_LIBEVENT’
BIO_TYPE_LIBEVENT, "bufferevent",
^~~~~~~~~~~~~~~~~
bufferevent_openssl.c:79:27: note: (near initialization for ‘methods_bufferevent’)
#define BIO_TYPE_LIBEVENT 57
^
bufferevent_openssl.c:229:2: note: in expansion of macro ‘BIO_TYPE_LIBEVENT’
BIO_TYPE_LIBEVENT, "bufferevent",
^~~~~~~~~~~~~~~~~
bufferevent_openssl.c:229:21: warning: excess elements in struct initializer
BIO_TYPE_LIBEVENT, "bufferevent",
^~~~~~~~~~~~~
bufferevent_openssl.c:229:21: note: (near initialization for ‘methods_bufferevent’)
bufferevent_openssl.c:230:2: warning: excess elements in struct initializer
bio_bufferevent_write,
^~~~~~~~~~~~~~~~~~~~~
bufferevent_openssl.c:230:2: note: (near initialization for ‘methods_bufferevent’)
bufferevent_openssl.c:231:2: warning: excess elements in struct initializer
bio_bufferevent_read,
^~~~~~~~~~~~~~~~~~~~
bufferevent_openssl.c:231:2: note: (near initialization for ‘methods_bufferevent’)
bufferevent_openssl.c:232:2: warning: excess elements in struct initializer
bio_bufferevent_puts,
^~~~~~~~~~~~~~~~~~~~
bufferevent_openssl.c:232:2: note: (near initialization for ‘methods_bufferevent’)
bufferevent_openssl.c:233:2: warning: excess elements in struct initializer
NULL /* bio_bufferevent_gets /,
^~~~
bufferevent_openssl.c:233:2: note: (near initialization for ‘methods_bufferevent’)
bufferevent_openssl.c:234:2: warning: excess elements in struct initializer
bio_bufferevent_ctrl,
^~~~~~~~~~~~~~~~~~~~
bufferevent_openssl.c:234:2: note: (near initialization for ‘methods_bufferevent’)
bufferevent_openssl.c:235:2: warning: excess elements in struct initializer
bio_bufferevent_new,
^~~~~~~~~~~~~~~~~~~
bufferevent_openssl.c:235:2: note: (near initialization for ‘methods_bufferevent’)
bufferevent_openssl.c:236:2: warning: excess elements in struct initializer
bio_bufferevent_free,
^~~~~~~~~~~~~~~~~~~~
bufferevent_openssl.c:236:2: note: (near initialization for ‘methods_bufferevent’)
bufferevent_openssl.c:237:2: warning: excess elements in struct initializer
NULL /
callback_ctrl */,
^~~~
bufferevent_openssl.c:237:2: note: (near initialization for ‘methods_bufferevent’)
bufferevent_openssl.c:228:19: error: storage size of ‘methods_bufferevent’ isn’t known
static BIO_METHOD methods_bufferevent = {
^~~~~~~~~~~~~~~~~~~
Makefile:800: fallo en las instrucciones para el objetivo 'bufferevent_openssl.lo'
make[2]: *** [bufferevent_openssl.lo] Error 1
make[2]: se sale del directorio '/home/pi/.c9/libevent-2.0.22-stable'
Makefile:864: fallo en las instrucciones para el objetivo 'all-recursive'
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio '/home/pi/.c9/libevent-2.0.22-stable'
Makefile:595: fallo en las instrucciones para el objetivo 'all'
make: *** [all] Error 2

real 2m8,714s
user 1m17,772s
sys 0m13,677s

@TheNetStriker
Copy link

I have the same error on my Rasberry Pi 3. I think this is related to this issue: libevent/libevent#402

It seams as for newer openssl versions 1.1.x there is also a newer version of libevent required. Did anyone find a solution for this problem yet?

@TheNetStriker
Copy link

I've managed to find a workarround for this problem. I've downloaded the cloud9 install repository and modified the install.sh and replaced the url and the filenames of libevent to the version "libevent-2.1.8-stable". In the core library I've made a copy of the install-sdk.sh (the orginal file gets overwritten at start) and modified the line where the install.sh is called from Github so that instead my modified local install.sh file is executed. That fixed the error in the install script.

After that I also discovered a problem with pylint. It seams that the latest update from the pylint-flask repository is not yet published, so I've changed it manually. Here is the GitHub issue for this problem: jschaf/pylint-flask#8

@plolsuper
Copy link
Author

English: Hi, Thanks for your input, con "install.sh" you mean "install-sdk.sh" right? because I've been searching and I can't find that file, yet I haven't found the line in the file to modify the url, if you can help me. Thank

@TheNetStriker
Copy link

The install.sh file is in the "install" repository of cloud9. Here is the link: https://github.com/c9/install

You have to clone this repository, modifiy the install.sh and then create a copy of the install-sdk.sh which points to this local version of the install.sh.

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

No branches or pull requests

2 participants