Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 858833

Summary: app-admin/apache-tools-2.4.54-r1 - rdlibtool: error logged in slbt_lconf_open(), line 597: flow error: unexpected condition or other.
Product: Gentoo Linux Reporter: orbea <orbea>
Component: Current packagesAssignee: Apache Team - Bugzilla Reports <apache-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: hydrapolic
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=858836
https://github.com/gentoo/gentoo/pull/26475
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 765709, 779364    
Attachments: Build log

Description orbea 2022-07-18 17:10:16 UTC
Fails to build with rlibtool.

Reproducible: Always

Actual Results:  
rdlibtool --mode=compile x86_64-pc-linux-gnu-gcc -O2 -pipe -DLINUX -D_REENTRANT -D_GNU_SOURCE -I. -I/var/tmp/portage/app-admin/apache-tools-2.4.54-r1/work/httpd-2.4.54/os/unix -I/var/tmp/portage/app-admin/apache-tools-2.4.54-r1/work/httpd-2.4.54/include -I/usr/include/apr-1 -I/var/tmp/portage/app-admin/apache-tools-2.4.54-r1/work/httpd-2.4.54/modules/aaa -I/var/tmp/portage/app-admin/apache-tools-2.4.54-r1/work/httpd-2.4.54/modules/cache -I/var/tmp/portage/app-admin/apache-tools-2.4.54-r1/work/httpd-2.4.54/modules/core -I/var/tmp/portage/app-admin/apache-tools-2.4.54-r1/work/httpd-2.4.54/modules/database -I/var/tmp/portage/app-admin/apache-tools-2.4.54-r1/work/httpd-2.4.54/modules/filters -I/var/tmp/portage/app-admin/apache-tools-2.4.54-r1/work/httpd-2.4.54/modules/ldap -I/var/tmp/portage/app-admin/apache-tools-2.4.54-r1/work/httpd-2.4.54/modules/loggers -I/var/tmp/portage/app-admin/apache-tools-2.4.54-r1/work/httpd-2.4.54/modules/lua -I/var/tmp/portage/app-admin/apache-tools-2.4.54-r1/work/httpd-2.4.54/modules/proxy -I/var/tmp/portage/app-admin/apache-tools-2.4.54-r1/work/httpd-2.4.54/modules/http2 -I/var/tmp/portage/app-admin/apache-tools-2.4.54-r1/work/httpd-2.4.54/modules/session -I/var/tmp/portage/app-admin/apache-tools-2.4.54-r1/work/httpd-2.4.54/modules/ssl -I/var/tmp/portage/app-admin/apache-tools-2.4.54-r1/work/httpd-2.4.54/modules/test -I/var/tmp/portage/app-admin/apache-tools-2.4.54-r1/work/httpd-2.4.54/server -I/var/tmp/portage/app-admin/apache-tools-2.4.54-r1/work/httpd-2.4.54/modules/md -I/var/tmp/portage/app-admin/apache-tools-2.4.54-r1/work/httpd-2.4.54/modules/arch/unix -I/var/tmp/portage/app-admin/apache-tools-2.4.54-r1/work/httpd-2.4.54/modules/dav/main -I/var/tmp/portage/app-admin/apache-tools-2.4.54-r1/work/httpd-2.4.54/modules/generators -I/var/tmp/portage/app-admin/apache-tools-2.4.54-r1/work/httpd-2.4.54/modules/mappers -prefer-non-pic -static -c htpasswd.c

rdlibtool: lconf: {.name="libtool"}.
rdlibtool: fdcwd: {.fdcwd=AT_FDCWD, .realpath="/var/tmp/portage/app-admin/apache-tools-2.4.54-r1/work/httpd-2.4.54/support"}.
rdlibtool: lconf: fstatat(AT_FDCWD,".",...) = 0 {.st_dev = 65026, .st_ino = 6985831}.
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 = 6914705}.
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 = 33572108}.
rdlibtool: lconf: openat(4,"libtool",O_RDONLY,0) = -1 [ENOENT].
rdlibtool: lconf: openat(4,"../",O_DIRECTORY,0) = 3.
rdlibtool: lconf: fstat(3,...) = 0 {.st_dev = 65026, .st_ino = 69188372}.
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 = 4549437}.
rdlibtool: lconf: openat(4,"libtool",O_RDONLY,0) = -1 [ENOENT].
rdlibtool: lconf: openat(4,"../",O_DIRECTORY,0) = 3.
rdlibtool: lconf: fstat(3,...) = 0 {.st_dev = 65026, .st_ino = 100666345}.
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 = 67160194}.
rdlibtool: lconf: openat(4,"libtool",O_RDONLY,0) = -1 [ENOENT].
rdlibtool: lconf: openat(4,"../",O_DIRECTORY,0) = 3.
rdlibtool: lconf: fstat(3,...) = 0 {.st_dev = 65026, .st_ino = 128}.
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 = 65025, .st_ino = 128}.
rdlibtool: lconf: stopped in "/" (config file not found on current device).
rdlibtool: error logged in slbt_lconf_open(), line 597: flow error: unexpected condition or other.
rdlibtool: < returned to > slbt_get_lconf_flags(), line 639.
make[1]: *** [/var/tmp/portage/app-admin/apache-tools-2.4.54-r1/work/httpd-2.4.54/build/rules.mk:206: htpasswd.lo] Error 2
make[1]: Leaving directory '/var/tmp/portage/app-admin/apache-tools-2.4.54-r1/work/httpd-2.4.54/support'
make: *** [/var/tmp/portage/app-admin/apache-tools-2.4.54-r1/work/httpd-2.4.54/build/rules.mk:75: all-recursive] Error 1
make: Leaving directory '/var/tmp/portage/app-admin/apache-tools-2.4.54-r1/work/httpd-2.4.54/support'
Comment 1 orbea 2022-07-18 17:10:33 UTC
Created attachment 792176 [details]
Build log
Comment 2 Larry the Git Cow gentoo-dev 2022-07-22 07:51:16 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=794e3dca81a22db884eaeb45c2b7e413d6dbaf2e

commit 794e3dca81a22db884eaeb45c2b7e413d6dbaf2e
Author:     orbea <orbea@riseup.net>
AuthorDate: 2022-07-19 15:01:43 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2022-07-22 07:51:12 +0000

    app-admin/apache-tools: Fix the build with rlibtool
    
    The apache-tools-2.4.7-Makefile.patch is reimplemented since the
    existing patch is wrong. The binaries are already installed in
    build/rules.mk and with the patch they were being installed twice
    where the second instance overwrites the binaries with the slibtool
    wrapper scripts.
    
    Bug: https://bugs.gentoo.org/858833
    Signed-off-by: orbea <orbea@riseup.net>
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 .../apache-tools/apache-tools-2.4.54-r2.ebuild     | 109 +++++++++++++++++++++
 .../files/apache-tools-2.4.54-Makefile.patch       |  37 +++++++
 .../files/apache-tools-2.4.54-libtool.patch        |  21 ++++
 3 files changed, 167 insertions(+)