This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:
Subject: meson.build: fix location of gconv library Author: Hans Verkuil <hverk...@xs4all.nl> Date: Sat Apr 12 13:35:53 2025 +0200 When compiling on a 32-bit i386 debian OS you get this compile error: [321/332] Linking target contrib/gconv/ARIB-STD-B24.so FAILED: contrib/gconv/ARIB-STD-B24.so cc -o contrib/gconv/ARIB-STD-B24.so contrib/gconv/ARIB-STD-B24.so.p/arib-std-b24.c.o -Wl,--as-needed -Wl,--allow-shlib-undefined -shared -fPIC -Wl,-rpath,/lib64/gconv -Wl,-rpath-link,/lib64/gconv -Wl,--start-group /lib64/gconv/libJIS.so /lib64/gconv/libJISX0213.so -Wl,--end-group /usr/bin/ld: /lib64/gconv/libJIS.so: error adding symbols: file in wrong format collect2: error: ld returned 1 exit status The reason is that on such a system there are 64 bit libraries installed as well (possibly because of a gcc multilib installation). Check if we are compiling on the 32 bit environment and exclude the lib64 locations from the gconv_dirs_generic list. Signed-off-by: Hans Verkuil <hverk...@xs4all.nl> meson.build | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) --- http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=2a91a869eb8a2e2665881353a4e6bcb72e3b51b7 diff --git a/meson.build b/meson.build index 8b4713828c28..d2b9d220a60e 100644 --- a/meson.build +++ b/meson.build @@ -215,14 +215,22 @@ have_gconv = cc.has_header('gconv.h', required : get_option('gconv')) gconvsysdir = get_option('gconvsysdir') # Generic check: works with most distributions -gconv_dirs_generic = [ - 'lib64', - 'usr/lib64', - 'lib', - 'usr/lib', - 'usr/local/lib64', - 'usr/local/lib', -] +if cc.sizeof('long') == 8 + gconv_dirs_generic = [ + 'lib64', + 'usr/lib64', + 'lib', + 'usr/lib', + 'usr/local/lib64', + 'usr/local/lib', + ] +else + gconv_dirs_generic = [ + 'lib', + 'usr/lib', + 'usr/local/lib', + ] +endif if gconvsysdir == '' foreach dir : gconv_dirs_generic