Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jan 2005 18:34:14 -0500 (EST)
From:      Christopher Sean Hilton <chris@vindaloo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/75827: Asterisk port (net/asterisk) fails build without libnewt (devel/newt)
Message-ID:  <200501042334.j04NYEol065745@naboo.vindaloo.com>
Resent-Message-ID: <200501042340.j04NeLTn006853@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
>Number:         75827
>Category:       ports
>Synopsis:       Asterisk port (net/asterisk) fails build without libnewt (devel/newt)
>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:   Tue Jan 04 23:40:20 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Christopher Sean Hilton
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
What me organized?!
>Environment:
System: FreeBSD tatooine.vindaloo.com 5.3-STABLE FreeBSD 5.3-STABLE #0: Mon Jan  3 18:15:26 EST 2005     root@tatooine.vindaloo.com:/usr/src/sys/i386/compile/SMP  i386

Compaq DL380 
FreeBSD 5.2-RELEASE (SMB Kernel)
Stock build (Install FreeBSD 5.3-RELEASE (Minimal build) install src code and update from source using `make world'

>Description:
I tried build Asterisk from the ports collection which I CVSuped
yesterday afternoon. The build failed on a missing header file: newt.h

     # env WITHOUT_H323=yes WITHOUT_ZAPTEL=YES make
     ===>  Vulnerability check disabled, database not found
     ===>  Extracting for asterisk-1.0.2_1
     => Checksum OK for asterisk-1.0.2.tar.gz.
     ===>  Patching for asterisk-1.0.2_1
     ===>  Applying FreeBSD patches for asterisk-1.0.2_1
     ===>   asterisk-1.0.2_1 depends on file: /usr/local/lib/mysql/libmysqlclient.a - found
     ===>   asterisk-1.0.2_1 depends on executable: gmake - found
     ===>   asterisk-1.0.2_1 depends on executable: bison - found
     ===>   asterisk-1.0.2_1 depends on shared library: speex.3 - found
     ===>  Configuring for asterisk-1.0.2_1
     creating cache ./config.cache
     checking for gcc... cc
     checking whether the C compiler (cc -O -pipe  ) works... yes

     ...

     cc -O -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations  -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE   -march=i386     -I/usr/local/include -DASTERISK_VERSION=\"1.0.2\" -DINSTALL_PREFIX=\"/usr/local\" -DASTETCDIR=\"/usr/local/etc/asterisk\" -DASTLIBDIR=\"/usr/local/lib/asterisk\" -DASTVARLIBDIR=\"/usr/local/share/asterisk\" -DASTVARRUNDIR=\"/var/run\" -DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\" -DASTCONFPATH=\"/usr/local/etc/asterisk/asterisk.conf\" -DASTMODDIR=\"/usr/local/lib/asterisk/modules\" -DASTAGIDIR=\"/usr/local/share/asterisk/agi-bin\"     -DBUSYDETECT_MARTIN      -DNO_AST_MM -I/usr/local/include -L/usr/local/lib   -c -o astman.o astman.c
     astman.c:8:18: newt.h: No such file or directory

     ...

     gmake[1]: *** [astman.o] Error 1
     gmake[1]: Leaving directory `/usr/ports/net/asterisk/work/asterisk-1.0.2/astman'
     gmake: *** [subdirs] Error 1
     *** Error code 2

     Stop in /usr/ports/net/asterisk.
     # 

Turns out that the ports Makefile is missing a dependency on
${PORTSDIR}/devel/newt. 

>How-To-Repeat:

   o Install FreeBSD 5.3-RELEASE
   o make world to update to 5.3-STABLE
   o Install ports collection and cvsup to latest bits
   o cd /usr/ports/net/asterisk
   o env WITHOUT_H323=yes WITHOUT_ZAPTEL=yes make
  

>Fix:
This patch adds the needed dependency:

--- net/asterisk/Makefile.orig	Tue Jan  4 18:04:54 2005
+++ net/asterisk/Makefile	Tue Jan  4 18:07:50 2005
@@ -2,7 +2,7 @@
 # Date created:				17 October 2003
 # Whom:					Maxim Sobolev <sobomax@portaone.com>
 #
-# $FreeBSD: /repoman/r/pcvs/ports/net/asterisk/Makefile,v 1.20 2004/12/29 00:01:54 sobomax Exp $
+# $FreeBSD: ports/net/asterisk/Makefile,v 1.20 2004/12/29 00:01:54 sobomax Exp $
 #
 
 PORTNAME=	asterisk
@@ -17,7 +17,8 @@
 
 ONLY_FOR_ARCHS=	i386 sparc64
 
-BUILD_DEPENDS=	${LOCALBASE}/lib/mysql/libmysqlclient.a:${PORTSDIR}/databases/mysql40-client
+BUILD_DEPENDS=	${LOCALBASE}/lib/mysql/libmysqlclient.a:${PORTSDIR}/databases/mysql40-client \
+		${LOCALBASE}/lib/libnewt.a:${PORTSDIR}/devel/newt
 LIB_DEPENDS=	speex.3:${PORTSDIR}/audio/speex
 RUN_DEPENDS=	${LOCALBASE}/lib/mysql/libmysqlclient.a:${PORTSDIR}/databases/mysql40-client
 



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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501042334.j04NYEol065745>