Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 777450 - dev-libs/libcgroup-0.41-r6 rlibtool: error logged in slbt_get_deps_meta(), line 125: path not found: ../../src/.libs/.libs/libcgroup.a.slibtool.deps when using rlibtool
Summary: dev-libs/libcgroup-0.41-r6 rlibtool: error logged in slbt_get_deps_meta(), li...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL: https://github.com/libcgroup/libcgrou...
Whiteboard:
Keywords: PATCH, UPSTREAM
Depends on:
Blocks: slibtool
  Show dependency tree
 
Reported: 2021-03-21 01:46 UTC by Alessandro Barbieri
Modified: 2021-05-01 07:55 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
libcgroup-0.41-r6:20210321-013827.log (libcgroup-0.41-r6:20210321-013827.log,39.89 KB, text/plain)
2021-03-21 01:46 UTC, Alessandro Barbieri
Details
https://patch-diff.githubusercontent.com/raw/libcgroup/libcgroup/pull/29 (libcgroup-libtool.patch,2.20 KB, patch)
2021-03-21 20:31 UTC, orbea
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2021-03-21 01:46:33 UTC
rlibtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -Os -pipe -march=native -fdiagnostics-color=always -Os -pipe -march=native -fdiagnostics-color=always -Wimplicit-function-declaration -Wno-error=implicit-function-declaration -Wall
 -Wl,--version-script,./libcgroup.map -version-number 1:0:41 -Wl,-O1 -Wl,--as-needed -o libcgroup.la -rpath /usr/lib64 parse.lo lex.lo api.lo config.lo wrapper.lo log.lo -lpthread 
rlibtool: lconf: {.name="libtool"}.                                                                                    
rlibtool: fdcwd: {.fdcwd=AT_FDCWD, .realpath="/var/tmp/portage/dev-libs/libcgroup-0.41-r6/work/libcgroup-0.41/src"}.
rlibtool: lconf: fstatat(AT_FDCWD,".",...) = 0 {.st_dev = 40, .st_ino = 43883}.
rlibtool: lconf: openat(AT_FDCWD,"libtool",O_RDONLY,0) = -1 [ENOENT].
rlibtool: lconf: openat(AT_FDCWD,"../",O_DIRECTORY,0) = 5.
rlibtool: lconf: fstat(5,...) = 0 {.st_dev = 40, .st_ino = 43837}.
rlibtool: lconf: openat(5,"libtool",O_RDONLY,0) = 6.                                                                   
rlibtool: lconf: found "/var/tmp/portage/dev-libs/libcgroup-0.41-r6/work/libcgroup-0.41/libtool".
rlibtool: link: ln -s /dev/null .libs/libcgroup.a.disabled
rlibtool: link: x86_64-pc-linux-gnu-gcc .libs/parse.o .libs/lex.o .libs/api.o .libs/config.o .libs/wrapper.o .libs/log.o -Os -pipe -march=native -fdiagnostics-color=always -Os -pipe -march=native -fdiagnostics-color=always -Wimplicit-func
tion-declaration -Wno-error=implicit-function-declaration -Wall -Wl,--version-script,./libcgroup.map -Wl,-O1 -Wl,--as-needed -lpthread -shared -fPIC -Wl,-soname -Wl,libcgroup.so.1 -o .libs/libcgroup.so.1.0.41
rlibtool: link: ln -s libcgroup.so.1.0.41 .libs/libcgroup.so.1      
rlibtool: link: ln -s libcgroup.so.1.0.41 .libs/libcgroup.so
rlibtool: link: ln -s ../libcgroup.la .libs/libcgroup.la
rlibtool: link: ln -s ../libcgroup.la .libs/libcgroup.lai                                                              
make[3]: Leaving directory '/var/tmp/portage/dev-libs/libcgroup-0.41-r6/work/libcgroup-0.41/src'
Making all in daemon                                                                                                   
make[3]: Entering directory '/var/tmp/portage/dev-libs/libcgroup-0.41-r6/work/libcgroup-0.41/src/daemon'                                                                                                                                      
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../..  -I ../../include   -Os -pipe -march=native -fdiagnostics-color=always -Os -pipe -march=native -fdiagnostics-color=always -Wimplicit-function-declaration -Wno-error=implicit-function-dec
laration -Wall -c -o cgrulesengd.o cgrulesengd.c                                                                       
cgrulesengd.c: In function ‘cgre_parse_syslog_facility’:                                                               
cgrulesengd.c:1003:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 1003 |     if (strlen(arg) > 1)                                                                                       
      |     ^~
cgrulesengd.c:1006:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 1006 |  switch (arg[0]) {                                                                                             
      |  ^~~~~~
rlibtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -Os -pipe -march=native -fdiagnostics-color=always -Os -pipe -march=native -fdiagnostics-color=always -Wimplicit-function-declaration -Wno-error=implicit-function-declaration -Wall
 -L../../src/.libs -Wl,-O1 -Wl,--as-needed -o cgrulesengd cgrulesengd.o ../../src/.libs/libcgroup.la -lrt 
rlibtool: lconf: {.name="libtool"}.
rlibtool: fdcwd: {.fdcwd=AT_FDCWD, .realpath="/var/tmp/portage/dev-libs/libcgroup-0.41-r6/work/libcgroup-0.41/src/daemon"}.                                                                                                                  
rlibtool: lconf: fstatat(AT_FDCWD,".",...) = 0 {.st_dev = 40, .st_ino = 43914}.
rlibtool: lconf: openat(AT_FDCWD,"libtool",O_RDONLY,0) = -1 [ENOENT].
rlibtool: lconf: openat(AT_FDCWD,"../",O_DIRECTORY,0) = 5.
rlibtool: lconf: fstat(5,...) = 0 {.st_dev = 40, .st_ino = 43883}.
rlibtool: lconf: openat(5,"libtool",O_RDONLY,0) = -1 [ENOENT].
rlibtool: lconf: openat(5,"../",O_DIRECTORY,0) = 6.
rlibtool: lconf: fstat(6,...) = 0 {.st_dev = 40, .st_ino = 43837}.
rlibtool: lconf: openat(6,"libtool",O_RDONLY,0) = 5.
rlibtool: lconf: found "/var/tmp/portage/dev-libs/libcgroup-0.41-r6/work/libcgroup-0.41/libtool".
rlibtool: error logged in slbt_get_deps_meta(), line 125: path not found: ../../src/.libs/.libs/libcgroup.a.slibtool.deps.
rlibtool: < returned to > slbt_exec_link_create_executable(), line 1496.
rlibtool: < returned to > slbt_exec_link(), line 1909.
make[3]: *** [Makefile:399: cgrulesengd] Error 2
make[3]: Leaving directory '/var/tmp/portage/dev-libs/libcgroup-0.41-r6/work/libcgroup-0.41/src/daemon'
make[2]: *** [Makefile:544: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-libs/libcgroup-0.41-r6/work/libcgroup-0.41/src'
make[1]: *** [Makefile:473: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-libs/libcgroup-0.41-r6/work/libcgroup-0.41'
make: *** [Makefile:378: all] Error 2
 * ERROR: dev-libs/libcgroup-0.41-r6::gentoo failed (compile phase):
 *   emake failed
Comment 1 Alessandro Barbieri 2021-03-21 01:46:50 UTC
Created attachment 692631 [details]
libcgroup-0.41-r6:20210321-013827.log

buildlog
Comment 2 Ionen Wolkens gentoo-dev 2021-03-21 10:36:51 UTC
I see slibtool-9999/snapshot has new error handling, but it fails with 0.5.31 as well (just different 'no such file or directory' message)
Comment 3 orbea 2021-03-21 20:31:31 UTC
Created attachment 692820 [details, diff]
https://patch-diff.githubusercontent.com/raw/libcgroup/libcgroup/pull/29

GNU libtool is overly permissive and doesn't fail when projects incorrectly use files in the .libs directories themselves instead of through the libtool implementation.
Comment 4 Larry the Git Cow gentoo-dev 2021-03-24 19:51:49 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0bf2ad14f82df0cfe05eda3cf3cb1c157095a025

commit 0bf2ad14f82df0cfe05eda3cf3cb1c157095a025
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-03-24 19:51:26 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-03-24 19:51:26 +0000

    dev-libs/libcgroup: fix build with slibtool
    
    Thanks-to: orbea <orbea@riseup.net>
    Closes: https://bugs.gentoo.org/777450
    Signed-off-by: Sam James <sam@gentoo.org>

 .../libcgroup/files/libcgroup-0.41-slibtool.patch  | 59 ++++++++++++++++++++++
 dev-libs/libcgroup/libcgroup-0.41-r6.ebuild        |  3 +-
 2 files changed, 61 insertions(+), 1 deletion(-)