Error while buding wazuh-server

105 views
Skip to first unread message

Dai Nguyen

unread,
Jul 24, 2023, 6:05:00 AM7/24/23
to Wazuh mailing list
Hi,
I modified generate_debian_package.sh file to build wazuh debian packages without using docker. After that, I built wazuh-server and I got this error:
ERROR: Command errored out with exit status 1:
     command: /var/ossec/framework/python/bin/python3.9 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rxixryqj/envparse_1368bb64c57e4efdbbcb9a3fadbd637f/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rxixryqj/envparse_1368bb64c57e4efdbbcb9a3fadbd637f/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-_nhytg_5
         cwd: /tmp/pip-install-rxixryqj/envparse_1368bb64c57e4efdbbcb9a3fadbd637f/
    Complete output (11 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/var/ossec/framework/python/lib/python3.9/site-packages/setuptools/__init__.py", line 18, in <module>
        from setuptools.dist import Distribution
      File "/var/ossec/framework/python/lib/python3.9/site-packages/setuptools/dist.py", line 38, in <module>
        from setuptools import windows_support
      File "/var/ossec/framework/python/lib/python3.9/site-packages/setuptools/windows_support.py", line 2, in <module>
        import ctypes
      File "/var/ossec/framework/python/lib/python3.9/ctypes/__init__.py", line 8, in <module>
        from _ctypes import Union, Structure, Array
    ImportError: /var/ossec/framework/python/lib/python3.9/lib-dynload/_ctypes.cpython-39-x86_64-linux-gnu.so: undefined symbol: ffi_prep_cif_var
    ----------------------------------------
WARNING: Discarding file:///home/wazuh/dai/test-version/wazuh-external-dev/wazuh/src/external/cpython/Dependencies/simple/envparse/envparse-0.2.0.tar.gz (from file:///home/wazuh/dai/test-version/wazuh-external-dev/wazuh/src/external/cpython/Dependencies/simple/envparse/index.html). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement envparse==0.2.0 (from versions: 0.2.0)
ERROR: No matching distribution found for envparse==0.2.0
make: *** [Makefile:2135: install_dependencies] Error 1


Is it because I installed dependency packages to build wazuh debian package and these dependencies are conflict with the dependencies of buding wazuh-server?

How to solve this problem? I asked about this before and followed the instructions but I can not solve this. 
My english is not good, so if you don't understand what I mean, please let me know!!
Thank you!

Anthony Faruna

unread,
Jul 24, 2023, 6:35:58 AM7/24/23
to Wazuh mailing list
Hello Dai

Thank you for using Wazuh 

Please provide more details about your environment and the specific versions of the packages you are using to enable me assist with a possible solution

Best Regards

Dai Nguyen

unread,
Jul 24, 2023, 9:59:25 PM7/24/23
to Wazuh mailing list
Hi,
I'm using wazuh version 4.3.10 and my envinronment is Ubuntu 20.04.2 LTS. 
These are the packages that I installed to build debian package:  
curl gcc make sudo wget expect gnupg perl build-essential cdbs devscripts equivs automake autoconf libtool libaudit-dev selinux-basics procps gawk libsigsegv2  libgtk2.0-dev libgtk-3-dev libgtk-3-0
And these are the packages that I installed to build wazuh-server:
python gcc g++ make libc6-dev curl policycoreutils automake autoconf libtool libssl-dev

Vào lúc 17:35:58 UTC+7 ngày Thứ Hai, 24 tháng 7, 2023, Anthony Faruna đã viết:

Anthony Faruna

unread,
Jul 26, 2023, 5:20:46 PM7/26/23
to Wazuh mailing list
Hello Dai

After analyzing the error message, it seems that there is a conflict with the dependencies of the 'envparse' package.

The error suggests that there is an undefined symbol related to ffi_prep_cif_var. This could be caused by incompatible versions of the dependencies.

Please can you confirm you have the correct versions of the dependencies installed for both building the Wazuh Debian package and building Wazuh server. 

Also, please verify that the 'envparse' package is installed correctly and that there are no conflicting versions or missing dependencies.

Regards

Dai Nguyen

unread,
Jul 27, 2023, 11:07:26 PM7/27/23
to Wazuh mailing list
Hi,
Here is the version of all dependencies installed for both Wazuh Debian Package and Wazuh Server
Wazuh Debian Package:
dpkg.jpg

Wazuh Server:
sv.jpg

I don't know why I got "python: not installed" because I installed it:
py.jpg
Vào lúc 04:20:46 UTC+7 ngày Thứ Năm, 27 tháng 7, 2023, Anthony Faruna đã viết:
Reply all
Reply to author
Forward
0 new messages