Hi, after quite some time doing nothing with asterisk I downloaded the current cvs version. Building this on a SuSE 8.2 System with gcc 3.3 i ran into an unpleasant snag: pbx.c:581: warning: comparison between signed and unsigned pbx.c: In function `pbx_substitute_variables_temp': pbx.c:765: warning: comparison between signed and unsigned pbx.c:812: warning: comparison between signed and unsigned pbx.c: In function `pbx_builtin_hangup': pbx.c:4017: internal compiler error: Segmentation fault The last line realy stopped me cold :-( changing the -O level made no difference. There is a Bug filed with gcc that seems to fit here but it could also be a prob with my machine? Anybody else with the same problem? What is the last gcc version that works for you? G! UK
Compiles OK for me on SuSE 8.2 Professional with k_smp-2.4.20-86 and gcc-3.3-23 on a Tyan S2462 with a Asterisk CVS snapshot from 1700UTC. gapinski@chipotle:~/digium/asterisk> md5sum pbx.c c5b9063e18fe10a5f07054061c2ecd18 pbx.c gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686 -DZAPTEL_OPTIMIZATIONS -DASTERISK_VERSION=\"CVS-05/10/03-10:40:13\" -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 -c -o pbx.o pbx.c pbx.c: In function `ast_extension_match': pbx.c:562: warning: comparison between signed and unsigned pbx.c: In function `extension_close': pbx.c:581: warning: comparison between signed and unsigned pbx.c: In function `pbx_substitute_variables_temp': pbx.c:765: warning: comparison between signed and unsigned pbx.c:812: warning: comparison between signed and unsigned pbx.c: In function `pbx_builtin_stripmsd': pbx.c:4026: warning: comparison between signed and unsigned pbx.c: In function `load_pbx': pbx.c:4373: warning: comparison between signed and unsigned and the remainder of the make proceeds to completion. (I did a make clean prior to this).
Gary Gapinski schrieb:> > Compiles OK for me on SuSE 8.2 Professional with k_smp-2.4.20-86 and > gcc-3.3-23 on a Tyan S2462 with a Asterisk CVS snapshot from 1700UTC. > > gapinski@chipotle:~/digium/asterisk> md5sum pbx.c > c5b9063e18fe10a5f07054061c2ecd18 pbx.cHi Gary and Thanks for your help. my problem seems to be hardware bound. P200/32MB G! UK