Bug 75827

Summary: Asterisk port (net/asterisk) fails build without libnewt (devel/newt)
Product: Ports & Packages Reporter: Christopher Sean Hilton <chris>
Component: Individual Port(s)Assignee: Maxim Sobolev <sobomax>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Christopher Sean Hilton 2005-01-04 23:40:20 UTC
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.

Fix: This patch adds the needed dependency:
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
Comment 1 Thierry Thomas freebsd_committer freebsd_triage 2005-01-05 08:45:45 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sobomax


Over to maintainer.
Comment 2 Maxim Sobolev freebsd_committer freebsd_triage 2005-01-09 10:41:08 UTC
State Changed
From-To: open->closed

Committed, thanks!