meson.build: Enhance check for error() function

Along with checking for presence of <error.h> some toolchains also
require to check for error() function to avoid linking error, e.g.
powerpc64-unknown-linux-musl-gcc from Gentoo:

    [17/18] powerpc64-unknown-linux-musl-gcc  -o ping/ping ping/ping.p/ping.c.o ping/ping.p/ping_common.c.o ping/ping.p/ping6_common.c.o ping/ping.p/node_info.c.o -Wl,--as-needed -Wl,--no-undefined -Os -pipe -mcpu=970 -mtune=970 -maltivec -mabi=altivec -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--start-group libcommon.a -lm -lresolv -Wl,--end-group
    FAILED: ping/ping
    powerpc64-unknown-linux-musl-gcc  -o ping/ping ping/ping.p/ping.c.o ping/ping.p/ping_common.c.o ping/ping.p/ping6_common.c.o ping/ping.p/node_info.c.o -Wl,--as-needed -Wl,--no-undefined -Os -pipe -mcpu=970 -mtune=970 -maltivec -mabi=altivec -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--start-group libcommon.a -lm -lresolv -Wl,--end-group
    /usr/lib/gcc/powerpc64-unknown-linux-musl/14/../../../../powerpc64-unknown-linux-musl/bin/ld: ping/ping.p/ping.c.o: in function `ping_strtod':
    ping.c:(.text+0x1c8): undefined reference to `error'

Closes: https://github.com/iputils/iputils/pull/601
Dowstream-bug: https://bugs.gentoo.org/951050
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Signed-off-by: Brahmajit Das <listout@listout.xyz>
1 file changed
tree: 712f2f87d5e080d55c2a1ea8f82e17415f8d8e3f
  1. .github/
  2. build-aux/
  3. ci/
  4. doc/
  5. Documentation/
  6. ping/
  7. po/
  8. test/
  9. tools/
  10. .gitignore
  11. .mailmap
  12. arping.c
  13. build.sh
  14. CHANGES
  15. clockdiff.c
  16. configure
  17. git-version.h.meson
  18. iputils.doap
  19. iputils_common.c
  20. iputils_common.h
  21. iputils_ni.h
  22. ipv6.h
  23. LICENSE
  24. Makefile
  25. md5.c
  26. md5.h
  27. meson.build
  28. meson_options.txt
  29. README.md
  30. SECURITY.md
  31. tracepath.c
README.md

Build Status Coverity Status

The iputils package is set of small useful utilities for Linux networking.

Installation

$ ./configure && meson build
# cd builddir && meson install

Configuration can be adjusted (prefix, what is being build, etc.), see meson_options.txt, meson.build.

Build dependencies are listed in scripts in ci directory.

Supported libc

Contributing

Issues

  • If reporting a bug, please document how to reproduce it.
  • Please always test the latest master branch.
  • Finding the commit which introduced the problem helps (bisecting).
  • Document the kernel and distribution that were used.
  • Tests should ideally use network namespaces to not interfere with the rest of the system.

Pull requests

Reviewers

  • Reviewers are very welcome. Post your comments or add Reviewed-by: Your Name <me@example.org>.

Translators

Localization is hosted on Fedora Weblate.

Tools included in iputils

Tools removed from iputils

Some obsolete tools has been removed (see #363).

ToolRemoving commitLast releaseReplacement
ninfod8f0d89720211215experimental unused protocol
rarpdfba7b6220211215superseded by DHCP protocol
rdisc744780620211215superseded by DHCP protocol
tftpd341975a20210722tftp-hpa, dnsmasq
traceroute6a13942120210722mtr, traceroute, tracepath

History

Alexey Kuznetsov (1999–2002)

Hideaki Yoshifuji (2006–2015)