* fbbsrc.704r5 compile error @ 2009-09-18 0:00 Jose Ng Lee 2009-09-18 1:21 ` Dave Platt 2009-09-18 1:33 ` Ray Wells 0 siblings, 2 replies; 7+ messages in thread From: Jose Ng Lee @ 2009-09-18 0:00 UTC (permalink / raw) To: linux-hams Hi, I am using an old Linux Fedora 4 with kernel 2.6.16.14. On this old machine, a few years ago I compiled OK fbb 7.04l and tried again today and compiles OK for that version. I downloaded the source for fbbsrc.704r5 and tried to compile but got this error: [root@hp2at src]# make gcc -Wall -Wstrict-prototypes -O2 -ggdb2 -funsigned-char -D__LINUX__ -Wformat-security -D_FORTIFY_SOURCE=3D2 -DPROTOTYPES -I../include -fstack-check -fstack-protector-all -DUSE_NCURSES -c -o arbre.o arbre.c cc1: error: unrecognized command line option "-fstack-protector-all" make: *** [arbre.o] Error 1 [root@hp2at src]# Please, anyone can help me or what I have to change in the Makefile to make it compile OK. Thanks, 73s Jose / HP2AT ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: fbbsrc.704r5 compile error 2009-09-18 0:00 fbbsrc.704r5 compile error Jose Ng Lee @ 2009-09-18 1:21 ` Dave Platt 2009-09-18 1:33 ` Ray Wells 1 sibling, 0 replies; 7+ messages in thread From: Dave Platt @ 2009-09-18 1:21 UTC (permalink / raw) To: Jose Ng Lee; +Cc: linux-hams > cc1: error: unrecognized command line option "-fstack-protector-all" > Please, anyone can help me or what I have to change in the Makefile to > make it compile OK. I believe that this option is intended to enable an anti-exploit "stack guard" feature, to detect deliberate stack-overrun data attacks against a program which could be used to inject malicious code and take over the functioning of the computer. Such stack-smashing attacks are not uncommon on the Internet - they are or were a fairly common method of breaking into network-connected PCs. My guess is that your current Linux system is using a version of the GNU C compiler which doesn't have this feature, or one in which the feature name has been changed. It looks at first Google-glance as if the stack protector feature is an extension to GCC, not a standard part of it, and your Fedora Core 4 system apparently doesn't incorporate this feature. The author/distributor of FBB apparently had it available and chose to enable it. The shortest remedy is probably to grep through the Makefile(s) for fbb and find the options line which invokes this absent feature, and just edit it out. A better remedy would be to upgrade your compiler to one which does have the stack-canary feature. If FBB's author/distributor was concerned enough to enable it, it may indicate the possibility that FBB might have some code constructs somewhere in it which are vulnerable to deliberate buffer overruns, due to insufficient validation of incoming data. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: fbbsrc.704r5 compile error 2009-09-18 0:00 fbbsrc.704r5 compile error Jose Ng Lee 2009-09-18 1:21 ` Dave Platt @ 2009-09-18 1:33 ` Ray Wells 2009-09-18 13:17 ` Bernard Pidoux F6BVP 2009-09-18 13:38 ` fbbsrc.704r4-5 stack smashing Bernard Pidoux F6BVP 1 sibling, 2 replies; 7+ messages in thread From: Ray Wells @ 2009-09-18 1:33 UTC (permalink / raw) To: Jose Ng Lee; +Cc: linux-hams Jose, Stack protection was added after 2.6.16. I first encountered it somewhere after 2.6.18, possibly in 2.6.22 but my memory is dim. There are advantages in moving to a newer kernel and that will fix your current problem, but you'll possibly run into stack smashing with xfbb, and it won't run. Bernard F6BVP is working on the xfbb code to eliminate some problems. Some users are having success with Bernard's later releases but on my Debian 4.0 system (2.6.28) I still have to compile fbb with -fno-stack-protection. I have the same issue on another system running Debian 4.0 with kernel 2.6.29-6. Both systems run fbb 7.04s-test. If you really need to stick with that old kernel you might get away with commenting out the -DPROTOTYPES line. That's what I would try, but be warned, I'm not a programmer. Bernard is across this list and may make comment. Ray vk2tv Jose Ng Lee wrote: > Hi, > > I am using an old Linux Fedora 4 with kernel 2.6.16.14. On this old > machine, a few years ago I compiled OK fbb 7.04l and tried again today > and compiles OK for that version. > > I downloaded the source for fbbsrc.704r5 and tried to compile but got > this error: > > [root@hp2at src]# make > gcc -Wall -Wstrict-prototypes -O2 -ggdb2 -funsigned-char -D__LINUX__ > -Wformat-security -D_FORTIFY_SOURCE=3D2 -DPROTOTYPES -I../include > -fstack-check -fstack-protector-all -DUSE_NCURSES -c -o arbre.o arbre.c > cc1: error: unrecognized command line option "-fstack-protector-all" > make: *** [arbre.o] Error 1 > [root@hp2at src]# > > Please, anyone can help me or what I have to change in the Makefile to > make it compile OK. > > Thanks, > 73s Jose / HP2AT > -- > To unsubscribe from this list: send the line "unsubscribe linux-hams" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: fbbsrc.704r5 compile error 2009-09-18 1:33 ` Ray Wells @ 2009-09-18 13:17 ` Bernard Pidoux F6BVP [not found] ` <BC95AC1740034FE796CAA73C11319A31@HOLLYWOOD.HOLLYWOOD.COM> 2009-09-18 13:38 ` fbbsrc.704r4-5 stack smashing Bernard Pidoux F6BVP 1 sibling, 1 reply; 7+ messages in thread From: Bernard Pidoux F6BVP @ 2009-09-18 13:17 UTC (permalink / raw) To: Ray Wells; +Cc: Jose Ng Lee, linux-hams Hi Jose, FBB 704r5 is a pre release. As such it is experimental in term of program code. Thus I had to validate a number of debuging options. However, if needed you can, as suggested remove -fstack-protector-all argument in ../src/Makefile 73 de Bernard, f6bvp Ray Wells a écrit : > Jose, > > Stack protection was added after 2.6.16. I first encountered it > somewhere after 2.6.18, possibly in 2.6.22 but my memory is dim. > > There are advantages in moving to a newer kernel and that will fix your > current problem, but you'll possibly run into stack smashing with xfbb, > and it won't run. > > Bernard F6BVP is working on the xfbb code to eliminate some problems. > Some users are having success with Bernard's later releases but on my > Debian 4.0 system (2.6.28) I still have to compile fbb with > -fno-stack-protection. I have the same issue on another system running > Debian 4.0 with kernel 2.6.29-6. Both systems run fbb 7.04s-test. > > If you really need to stick with that old kernel you might get away with > commenting out the -DPROTOTYPES line. That's what I would try, but be > warned, I'm not a programmer. > > Bernard is across this list and may make comment. > > Ray vk2tv > > Jose Ng Lee wrote: >> Hi, >> >> I am using an old Linux Fedora 4 with kernel 2.6.16.14. On this old >> machine, a few years ago I compiled OK fbb 7.04l and tried again today >> and compiles OK for that version. >> >> I downloaded the source for fbbsrc.704r5 and tried to compile but got >> this error: >> >> [root@hp2at src]# make >> gcc -Wall -Wstrict-prototypes -O2 -ggdb2 -funsigned-char -D__LINUX__ >> -Wformat-security -D_FORTIFY_SOURCE=3D2 -DPROTOTYPES -I../include >> -fstack-check -fstack-protector-all -DUSE_NCURSES -c -o arbre.o arbre.c >> cc1: error: unrecognized command line option "-fstack-protector-all" >> make: *** [arbre.o] Error 1 >> [root@hp2at src]# >> >> Please, anyone can help me or what I have to change in the Makefile to >> make it compile OK. >> >> Thanks, >> 73s Jose / HP2AT >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-hams" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html >> > > -- > To unsubscribe from this list: send the line "unsubscribe linux-hams" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > > -- To unsubscribe from this list: send the line "unsubscribe linux-hams" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <BC95AC1740034FE796CAA73C11319A31@HOLLYWOOD.HOLLYWOOD.COM>]
* Re: fbbsrc.704r5 compile error [not found] ` <BC95AC1740034FE796CAA73C11319A31@HOLLYWOOD.HOLLYWOOD.COM> @ 2009-09-20 10:34 ` Bernard Pidoux F6BVP 0 siblings, 0 replies; 7+ messages in thread From: Bernard Pidoux F6BVP @ 2009-09-20 10:34 UTC (permalink / raw) To: Jose Ng Lee Cc: linux-hams, Ray Wells, C Schuman, List for the LINUX version of FBB, Bob Tenty, Peter Mallett Hi, I released FBB 704r-pre6. This is still a pre release version for evaluation purpose. It should replace 704s series and 704r4 and 704r5 that had some issues regarding forwarding and stack overflow (stack-smashing). You may download FBB package from : http://f6bvp.free.fr/logiciels/BBS-f6fbb/xd704r6-src.tar.bz2 Here is an extract of CHANGES file : 7.04r.2 (F6BVP) - less verbose debugging messages in /var/log/fbb.log - Added usleep instructions to allow interrupts in tcp and sock drivers and reduce CPU load. It was sometime more than 14% and should be less than 1% now. 7.04r.2.1 (F6BVP) - s_status was writing zero length frame. Corrected - date structure corrupted in ibm.c caused stack-smashing. Corrected. - changed date format tm_year %100 in console.c to avoid stack overflow due to incorrect date format during FBB initialization. - CFLAGS = -Wall -Wstrict-prototypes -funsigned-char $(DEFS) -D__LINUX__ -Wformat-security -D_FORTIFY_SOURCE=2 -DPROTOTYPES -I../include -fstack-check -fstack-protector-all (this DEBUG option is removed in distributed package) 7.04r.2.2 (F6BVP) is 7.04r6 - cree_bid() did not actually create WFBID.SYS and initialize it if file was missing. This could induce a segment violation. Corrected. - In case of test or PRE versions the full release number is displayed : ********************************************************* * XFBB Linux daemon version 7.04r-pre6 (Sep 18 2009) PID=9172 - Same full version number is used in /var/ax25/fbb/log/ files 070522165800SI *** BBS Initialize 070522170200SA *** BBS Online 7.04r-pre6 - By default 20_epursat script does not export satdoc and satupdat results to mail. 73 de Bernard, f6bvp Jose Ng Lee a écrit : > Hi Bernard, > > Thanks for the info. OK, I understood it is experimental phase. > > So, I downloaded 704r2 and it did compiles OK with no modification on > the Makefile. > > Thanks, > 73s Jose / HP2AT > > > ----- Original Message ----- From: "Bernard Pidoux F6BVP" <f6bvp@free.fr> > To: "Ray Wells" <vk2tv@exemail.com.au> > Cc: "Jose Ng Lee" <jng@psi.net.pa>; <linux-hams@vger.kernel.org> > Sent: Friday, September 18, 2009 8:17 AM > Subject: Re: fbbsrc.704r5 compile error > > > Hi Jose, > > FBB 704r5 is a pre release. > As such it is experimental in term of program code. > Thus I had to validate a number of debuging options. > However, if needed you can, as suggested remove > > -fstack-protector-all > > argument in ../src/Makefile > > 73 de Bernard, f6bvp > > > > Ray Wells a écrit : >> Jose, >> >> Stack protection was added after 2.6.16. I first encountered it >> somewhere after 2.6.18, possibly in 2.6.22 but my memory is dim. >> >> There are advantages in moving to a newer kernel and that will fix >> your current problem, but you'll possibly run into stack smashing with >> xfbb, and it won't run. >> >> Bernard F6BVP is working on the xfbb code to eliminate some problems. >> Some users are having success with Bernard's later releases but on my >> Debian 4.0 system (2.6.28) I still have to compile fbb with >> -fno-stack-protection. I have the same issue on another system running >> Debian 4.0 with kernel 2.6.29-6. Both systems run fbb 7.04s-test. >> >> If you really need to stick with that old kernel you might get away >> with commenting out the -DPROTOTYPES line. That's what I would try, >> but be warned, I'm not a programmer. >> >> Bernard is across this list and may make comment. >> >> Ray vk2tv >> >> Jose Ng Lee wrote: >>> Hi, >>> >>> I am using an old Linux Fedora 4 with kernel 2.6.16.14. On this old >>> machine, a few years ago I compiled OK fbb 7.04l and tried again >>> today and compiles OK for that version. >>> >>> I downloaded the source for fbbsrc.704r5 and tried to compile but got >>> this error: >>> >>> [root@hp2at src]# make >>> gcc -Wall -Wstrict-prototypes -O2 -ggdb2 -funsigned-char -D__LINUX__ >>> -Wformat-security -D_FORTIFY_SOURCE=3D2 -DPROTOTYPES -I../include >>> -fstack-check -fstack-protector-all -DUSE_NCURSES -c -o arbre.o >>> arbre.c >>> cc1: error: unrecognized command line option "-fstack-protector-all" >>> make: *** [arbre.o] Error 1 >>> [root@hp2at src]# >>> >>> Please, anyone can help me or what I have to change in the Makefile >>> to make it compile OK. >>> >>> Thanks, >>> 73s Jose / HP2AT >>> -- -- To unsubscribe from this list: send the line "unsubscribe linux-hams" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 7+ messages in thread
* fbbsrc.704r4-5 stack smashing 2009-09-18 1:33 ` Ray Wells 2009-09-18 13:17 ` Bernard Pidoux F6BVP @ 2009-09-18 13:38 ` Bernard Pidoux F6BVP 2009-09-18 20:47 ` Ray Wells 1 sibling, 1 reply; 7+ messages in thread From: Bernard Pidoux F6BVP @ 2009-09-18 13:38 UTC (permalink / raw) To: Ray Wells; +Cc: Jose Ng Lee, linux-hams Hi Ray, Did you check if there were some held message files ( /var/ax25/fbb/mail/*.hld ) on your systems that were unable to start FBB BBS ? When I removed those files from w4akh-8 BBS, there was no more stack-smashing when xfbbd daemon was started. If there are some .hld files, this would confirm that initialization phase was buggy and were the cause of stack-smashing you had. However, don't remove the above files. Just rename them temporarily for the completion of your tests. I will release soon a new version that hopefully will correct this annoying bug. 73 de Bernard, f6bvp ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: fbbsrc.704r4-5 stack smashing 2009-09-18 13:38 ` fbbsrc.704r4-5 stack smashing Bernard Pidoux F6BVP @ 2009-09-18 20:47 ` Ray Wells 0 siblings, 0 replies; 7+ messages in thread From: Ray Wells @ 2009-09-18 20:47 UTC (permalink / raw) To: Bernard Pidoux F6BVP; +Cc: Jose Ng Lee, linux-hams Hi Bernard, No, I didn't. It was some months ago now, before you made that discovery. I'm a bit tight for time right now with radio station administration but when that finishes I'll try your test fbb. Ray vk2tv Bernard Pidoux F6BVP wrote: > Hi Ray, > > Did you check if there were some held message files ( > /var/ax25/fbb/mail/*.hld ) > on your systems that were unable to start FBB BBS ? > > When I removed those files from w4akh-8 BBS, there was no more > stack-smashing when xfbbd daemon was started. > > If there are some .hld files, this would confirm that initialization > phase > was buggy and were the cause of stack-smashing you had. > > However, don't remove the above files. Just rename them temporarily for > the completion of your tests. > > I will release soon a new version that hopefully will correct this > annoying bug. > > 73 de Bernard, f6bvp > -- > To unsubscribe from this list: send the line "unsubscribe linux-hams" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-09-20 10:34 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-18 0:00 fbbsrc.704r5 compile error Jose Ng Lee
2009-09-18 1:21 ` Dave Platt
2009-09-18 1:33 ` Ray Wells
2009-09-18 13:17 ` Bernard Pidoux F6BVP
[not found] ` <BC95AC1740034FE796CAA73C11319A31@HOLLYWOOD.HOLLYWOOD.COM>
2009-09-20 10:34 ` Bernard Pidoux F6BVP
2009-09-18 13:38 ` fbbsrc.704r4-5 stack smashing Bernard Pidoux F6BVP
2009-09-18 20:47 ` Ray Wells
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox