Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net-misc/networkmanager-1.26.4::musl - .../shared/systemd/src/basic/alloc-util.h:100:35: error: static declaration of 'reallocarray' follows non-static declaration #372

Closed
ernsteiswuerfel opened this issue Jan 23, 2021 · 3 comments

Comments

@ernsteiswuerfel
Copy link

Building 1.26.4::musl seems an issue since I upgraded to musl-1.2.2-r1 and re-emerged world.

[...]
libtool: compile:  x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/net-misc/networkmanager-1.26.4/work/NetworkManager-1.26.4 -std=gnu11 -I/var/tmp/portage/net-misc/networkmanager-1.26.4/work/NetworkManager-1.26.4/shared -I./shared -I/var/tmp/portage/net-misc/networkmanager-1.26.4/work/NetworkManager-1.26.4/shared/systemd/ -I/var/tmp/portage/net-misc/networkmanager-1.26.4/work/NetworkManager-1.26.4/shared/systemd/sd-adapt-shared -I/var/tmp/portage/net-misc/networkmanager-1.26.4/work/NetworkManager-1.26.4/shared/systemd/src/basic -I/var/tmp/portage/net-misc/networkmanager-1.26.4/work/NetworkManager-1.26.4/shared/systemd/src/shared -Wno-gnu-variable-sized-type-not-at-end -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi/include -I/usr/include/libmount -I/usr/include/blkid -pthread -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_40 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_40 -DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_SYSTEMD_SHARED -DG_LOG_DOMAIN=\"libnm\" -fno-strict-aliasing -fdata-sections -ffunction-sections -Wl,--gc-sections -Os -march=x86-64 -msse3 -mtune=athlon64-sse3 -pipe -c /var/tmp/portage/net-misc/networkmanager-1.26.4/work/NetworkManager-1.26.4/shared/systemd/nm-sd-utils-shared.c  -fPIC -DPIC -o shared/systemd/.libs/libnm_systemd_shared_la-nm-sd-utils-shared.o
In file included from /var/tmp/portage/net-misc/networkmanager-1.26.4/work/NetworkManager-1.26.4/shared/systemd/src/basic/hash-funcs.h:4,
                 from /var/tmp/portage/net-misc/networkmanager-1.26.4/work/NetworkManager-1.26.4/shared/systemd/src/basic/hashmap.h:8,
                 from /var/tmp/portage/net-misc/networkmanager-1.26.4/work/NetworkManager-1.26.4/shared/systemd/src/shared/dns-domain.h:9,
                 from /var/tmp/portage/net-misc/networkmanager-1.26.4/work/NetworkManager-1.26.4/shared/systemd/nm-sd-utils-shared.c:12:
/var/tmp/portage/net-misc/networkmanager-1.26.4/work/NetworkManager-1.26.4/shared/systemd/src/basic/alloc-util.h:100:35: error: static declaration of 'reallocarray' follows non-static declaration
  100 | _alloc_(2, 3) static inline void *reallocarray(void *p, size_t need, size_t size) {
      |                                   ^~~~~~~~~~~~
In file included from /var/tmp/portage/net-misc/networkmanager-1.26.4/work/NetworkManager-1.26.4/shared/nm-default.h:184,
                 from /var/tmp/portage/net-misc/networkmanager-1.26.4/work/NetworkManager-1.26.4/shared/systemd/nm-sd-utils-shared.c:6:
/usr/include/stdlib.h:148:7: note: previous declaration of 'reallocarray' was here
  148 | void *reallocarray (void *, size_t, size_t);
      |       ^~~~~~~~~~~~
cc1: note: unrecognized command-line option '-Wno-gnu-variable-sized-type-not-at-end' may have been intended to silence earlier diagnostics
make: *** [Makefile:13469: shared/systemd/libnm_systemd_shared_la-nm-sd-utils-shared.lo] Error 1
 * ERROR: net-misc/networkmanager-1.26.4::musl failed (compile phase):

networkmanager-1.26.4:20210123-205757.log
emerge_info.txt

@ernsteiswuerfel
Copy link
Author

Likely the same problem as in https://bugs.gentoo.org/766833.

@anarchpenguin
Copy link
Contributor

Patch has been introduced in overlay to fix problem.

gentoo-bot pushed a commit that referenced this issue Feb 3, 2021
Closes: #372
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Jory Pratt <anarchy@gentoo.org>
@ernsteiswuerfel
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants