HomeFreeBSD

ctfdump: Remove definitions of warn() and vwarn()

Description

ctfdump: Remove definitions of warn() and vwarn()

The presence of the latter causes a link error when building a
statically linked ctfdump(1) because libc defines the same symbol.
libc's warn() is defined as a weak symbol and so does not cause the same
problem, but let's just use libc's version.

Reported by: stephane rochoy <stephane.rochoy@stormshield.eu>
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 45dd2eaac379e5576f745380260470204c49beac)
(cherry picked from commit 5def1805d144f3e95dac966d72a6fc3878ce6b98)

Details

Provenance
markjAuthored on Apr 21 2022, 2:49 PM
zleiCommitted on Feb 26 2023, 5:26 AM
Parents
rG96200385228e: ctfdump: Use getprogname()
Branches
Unknown
Tags
Unknown