#584 Old version of gnulib assumes gets is defined


The next release of Ubuntu will use eglibc 2.16, which drops the definition of gets (following ISO C11).

The embedded gnulib assumes that gets is defined, and thus causes a build failure in the current development release of Ubuntu.

Upstream gnulib has followed this change in http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=66712c23388e93e5c518ebc8515140fa0c807348

Workaround is to disable the warning in gl/stdio.in.h.

Please update gnulib to allow nagios-plugins to compile in environments where gets is not defined.

Ubuntu bug: https://launchpad.net/bugs/1097848



  • Holger Weiß

    Holger Weiß - 2013-01-09

    Yes, we're aware of that issue and will update Gnulib before the next release.

  • Holger Weiß

    Holger Weiß - 2013-01-09
    • assigned_to: nobody --> hweiss
  • inaki_mtz

    inaki_mtz - 2013-04-05

    Same issue on OpenSuse 12.3 clean install when compiling nagios-plugins 1.4.16

    ./stdio.h:456:1: error: 'gets' undeclared here (not in a function)
    make[5]: *** [localcharset.o] Error 1

  • Holger Weiß

    Holger Weiß - 2013-08-18
    • status: open --> closed-fixed

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks