Subject: pkg/24717: devel/opencm doesn't builds on FreeBSD
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <pancake@phreaker.net>
List: netbsd-bugs
Date: 03/09/2004 15:13:00
>Number:         24717
>Category:       pkg
>Synopsis:       OpenCM doesn't builds on FreeBSD
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 09 14:12:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     User Foo
>Release:        FreeBSD 5.2-RC2
>Organization:
	
>Environment:
	
	
System: FreeBSD porticoluna 5.2-RC2 FreeBSD 5.2-RC2 #11: Fri Jan 9 17:10:40 CET 2004 foo@porticoluna:/usr/src/sys/i386/compile/KERN_PLUNA i386
Architecture: i386
Machine: i386
>Description:
	opencm doesn't builds on FreeBSD
	
>How-To-Repeat:
	cd devel/opencm && bmake build
	
>Fix:

To fix that you must follow 2 steps:

1) Add LDFLAGS+=-pthread to mk.conf 
   -- This will probably must be patched into mk files

2) Add this patch:
	
--- patches/patch-ae.orig	Fri Jun 20 12:55:24 2003
+++ patches/patch-ae	Mon Mar  8 15:22:22 2004
@@ -1,13 +1,24 @@
-$NetBSD: patch-ae,v 1.3 2003/06/20 10:55:24 jmmv Exp $
-
---- configure.orig	2003-06-20 12:35:34.000000000 +0200
-+++ configure
-@@ -1909,7 +1909,7 @@ else
+--- configure.orig	Thu Jun 19 05:49:44 2003
++++ configure	Mon Mar  8 02:44:19 2004
+@@ -1901,7 +1901,7 @@
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   
+-    krb5_dirs="/usr/local/kerberos /usr/kerberos /usr"
++    krb5_dirs="/usr/local/kerberos /usr/kerberos /usr /usr/include"
+     if test -n "$try_krb5dir"; then
+       krb5_dirs="$try_krb5dir $krb5_dirs"
+     fi
+@@ -1909,7 +1909,11 @@
              if test ! -d "$dir" ; then
          continue;
        fi
 -      if test -f "$dir/include/krb5.h"; then
 +      if test -f "$dir/include/krb5/krb5.h"; then
++        vl_cv_lib_kerberos="$dir"
++        break;
++      fi
++      if test -f "$dir/krb5.h"; then # for FreeBSD, /usr/include/krb5.h
          vl_cv_lib_kerberos="$dir"
          break;
        fi
	
>Release-Note:
>Audit-Trail:
>Unformatted: