Hi tody I tried to compile the source an downloaded the two folders asterisk and libpri from the CVS tree into /usr/src. Then I changed the path to the libpri and made make clean; make install. Everything worked fine. After that I changed the path to /usr/src/asterisk and made also make clean and make install. After some time I got an error: ..... SYDETECT_MARTIN -DNEW_PRI_HANGUP -c -o say.o say.c gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarat ions -g -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i586 -D ASTE RISK_VERSION=\"CVS-06/18/22-13:55:06\" -DINSTALL_PREFIX=\"\" -DASTETCDIR=\"/ etc/ asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" -DASTVARLIBDIR=\"/var/lib/aster isk\ " -DASTVARRUNDIR=\"/var/run\" -DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTLOG DIR\"/var/log/asterisk\" -DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" -DASTMOD DIR\"/usr/lib/asterisk/modules\" -DASTAGIDIR=\"/var/lib/asterisk/agi-bin\" -DBU SYDETECT_MARTIN -DNEW_PRI_HANGUP -c -o pbx.o pbx.c pbx.c: In function `ast_extension_match': pbx.c:589: warning: comparison between signed and unsigned pbx.c: In function `extension_close': pbx.c:608: warning: comparison between signed and unsigned pbx.c: In function `pbx_substitute_variables_temp': pbx.c:806: warning: comparison between signed and unsigned pbx.c:859: warning: comparison between signed and unsigned pbx.c: In function `__ast_context_destroy': pbx.c:4152: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. make: *** [pbx.o] Error 1 I don?t know what?s my fault. I compiled it on an P166Mhz Kernel 2.4.20-4GB precompiled SuSE kernel on SuSE8.2 with 32MB Ram. What?s the reason for the error, do I need other hardware?? Or any sorce file or package?? Greets Maruu
On Tue, Apr 27, 2004 at 05:03:07PM +0200, Hannes Bischof wrote:> Hi > > [snip] > > After that I changed the path to /usr/src/asterisk and made also make clean > and make install. > After some time I got an error: > > [snip] > > pbx.c:859: warning: comparison between signed and unsigned > pbx.c: In function `__ast_context_destroy': > pbx.c:4152: internal compiler error: Segmentation fault > Please submit a full bug report, > with preprocessed source if appropriate. > See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. > make: *** [pbx.o] Error 1 > > I don?t know what?s my fault. I compiled it on an P166Mhz Kernel 2.4.20-4GB > precompiled SuSE kernel on SuSE8.2 with 32MB Ram. > What?s the reason for the error, do I need other hardware?? Or any sorce > file or package?? >Are you certain your hardware isn't faulty? Can you compile other things without segfaulting? My experiences in the past have usually pointed to bad memory. Tor
> pbx.c:4152: internal compiler error: Segmentation fault > Please submit a full bug report, > with preprocessed source if appropriate. > See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. > make: *** [pbx.o] Error 199 times out of 100 that is due ot memory errors. ESPECIALLY if you can run make again and it segfaults in a different place. Grab memtest86 and burn it to a CD and let it run overnight -- it works wonders. Regards, Andrew
Hannes Bischof
2004-Apr-28 06:40 UTC
[Asterisk-Users] Re: [Asterisk-Users] Can´t compile the source!
Andrew Kohlsmith wrote:>> pbx.c:4152: internal compiler error: Segmentation fault >> Please submit a full bug report, >> with preprocessed source if appropriate. >> See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. >> make: *** [pbx.o] Error 1>99 times out of 100 that is due ot memory errors. ESPECIALLY if you canrun>make again and it segfaults in a different place.>Grab memtest86 and burn it to a CD and let it run overnight -- it works >wonders.Ok I will test it, but I ran it again and it segafault at the same place. Other things compile (gcc) without an error. Do I need to install the kernel source or isn?t it neccesary? What else could it be?? Greets Maruu
On Wed, 2004-04-28 at 08:17, Andrew Kohlsmith wrote:> > pbx.c:4152: internal compiler error: Segmentation fault > > Please submit a full bug report, > > with preprocessed source if appropriate. > > See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. > > make: *** [pbx.o] Error 1 > > 99 times out of 100 that is due ot memory errors. ESPECIALLY if you can run > make again and it segfaults in a different place. > > Grab memtest86 and burn it to a CD and let it run overnight -- it works > wonders.While memtest86 is going to find any bad memory, you are just as likely to miss a overheating CPU. Both will show up as something like a segfault, but one only happens when the CPU is under load for a while. Either way, I agree with the general consensus that you are obviously experiencing a hardware problem when you crash gcc. -- Steven Critchfield <critch@basesys.com>
Hannes Bischof
2004-Apr-28 07:45 UTC
[Asterisk-Users] AW: [Asterisk-Users] Can´t compile the source!
Steven Critchfield wrote:>While memtest86 is going to find any bad memory, you are just as likely >to miss a overheating CPU. Both will show up as something like a >segfault, but one only happens when the CPU is under load for a while. > >Either way, I agree with the general consensus that you are obviously >experiencing a hardware problem when you crash gcc.Ok that could be a reason but I don?t think that the segafault occusres 2 times at the same place. But I think I taste first my memory with memtest. Greets Maruu
Csaba Pócsai
2004-Apr-28 07:54 UTC
[Asterisk-Users] RE: [Asterisk-Users] AW: [Asterisk-Users] Can´t compile the source!
hi, I do not know much about Asterisk yet but I have an idea about the compiler. Have you tried to remove and to install the gcc again? According to my experience the most stabil gcc version is 2.96.3. That version is testet by GNU on a lot of systems with a lot of softwares. If you have an updated system (One redhat version to another)than the gcc updated can make some errors for example forget ot link the rigth gcc libs. This can cause errors as well. Br. Csaba P?csai -----Original Message----- From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com]On Behalf Of Hannes Bischof Sent: Wednesday, April 28, 2004 5:45 PM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] AW: [Asterisk-Users] Can?t compile the source! Steven Critchfield wrote:>While memtest86 is going to find any bad memory, you are just as likely >to miss a overheating CPU. Both will show up as something like a >segfault, but one only happens when the CPU is under load for a while. > >Either way, I agree with the general consensus that you are obviously >experiencing a hardware problem when you crash gcc.Ok that could be a reason but I don?t think that the segafault occusres 2 times at the same place. But I think I taste first my memory with memtest. Greets Maruu _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users