[expert] PGCC optimizing bug compiling Python 1.5.2 on Mandrake 6.0
I've found a bug in PGCC 1.1.3 when compiling Python 1.5.2 using optimization, in which the compiler produces incorrect code for a simple C code sequence. Those wishing to see this behavior themselves may download the python 1.5.2 source code and try to compile it using the normal configure compile sequence, ie: ./configure make make test The test_types regression test will fail, unless the PGCC optimizer is turned off, ie: make clean make OPT= The bug is exhibited in the file Objects/longobject.c at line 206. The code is: if ((long)x 0 (sign 0 || (x 1) != 0)) goto overflow; And when sign is -1, and (long)x is -2147483648, the program should NOT execute the goto staement, but it does (only when optimization is enabled). Examination of the produced assembly language shows that PGCC does not include a critical "test" opcode when it should (in this particular case). Those wishing for more detail should look for the following thread on comp.lang.python: "int(long(-sys.maxint-1)) fails on Linux" started 22 July, 1999 (Check Deja.com). Also, I just submitted a bug report to the PGCC discussion list. I also posted a short example program to the PGCC list which demonstrates the errant behavior, and anyone else who wants it should e-mail me and ask. I think this particular bug could certainly affect more things than simply this one case w/ Python, and the potential effects could be programs silently giving incorrect results, even when properly written. It would certainly be prudent for those Mandrake 6.0 users, developing w/ the included PGCC, to do regression testing, with both the optimizer off (as a control) and with it turned on, for important data results. Chad Netzer [EMAIL PROTECTED]
[expert] Reinstalling linux on dual scsi machine
OK, I had Mandrake 6.0 working all fine and good on my box that was running with intels l440gx+ motherboard that basically has everything built in including a adaptec AIC7896 scsi controller with RAIDport III support(which doesn't work in linux). So in order to geta RAID functional, I obtained a compatible I20 compliant RAID card (DPT PM1554U2 Decade SMARTRaid V controller) and am trying to reinstall linux onto it. I have gotten the custom linux installation to recognize both scsi controllers, but now it does not seem to find the builtin ethernet(intel etherexpress pro 100), nor can it install the bootloader or create a boot floppy. It has no problem installing the packages to the hard drive on the adaptec controller, nor does it have a problem with mounting the RAID(4 9gig hd RAID level 5). I don't know if I need to use the supplementary disk, but I am even having trouble locating the image for those disks. I also have tried several combinations with the settings for both controllers but have not had any success. Does anyone have any ideas to get this machine working? Travis
Re: [expert] Reinstalling linux on dual scsi machine
On Tue, 3 Aug 1999, Travis Kriza wrote: OK, I had Mandrake 6.0 working all fine and good on my box that was running with intels l440gx+ motherboard that basically has everything built in including a adaptec AIC7896 scsi controller with RAIDport III support(which doesn't work in linux). So in order to get a RAID functional, I obtained a compatible I20 compliant RAID card (DPT PM1554U2 Decade SMARTRaid V controller) and am trying to reinstall linux onto it. I have gotten the custom linux installation to recognize both scsi controllers, but now it does not seem to find the builtin ethernet(intel etherexpress pro 100), nor can it install the bootloader or create a boot floppy. It has no problem installing the packages to the hard drive on the adaptec controller, nor does it have a problem with mounting the RAID(4 9gig hd RAID level 5). I don't know if I need to use the supplementary disk, but I am even having trouble locating the image for those disks. I also have tried several combinations with the settings for ! ! both controllers but have not had any success. Does anyone have any ideas to get this machine working? Travis Sounds like your custom boot disk has a different kernel version than the instimage, the files in Mandrake/instimage/modules on your cd/mirror need tobe the same version as the boot disk.
[expert] Switch default Windows Manager
Hi, How to change the default Windows Manager from KDE to other like Gnome, AnotherLevel etc ? which file to edit ? BTW, i still love KDE, but this just for fun :P -lz __ Get Your Private, Free Email at http://www.hotmail.com
RE: [expert] Switch default Windows Manager
On 04-Aug-99 Lang Zhi wrote: Hi, How to change the default Windows Manager from KDE to other like Gnome, AnotherLevel etc ? which file to edit ? BTW, i still love KDE, but this just for fun :P -lz Run desktopcfg to switch to another default Window Manager. Also, if you try one that's not included in Mandrake (or doesn't have an option in desktopcfg), you'd usually configure ~/.xinitrc for it. For example if you wanted to use fvwm2 you'd put 'exec fvwm2' in ~/.xinitrc, and when you run X, it loads fvwm2. Refer to the window manager's documentation for any specific instructions, of course. -Tom
Re: [expert] Switch default Windows Manager
On Wed, 04 Aug 1999, Lang Zhi wrote: Hi, How to change the default Windows Manager from KDE to other like Gnome, AnotherLevel etc ? which file to edit ? This needs to be in a FAQ somewhere... From the KDE menu, go to System, then select "Desktop Switching Tool". -- Arandir... ___ http://www.meer.net/~arandir/
Re: [expert] Switch default Windows Manager
On Wed, Aug 04, 1999 at 11:30:58AM +, Lang Zhi wrote: Hi, How to change the default Windows Manager from KDE to other like Gnome, AnotherLevel etc ? which file to edit ? /usr/sbin/fndSession, for example: --- [ -x /usr/enlightenment/bin/enlightenment ] { LIST="$LIST=enlightenment"; FIRST=yes } #[ -x /usr/bin/kde ] { #LIST="$LIST=kde"; FIRST=yes #} [ -x /usr/bin/kde ] { if [ "$FIRST" = "yes" ];then LIST="$LIST;kde" else LIST="$LIST=kde" FIRST="yes" fi } . - Best regards, Andy -- chandy a7 indo 607 net 607 id http://gmail.cakraweb.com http://eworld.indoglobal.com/eworld