[Home]

Summary:ASTERISK-04357: CVS-HEAD 2005-05-06 compilation error
Reporter:alexb (alexb)Labels:
Date Opened:2005-06-06 05:08:01Date Closed:2005-06-06 12:09:14
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) make_defaults_h
Description:http://bugs.digium.com/view.php?id=4116 --> make_defaults_h and make_version_h are not included in today snapshot, so the following error occurs when compiling:

./make_defaults_h > defaults.h.tmp
/bin/sh: ./make_defaults_h: No such file or directory
make: *** [defaults.h] Error 127
Comments:By: Jeffrey C. Ollie (jcollie) 2005-06-06 07:55:37

I have uploaded a copy of the missing script.

By: Kevin P. Fleming (kpfleming) 2005-06-06 07:57:31

Actually both new scripts were missing... but are now in CVS. Sorry for forgetting to 'cvs add' them.

By: alexb (alexb) 2005-06-06 11:41:21

Still an error:

if [ -d CVS ] && [ ! -f .version ]; then echo CVS-HEAD-06/07/05-02:37:16 > .version; fi
./make_build_h
/*
* build.h
* Automatically generated
*/
#define BUILD_HOSTNAME "pbx-test"
#define BUILD_KERNEL "2.6.10-1.770_FC3_mISDN"
#define BUILD_MACHINE "i686"
#define BUILD_OS "Linux"
#define BUILD_DATE "2005-06-07 00:37:16"
#define BUILD_USER "root"

gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g  -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE  -O6 -march=i586  -DZAPTEL_OPTIMIZATIONS  -DASTERISK_VERSION=\"CVS-HEAD-06/07/05-02:37:16\" -DASTERISK_VERSION_NUM=999999 -DINSTALL_PREFIX=\"\" -DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" -DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run\" -DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\" -DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" -DASTMODDIR=\"/usr/lib/asterisk/modules\" -DASTAGIDIR=\"/var/lib/asterisk/agi-bin\"     -DBUSYDETECT_MARTIN     -fomit-frame-pointer    -c -o cli.o cli.c
cli.c:35:30: asterisk/version.h: No such file or directory
cli.c:36:28: asterisk/build.h: No such file or directory
cli.c: In function `handle_version':
cli.c:399: error: syntax error before "BUILD_USER"
make: *** [cli.o] Error 1

By: Kevin P. Fleming (kpfleming) 2005-06-06 11:45:10

The Makefile sends the output of make_build_h into a file... I don't know why that's not happening on your system, but I'd double-check that you have an uncorrupted checkout.

By: Jeffrey C. Ollie (jcollie) 2005-06-06 11:53:12

AlexB: are you sure that you have the latest CVS?  The newest Makefile doesn't put any of the "-DAST*" switches on the compiler command line any more.

By: alexb (alexb) 2005-06-06 11:59:40

Sorry, a trivial error: I overwrote the new Makefile with my old one!

By: Jeffrey C. Ollie (jcollie) 2005-06-06 12:09:06

Ok, then... closing it out.