To enable serial port tests, use: perl Makefile.PL TESTPORT= where is a specific port or 'auto' to autodetect. Running ./configure ... configure: loading site script /builder/shared-workdir/build/sdk/include/site/i386 checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for gcc option to accept ISO C99... none needed checking for gcc option to accept ISO Standard C... (cached) none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /builder/shared-workdir/build/sdk/staging_dir/host/bin/grep checking for egrep... /builder/shared-workdir/build/sdk/staging_dir/host/bin/grep -E checking for ANSI C header files... yes checking for library containing strerror... none required checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking sys/termiox.h usability... no checking sys/termiox.h presence... no checking for sys/termiox.h... no checking sys/termios.h usability... yes checking sys/termios.h presence... yes checking for sys/termios.h... yes checking sys/ttycom.h usability... no checking sys/ttycom.h presence... no checking for sys/ttycom.h... no checking sys/modem.h usability... no checking sys/modem.h presence... no checking for sys/modem.h... no checking IOKit/serial/ioss.h usability... no checking IOKit/serial/ioss.h presence... no checking for IOKit/serial/ioss.h... no checking definition of _SC_CLK_TCK... found checking definition of TIOCMBIS... found checking definition of TIOCMBIC... found checking definition of TIOCMGET... found checking definition of CRTSCTS... found checking definition of OCRNL... found checking definition of ONLCR... found checking definition of ECHOKE... found checking definition of ECHOCTL... found checking definition of TIOCM_CAR... found checking definition of TIOCM_CD... found checking definition of TIOCM_RNG... found checking definition of TIOCM_RI... found checking definition of TIOCM_CTS... found checking definition of TIOCM_DSR... found checking definition of TIOCMIWAIT... found checking definition of TIOCGICOUNT... found checking definition of TIOCINQ... found checking definition of FIONREAD... found checking definition of TIOCOUTQ... found checking definition of TIOCSER_TEMT... found checking definition of TIOCM_LE... found checking definition of TIOCSERGETLSR... found checking definition of TIOCSDTR... missing checking definition of TIOCCDTR... missing checking definition of TIOCM_RTS... found checking definition of TIOCM_DTR... found checking definition of CTSXON... missing checking definition of RTSXOFF... missing checking definition of TCGETX... found checking definition of TCSETX... found checking definition of IOSSIOSPEED... missing checking definition of B0... found checking definition of B50... found checking definition of B75... found checking definition of B110... found checking definition of B134... found checking definition of B150... found checking definition of B200... found checking definition of B300... found checking definition of B600... found checking definition of B1200... found checking definition of B1800... found checking definition of B2400... found checking definition of B4800... found checking definition of B9600... found checking definition of B19200... found checking definition of B38400... found checking definition of B57600... found checking definition of B115200... found checking definition of B230400... found checking definition of B460800... found checking definition of B500000... found checking definition of B576000... found checking definition of B921600... found checking definition of B1000000... found checking definition of B1152000... found checking definition of B1500000... found checking definition of B2000000... found checking definition of B2500000... found checking definition of B3000000... found checking definition of B3500000... found checking definition of B4000000... found checking serial control via ioctl... yes checking read/write of RTS signal... yes checking read/write of DTR signal... yes checking read access to modem lines... yes checking read access to buffer status... yes checking read access to serial line status... yes checking normal CTS/RTS flow control... yes configure: creating ./config.status config.status: creating config.h Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Device::SerialPort Writing MYMETA.yml and MYMETA.json You're ready to run 'make' now... make[4]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-i386_pentium4_musl/perl/Device-SerialPort-1.04' cp SerialPort.pm blib/lib/Device/SerialPort.pm Running Mkbootstrap for SerialPort () chmod 644 "SerialPort.bs" "/builder/shared-workdir/build/sdk/staging_dir/hostpkg/usr/bin/perl5.28.1" -MExtUtils::Command::MM -e 'cp_nonempty' -- SerialPort.bs blib/arch/auto/Device/SerialPort/SerialPort.bs 644 "/builder/shared-workdir/build/sdk/staging_dir/hostpkg/usr/bin/perl5.28.1" "/builder/shared-workdir/build/sdk/staging_dir/hostpkg/usr/lib/perl5/5.28.1/ExtUtils/xsubpp" -typemap '/builder/shared-workdir/build/sdk/staging_dir/hostpkg/usr/lib/perl5/5.28.1/ExtUtils/typemap' SerialPort.xs > SerialPort.xsc mv SerialPort.xsc SerialPort.c i486-openwrt-linux-gcc -c -I. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -ffile-prefix-map=/builder/shared-workdir/build/sdk/build_dir/target-i386_pentium4_musl/perl/Device-SerialPort-1.04=Device-SerialPort-1.04 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-i386_pentium4_gcc-12.3.0_musl/usr/include -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-i386_pentium4_gcc-12.3.0_musl/include/fortify -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-i386_pentium4_gcc-12.3.0_musl/include -D_REENTRANT -D_GNU_SOURCE -O2 -DVERSION=\"1.04\" -DXS_VERSION=\"1.04\" -fPIC "-I/builder/shared-workdir/build/sdk/staging_dir/target-i386_pentium4_musl/usr/lib/perl5/5.28/CORE/" SerialPort.c SerialPort.xs:1:10: fatal error: EXTERN.h: No such file or directory 1 | #include "EXTERN.h" | ^~~~~~~~~~ compilation terminated. make[4]: *** [Makefile:337: SerialPort.o] Error 1 make[4]: Leaving directory '/builder/shared-workdir/build/sdk/build_dir/target-i386_pentium4_musl/perl/Device-SerialPort-1.04' make[3]: *** [Makefile:70: /builder/shared-workdir/build/sdk/build_dir/target-i386_pentium4_musl/perl/Device-SerialPort-1.04/.built] Error 2 time: package/feeds/packages/perl-device-serialport/compile#6.60#3.56#12.59