Skip Menu |
 

From: "Vanush "Misha" Paturyan" <misha@cs.nuim.ie>
Date: Fri, 28 Mar 2014 12:50:47 +0000
To: krb5-bugs@mit.edu
Subject: problem compiling krb5-appl 1.0.3 with GCC 4.6.3 on Gentoo Linux
Download (untitled) / with headers
text/plain 1.3KiB
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.

Show quoted text
> >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