ports/157422: net/rabbitmq port compilation error

Antoine van Gelder antoine at artifactual.org.za
Mon May 30 12:10:13 UTC 2011


>Number:         157422
>Category:       ports
>Synopsis:       net/rabbitmq port compilation error
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 30 12:10:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Antoine van Gelder
>Release:        8.2
>Organization:
>Environment:
FreeBSD phi.7degrees.co.za 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011     root at almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
Compiling rabbitmq fails with: 

--
erlc -I include -o ebin -Wall -v +debug_info -Duse_specs -pa ebin src/rabbit_networking.erl
src/rabbit_networking.erl:58: type hostname() undefined
src/rabbit_networking.erl:80: type ip_port() undefined
gmake: *** [ebin/rabbit_networking.beam] Error 1
*** Error code 1

Stop in /usr/ports/net/rabbitmq.



>How-To-Repeat:
cd /usr/ports/net/rabbitmq
make
>Fix:
The problem is being caused by missing type declarations for hostname/0 and ip_port/0 in src/rabbitmq_networking.erl

It looks like the problem has already been fixed in the rabbitmq mercurial repository.

The attached patch sorts it out.

Patch attached with submission follows:

--- src/rabbit_networking.erl.orig	2011-02-03 14:47:35.000000000 +0200
+++ src/rabbit_networking.erl	2011-05-30 13:51:28.000000000 +0200
@@ -52,6 +52,9 @@
 
 -export_type([ip_port/0, hostname/0]).
 
+-type(hostname() :: inet:hostname()).
+-type(ip_port() :: inet:ip_port()).
+
 -type(family() :: atom()).
 -type(listener_config() :: ip_port() |
                            {hostname(), ip_port()} |


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



More information about the freebsd-ports-bugs mailing list