[Home]

Summary:ASTERISK-12679: Asterisk stopped compiling on Open Solaris [revision 140974]
Reporter:Doug McCallum (dougm)Labels:
Date Opened:2008-09-03 15:04:43Date Closed:2008-09-08 12:07:08
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/Portability
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 13417.make_buildopts_h.patch
Description:Possibly a couple of issues, but mostly that ael.flex and ael_lex.c code doesn't compile.

CC="cc" CXX="g++" LD="" AR="" RANLIB="" CFLAGS="" gmake -C menuselect CONFIGURE_
SILENT="--silent" makeopts
gmake[1]: Entering directory `/export/home/dougm/asterisk/menuselect'
gmake[1]: `makeopts' is up to date.
gmake[1]: Leaving directory `/export/home/dougm/asterisk/menuselect'
menuselect/menuselect --check-deps menuselect.makeopts  
/usr/bin/ggrep: option requires an argument -- e
Usage: ggrep [OPTION]... PATTERN [FILE]...
Try `ggrep --help' for more information.
build_tools/make_buildopts_h: MENUSELECT_CFLAGS: not found
/usr/bin/ggrep: option requires an argument -- e
Usage: ggrep [OPTION]... PATTERN [FILE]...
Try `ggrep --help' for more information.
build_tools/make_buildopts_h: MENUSELECT_BUILD_DEPS: not found
Generating embedded module rules ...
  [CC] aelparse.c -> aelparse.o
ael.flex:78:25: ael/ael.tab.h: No such file or directory
ael_lex.c:962: error: syntax error before "YYSTYPE"
ael_lex.c:962: warning: no semicolon at end of struct or union
ael_lex.c:964: warning: type defaults to `int' in declaration of `yylloc_r'
ael_lex.c:964: warning: data definition has no type or storage class
ael_lex.c:966: error: syntax error before '}' token
ael_lex.c:1005: error: syntax error before '*' token
ael_lex.c:1005: warning: type defaults to `int' in declaration of `ael_yyget_lva
l'
ael_lex.c:1005: warning: data definition has no type or storage class
ael_lex.c:1007: error: syntax error before '*' token
ael_lex.c:1007: warning: function declaration isn't a prototype
ael_lex.c:1009: error: syntax error before '*' token
ael_lex.c:1009: warning: type defaults to `int' in declaration of `ael_yyget_llo
c'
ael_lex.c:1009: warning: data definition has no type or storage class
ael_lex.c:1011: error: syntax error before '*' token
ael_lex.c:1011: warning: function declaration isn't a prototype
ael_lex.c:1120: error: syntax error before '*' token
ael_lex.c:1120: warning: function declaration isn't a prototype
ael_lex.c:1142: error: syntax error before '*' token
ael_lex.c:1143: warning: function declaration isn't a prototype
Comments:By: Sean Bright (seanbright) 2008-09-03 17:58:51

OK.  Let's try to fix one thing at a time.  Could you apply the patch above, then do:

# make distclean
# ./configure
# make

And report back any errors you receive?

Thanks


By: Sean Bright (seanbright) 2008-09-05 20:25:36

dougm, any luck?

By: Doug McCallum (dougm) 2008-09-08 11:22:51

Sorry for the delay. I was out of town without Internet access.

The patch clears up the build issues.  The only thing I see now are some warnings which may exist with Linux as well.  The warning list is:

CC="cc" CXX="g++" LD="" AR="" RANLIB="" CFLAGS="" gmake -C menuselect CONFIGURE_
SILENT="--silent" makeopts
gmake[1]: Entering directory `/export/home/dougm/asterisk/menuselect'
gmake[1]: Leaving directory `/export/home/dougm/asterisk/menuselect'
gmake[1]: Entering directory `/export/home/dougm/asterisk/menuselect'
gmake[1]: `makeopts' is up to date.
gmake[1]: Leaving directory `/export/home/dougm/asterisk/menuselect'
CC="cc" CXX="g++" LD="" AR="" RANLIB="" CFLAGS="" gmake -C menuselect CONFIGURE_
SILENT="--silent" menuselect
gmake[1]: Entering directory `/export/home/dougm/asterisk/menuselect'
gcc -g -c -D_GNU_SOURCE -Wall   -c -o menuselect.o menuselect.c
menuselect.c: In function `process_deps':
menuselect.c:482: warning: implicit declaration of function `strsep'
menuselect.c: In function `process_prev_failed_deps':
menuselect.c:793: warning: assignment makes pointer from integer without a cast
menuselect.c:794: warning: assignment makes pointer from integer without a cast
menuselect.c: In function `parse_existing_config':
menuselect.c:858: warning: assignment makes pointer from integer without a cast
menuselect.c:871: warning: assignment makes pointer from integer without a cast
menuselect.c: In function `generate_makeopts_file':
menuselect.c:1023: warning: assignment makes pointer from integer without a cast
menuselect.c:1025: warning: assignment makes pointer from integer without a cast
menuselect.c:1033: warning: assignment makes pointer from integer without a cast
menuselect.c:1035: warning: assignment makes pointer from integer without a cast
gcc -g -c -D_GNU_SOURCE -Wall   -c -o strcompat.o strcompat.c
strcompat.c: In function `strcasestr':
strcompat.c:107: warning: implicit declaration of function `alloca'
strcompat.c: In function `strtoq':
strcompat.c:278: warning: integer constant is too large for "long" type
strcompat.c:278: warning: integer constant is too large for "long" type
strcompat.c:278: warning: integer constant is too large for "long" type
strcompat.c:278: warning: integer constant is too large for "long" type
strcompat.c:301: warning: integer constant is too large for "long" type
strcompat.c:301: warning: integer constant is too large for "long" type

By: Digium Subversion (svnbot) 2008-09-08 12:03:36

Repository: asterisk
Revision: 141682

U   trunk/build_tools/make_buildopts_h

------------------------------------------------------------------------
r141682 | seanbright | 2008-09-08 12:03:35 -0500 (Mon, 08 Sep 2008) | 9 lines

Quote the arguments to grep so that sh on various platforms doesn't choke
on the special characters (like ^).

(closes issue ASTERISK-12679)
Reported by: dougm
Patches:
     13417.make_buildopts_h.patch uploaded by seanbright (license 71)
Tested by: dougm

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=141682

By: Sean Bright (seanbright) 2008-09-08 12:07:08

The warnings aren't a big deal, as long as you aren't having any build problems.  Open a new issue if you run into other problems.

Thanks for the report and feedback!