Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

160.1. libmodbus-3.2.0

Modbus RTU and TCP library

3.2.0-1 · LGPL-2.1-or-later · 0.8 SBU · 140.3 KiB, 12 files · 41_system, 426 of 1047 · ports/core/eda/libmodbus

Homepage: https://libmodbus.org/

Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/eda.txt:

The protocol every PLC and bench instrument speaks over RS-485 or TCP.

Depends on: autoconf, automake, libtool.

Required by (3): linuxcnc, mbpoll, nut.

Sources: libmodbus-3.2.0.tar.gz (213.3 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install libmodbus'

build.sh:

./autogen.sh
./configure --prefix=/usr --libdir=/usr/lib --disable-static --disable-tests \
	CPPFLAGS="$CPPFLAGS -include asm/ioctls.h"
make
make DESTDIR=$PKG install

Libraries: libmodbus.so.

Directories: /usr/include/modbus, /usr/share/doc/libmodbus, /usr/share/licenses/libmodbus.