Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936223 - net-misc/networkmanager- 1.48.4 with missing libsystemd or libelogind: undefined reference to `sd_id128_get_machine_app_specific'
Summary: net-misc/networkmanager- 1.48.4 with missing libsystemd or libelogind: undefi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-07-17 17:34 UTC by Oleksa
Modified: 2024-07-18 08:06 UTC (History)
3 users (show)

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


Attachments
net-misc/networkmanager-1.48.4 build.log (xz compressed) (networkmanager-1.48.4:20240717-221401.log.xz,22.84 KB, application/x-xz)
2024-07-17 22:56 UTC, Alfred Wingate
Details
emerge --info (emerge--info.txt,23.00 KB, text/plain)
2024-07-17 22:56 UTC, Alfred Wingate
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oleksa 2024-07-17 17:34:45 UTC
Hello!

After update of net-misc/networkmanager up to 1.48.4 I faced problem:

/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: src/libnm-systemd-core/libnm-systemd-core.a.p/src_libsystemd-network_sd-dhcp-duid.c.o: in function `sd_dhcp_duid_set_uuid':
sd-dhcp-duid.c:(.text+0x1102): undefined reference to `sd_id128_get_machine_app_specific'

collect2: error: ld returned 1 exit status

ninja: build stopped: subcommand failed.

 * ERROR: net-misc/networkmanager-1.48.4::gentoo failed (compile phase):
 *   ninja -v -j10 -l0 failed

Please, look over and fix.
Thanks!
Comment 1 Alfred Wingate 2024-07-17 22:25:20 UTC
Please include full build.log and emerge --info with bugs.
Comment 2 Alfred Wingate 2024-07-17 22:56:11 UTC
Created attachment 897904 [details]
net-misc/networkmanager-1.48.4 build.log (xz compressed)

FAILED: src/core/NetworkManager-all-sym 
x86_64-pc-linux-gnu-gcc -m32 -mfpmath=sse  -o src/core/NetworkManager-all-sym src/core/NetworkManager-all-sym.p/ma
in.c.o -flto -Wl,--as-needed -Wl,--no-undefined -Wl,--whole-archive -Wl,--start-group src/core/libNetworkManager.a
 src/core/libNetworkManagerBase.a src/libnm-core-aux-intern/libnm-core-aux-intern.a src/libnm-core-impl/libnm-core
-impl.a src/libnm-crypto/libnm-crypto.a src/libnm-lldp/libnm-lldp.a src/libnm-platform/libnm-platform.a src/libnm-
base/libnm-base.a src/libnm-log-core/libnm-log-core.a src/libnm-udev-aux/libnm-udev-aux.a src/libnm-glib-aux/libnm
-glib-aux.a src/libnm-std-aux/libnm-std-aux.a src/libn-acd.a src/libn-dhcp4.a src/libc-rbtree.a src/libc-siphash.a
 -Wl,--no-whole-archive -flto-partition=none -O3 -march=znver2 -pipe -fuse-linker-plugin -frecord-gcc-switches -We
rror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldf
lags__=0 -frecord-gcc-switches -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -Wl,--undefined-versi
on src/libnm-systemd-core/libnm-systemd-core.a src/libnm-systemd-shared/libnm-systemd-shared.a src/libnm-crypto/li
bnm-crypto-nss.a -Wl,--no-gc-sections /usr/lib/libgio-2.0.so /usr/lib/libgobject-2.0.so /usr/lib/libglib-2.0.so -W
l,--export-dynamic /usr/lib/libgmodule-2.0.so -pthread -ldl /usr/lib/libndp.so /usr/lib/libudev.so /usr/lib/libuui
d.so /usr/lib/libssl3.so /usr/lib/libsmime3.so /usr/lib/libnss3.so /usr/lib/libnssutil3.so /usr/lib/libplds4.so /u
sr/lib/libplc4.so /usr/lib/libnspr4.so -Wl,--end-group
In function ‘explicit_bzero’,
    inlined from ‘nm_explicit_bzero’ at ../NetworkManager-1.48.4/src/libnm-glib-aux/nm-secret-utils.c:27:5,
    inlined from ‘nm_explicit_bzero’ at ../NetworkManager-1.48.4/src/libnm-glib-aux/nm-secret-utils.c:18:1,
    inlined from ‘nm_str_buf_set_size’ at ../NetworkManager-1.48.4/src/libnm-glib-aux/nm-str-buf.h:137:13,
    inlined from ‘nm_utils_fd_read’ at ../NetworkManager-1.48.4/src/libnm-glib-aux/nm-io-utils.c:586:0:
/usr/include/bits/string_fortified.h:72:3: warning: ‘__explicit_bzero_chk’ specified size between 2147483649 and 4
294967295 exceeds maximum object size 2147483647 [-Wstringop-overflow=]
   72 |   __explicit_bzero_chk (__dest, __len, __glibc_objsize0 (__dest));
      |   ^
In function ‘nm_str_buf_set_size’,
    inlined from ‘nm_utils_fd_read’ at ../NetworkManager-1.48.4/src/libnm-glib-aux/nm-io-utils.c:586:0:
../NetworkManager-1.48.4/src/libnm-glib-aux/nm-str-buf.h:137:38: note: destination object allocated here
  137 |             nm_explicit_bzero(&strbuf->_priv_str[new_len], strbuf->_priv_len - new_len);
      |                                      ^
/usr/include/bits/string_fortified.h: In function ‘nm_utils_fd_read’:
/usr/include/bits/string_fortified.h:66:6: note: in a call to function ‘__explicit_bzero_chk’ declared with attribute ‘access (write_only, 1, 2)’
   66 | void __explicit_bzero_chk (void *__dest, size_t __len, size_t __destlen)
      |      ^
In function ‘explicit_bzero’,
    inlined from ‘nm_explicit_bzero’ at ../NetworkManager-1.48.4/src/libnm-glib-aux/nm-secret-utils.c:27:5,
    inlined from ‘nm_explicit_bzero’ at ../NetworkManager-1.48.4/src/libnm-glib-aux/nm-secret-utils.c:18:1,
    inlined from ‘nm_str_buf_set_size’ at ../NetworkManager-1.48.4/src/libnm-glib-aux/nm-str-buf.h:137:13,
    inlined from ‘nm_utils_fd_read’ at ../NetworkManager-1.48.4/src/libnm-glib-aux/nm-io-utils.c:586:0,
    inlined from ‘helper_have_err_data’ at ../NetworkManager-1.48.4/src/core/nm-core-utils.c:5186:0:
/usr/include/bits/string_fortified.h:72:3: warning: ‘__explicit_bzero_chk’ specified size between 2147483649 and 4294967295 exceeds maximum object size 2147483647 [-Wstringop-overflow=]
   72 |   __explicit_bzero_chk (__dest, __len, __glibc_objsize0 (__dest));
      |   ^
In function ‘nm_str_buf_set_size’,
    inlined from ‘nm_utils_fd_read’ at ../NetworkManager-1.48.4/src/libnm-glib-aux/nm-io-utils.c:586:0,
    inlined from ‘helper_have_err_data’ at ../NetworkManager-1.48.4/src/core/nm-core-utils.c:5186:0:
../NetworkManager-1.48.4/src/libnm-glib-aux/nm-str-buf.h:137:38: note: destination object allocated here
  137 |             nm_explicit_bzero(&strbuf->_priv_str[new_len], strbuf->_priv_len - new_len);
      |                                      ^
/usr/include/bits/string_fortified.h: In function ‘helper_have_err_data’:
/usr/include/bits/string_fortified.h:66:6: note: in a call to function ‘__explicit_bzero_chk’ declared with attribute ‘access (write_only, 1, 2)’
   66 | void __explicit_bzero_chk (void *__dest, size_t __len, size_t __destlen)
      |      ^
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/net-misc/networkmanager-1.48.4/temp/ccOkCb3w.lto.o: in function `sd_dhcp6_client_set_duid_uuid':
<artificial>:(.text+0x3486ed): undefined reference to `sd_id128_get_machine_app_specific'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/net-misc/networkmanager-1.48.4/temp/ccOkCb3w.lto.o: in function `sd_dhcp_duid_set_uuid':
<artificial>:(.text+0x357e5c): undefined reference to `sd_id128_get_machine_app_specific'
collect2: error: ld returned 1 exit status
Comment 3 Alfred Wingate 2024-07-17 22:56:53 UTC
Created attachment 897905 [details]
emerge --info
Comment 4 Alfred Wingate 2024-07-17 22:58:58 UTC
For what I can see the failure on my machine is due to USE="elogind abi_x86_32" and sys-auth/elogind being non-multilib.
Comment 5 email200202 2024-07-18 03:17:10 UTC
Same here
Comment 6 andreas 2024-07-18 07:08:35 UTC
same thing
Comment 7 Larry the Git Cow gentoo-dev 2024-07-18 08:06:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89a9f94d3984f7d65caff0ddc3828fe245a7c5f9

commit 89a9f94d3984f7d65caff0ddc3828fe245a7c5f9
Author:     Alfred Wingate <parona@protonmail.com>
AuthorDate: 2024-07-17 23:17:19 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-07-18 08:04:40 +0000

    net-misc/networkmanager: fix libsystemdless build
    
    Apply upstream PR which ifdefs out unused and problematic functions in the
    forked systemd code.
    
    Closes: https://bugs.gentoo.org/936223
    Signed-off-by: Alfred Wingate <parona@protonmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/37595
    Signed-off-by: Sam James <sam@gentoo.org>

 ...rkmanager-1.48.4-fix-libsystemdless-build.patch | 62 ++++++++++++++++++++++
 .../networkmanager/networkmanager-1.48.4.ebuild    |  4 ++
 2 files changed, 66 insertions(+)