[Home]

Summary:ASTERISK-05066: Build fails
Reporter:quiescent (quiescent)Labels:
Date Opened:2005-09-12 22:50:18Date Closed:2005-09-12 23:28:28
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Compiling asterisk fails on FreeBSD with gmake-3.80_2 (from ports) with following error:

gmake[1]: Entering directory `/usr/home/aja/src/asterisk/stdtime'
gcc  -I/usr/local/include -L/usr/local/lib -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g  -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE  -O6 -march=i386  " -I/usr/local/include/spandsp" -DZAPTEL_OPTIMIZATIONS         -fomit-frame-pointer    -c -o localtime.o localtime.c
gcc:  -I/usr/local/include/spandsp: No such file or directory
gmake[1]: *** [localtime.o] Error 1
gmake[1]: Leaving directory `/usr/home/aja/src/asterisk/stdtime'
gmake: *** [stdtime/libtime.a] Error 2

/usr/local/include/spandsp does exist, but gmake is looking for a file beginning with " -I", as indicated on line 237 of asterisk/Makefile.

This appears only to be a problem for the above-mentioned version of gmake.  GNU make on a Linux system interprets the quotes more sanely.

****** ADDITIONAL INFORMATION ******

Removing quotes and leading space on line 237 of asterisk/Makefile fixes this.  Tested to work under both above-mentioned version of gmake on fbsd and GNU Make version 3.79.1 on Linux.
Comments:By: Russell Bryant (russell) 2005-09-12 22:59:40

spandsp is not a part of Asterisk.  Your makefile obviously is patched to invlude it.  Please report this to the port maintainer.

By: Michael Jerris (mikej) 2005-09-12 23:04:36

http://cvsweb.digium.com/index.cgi/asterisk/Makefile?rev=1.204

It's in there.

By: Russell Bryant (russell) 2005-09-12 23:10:44

um ... what is it doing there?

By: twisted (twisted) 2005-09-12 23:12:21

While that is correct, spandsp shouldn't be in the makefile at all, as it's not part of asterisk.  it's ONLY mentioned in the FreeBSD section of the Makefile.

By: Michael Jerris (mikej) 2005-09-12 23:28:28

Rolled this into ASTERISK-5020.  Thanks!