litespeedtech / litespeedtech/openlitespeed

OpenLiteSpeed 1.7.14 Build error(s) on FreeBSD 13/12.2

Open
#294 14 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.5k
Forks
233
Avg merge
2d 19h
Merged PRs (30d)
5

Description

Hello there,
I've a personal web server box running FreeBSD 13. I'm getting errors during build.sh, here are the details;

**Steps I followed;**
1- fetch https://openlitespeed.org/packages/openlitespeed-1.7.14.src.tgz
2- tar zxf openlitespeed-1.7.14.src.tgz
3- cd openlitespeed-1.7.14
4- ./build.sh
(tried both openlitespeed-1.7.14.src.tgz and the latest master.zip file on Github here, both failed)

during the build, the errors I get:

**Error 1:**

[ 81%] Building CXX object ssl/test/CMakeFiles/handshaker.dir/handshaker.cc.o
[ 82%] Building CXX object ssl/test/CMakeFiles/bssl_shim.dir/test_config.cc.o
[ 82%] Building CXX object crypto/CMakeFiles/crypto_test.dir/fipsmodule/aes/aes_test.cc.o
/root/third-party/src/boringssl/ssl/test/handshaker.cc:96:18: error: use of undeclared identifier 'kControlMsgWantRead'
char msg = kControlMsgWantRead;
^
/root/third-party/src/boringssl/ssl/test/handshaker.cc:99:18: error: use of undeclared identifier 'kControlMsgWriteCompleted'
msg != kControlMsgWriteCompleted) {
^
/root/third-party/src/boringssl/ssl/test/handshaker.cc:127:14: error: use of undeclared identifier 'kControlMsgDone'
char msg = kControlMsgDone;
^
/root/third-party/src/boringssl/ssl/test/handshaker.cc:191:16: error: use of undeclared identifier 'kControlMsgError'
char msg = kControlMsgError;
^
/root/third-party/src/boringssl/ssl/test/handshaker.cc:205:14: error: use of undeclared identifier 'kControlMsgDone'
char msg = kControlMsgDone;
^
/root/third-party/src/boringssl/ssl/test/handshaker.cc:216:20: error: use of undeclared identifier 'kControlMsgError'
const char msg = kControlMsgError;
^
/root/third-party/src/boringssl/ssl/test/handshaker.cc:217:19: error: use of undeclared identifier 'kFdControl'
if (write_eintr(kFdControl, &msg, 1) != 1) {
^
/root/third-party/src/boringssl/ssl/test/handshaker.cc:248:28: error: use of undeclared identifier 'kFdControl'
ssize_t len = read_eintr(kFdControl, request.data(), request.size());
^
/root/third-party/src/boringssl/ssl/test/handshaker.cc:256:49: error: use of undeclared identifier 'kFdControl'
if (!GenerateHandshakeHint(config, request, kFdControl)) {
^
/root/third-party/src/boringssl/ssl/test/handshaker.cc:260:29: error: use of undeclared identifier 'kFdProxyToHandshaker'
if (!Handshaker(config, kFdProxyToHandshaker, kFdHandshakerToProxy,
^
/root/third-party/src/boringssl/ssl/test/handshaker.cc:260:51: error: use of undeclared identifier 'kFdHandshakerToProxy'
if (!Handshaker(config, kFdProxyToHandshaker, kFdHandshakerToProxy,
^
/root/third-party/src/boringssl/ssl/test/handshaker.cc:261:30: error: use of undeclared identifier 'kFdControl'
request, kFdControl)) {
^
12 errors generated.
--- ssl/test/CMakeFiles/handshaker.dir/handshaker.cc.o ---
*** [ssl/test/CMakeFiles/handshaker.dir/handshaker.cc.o] Error code 1

make[2]: stopped in /root/third-party/src/boringssl/build
1 error

make[2]: stopped in /root/third-party/src/boringssl/build
--- ssl/test/CMakeFiles/handshaker.dir/all ---
*** [ssl/test/CMakeFiles/handshaker.dir/all] Error code 2

make[1]: stopped in /root/third-party/src/boringssl/build
--- crypto/CMakeFiles/crypto_test.dir/all ---
*** [crypto/CMakeFiles/crypto_test.dir/all] Error code 6

make[1]: stopped in /root/third-party/src/boringssl/build
--- ssl/test/CMakeFiles/bssl_shim.dir/all ---
*** [ssl/test/CMakeFiles/bssl_shim.dir/all] Error code 6

make[1]: stopped in /root/third-party/src/boringssl/build

**Error 2:**

/usr/local/bin/ld: /root/third-party/src/lmdb/libraries/liblmdb/mdb_stat.c:237: undefined reference to `mdb_dbi_open'
/usr/local/bin/ld: /root/third-party/src/lmdb/libraries/liblmdb/mdb_stat.c:242: undefined reference to `mdb_stat'
/usr/local/bin/ld: /root/third-party/src/lmdb/libraries/liblmdb/mdb_stat.c:248: undefined reference to `mdb_dbi_close'
/usr/local/bin/ld: /root/third-party/src/lmdb/libraries/liblmdb/mdb_stat.c:250: undefined reference to `mdb_cursor_close'
/usr/local/bin/ld: /root/third-party/src/lmdb/libraries/liblmdb/mdb_stat.c:226: undefined reference to `mdb_strerror'
/usr/local/bin/ld: /root/third-party/src/lmdb/libraries/liblmdb/mdb_stat.c:244: undefined reference to `mdb_strerror'
collect2: error: ld returned 1 exit status
*** Error code 1

Stop.
make: stopped in /root/third-party/src/lmdb/libraries/liblmdb
Cloning into 'curl'...

**Error 3:**
make: "/root/third-party/src/ModSecurity/Makefile" line 3441: Need an operator
make: "/root/third-party/src/ModSecurity/Makefile" line 3443: Need an operator
make: "/root/third-party/src/ModSecurity/Makefile" line 3445: Need an operator
make: "/root/third-party/src/ModSecurity/Makefile" line 3449: Need an operator
make: "/root/third-party/src/ModSecurity/Makefile" line 3453: Need an operator
make: "/root/third-party/src/ModSecurity/Makefile" line 3455: Need an operator
make: "/root/third-party/src/ModSecurity/Makefile" line 3468: Need an operator
make: "/root/third-party/src/ModSecurity/Makefile" line 3470: Error in archive specification: ""
make: "/root/third-party/src/ModSecurity/Makefile" line 3475: warning: duplicate script for target "ifeq" ignored
make: "/root/third-party/src/ModSecurity/Makefile" line 3452: warning: using previous script for "ifeq" defined here
make: "/root/third-party/src/ModSecurity/Makefile" line 3476: Need an operator
make: "/root/third-party/src/ModSecurity/Makefile" line 3477: warning: duplicate script for target "ifeq" ignored
make: "/root/third-party/src/ModSecurity/Makefile" line 3452: warning: using previous script for "ifeq" defined here
make: "/root/third-party/src/ModSecurity/Makefile" line 3477: warning: duplicate script for target "(no,yes)" ignored
make: "/root/third-party/src/ModSecurity/Makefile" line 3452: warning: using previous script for "(no,yes)" defined here
make: "/root/third-party/src/ModSecurity/Makefile" line 3478: Need an operator
make: "/root/third-party/src/ModSecurity/Makefile" line 3480: Need an operator
make: "/root/third-party/src/ModSecurity/Makefile" line 3481: Need an operator
make: "/root/third-party/src/ModSecurity/Makefile" line 3483: Need an operator
make: Fatal errors encountered -- cannot continue
make: stopped in /root/third-party/src/ModSecurity
cp: src/.libs/libmodsecurity.a: No such file or directory
liblsquic
Need to git download the submodule ...
Cloning into 'lsquic'...

**Error 4 (Final):**

[ 78%] Built target ssi
[ 78%] Building CXX object src/sslpp/CMakeFiles/sslpp.dir/sslsesscache.cpp.o
In file included from /root/openlitespeed-master/src/sslpp/sslocspstapling.cpp:46:
/root/openlitespeed-master/src/sslpp/ocsp/ocsp.h:153:1: error: unknown type name 'DECLARE_ASN1_SET_OF'
DECLARE_ASN1_SET_OF(OCSP_ONEREQ)
^
/root/openlitespeed-master/src/sslpp/ocsp/ocsp.h:153:33: error: expected ';' after top level declarator
DECLARE_ASN1_SET_OF(OCSP_ONEREQ)
^
;
/root/openlitespeed-master/src/sslpp/ocsp/ocsp.h:287:1: error: unknown type name 'DECLARE_ASN1_SET_OF'
DECLARE_ASN1_SET_OF(OCSP_SINGLERESP)
^
/root/openlitespeed-master/src/sslpp/ocsp/ocsp.h:287:37: error: expected ';' after top level declarator
DECLARE_ASN1_SET_OF(OCSP_SINGLERESP)
^
;
4 errors generated.
--- src/sslpp/CMakeFiles/sslpp.dir/sslocspstapling.cpp.o ---
*** [src/sslpp/CMakeFiles/sslpp.dir/sslocspstapling.cpp.o] Error code 1

make[2]: stopped in /root/openlitespeed-master/build
*** [all] Error code 6

make: stopped in /root/openlitespeed-master/build
1 error

make: stopped in /root/openlitespeed-master/build
cp: build/src/openlitespeed: No such file or directory
cp: build/src/modules/modreqparser/*.so: No such file or directory
cp: build/src/modules/modinspector/*.so: No such file or directory
cp: build/src/modules/uploadprogress/*.so: No such file or directory
Start to pack files.
Building finished, please run ./install.sh for installation.
You may want to update the ols.conf to change the settings before installation.
Enjoy.

So these are the errors I get during build. By the way, I tried to re-format my OS, install the *necessary* packages like;

pkg install png jpeg-turbo freetype2 cclient icu libxslt libzip libiconv libsodium libgd re2c bison ruby ImageMagick7 libmaxminddb rcs expat udns wget curl lang/gcc cmake git libtool autoconf automake go patch python gmake libxml2 modsecurity3-3.0.5 perl5-5.32.1_1 pcre pcre2

..thinking got the errors above, due to lack of them, but nothing changed. Any idea, help or suggestion would be much appreciated!

Regards.

```
root@test:~/# uname -a
FreeBSD test 13.0-RELEASE FreeBSD 13.0-RELEASE #0
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce ./build.sh from the openlitespeed-1.7.14 or master checkout on FreeBSD 13, then inspect the reported BoringSSL, LMDB, ModSecurity, and src/sslpp/ocsp/ocsp.h failures. Trace each failure to its build step and dependency, using the listed source paths and generated Makefiles as entry points. Done means a clean build completes without the reported errors or missing output files.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
backend, build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.