openappsec / openappsec

open-appsec is a machine learning security engine that preemptively and automatically prevents threats against Web Application & APIs. This repo include the main code and logic.
https://openappsec.io
Apache License 2.0
855 stars 63 forks source link

Build Errors in environment.cc #143

Closed brettsh closed 1 month ago

brettsh commented 4 months ago

I'm currently attempting to build open-appsec on an Amazon L2 (aarch64) instance using these commands:

git clone https://github.com/openappsec/openappsec.git cd openappsec/ cmake -DCMAKE_INSTALL_PREFIX=build_out . make install make package

I've installed all the external dependencies. In CMakeLists.txt, I've modified the library path so the build is looking for aarch64 libraries, not x86_64.

However, when I run "make install" I get errors like these:

/opt/openappsec/core/environment/environment.cc: In member function ‘virtual std::__cxx11::string Environment::Impl::getCurrentHeaders()’:
/opt/openappsec/core/environment/environment.cc:254:52: error: expected unqualified-id before ‘&’ token
         } catch (const boost::uuids::entropy_error &e) {
                                                    ^
/opt/openappsec/core/environment/environment.cc:254:52: error: expected ‘)’ before ‘&’ token
/opt/openappsec/core/environment/environment.cc:254:52: error: expected ‘{’ before ‘&’ token
/opt/openappsec/core/environment/environment.cc:254:53: error: ‘e’ was not declared in this scope
         } catch (const boost::uuids::entropy_error &e) {
                                                 ^

I gather Amazon Linux and aarch64 aren't currently supported. However, does anyone have any suggestions how I might fix these errors? Thanks.

WrightNed commented 3 months ago

Hi @brettsh,

This looks like a Boost compatibility issue. Can you share which version of Boost you are using?

Thanks

orianelou commented 1 month ago

Hi @brettsh, closing this ticket as we didn't get a response, feel free to reopen once you can share the details