OS: Gentoo slibtool: e40c34a gtk+: 2.24.33
Gentoo
2.24.33
When using slibtoolize to autoreconf gtk+2 it fails to build with rdlibtool.
rdlibtool
rdlibtool --mode=compile x86_64-pc-linux-musl-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/x11-libs/gtk+-2.24.33-r3/work/gtk+-2.24.33/gdk/x11 -I../.. -DG_LOG_DOMAIN="Gdk" -DGDK_COMPILATION -I/var/tmp/portage/x11-libs/gtk+-2.24.33-r3/work/gtk+-2.24.33 -I/var/tmp/portage/x11-libs/gtk+-2.24.33-r3/work/gtk+-2.24.33/gdk -I../../gdk -DG_DISABLE_CAST_CHECKS -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/gio-unix-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/lib/libffi/include -I/usr/include/libmount -I/usr/include/uuid -I/usr/include/json-c -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/libpng16 -pthread -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -O2 -pipe -Werror=implicit-function-declaration -Werror=implicit-int -Wall -c -o gdkapplaunchcontext-x11.lo /var/tmp/portage/x11-libs/gtk+-2.24.33-r3/work/gtk+-2.24.33/gdk/x11/gdkapplaunchcontext-x11.c rdlibtool: fdcwd: {.fdcwd=AT_FDCWD, .realpath="/var/tmp/portage/x11-libs/gtk+-2.24.33-r3/work/gtk+-2.24.33-abi_x86_64.amd64/gdk/x11"}. rdlibtool: lconf: fstatat(AT_FDCWD,".",...) = 0 {.st_dev = 65026, .st_ino = 69487462}. rdlibtool: lconf: openat(AT_FDCWD,"slibtool.cfg",O_RDONLY,0) = -1 [ENOENT]. rdlibtool: lconf: openat(AT_FDCWD,"libtool",O_RDONLY,0) = -1 [ENOENT]. rdlibtool: lconf: openat(AT_FDCWD,"../",O_DIRECTORY,0) = 3. rdlibtool: lconf: fstat(3,...) = 0 {.st_dev = 65026, .st_ino = 3350440}. rdlibtool: lconf: openat(3,"slibtool.cfg",O_RDONLY,0) = -1 [ENOENT]. rdlibtool: lconf: openat(3,"libtool",O_RDONLY,0) = -1 [ENOENT]. rdlibtool: lconf: openat(3,"../",O_DIRECTORY,0) = 4. rdlibtool: lconf: fstat(4,...) = 0 {.st_dev = 65026, .st_ino = 135786725}. rdlibtool: lconf: openat(4,"slibtool.cfg",O_RDONLY,0) = -1 [ENOENT]. rdlibtool: lconf: openat(4,"libtool",O_RDONLY,0) = 3. rdlibtool: lconf: found "/var/tmp/portage/x11-libs/gtk+-2.24.33-r3/work/gtk+-2.24.33-abi_x86_64.amd64/libtool". rdlibtool: error logged in slbt_get_lconf_flags(), line 822: flow error: unexpected condition or other.
I believe this is because in configure.ac:
configure.ac
AC_LIBTOOL_WIN32_DLL AM_PROG_LIBTOOL dnl when using libtool 2.x create libtool early, because it's used in configure m4_ifdef([LT_OUTPUT], [LT_OUTPUT])
And in the build directory slibtool's ./libtool wrapper script exists, but not slibtool.cfg.
./libtool
slibtool.cfg
It does work if not using rdlibtool and using the default slibtool-shared from slibtoolize.
slibtool-shared
Thanks for catching this! The problem was unconditional removal of slibtool.cfg from within config.status. Fixed in commit 3324bd6.
I can confirm its fixed on my end too.
Metadata Update from @orbea: - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.