From nobody@FreeBSD.org  Sat Jun  7 14:26:53 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id AC5A21065670
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  7 Jun 2008 14:26:53 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 98DD58FC17
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  7 Jun 2008 14:26:53 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m57EQqF4084867
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 7 Jun 2008 14:26:52 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m57EQqcX084866;
	Sat, 7 Jun 2008 14:26:52 GMT
	(envelope-from nobody)
Message-Id: <200806071426.m57EQqcX084866@www.freebsd.org>
Date: Sat, 7 Jun 2008 14:26:52 GMT
From: Wouter Verhelst <wouter@grep.be>
To: freebsd-gnats-submit@FreeBSD.org
Subject: www/mod_auth_kerb doesn't compile against heimdal
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         124375
>Category:       ports
>Synopsis:       security/heimdal: www/mod_auth_kerb doesn't compile against heimdal in ports
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 07 14:30:00 UTC 2008
>Closed-Date:    
>Last-Modified:  Wed Mar 19 01:40:00 UTC 2014
>Originator:     Wouter Verhelst
>Release:        6.3
>Organization:
>Environment:
FreeBSD flamenco.grep.be 6.3-STABLE FreeBSD 6.3-STABLE #4: Sun Jan 20 00:46:20 CET 2008     philip@dorfl.nixsys.be:/usr/obj/usr/src/sys/DORFL  sparc64
>Description:
When trying to install www/mod_auth_kerb on a machine with the FreeBSD-default Kerberos implementation, heimdal, installed, compilation just dies, with the following near the end of the compile output:

/usr/local/build-1/libtool --silent --mode=compile cc -prefer-pic -O2 -fno-strict-aliasing -pipe -I/usr/local/include    -I/usr/local/include/apache22  -I/usr/local/include/apr-1   -I/usr/local/include/apr-1 -I/usr/local/include -I. -Ispnegokrb5 -I/usr/include  -c -o spnegokrb5/asn1_MechType.lo spnegokrb5/asn1_MechType.c && touch spnegokrb5/asn1_MechType.slo
In file included from /usr/local/include/der.h:97,
                 from spnegokrb5/asn1_MechType.c:11:
/usr/local/include/der-protos.h:13: error: syntax error before '*' token
/usr/local/include/der-protos.h:18: error: syntax error before '*' token
/usr/local/include/der-protos.h:25: error: syntax error before "heim_any"
/usr/local/include/der-protos.h:32: error: syntax error before "heim_any_set"
/usr/local/include/der-protos.h:37: error: syntax error before '*' token
/usr/local/include/der-protos.h:42: error: syntax error before '*' token
/usr/local/include/der-protos.h:47: error: syntax error before '*' token
/usr/local/include/der-protos.h:52: error: syntax error before '*' token
/usr/local/include/der-protos.h:57: error: syntax error before '*' token
/usr/local/include/der-protos.h:62: error: syntax error before '*' token
/usr/local/include/der-protos.h:67: error: syntax error before '*' token
/usr/local/include/der-protos.h:72: error: syntax error before '*' token
/usr/local/include/der-protos.h:77: error: syntax error before '*' token
/usr/local/include/der-protos.h:82: error: syntax error before '*' token
/usr/local/include/der-protos.h:87: error: syntax error before '*' token
/usr/local/include/der-protos.h:91: error: syntax error before '*' token
/usr/local/include/der-protos.h:94: error: syntax error before '*' token
/usr/local/include/der-protos.h:97: error: syntax error before '*' token
/usr/local/include/der-protos.h:100: error: syntax error before '*' token
/usr/local/include/der-protos.h:103: error: syntax error before '*' token
/usr/local/include/der-protos.h:106: error: syntax error before '*' token
/usr/local/include/der-protos.h:109: error: syntax error before '*' token
/usr/local/include/der-protos.h:112: error: syntax error before '*' token
/usr/local/include/der-protos.h:115: error: syntax error before '*' token
/usr/local/include/der-protos.h:118: error: syntax error before '*' token
/usr/local/include/der-protos.h:121: error: syntax error before '*' token
/usr/local/include/der-protos.h:127: error: syntax error before "heim_bit_string"
/usr/local/include/der-protos.h:134: error: syntax error before "heim_bmp_string"
/usr/local/include/der-protos.h:154: error: syntax error before "heim_general_string"
/usr/local/include/der-protos.h:168: error: syntax error before "heim_integer"
/usr/local/include/der-protos.h:175: error: syntax error before "heim_ia5_string"
/usr/local/include/der-protos.h:196: error: syntax error before "heim_octet_string"
/usr/local/include/der-protos.h:203: error: syntax error before "heim_oid"
/usr/local/include/der-protos.h:210: error: syntax error before "heim_printable_string"
/usr/local/include/der-protos.h:238: error: syntax error before "heim_universal_string"
/usr/local/include/der-protos.h:259: error: syntax error before "heim_utf8_string"
/usr/local/include/der-protos.h:266: error: syntax error before "heim_visible_string"
/usr/local/include/der-protos.h:271: error: syntax error before '*' token
/usr/local/include/der-protos.h:276: error: syntax error before '*' token
/usr/local/include/der-protos.h:281: error: syntax error before '*' token
/usr/local/include/der-protos.h:286: error: syntax error before '*' token
/usr/local/include/der-protos.h:291: error: syntax error before '*' token
/usr/local/include/der-protos.h:296: error: syntax error before '*' token
/usr/local/include/der-protos.h:300: error: syntax error before '*' token
/usr/local/include/der-protos.h:303: error: syntax error before '*' token
/usr/local/include/der-protos.h:312: error: syntax error before '*' token
/usr/local/include/der-protos.h:318: error: syntax error before '*' token
/usr/local/include/der-protos.h:321: error: syntax error before '*' token
/usr/local/include/der-protos.h:330: error: syntax error before '*' token
/usr/local/include/der-protos.h:333: error: syntax error before '*' token
/usr/local/include/der-protos.h:336: error: syntax error before '*' token
/usr/local/include/der-protos.h:339: error: syntax error before '*' token
/usr/local/include/der-protos.h:348: error: syntax error before '*' token
/usr/local/include/der-protos.h:351: error: syntax error before '*' token
/usr/local/include/der-protos.h:376: error: syntax error before "heim_oid"
/usr/local/include/der-protos.h:381: error: syntax error before "heim_integer"
/usr/local/include/der-protos.h:385: error: syntax error before '*' token
/usr/local/include/der-protos.h:391: error: syntax error before '*' token
/usr/local/include/der-protos.h:398: error: syntax error before '*' token
/usr/local/include/der-protos.h:405: error: syntax error before '*' token
/usr/local/include/der-protos.h:419: error: syntax error before '*' token
/usr/local/include/der-protos.h:433: error: syntax error before '*' token
/usr/local/include/der-protos.h:440: error: syntax error before '*' token
/usr/local/include/der-protos.h:471: error: syntax error before '*' token
/usr/local/include/der-protos.h:478: error: syntax error before '*' token
/usr/local/include/der-protos.h:485: error: syntax error before '*' token
/usr/local/include/der-protos.h:501: error: syntax error before '*' token
/usr/local/include/der-protos.h:522: error: syntax error before '*' token
/usr/local/include/der-protos.h:529: error: syntax error before '*' token
/usr/local/include/der-protos.h:536: error: syntax error before '*' token
/usr/local/include/der-protos.h:543: error: syntax error before '*' token
/usr/local/include/der-protos.h:547: error: syntax error before '*' token
/usr/local/include/der-protos.h:550: error: syntax error before '*' token
/usr/local/include/der-protos.h:554: error: syntax error before '*' token
/usr/local/include/der-protos.h:558: error: syntax error before '*' token
/usr/local/include/der-protos.h:561: error: syntax error before '*' token
In file included from spnegokrb5/asn1_MechType.c:11:
/usr/local/include/der.h:101: error: syntax error before "heim_octet_string"
apxs:Error: Command failed with rc=65536
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->apache 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Jun 7 14:30:08 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=124375 

From: Ryan Steinmetz <rpsfa@rit.edu>
To: bug-followup@FreeBSD.org, wouter@grep.be
Cc:  
Subject: Re: ports/124375: www/mod_auth_kerb doesn't compile against heimdal
Date: Sat, 6 Dec 2008 14:54:20 -0500

 This is only an issue when you have installed the heimdal port.  mod_auth_kerb compiles fine using the heimdal installation in base.
 
 
 -- 
 Ryan Steinmetz
 Lead Security/Systems Administrator
 Finance & Administration
 Systems & Technology
 Rochester Institute of Technology
 585.475.5663
 PGP: EF36 D45A 5CA9 28B1 A550  18CD A43C D111 7AD7 FAF2

http://www.freebsd.org/cgi/query-pr.cgi?pr=124375 
Responsible-Changed-From-To: apache->freebsd-ports-bugs 
Responsible-Changed-By: pgollucci 
Responsible-Changed-When: Fri May 14 05:08:18 UTC 2010 
Responsible-Changed-Why:  
apache@ doesn't maintain heimdal 

http://www.freebsd.org/cgi/query-pr.cgi?pr=124375 
Responsible-Changed-From-To: freebsd-ports-bugs->apache 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Sep 14 18:42:24 UTC 2010 
Responsible-Changed-Why:  
apache@ wants this port PRs (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=124375 

From: Joerg Pulz <Joerg.Pulz@frm2.tum.de>
To: bug-followup@FreeBSD.org, wouter@grep.be
Cc:  
Subject: Re: ports/124375: security/heimdal: www/mod_auth_kerb doesn't compile
 against heimdal in ports
Date: Sun, 7 Nov 2010 20:49:57 +0100 (CET)

 [Resent as i messed up the subject in the previous mail]
 
 Hi,
 
 security/heimdal was updated to version 1.4 on 2010/10/31.
 Please test if you still have problems.
 
 If we receive no response, i would propose to close this PR as it relates to 
 FreeBSD-6.3 and 6.x is EOL end of november 2010.
 
 Kind regards
 Joerg
 
 -- 
 The beginning is the most important part of the work.
  				-Plato

From: Wouter Verhelst <w@uter.be>
To: Joerg Pulz <Joerg.Pulz@frm2.tum.de>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/124375: security/heimdal: www/mod_auth_kerb doesn't
 compile against heimdal in ports
Date: Mon, 8 Nov 2010 00:36:02 +0100

 On Sun, Nov 07, 2010 at 08:49:57PM +0100, Joerg Pulz wrote:
 > [Resent as i messed up the subject in the previous mail]
 > 
 > Hi,
 > 
 > security/heimdal was updated to version 1.4 on 2010/10/31.
 > Please test if you still have problems.
 
 I can still reproduce (though it's with mod_auth_kerb2 rather than
 mod_auth_kerb now; the latter requires apache 1.3, which I'm not using)
 
 wouter@flamenco:/usr/ports/www/mod_auth_kerb2$ uname -r
 8.1-STABLE
 
 That's inside a jail, if that matters.
 
 -- 
 The biometric identification system at the gates of the CIA headquarters
 works because there's a guard with a large gun making sure no one is
 trying to fool the system.
   http://www.schneier.com/blog/archives/2009/01/biometrics.html

From: Dewayne Geraghty <dewayne.geraghty@heuristicsystems.com.au>
To: bug-followup@FreeBSD.org, wouter@grep.be
Cc: apache@FreeBSD.org
Subject: Re: ports/124375: security/heimdal: www/mod_auth_kerb doesn&#39;t
 compile against heimdal in ports
Date: Wed, 19 Mar 2014 12:15:33 +1100

 To build the www/mod_auth_kerb2 package on a 9.2Stable system using the
 security/heimdal port,
 is  to copy the following into files/
 
 --- patch-Makefile.in.orig      2014-03-13 19:57:40.000000000 +1100
 +++ patch-Makefile.in   2014-03-13 19:58:11.000000000 +1100
 @@ -4,7 +4,7 @@
   APXS = @APXS@
   KRB5_CPPFLAGS = @KRB5_CPPFLAGS@
  -KRB5_LDFLAGS = @KRB5_LDFLAGS@
 -+KRB5_LDFLAGS = @KRB5_LDFLAGS@ -lgssapi_krb5
 ++KRB5_LDFLAGS = @KRB5_LDFLAGS@
   KRB4_CPPFLAGS = @KRB4_CPPFLAGS@
   KRB4_LDFLAGS = @KRB4_LDFLAGS@
   LIB_resolv = @LIB_resolv@
 
 
  patch-src__mod_auth_kerb_last.c
 --- src/mod_auth_kerb.c.orig        2013-11-27 16:33:18.000000000 +1100
 +++ src/mod_auth_kerb.c     2013-11-27 16:33:35.000000000 +1100
 @@ -100,6 +100,7 @@
  #include <krb5.h>
  #ifdef HEIMDAL
  #  include <gssapi/gssapi.h>
 +#  include <gssapi/gssapi_krb5.h>
  #else
  #  include <gssapi/gssapi.h>
  #  include <gssapi/gssapi_generic.h>
 
 caveat:  heimdal is placed into /usr (PREFIX=/usr), so my
 HEIMDAL_HOME=/usr which enables the include files and libraries to be
 found by other ports.
 Regards, Dewayne.
>Unformatted:
