[Freedos-user] DJGPP / gcc crash
Hello, I installed recently the FreeDOS 1.1 distro on a VirtualBox machine, installed the latest DJGPP, and tried to run gcc from there... Unfortunately, all I got is this: C:\DJGPP\BINgcc Exiting due to signal SIGSEGV Page fault at eip=00041381, error=0004 eax= ebx=0016bba0 ecx=0001 edx= esi=001f22b8 edi=b078 ebp=001f2298 esp=001f20d0 program=C:\DJGPP\BIN\GCC.EXE cs: sel=00a7 base=0040 limit=001f ds: sel=00af base=0040 limit=001f es: sel=00af base=0040 limit=001f fs: sel=008f base=a380 limit= gs: sel=00bf base= limit=0010 ss: sel=00af base=0040 limit=001f App stack: [001f2394..00172394] Exceptn stack: [00171d9c..0016fe5c] Call frame traceback EIPs: 0x00041381 0x0004080a 0x0014b108 C:\DJGPP\BIN Anybody knows what this could be? Is there any known incompatibility between the DJGPP GCC and FreeDOS? I'm using the stock Jemmex manager, but tried with bare HIMEMX and XMGR with same result... regards, Mateusz -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] DJGPP / gcc crash
Hi, On Thu, Aug 30, 2012 at 9:13 AM, Mateusz Viste mate...@viste-family.net wrote: I installed recently the FreeDOS 1.1 distro on a VirtualBox machine, Which version of VirtualBox? (Latest stable is 4.1.20.) Was VT-X enabled? What host OS (Windows?) ? installed the latest DJGPP, and tried to run gcc from there... From /current/ ? GCC 4.7.1 only? Unfortunately, all I got is this: C:\DJGPP\BINgcc Exiting due to signal SIGSEGV Anybody knows what this could be? The last time it did that to me, I had accidentally forgotten to install some needed too (e.g. BinUtils!!) or setup %DJGPP% correctly. Latest versions don't seem to tell you very well when that happens. At risk of stating the obvious (to someone who clearly knows what he's doing), what does your /manifest/ directory look like? At (ultra bare) minimum, you need these three files: djdev203.zip bnu222br4.zip gcc471b.zip unzip -q *.zip -d c:\djgpp path c:\djgpp\bin;%PATH% set DJGPP=c:\djgpp\djgpp.env gcc -v Should work fine then. I don't know the minimum RAM needed, but I assume you had a reasonable amount setup. Is there any known incompatibility between the DJGPP GCC and FreeDOS? No, because I run it natively atop FreeDOS (at least /beta/ , same version, but I blindly assume /current/ works too), and it's fine. I'm using the stock Jemmex manager, but tried with bare HIMEMX and XMGR with same result... I use XMGR, so if you tried that and it still failed, you either misconfigured it or something else is afoot. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] DJGPP / gcc crash
Hello Rugxulo, Thank you very much for your expert reply. I have some quite extensive experience with GCC on linux, but actually never tried to use the monster on FreeDOS. I see that DJGPP is not as much user friendly as the gcc I'm used to. set DJGPP=c:\djgpp\djgpp.env This was exactly the problem. First, I had no DJGPP environnement variable at all, then I was setting it naively to point to the directory where DJGPP is installed (C:\DJGPP\) - but only setting it to the value you gave actually solved the problem, and made GCC not crash anymore. Hooray! I'm quite surprised that GCC doesn't checks if the %DJGPP% variable is set, and makes some sense... On the other hand, I should have read the readme file, which provides the correct content for the variable at line #224... :) Thank you! Mateusz On 08/30/2012 08:07 PM, Rugxulo wrote: Hi, On Thu, Aug 30, 2012 at 9:13 AM, Mateusz Viste mate...@viste-family.net wrote: I installed recently the FreeDOS 1.1 distro on a VirtualBox machine, Which version of VirtualBox? (Latest stable is 4.1.20.) Was VT-X enabled? What host OS (Windows?) ? installed the latest DJGPP, and tried to run gcc from there... From /current/ ? GCC 4.7.1 only? Unfortunately, all I got is this: C:\DJGPP\BINgcc Exiting due to signal SIGSEGV Anybody knows what this could be? The last time it did that to me, I had accidentally forgotten to install some needed too (e.g. BinUtils!!) or setup %DJGPP% correctly. Latest versions don't seem to tell you very well when that happens. At risk of stating the obvious (to someone who clearly knows what he's doing), what does your /manifest/ directory look like? At (ultra bare) minimum, you need these three files: djdev203.zip bnu222br4.zip gcc471b.zip unzip -q *.zip -d c:\djgpp path c:\djgpp\bin;%PATH% set DJGPP=c:\djgpp\djgpp.env gcc -v Should work fine then. I don't know the minimum RAM needed, but I assume you had a reasonable amount setup. Is there any known incompatibility between the DJGPP GCC and FreeDOS? No, because I run it natively atop FreeDOS (at least /beta/ , same version, but I blindly assume /current/ works too), and it's fine. I'm using the stock Jemmex manager, but tried with bare HIMEMX and XMGR with same result... I use XMGR, so if you tried that and it still failed, you either misconfigured it or something else is afoot. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
[Freedos-user] Redoing Clipper DB compiled app
I'm looking for remarks about porting and running a Clipper compiled dBase(.dbf files) application on FreeDOS. I've used some index add-on libraries which may be an issue in FreeDOS. I have little source code for the libraries. They and Clipper were created using Microsoft C 5.1 of long ago. I do still have a complete compiler distribution, updates may pose a challenge. I do have, believe it or not a working OS/2 Warp development system. I ran five virtual DOS sessions which were/are original IBM PC DOS 7 images. While way ahead of its time I'm concerned it has to fail at some point. This OS/2 might run on the first Pentium but that attempt may not be worth the effort. I could move to LINUX and oh-n mr. bill, Windows. I have some options. I'll just give FreeDOS a try with QEMU on LINUX and VMPlayer/VirtualBox on Windows. I could also do time consuming and extensive redevelopment using harbour-project.souceforge or xharbour.orgClipper clones. Time is money and redevelopment may have a long term return but if I can target FreeDOS cash flows immediately. Does anyone have any experience or suggestions about using existing Clipper applications on FreeDOS. Cheers John S Wolter LinkedIn: johnswolter http://www.linkedin.com/in/johnswolter - Mailto:johnswol...@wolterworks.com - Desk: 734-408-1263 - USA, Eastern Standard Time, -5 GMT, -4 GMT DST -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Redoing Clipper DB compiled app
Hi John, I am a Fox developper for ... a long time. And may be that Fox Dos can help you. If you are interested, you can ask your question on the Profox mailing list that you will find at www.leafe.com I am very happy to discover that I am not alone with old dbf files on DOS !!! Best regards -- Jean MAURICE Grenoble - France - Europe www.j-maurice.fr www.atoutfox.org www.aedtf.org -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Redoing Clipper DB compiled app
Jean, Thank you for your quick response. I to have worked with FoxPro for DOS and still have more that one license. I'll pull that package out to see what I might do with it. On Thu, Aug 30, 2012 at 4:15 PM, Jean MAURICE jsm.maur...@wanadoo.frwrote: Hi John, I am a Fox developper for ... a long time. And may be that Fox Dos can help you. If you are interested, you can ask your question on the Profox mailing list that you will find at www.leafe.com I am very happy to discover that I am not alone with old dbf files on DOS !!! Best regards -- Jean MAURICE Grenoble - France - Europe www.j-maurice.fr www.atoutfox.org www.aedtf.org -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user -- Cheers John S Wolter LinkedIn: johnswolter http://www.linkedin.com/in/johnswolter - Mailto:johnswol...@wolterworks.com - Desk: 734-408-1263 - USA, Eastern Standard Time, -5 GMT, -4 GMT DST -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Redoing Clipper DB compiled app
Hi John, if you have Clipper-compiled sources, you can indeed try to compile them again with the free Harbour clone, as you already mentioned. There is also a wikipedia article for those who are new to the topic. As far as I remember, FreeDOS 1.0 came with a version of this, but it was quite big and needed OpenWatcom installed. On the other hand, porting command line Linux apps with DJGPP works reasonably well, as does running (sometimes no porting needed) of Matlab code in the free Octave system, so maybe Harbour just works? :-) https://en.wikipedia.org/wiki/Harbour_%28software%29 http://www.freedos.org/software/?prog=xharbour By the way, nice that you have OS/2 Warp around :-) I'm looking for remarks about porting and running a Clipper compiled dBase(.dbf files) application on FreeDOS. I've used some index add-on libraries which may be an issue in FreeDOS. I have little source code for the libraries. They and Clipper were created using Microsoft C 5.1 of long ago... I have some options. I'll just give FreeDOS a try with QEMU on LINUX If you use Linux anyway, you can use Dosemu which emulated only parts of the hardware - this is faster than a full virtual PC and gives you extra DOS goodies like mapping Linux directories to DOS drive letters without needing drivers for it in DOS. VMPlayer/VirtualBox on Windows. I could also do time consuming and extensive redevelopment using harbour-project.souceforge or xharbour.org Clipper clones. Did you already make an estimate how much code would really have to be changed? Maybe not that much, after all. But as I never worked with Clipper, this is only a guess for me. If your Clipper app worked in PC DOS, it should also work in FreeDOS... Maybe somebody can look at this Brazilian thread? http://www.mandrivabrasil.org/site/forum/index.php?topic=4360.0 The news.gmane.org/gmane.os.freedos.devel archives say that from FreeDOS kernel 2026 to 2027, file locking improved (in particular: network drive file region locking) but printing in Clipper broke. That was back in 2003, so I hope that the bug has been fixed later on. Good to know that Clipper apps in general just work in FreeDOS (print bug or not)... :-) Note that SHARE also got updated (and forked...) since then. Regards, Eric -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Redoing Clipper DB compiled app
Eric, I'll review the threads to see what might work. I guess based on you comments I should try FreeDOS and see what happens. On Thu, Aug 30, 2012 at 6:04 PM, Eric Auer e.a...@jpberlin.de wrote: Hi John, if you have Clipper-compiled sources, you can indeed try to compile them again with the free Harbour clone, as you already mentioned. There is also a wikipedia article for those who are new to the topic. As far as I remember, FreeDOS 1.0 came with a version of this, but it was quite big and needed OpenWatcom installed. On the other hand, porting command line Linux apps with DJGPP works reasonably well, as does running (sometimes no porting needed) of Matlab code in the free Octave system, so maybe Harbour just works? :-) https://en.wikipedia.org/wiki/Harbour_%28software%29 http://www.freedos.org/software/?prog=xharbour By the way, nice that you have OS/2 Warp around :-) I'm looking for remarks about porting and running a Clipper compiled dBase(.dbf files) application on FreeDOS. I've used some index add-on libraries which may be an issue in FreeDOS. I have little source code for the libraries. They and Clipper were created using Microsoft C 5.1 of long ago... I have some options. I'll just give FreeDOS a try with QEMU on LINUX If you use Linux anyway, you can use Dosemu which emulated only parts of the hardware - this is faster than a full virtual PC and gives you extra DOS goodies like mapping Linux directories to DOS drive letters without needing drivers for it in DOS. VMPlayer/VirtualBox on Windows. I could also do time consuming and extensive redevelopment using harbour-project.souceforge or xharbour.org Clipper clones. Did you already make an estimate how much code would really have to be changed? Maybe not that much, after all. But as I never worked with Clipper, this is only a guess for me. If your Clipper app worked in PC DOS, it should also work in FreeDOS... Maybe somebody can look at this Brazilian thread? http://www.mandrivabrasil.org/site/forum/index.php?topic=4360.0 The news.gmane.org/gmane.os.freedos.devel archives say that from FreeDOS kernel 2026 to 2027, file locking improved (in particular: network drive file region locking) but printing in Clipper broke. That was back in 2003, so I hope that the bug has been fixed later on. Good to know that Clipper apps in general just work in FreeDOS (print bug or not)... :-) Note that SHARE also got updated (and forked...) since then. Regards, Eric -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user -- Cheers John S Wolter LinkedIn: johnswolter http://www.linkedin.com/in/johnswolter - Mailto:johnswol...@wolterworks.com - Desk: 734-408-1263 - USA, Eastern Standard Time, -5 GMT, -4 GMT DST -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user