diff mbox series

[v3] gettext: fix libtool: Version mismatch error

Message ID 20241230040546.2158672-2-vince@underview.tech
State New
Headers show
Series [v3] gettext: fix libtool: Version mismatch error | expand

Commit Message

Vincent Davis Jr Dec. 30, 2024, 4:05 a.m. UTC
Error:

libtool: Version mismatch error.  This is libtool 2.5.4, but the
libtool: definition of this LT_INIT comes from libtool 2.5.2.
libtool: You should recreate aclocal.m4 with macros from libtool 2.5.4
libtool: and run autoconf again.

Signed-off-by: Vincent Davis Jr <vince@underview.tech>
---
 meta/recipes-core/gettext/gettext_0.22.5.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Vincent Davis Jr Dec. 30, 2024, 4:07 a.m. UTC | #1
Sorry about the spam.

Forgot about the fact that there's a class that fixes the issue I was seeing.
Mathieu Dubois-Briand Dec. 30, 2024, 1:08 p.m. UTC | #2
On Mon Dec 30, 2024 at 5:05 AM CET, Vincent Davis Jr wrote:
> Error:
>
> libtool: Version mismatch error.  This is libtool 2.5.4, but the
> libtool: definition of this LT_INIT comes from libtool 2.5.2.
> libtool: You should recreate aclocal.m4 with macros from libtool 2.5.4
> libtool: and run autoconf again.
>
> Signed-off-by: Vincent Davis Jr <vince@underview.tech>
> ---

Hi Vincent, Joshua,

This patch is failing on the autobuilder, only with the meta-mingw
build. I believe this failure is directly related to meta-mingw, but I'm
not fully confident.

Joshua, any thought about it ?

ERROR: nativesdk-gettext-0.22.5-r0 do_compile: oe_runmake failed
ERROR: nativesdk-gettext-0.22.5-r0 do_compile: Execution of '/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/temp/run.do_compile.3078389' failed with exit code 1
ERROR: Logfile of failure stored in: /srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/temp/log.do_compile.3078389
Log data follows:
[...]
| libtool: link: i686-w64-mingw32-gcc --sysroot=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/recipe-sysroot -DINSTALLDIR=\"/usr/local/oe-sdk-hardcoded-buildpath/sysroots/i686-w64-mingw32/usr/bin\" -O2 -fcanon-prefix-map -fmacro-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/gettext-0.22.5=/usr/src/debug/nativesdk-gettext/0.22.5 -fdebug-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/gettext-0.22.5=/usr/src/debug/nativesdk-gettext/0.22.5 -fmacro-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/gettext-0.22.5=/usr/src/debug/nativesdk-gettext/0.22.5 -fdebug-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/gettext-0.22.5=/usr/src/debug/nativesdk-gettext/0.22.5 -fdebug-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/recipe-sysroot= -fmacro-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/recipe-sysroot= -fdebug-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/recipe-sysroot-native= -fmacro-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/recipe-sysroot-native= -pipe -Wno-error=incompatible-pointer-types -Wl,-O1 -o .libs/ngettext.exe ngettext-ngettext.o gettext.res  ../gnulib-lib/libgrt.a ../intl/.libs/libintl.dll.a -ladvapi32 -liconv
| libtool: link: i686-w64-mingw32-gcc --sysroot=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/recipe-sysroot -DINSTALLDIR=\"/usr/local/oe-sdk-hardcoded-buildpath/sysroots/i686-w64-mingw32/usr/bin\" -O2 -fcanon-prefix-map -fmacro-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/gettext-0.22.5=/usr/src/debug/nativesdk-gettext/0.22.5 -fdebug-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/gettext-0.22.5=/usr/src/debug/nativesdk-gettext/0.22.5 -fmacro-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/gettext-0.22.5=/usr/src/debug/nativesdk-gettext/0.22.5 -fdebug-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/gettext-0.22.5=/usr/src/debug/nativesdk-gettext/0.22.5 -fdebug-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/recipe-sysroot= -fmacro-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/recipe-sysroot= -fdebug-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/recipe-sysroot-native= -fmacro-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/recipe-sysroot-native= -pipe -Wno-error=incompatible-pointer-types -Wl,-O1 -o .libs/gettext.exe gettext-gettext.o gettext.res  ../gnulib-lib/libgrt.a ../intl/.libs/libintl.dll.a -ladvapi32 -liconv
| libtool: link: i686-w64-mingw32-gcc --sysroot=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/recipe-sysroot -DINSTALLDIR=\"/usr/local/oe-sdk-hardcoded-buildpath/sysroots/i686-w64-mingw32/usr/bin\" -O2 -fcanon-prefix-map -fmacro-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/gettext-0.22.5=/usr/src/debug/nativesdk-gettext/0.22.5 -fdebug-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/gettext-0.22.5=/usr/src/debug/nativesdk-gettext/0.22.5 -fmacro-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/gettext-0.22.5=/usr/src/debug/nativesdk-gettext/0.22.5 -fdebug-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/gettext-0.22.5=/usr/src/debug/nativesdk-gettext/0.22.5 -fdebug-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/recipe-sysroot= -fmacro-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/recipe-sysroot= -fdebug-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/recipe-sysroot-native= -fmacro-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/recipe-sysroot-native= -pipe -Wno-error=incompatible-pointer-types -Wl,-O1 -o .libs/envsubst.exe envsubst-envsubst.o gettext.res  ../gnulib-lib/libgrt.a ../intl/.libs/libintl.dll.a -ladvapi32 -liconv
| libtool:   error: Could not determine the host path corresponding to
| libtool:   error:   '/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/gettext-0.22.5/gettext-runtime/intl/.libs'
| libtool:   error: Could not determine the host path corresponding to
| libtool:   error: Continuing, but uninstalled executables may not work.
| libtool:   error:   '/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/gettext-0.22.5/gettext-runtime/intl/.libs'
| libtool:   error: Continuing, but uninstalled executables may not work.
| libtool:   error: Could not determine the host path corresponding to
| libtool:   error: Could not determine the host path corresponding to
| libtool:   error:   '/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/gettext-0.22.5/gettext-runtime/intl/.libs'
| libtool:   error:   '/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/gettext-0.22.5/gettext-runtime/intl/.libs'
| libtool:   error: Continuing, but uninstalled executables may not work.
| libtool:   error: Could not determine the host path corresponding to
| libtool:   error: Continuing, but uninstalled executables may not work.
| libtool:   error:   '/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/gettext-0.22.5/gettext-runtime/intl/.libs'
| libtool:   error: Continuing, but uninstalled executables may not work.
| libtool:   error: Could not determine the host path corresponding to
| libtool:   error:   '/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/gettext-0.22.5/gettext-runtime/intl/.libs'
| libtool:   error: Continuing, but uninstalled executables may not work.
[...]
| libtool: compile:  i686-w64-mingw32-gcc --sysroot=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/recipe-sysroot -DLOCALEDIR=\"/usr/local/oe-sdk-hardcoded-buildpath/sysroots/i686-w64-mingw32/usr/share/locale\" -DBISON_LOCALEDIR=\"/usr/local/oe-sdk-hardcoded-buildpath/sysroots/i686-w64-mingw32/usr/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/oe-sdk-hardcoded-buildpath/sysroots/i686-w64-mingw32/usr/share/locale\" -DUSEJAVA=0 -DGETTEXTJAR=\"/usr/local/oe-sdk-hardcoded-buildpath/sysroots/i686-w64-mingw32/usr/share/gettext/gettext.jar\" -DLIBDIR=\"/usr/local/oe-sdk-hardcoded-buildpath/sysroots/i686-w64-mingw32/usr/lib\" -DGETTEXTDATADIR=\"/usr/local/oe-sdk-hardcoded-buildpath/sysroots/i686-w64-mingw32/usr/share/gettext\" -DPROJECTSDIR=\"/usr/local/oe-sdk-hardcoded-buildpath/sysroots/i686-w64-mingw32/usr/share/gettext/projects\" -DEXEEXT=\".exe\" -DHAVE_CONFIG_H -I. -I.. -I. -I. -I.. -I.. -I../libgrep -I../gnulib-lib -I../gnulib-lib -I../../gettext-runtime/intl -I../../gettext-runtime/intl -DGNULIB_DEFINED_ERROR -DGNULIB_DEFINED_GETOPT -O2 -fcanon-prefix-map -fmacro-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/gettext-0.22.5=/usr/src/debug/nativesdk-gettext/0.22.5 -fdebug-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/gettext-0.22.5=/usr/src/debug/nativesdk-gettext/0.22.5 -fmacro-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/gettext-0.22.5=/usr/src/debug/nativesdk-gettext/0.22.5 -fdebug-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/gettext-0.22.5=/usr/src/debug/nativesdk-gettext/0.22.5 -fdebug-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/recipe-sysroot= -fmacro-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/recipe-sysroot= -fdebug-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/recipe-sysroot-native= -fmacro-prefix-map=/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-gettext/0.22.5/recipe-sysroot-native= -pipe -Wno-error=incompatible-pointer-types -c write-catalog.c  -DDLL_EXPORT -DPIC -o .libs/libgettextsrc_la-write-catalog.o
| In file included from ../gnulib-lib/time.h:51,
|                  from ../gnulib-lib/sys/stat.h:51,
|                  from ../gnulib-lib/fcntl.h:64,
|                  from write-catalog.c:26:
| write-catalog.c: In function 'msgdomain_list_print':
| write-catalog.c:251:11: error: implicit declaration of function 'close_used_without_requesting_gnulib_module_close' [-Wimplicit-function-declaration]
|   251 |       if (close (fd) < 0)
|       |           ^~~~~
| make[5]: *** [Makefile:4478: libgettextsrc_la-write-catalog.lo] Error 1

https://valkyrie.yoctoproject.org/#/builders/7/builds/734/steps/12/logs/stdio
diff mbox series

Patch

diff --git a/meta/recipes-core/gettext/gettext_0.22.5.bb b/meta/recipes-core/gettext/gettext_0.22.5.bb
index 0bf2a56e5f..2d1ace1427 100644
--- a/meta/recipes-core/gettext/gettext_0.22.5.bb
+++ b/meta/recipes-core/gettext/gettext_0.22.5.bb
@@ -31,7 +31,7 @@  SRC_URI += " \
            file://0001-intl-Fix-build-failure-with-make-j.patch \
            "
 
-inherit autotools texinfo pkgconfig ptest
+inherit autotools autotools-brokensep texinfo pkgconfig ptest
 
 EXTRA_OECONF += "--without-lispdir \
                  --disable-csharp \