[krbdev.mit.edu #7895] problem compiling krb5-appl 1.0.3 with GCC 4.6.3 on Gentoo Linux

Vanush Misha Paturyan via RT rt-comment at krbdev.mit.edu
Fri Mar 28 14:32:41 EDT 2014


Hi all,

krb5-appl-1.0.3 failed to compile on my Gentoo Linux system running
GCC 4.6.3 and GLibc 2.17.
Compilation fails with:

In file included from /usr/include/sys/param.h:28:0,
                 from ftp_var.h:115,
                 from cmdtab.c:41:
/usr/include/signal.h:217:24: error: redefinition of typedef ‘my_sig_t’ with different type
ftp_var.h:62:19: note: previous declaration of ‘my_sig_t’ was here

This looks very similar to the bug reported here (#3243):
http://kerberos.996246.n3.nabble.com/krbdev-mit-edu-3243-compilation-problem-under-FreeBSD-4-11-RELEASE-tt318.html

Fix proposed by #3243 (see below) allows compilation to finish, but I haven't
checked if the produced binary works as expected.

> >Fix:               
> To successfully compile "krb5-1-4-3-final" FreeBSD-4.11-Released, 
> a conflict with system include files necessitates the elision of 
> two lines from appl/gssapi/ftp/ftp_var.h near line 64.  This should 
> be done in some manner by the configure script. 
> 
>         #ifdef _WIN32 
>         typedef void (*sig_t)(int); 
>         typedef void sigtype; 
>         #else 
> ====> //#define sig_t my_sig_t 
>         #define sigtype krb5_sigtype 
> ====> //typedef sigtype (*sig_t)(); 
>         #endif 
> 

Best regards,

Misha

-- 
Vanush "Misha" Paturyan
Senior Technical Officer
Room 1.37
Computer Science Department
NUI Maynooth



More information about the krb5-bugs mailing list