Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not build on OpenBSD 7.6 #260

Open
U-9200 opened this issue Jan 24, 2025 · 0 comments
Open

Does not build on OpenBSD 7.6 #260

U-9200 opened this issue Jan 24, 2025 · 0 comments

Comments

@U-9200
Copy link

U-9200 commented Jan 24, 2025

Hi!

I'm referencing and quoting the following issue: #254

When I build cqueues via luarocks-[5.4] install cqueues and make on OpenBSD, it fails to compile:

cc -O2 -std=gnu99 -fPIC -g -Wall -Wextra -Wno-missing-field-initializers -Wno-initializer-overrides -Wno-unused -Wno-dollar-in-identifier-extension -O2 -fPIC -DLUA_COMPAT_APIINTCASTS -I/usr/local/include/lua-5.4 -I"/usr/include" -I"/usr/include" -DCOMPAT53_PREFIX=cqueues -DCQUEUES_VENDOR='"[email protected]"' -DCQUEUES_VERSION=20200726L  -c -o /tmp/luarocks_cqueues-20200726.54-0-5123961/cqueues-rel-20200726/src/5.4/dns.o /tmp/luarocks_cqueues-20200726.54-0-5123961/cqueues-rel-20200726/src/dns.c
cp /tmp/luarocks_cqueues-20200726.54-0-5123961/cqueues-rel-20200726/config.h /tmp/luarocks_cqueues-20200726.54-0-5123961/cqueues-rel-20200726/src/lib/config.h
cc -O2 -std=gnu99 -fPIC -g -Wall -Wextra -Wno-missing-field-initializers -Wno-initializer-overrides -Wno-unused -Wno-dollar-in-identifier-extension -O2 -fPIC -I"/usr/include" -I"/usr/include" -DSOCKET_DEBUG -DHAVE_CONFIG_H -DDNS_RANDOM=arc4random -c -o /tmp/luarocks_cqueues-20200726.54-0-5123961/cqueues-rel-20200726/src/lib/socket.o /tmp/luarocks_cqueues-20200726.54-0-5123961/cqueues-rel-20200726/src/lib/socket.c
/tmp/luarocks_cqueues-20200726.54-0-5123961/cqueues-rel-20200726/src/lib/socket.c:188:12: error: incomplete definition of type 'struct ssl_st'
        return ssl->server != NULL;
               ~~~^
/usr/include/openssl/ossl_typ.h:150:16: note: forward declaration of 'struct ssl_st'
typedef struct ssl_st SSL;
               ^
/tmp/luarocks_cqueues-20200726.54-0-5123961/cqueues-rel-20200726/src/lib/socket.c:2543:19: error: variable has incomplete type 'BIO_METHOD' (aka 'struct bio_method_st')
static BIO_METHOD bio_methods = {
                  ^
/usr/include/openssl/bio.h:283:16: note: forward declaration of 'struct bio_method_st'
typedef struct bio_method_st BIO_METHOD;
               ^
2 errors generated.
gmake: *** [/tmp/luarocks_cqueues-20200726.54-0-5123961/cqueues-rel-20200726/src/lib/GNUmakefile:39: /tmp/luarocks_cqueues-20200726.54-0-5123961/cqueues-rel-20200726/src/lib/socket.o] Fehler 1

Error: Build error: Failed building.

Is there a method to build cqueues properly on OpenBSD?

I have the same problem and am unsure how to solve this?

Can you possibly give an advice?

Thank you in advance :-)

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

No branches or pull requests

1 participant