On Sat, Mar 21, 2009 at 11:33:57AM +0000, Frederik Himpe wrote:
> Trying to build asterisk 1.6.0-rc3, it fails with this message:

> gcc -c  -O2 -g -pipe -Wformat -Werror=format-security -Wp,-
> D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-
> size=4 -Werror-implicit-function-declaration -O '-D__RCSID(x)=' '-
> D__COPYRIGHT(x)=' '-D__RENAME(x)=' '-D_DIAGASSERT(x)=' -I. readline.c -o 
> readline.o_a
> readline.c:39:22: error: asterisk.h: No such file or directory

Here is how it was run for me:

gcc -c  -pthread -I../..//include -pipe -Wall -Wstrict-prototypes 
-Wmissing-prototypes -Wmissing-declarations -g3 -march=k8 -ffunction-sections 
-O6 -O '-D__RCSID(x)=' '-D__COPYRIGHT(x)=' '-D__RENAME(x)=' '-D_DIAGASSERT(x)=' 
-I. readline.c -o readline.o_a

Note the extra '-I../..//include' . 

What is the output of:

  ls -l main/editline/Makefile*
  grep ^CFLAGS main/editline/Makefile*

My wild guess: somebody tried to overrie Asterisk's, well, let's say,
strange, -O6, and did it wrong.

-- 
               Tzafrir Cohen
icq#16849755              jabber:[email protected]
+972-50-7952406           mailto:[email protected]
http://www.xorcom.com  iax:[email protected]/tzafrir

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to