Frederik Himpe
2009-Mar-21 11:33 UTC
[asterisk-users] 1.6.0-rc3 Build failure: asterisk.h: No such file or directory
Trying to build asterisk 1.6.0-rc3, it fails with this message: make[2]: Entering directory `/home/fhimpe/rpm/BUILD/asterisk-1.6.1.0-rc3/ main/editline' /bin/sh makelist -h common.c > common.h /bin/sh makelist -h emacs.c> emacs.h /bin/sh makelist -h vi.c > vi.h /bin/sh makelist -fh common.h emacs.h vi.h > fcns.h /bin/sh makelist -fc common.h emacs.h vi.h > fcns.c if uname -s | /bin/grep -qi cygwin; then cat fcns.c | sed -e s/"sys \.h"/"config.h"/g > fcns.c.copy; mv --force fcns.c.copy fcns.c; fi /bin/sh makelist -bh common.c emacs.c vi.c > help.h /bin/sh makelist -bc common.c emacs.c vi.c > help.c if uname -s | /bin/grep -qi cygwin; then cat help.c | sed -e s/"sys \.h"/"config.h"/g > help.c.copy; mv --force help.c.copy help.c; fi /bin/sh makelist -e common.c emacs.c vi.c chared.c el.c hist.c key.c map.c parse.c prompt.c read.c refresh.c search.c sig.c term.c tty.c fcns.c help.c > editline.c 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. editline.c -o editline.o_a 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. np/fgetln.c -o np/fgetln.o_a 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. np/vis.c -o np/ vis.o_a 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. np/unvis.c -o np/unvis.o_a 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. np/strlcpy.c -o np/strlcpy.o_a 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. np/strlcat.c -o np/strlcat.o_a 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. history.c -o history.o_a 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. tokenizer.c -o tokenizer.o_a 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 What could be wrong here? -- Frederik Himpe
Tilghman Lesher
2009-Mar-21 14:35 UTC
[asterisk-users] 1.6.0-rc3 Build failure: asterisk.h: No such file or directory
On Saturday 21 March 2009 06:33:57 Frederik Himpe wrote:> Trying to build asterisk 1.6.0-rc3, it fails with this message: ><snip>> What could be wrong here?What's wrong here is that you're compiling a release candidate that is 6 months old and the problems associated with it have been long since corrected. If you're keen on trying a release candidate, please try asterisk-1.6.0.7-rc2, or if not, try asterisk-1.6.0.6. -- Tilghman
Tzafrir Cohen
2009-Mar-21 18:58 UTC
[asterisk-users] 1.6.0-rc3 Build failure: asterisk.h: No such file or directory
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 directoryHere 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:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir