I'm maintaining a system that still uses an old libc version not including
librt and libpthread.

Migrating to ptxdist 2025.05.0, I got an error while configuring
utils-linux 2.41.

meson says:
../util-linux-2.41/meson.build:1482:22: ERROR: Object
<[ExternalLibraryHolder] holds [ExternalLibrary]: <ExternalLibrary rt:
True>> of type ExternalLibrary does not support the `+` operator.

The bug is a missing + at line 1478 of meson.build.

A patch is attached.

The bug has been already found and corrected upstream. I expect it will be
fixed in version 2.42.

Best regards,

Ruggero


Index: util-linux-2.41/meson.build
===================================================================
--- util-linux-2.41.orig/meson.build
+++ util-linux-2.41/meson.build
@@ -1475,7 +1475,7 @@ has_seminfo_type = cc.has_type('struct s
 
 posixipc_libs = []
 if not cc.has_function('shm_open') and conf.get('HAVE_SYS_MMAN_H').to_string() == '1'
-  posixipc_libs = cc.find_library('rt', required : true)
+  posixipc_libs += cc.find_library('rt', required : true)
 endif
 
 if not cc.has_function('sem_close') and conf.get('HAVE_SEMAPHORE_H').to_string() == '1'

Reply via email to