Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 775272 - net-misc/vde-2.3.2_p20191011 x86_64-pc-linux-gnu-gcc: error: .libs/vde_l3.o: No such file or directory when using slibtool
Summary: net-misc/vde-2.3.2_p20191011 x86_64-pc-linux-gnu-gcc: error: .libs/vde_l3.o: ...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Adam Feldman
Keywords: UPSTREAM
Depends on:
Blocks: slibtool
  Show dependency tree
Reported: 2021-03-10 16:18 UTC by Alessandro Barbieri
Modified: 2021-09-07 19:00 UTC (History)
5 users (show)

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

vde-2.3.2_p20191011:20210310-090556.log (vde-2.3.2_p20191011:20210310-090556.log,55.90 KB, text/plain)
2021-03-10 16:19 UTC, Alessandro Barbieri
Details (vde-slibtool.patch,1.55 KB, patch)
2021-03-17 22:34 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-10 16:18:52 UTC
Making all in vde_l3
make[2]: Entering directory '/var/tmp/portage/net-misc/vde-2.3.2_p20191011/work/vde-2-c7b36a57831a9067c8619c3e17a03e595623b3eb/src/vde_l3'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../include  -I../../include   -Wall -O2 -pipe -march=native -pipe -march=native -Wimplicit-function-declaration -Wno-error=implicit-function-declaration -c -o vde_l3.o vde_l3.c
vde_l3.c: In function ‘newmgmtconn’:
vde_l3.c:1291:3: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1291 |   write(new,buf,strlen(buf));
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
vde_l3.c:1292:3: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1292 |   write(new,prompt,strlen(prompt));
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vde_l3.c: In function ‘mgmtcommand’:
vde_l3.c:1226:4: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1226 |    write(outfd,prompt,strlen(prompt));
      |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vde_l3.c: In function ‘printoutc’:
vde_l3.c:863:2: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  863 |  write(fd,outbuf,strlen(outbuf));
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
slibtool  --tag=CC --tag=disable-static  --mode=link x86_64-pc-linux-gnu-gcc  -Wall -O2 -pipe -march=native -pipe -march=native -Wimplicit-function-declaration -Wno-error=implicit-function-declaration -module -avoid-version -export-dynamic  -Wl,-O1 -Wl,--as-needed -o vde_l3 vde_l3.o ../../src/common/ ../../src/lib/ -ldl 
slibtool: link: x86_64-pc-linux-gnu-gcc .libs/vde_l3.o -Wl,--whole-archive ../../src/common/.libs/libvdecommon.a -Wl,--no-whole-archive -Wall -O2 -pipe -march=native -pipe -march=native -Wimplicit-function-declaration -Wno-error=implicit-function-declaration -Wl,-O1 -Wl,--as-needed -ldl -L../../src/lib/.libs -lvdeplug -ldl -shared -fPIC -Wl,-soname -Wl,vde_l3 -o vde_l3 -Wl,--export-dynamic
x86_64-pc-linux-gnu-gcc: error: .libs/vde_l3.o: No such file or directory
slibtool: exec error upon slbt_exec_link_create_library(), line 1446: (see child process error messages).
slibtool: < returned to > slbt_exec_link(), line 1819.
make[2]: *** [Makefile:492: vde_l3] Error 2
make[2]: Leaving directory '/var/tmp/portage/net-misc/vde-2.3.2_p20191011/work/vde-2-c7b36a57831a9067c8619c3e17a03e595623b3eb/src/vde_l3'
make[1]: *** [Makefile:660: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-misc/vde-2.3.2_p20191011/work/vde-2-c7b36a57831a9067c8619c3e17a03e595623b3eb/src'
make: *** [Makefile:400: all-recursive] Error 1
 * ERROR: net-misc/vde-2.3.2_p20191011::gentoo failed (compile phase):
 *   emake failed
Comment 1 Alessandro Barbieri 2021-03-10 16:19:20 UTC
Created attachment 690522 [details]

Comment 3 orbea 2021-03-17 22:36:04 UTC
This is because the build uses -module for binaries which are not libraries which will not work. GNU libtool works by silently filtering out -module of course...

I made a PR here which fixes it and attached the patch.

Additionally it seems the upstream moved and I made a second PR to fix a parallel make bug which also occurs with libtool, I am not sure when it was introduced.
Comment 4 orbea 2021-03-18 00:14:12 UTC
I made a second issue for the parallel make bug.
Comment 5 Larry the Git Cow gentoo-dev 2021-03-18 15:59:28 UTC
The bug has been closed via the following commit(s):

commit 8b77fed6ae4f0145da7fe9f8ece1544e168a0b61
Author:     Adam Feldman <>
AuthorDate: 2021-03-18 15:54:26 +0000
Commit:     Adam Feldman <>
CommitDate: 2021-03-18 15:59:24 +0000

    net-misc/vde: Fix compilation with slibtool
    Package-Manager: Portage-2.3.103, Repoman-2.3.23
    Signed-off-by: Adam Feldman <>

 .../vde/files/vde-2.3.2-slibtool-support.patch     | 49 ++++++++++++
 net-misc/vde/vde-2.3.2_p20191011-r1.ebuild         | 91 ++++++++++++++++++++++
 2 files changed, 140 insertions(+)