install error of comedi on rhel9

28 views
Skip to first unread message

A Asraoui

unread,
Jun 16, 2025, 11:35:08 AMJun 16
to Comedi: Linux Control and Measurement Device Interface
hi,
Running into ssl error during the install of comedi and wondering if this is a known problem in rhel9 
thanks!
./autogen.sh
make
make install
make entering dir "/usr/local/comedi'

make -I /usr/local/comedi/comedi -C /lib/modules/..../build M=/usr/local/comedi/comedi \
      INSTALL_MOD_DIR=comedi \
      INSTALL_MOD_PATH="/" modules_install
make[4]: Entering directory '/usr/src/linix-xxxx
  INSTALL //lib/modules/xxxx/comedit/comedi/comedi.ko
  STRIP //lib/modules/xxxx/comedit/comedi/comedi.ko
  SIGN //lib.modules/xxx/comedi/comedi.ko
At main.c:171
-SSL error: Fxxxx:system library: No such file or directory: crypto/bios/bss_file.c:67
-SSL_error:1xxxxx:BIO routines::no such file: crypto:/bio/bss_file.c:75
sign-file: ./certs/signing_key.pem

A Asraoui

unread,
Jun 19, 2025, 4:28:10 PMJun 19
to comed...@googlegroups.com, A Asraoui
Anyone has encountered this in rhel9 ?

Thanks!

--
You received this message because you are subscribed to the Google Groups "Comedi: Linux Control and Measurement Device Interface" group.
To unsubscribe from this group and stop receiving emails from it, send an email to comedi_list...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/comedi_list/be062834-bb02-4706-b726-837dd0c6bffen%40googlegroups.com.

Ian Abbott

unread,
Jun 20, 2025, 7:07:44 AMJun 20
to comed...@googlegroups.com, A Asraoui
I can reproduce it. It's under investigation. I think the eventual
solution will involve using "akmods" to sign the modules.

In the meantime, I have fixed a problem with comedi failing to build for
later versions of Red Hat's 5.14 kernels due to Red Hat back-porting API
changes to the class_create() function from the mainline 6.4 kernel.
This broke Comedi's kernel compatibility wrapper code for this function.

--
-=( Ian Abbott <abb...@mev.co.uk> || MEV Ltd. is a company )=-
-=( registered in England & Wales. Regd. number: 02862268. )=-
-=( Regd. addr.: S11 & 12 Building 67, Europa Business Park, )=-
-=( Bird Hall Lane, STOCKPORT, SK3 0XA, UK. || www.mev.co.uk )=-

A Asraoui

unread,
Jun 20, 2025, 5:32:44 PMJun 20
to Comedi: Linux Control and Measurement Device Interface
thank you Ian for checking on this , when do we get the updated version with the fix ..

cheers,
abde

Ian Abbott

unread,
Jun 24, 2025, 1:49:26 PMJun 24
to comed...@googlegroups.com, A Asraoui
On 20/06/2025 22:32, A Asraoui wrote:
> thank you Ian for checking on this , when do we get the updated version
> with the fix ..

I haven't fixed it yet, but the modules should get installed despite the
SSL signing errors. The kernel should be able to load the modules
unless it is built with the CONFIG_MODULE_SIG_FORCE option, or the
module.sig_enforce kernel command line parameter is set, or secure boot
is enabled.

Note that due to a recently fixed kernel memory corruption bug, be sure
to use the latest sources at the time of this email, or later.

Cheers,
Ian

A Asraoui

unread,
Jun 24, 2025, 5:19:37 PMJun 24
to Comedi: Linux Control and Measurement Device Interface
comedi successfully installed however running into an install issue with comedilib-0.13.0 specifically
at this stage here:
mkdir -p '/usr/local/share/doc/comedilib/html'
/bin/install -c m 644 ./html/acquisitionfunction.html ./html/xxx....
/bin/install can not stat './html/acquisitionfuntions.html' : No such file or directory
...
[Makefile:843: install-html-local] Error 1
are there any requirements for the LD_LIBRARY_PATH settings for this install ?

Thanks!

Ian Abbott

unread,
Jun 25, 2025, 6:42:13 AMJun 25
to comed...@googlegroups.com, A Asraoui
On 24/06/2025 22:19, A Asraoui wrote:
comedi successfully installed however running into an install issue with comedilib-0.13.0 specifically
at this stage here:
mkdir -p '/usr/local/share/doc/comedilib/html'
/bin/install -c m 644 ./html/acquisitionfunction.html ./html/xxx....
/bin/install can not stat './html/acquisitionfuntions.html' : No such file or directory
...
[Makefile:843: install-html-local] Error 1

I think you downloaded the wrong file. The releases on GitHub include a couple of automatically generated files shown as "Source code (zip)" and "Source code (tar.gz)". Those are just snapshots of the git repository corresponding to the release. You do not need those. You need the "comedilib-0.13.0.tar.gz" file which is the "distribution tarball" built from the sources in the git repository. It includes extra files such as the ./configure script, the Makefile.in files, the C sources generated from the YACC/LEX sources, and the pre-built documentation.  There is no need to run the "./autogen.sh" script, because the files it generates already exist.

If you want to keep using the archive you have rather than the distribution tarball, you can configure it with:

  ./configure --disable-doc

to disable installation of the non-existent documentation files. You do not need that option if using the distribution tarball, unless you want to skip installation of the documentation.

are there any requirements for the LD_LIBRARY_PATH settings for this install ?

There shouldn't be any requirements. Assuming the files are installed to "/usr/local", you can check by running:

   ldd /usr/local/bin/comedi_test

and it should show something like:

    linux-vdso.so.1 (0x00007ffe51140000)
    libcomedi.so.0 => /usr/local/lib/libcomedi.so.0 (0x00007fb9fe274000)
    libm.so.6 => /lib64/libm.so.6 (0x00007fb9fe18c000)
    libc.so.6 => /lib64/libc.so.6 (0x00007fb9fde00000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fb9fe28c000)

(The addresses in parentheses may be different to what is shown above.)

You may need to modify the secure_path setting in "/etc/sudoers" to add "/usr/local/sbin" and "/usr/local/bin" to the path. I do that by creating the file "/etc/sudoers.d/99_local" containing the line:

Defaults    secure_path = /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

(That is the same as the line in the "/etc/sudoers" file, but with "/usr/local/sbin:/usr/local/bin:" prepended.)

Thanks!

Hope it helps!

Ian

Ian Abbott

unread,
Aug 19, 2025, 10:56:26 AMAug 19
to comed...@googlegroups.com
On 20/06/2025 22:32, A Asraoui wrote:
> thank you Ian for checking on this , when do we get the updated version
> with the fix ..
>
> cheers,
> abde

Installation using "akmods" on Red Hat based systems should now be
supported. Also various bugs for installation using "DKMS" on other
systems have been weeded out.

The old installation instructions in INSTALL.md have been rewritten for
modern systems, including sections on automatic installation via Akmods
or DKMS, and covering details such as signing modules with a Machine
Owner Key (MOK) (at least when using Akmods or DKMS, but I haven't added
information about signing modules for "manual" builds yet).

It is best to read INSTALL.md online due to the use of Github-flavored
Markdown, or with an editor that can display Markdown text nicely,
otherwise you need to mentally ignore a lot of punctuation in the text!

https://github.com/Linux-Comedi/comedi/blob/master/INSTALL.md
Reply all
Reply to author
Forward
0 new messages