Summary: | ASTERISK-14935: [regression] menuselect compilation failure on Solaris 10 | ||
Reporter: | Samuel Owens (saumelw) | Labels: | |
Date Opened: | 2009-10-03 00:37:21 | Date Closed: | 2011-06-07 14:08:23 |
Priority: | Minor | Regression? | Yes |
Status: | Closed/Complete | Components: | Core/Portability |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | Unable to compile menuselect on Solaris due to compilation errors: # gmake gmake[1]: Entering directory `/datadisk/sowens/Asterisk/asterisk-1.4.26.2/menuselect' checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for a BSD-compatible install... ./install-sh -c checking for ranlib... : checking for ar... /usr/bin/ar checking for cp... /usr/bin/cp checking for ln... /usr/bin/ln checking for mkdir... /usr/bin/mkdir checking for nroff... /usr/bin/nroff checking for rm... /usr/bin/rm checking for strdup... yes checking for vsnprintf... yes configure: creating ./config.status config.status: creating Makefile config.status: creating mxml.list config.status: creating mxml.pc config.status: creating config.h gmake[1]: Leaving directory `/datadisk/sowens/Asterisk/asterisk-1.4.26.2/menuselect' gmake[1]: Entering directory `/datadisk/sowens/Asterisk/asterisk-1.4.26.2/menuselect' gmake[2]: Entering directory `/datadisk/sowens/Asterisk/asterisk-1.4.26.2/menuselect' gcc -g -c -D_GNU_SOURCE -Wall -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -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 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -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 gcc -g -c -D_GNU_SOURCE -Wall -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -c -o menuselect_curses.o menuselect_curses.c menuselect_curses.c: In function `show_help': menuselect_curses.c:110: warning: passing arg 2 of `waddstr' discards qualifiers from pointer target type menuselect_curses.c: In function `display_mem_info': menuselect_curses.c:195: warning: passing arg 2 of `waddstr' discards qualifiers from pointer target type menuselect_curses.c: In function `draw_title_window': menuselect_curses.c:432: warning: passing arg 2 of `waddstr' discards qualifiers from pointer target type gmake[3]: Entering directory `/datadisk/sowens/Asterisk/asterisk-1.4.26.2/menuselect/mxml' gcc -O -Wall -c mxml-attr.c gcc -O -Wall -c mxml-entity.c gcc -O -Wall -c mxml-file.c gcc -O -Wall -c mxml-index.c gcc -O -Wall -c mxml-node.c gcc -O -Wall -c mxml-search.c gcc -O -Wall -c mxml-set.c gcc -O -Wall -c mxml-private.c gcc -O -Wall -c mxml-string.c /usr/bin/rm -f libmxml.a /usr/bin/ar crvs libmxml.a mxml-attr.o mxml-entity.o mxml-file.o mxml-index.o mxml-node.o mxml-search.o mxml-set.o mxml-private.o mxml-string.o a - mxml-attr.o a - mxml-entity.o a - mxml-file.o a - mxml-index.o a - mxml-node.o a - mxml-search.o a - mxml-set.o a - mxml-private.o a - mxml-string.o ar: writing libmxml.a : libmxml.a gmake[3]: Leaving directory `/datadisk/sowens/Asterisk/asterisk-1.4.26.2/menuselect/mxml' gcc -o menuselect menuselect.o strcompat.o menuselect_curses.o mxml/libmxml.a mxml/libmxml.a -lncurses Undefined first referenced symbol in file initscr32 menuselect_curses.o w32addch menuselect_curses.o ld: fatal: Symbol referencing errors. No output written to menuselect collect2: ld returned 1 exit status gmake[2]: *** [menuselect] Error 1 gmake[2]: Leaving directory `/datadisk/sowens/Asterisk/asterisk-1.4.26.2/menuselect' gmake[1]: *** [all] Error 2 gmake[1]: Leaving directory `/datadisk/sowens/Asterisk/asterisk-1.4.26.2/menuselect' gmake: *** [menuselect/menuselect] Error 2 | ||
Comments: | By: Samuel Owens (saumelw) 2009-10-14 05:29:22 This issue has been resolved; I was able to compile Asterisk 1.4.26.2 by using the following commands PATH=/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/sfw/bin:/usr/local/bin:/opt/csw/bin LDFLAGS='-R/usr/sfw/lib -R/opt/csw/lib -L/opt/csw/lib -L/usr/sfw/lib' ./configure --with-curl=/opt/csw --prefix=/opt/asterisk-1.4 By: Majdi Bsoul (mbsoul) 2009-12-20 10:49:23.000-0600 The suggested steps in did not help at all. I still have the same problem on a solaris 10 (sparc) I reported the configure and other output in (0016463) By: Jason Parker (jparker) 2010-01-18 12:25:04.000-0600 I've been unable to reproduce this. It appears there is a known issue with the SFW version of ncurses. The CSW ncurses package should work fine. Can you try testing with that? By: Jason Parker (jparker) 2010-02-02 11:10:48.000-0600 I'm going to close this out for now. If you are able to reproduce after following my previous comment, we would be more than happy to look at this further. By: Friendly Automation (friendly-automation) 2018-08-03 12:01:52.294-0500 Change 9772 merged by Jenkins2: BuildSystem: Enable ncurses for menuselect in Solaris 11. [https://gerrit.asterisk.org/9772|https://gerrit.asterisk.org/9772] By: Friendly Automation (friendly-automation) 2018-08-03 13:30:01.963-0500 Change 9771 merged by Kevin Harwell: BuildSystem: Enable ncurses for menuselect in Solaris 11. [https://gerrit.asterisk.org/9771|https://gerrit.asterisk.org/9771] By: Friendly Automation (friendly-automation) 2018-08-03 13:30:26.633-0500 Change 9773 merged by Kevin Harwell: BuildSystem: Enable ncurses for menuselect in Solaris 11. [https://gerrit.asterisk.org/9773|https://gerrit.asterisk.org/9773] By: Friendly Automation (friendly-automation) 2018-08-03 13:30:40.700-0500 Change 9770 merged by Kevin Harwell: BuildSystem: Enable ncurses for menuselect in Solaris 11. [https://gerrit.asterisk.org/9770|https://gerrit.asterisk.org/9770] |