Bug 95969 - net/gastman doesn't compile with newest net/asterisk
Summary: net/gastman doesn't compile with newest net/asterisk
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-17 23:10 UTC by Wes Santee
Modified: 2006-08-06 18:48 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wes Santee 2006-04-17 23:10:14 UTC
	
	Apparently the manager interface for Asterisk has changed in
	newer versions.  /net/gastman attempts to use hard-coded
	manager structures, and those structures have apparently
	changed in newer versions of Asterisk.  As a result, the
	gastman port fails to compile.

Fix: 

Looks like marking the port broken is the fix for right now.
	There are no newer versions of gastman that I've seen that use
	the newer manager interface.
How-To-Repeat: 
	1)  Install /net/asterisk from ports (1.2.4 as of this
            writing)
	2)  cd /usr/ports/net/gastman ; make install

        ===>  Building for gastman-1.0.r1_1
        cc -O2 -fno-strict-aliasing -pipe  -D__FreeBSD__ -Wall -g -DXTHREADS -DXUSE_MTSAFE_API -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/X11R6/include/gtk-2.0 -I/usr/X11R6/lib/gtk-2.0/include -I/usr/X11R6/include/pango-1.0 -I/usr/X11R6/include -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include/glib12 -Iinclude -DGTK_ENABLE_BROKEN   -c -o gastman.o gastman.c
        <command line>:2:1: warning: "__FreeBSD__" redefined
        <built-in>:67:1: warning: this is the location of the previous definition
        gastman.c:43:1: warning: "MAX_HEADERS" redefined
        In file included from gastman.c:40:
        /usr/local/include/asterisk/manager.h:59:1: warning: this is the location of the previous definition
        gastman.c:44:1: warning: "MAX_LEN" redefined
        /usr/local/include/asterisk/manager.h:60:1: warning: this is the location of the previous definition
        gastman.c:81: error: redefinition of `struct mansession'
        gastman.c:88: error: redefinition of `struct message'
        gastman.c: In function `gastman_queue_select':
        gastman.c:594: warning: long int format, time_t arg (arg 4)
        gastman.c: In function `login':
        gastman.c:1716: warning: implicit declaration of function `__gethostbyname__is__not__reentrant__use__ast_gethostbyname__instead__'
        gastman.c:1716: warning: assignment makes pointer from integer without a cast
        gmake: *** [gastman.o] Error 1
        *** Error code 2

        Stop in /storage/usr/ports/net/gastman.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-04-17 23:12:08 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 2 Filippo Natali 2006-06-15 15:32:10 UTC
Hi,

I'm the maintainer, I agree to mark this port BROKEN.

best regards
Filippo
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2006-06-15 19:16:50 UTC
State Changed
From-To: feedback->open

Maintainer approved.
Comment 4 Tilman Keskinoz freebsd_committer freebsd_triage 2006-07-08 13:52:04 UTC
State Changed
From-To: open->feedback

The port has no dependency on asterisk and builds fine without  
asterisk installed, so i think a CONFLICT would be more appropriate. 

Maintainer OK?
Comment 5 Tilman Keskinoz freebsd_committer freebsd_triage 2006-08-06 18:47:54 UTC
State Changed
From-To: feedback->closed

I have committed a fix. Thanks for reporting.