ports/159124: [PATCH] security/hydra won't compile without -I /usr/local/include

Michael Scheidell scheidell at secnap.net
Fri Jul 22 21:00:24 UTC 2011


>Number:         159124
>Category:       ports
>Synopsis:       [PATCH] security/hydra won't compile without -I /usr/local/include
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 22 21:00:23 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Michael Scheidell
>Release:        7.3
>Organization:
SECNAP Network Security
>Environment:
amd.64
>Description:
attempting to compile hydra 6.5, I get this error:

In file included from hydra-nntp.c:2:
sasl.h:24:24: error: stringprep.h: No such file or directory
sasl.h:26:18: error: pr29.h: No such file or directory
gmake: *** [hydra-nntp.o] Error 1
*** Error code 1

Stop in /usr/ports/security/hydra.
*** Error code 1

Stop in /usr/ports/security/hydra.

>How-To-Repeat:
cd /usr/ports/security/hydra
make

>Fix:
need to include /usr/local/include:

cd /usr/local/include
 ls -lt stringprep.h
-r--r--r--  1 root  wheel  8052 Jul 21 11:04 stringprep.h
 ls -l pr29.h 
-r--r--r--  1 root  wheel  1980 Jul 21 11:04 pr29.h

apply this patch, adds -I/usr/local/include (or $PREFIX/include)



Patch attached with submission follows:

 diff -bBru /tmp/Makefile ./
--- /tmp/Makefile	2011-07-19 17:45:26.000000000 -0400
+++ ./Makefile	2011-07-22 16:50:22.000000000 -0400
@@ -8,6 +8,7 @@
 
 PORTNAME=	hydra
 PORTVERSION=	6.5
+PORTREVISION=	1
 CATEGORIES=	security
 MASTER_SITES=	http://freeworld.thc.org/releases/
 EXTRACT_SUFX=	-src.tar.gz
diff -bBru /tmp/patch-configure files
--- /tmp/patch-configure	2011-07-22 16:35:13.000000000 -0400
+++ files/patch-configure	2011-07-22 16:49:36.000000000 -0400
@@ -1,5 +1,5 @@
---- configure.orig	2011-04-30 22:28:12.000000000 +0400
-+++ configure	2011-05-31 20:22:25.000000000 +0400
+--- configure.orig	2011-07-15 06:17:01.000000000 -0400
++++ configure	2011-07-22 16:49:03.000000000 -0400
 @@ -653,7 +653,7 @@
  XIPATHS=""
  
@@ -9,3 +9,14 @@
  fi
  if [ -n "$SSL_PATH" ]; then
      XDEFINES="$XDEFINES -DLIBOPENSSL"
+@@ -790,6 +790,10 @@
+     PREFIX="/usr/local"
+ fi
+ 
++if [ -d $PREFIX/include ];then
++   XIPATHS="$XIPATHS -I$PREFIX/include"
++fi
++
+ if [ "X" = "X$XHYDRA_SUPPORT" ]; then
+     XHYDRA_SUPPORT=""
+ else



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list