Building diffutils fails with recent versions of glibc (2.16+). The
error occurs in files pulled in from gnulib:

In file included from exclude.c:31:0:                                           
     
./stdio.h:1012:1: error: 'gets' undeclared here (not in a function)             
     
  CC       hard-locale.o                                                        
     
In file included from stdio-safer.h:20:0,                                       
     
                 from freopen-safer.c:22:                                       
     
./stdio.h:1012:1: error: 'gets' undeclared here (not in a function)             
     
  CC       hash.o                                                               
     
make[4]: *** [freopen-safer.o] Error 1                                          
     
make[4]: *** Waiting for unfinished jobs....                                    
     
make[4]: *** [exclude.o] Error 1                                                
     
In file included from hash.h:27:0,                                              
     
                 from hash.c:27:                                                
     
./stdio.h:1012:1: error: 'gets' undeclared here (not in a function)    

The error exists in this file: lib/stdio.in.h

The problem has already been fixed upstream in gnulib, so it should be
as simple as updating the code included in diffutils.

Here was the upstream patch:
https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00186.html

Please let me know if you need any more info!
Upstream patch:
https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00186.html

Cheers,
Brandon Invergo

Reply via email to