Re: executable compatible with Debian and Redhat?
Thanks to D-Man. I'm enclosing what I got from the gcc.gnu.org website. Yes, RH7.0 is using 2.96 gcc compiler. Not only this may produce incompatible binary codes, it also has trouble working with gdb 5.0. Gdb cannot access locally declared variables in C++ code. I was really scratching my head when I noticed that problem. People would expect stability and high quality from commercial tools and people pay for these features. It's hard to believe Redhat use the unstable gcc 2.96 despite the very warning from the very producer. Jinsong It has come to our attention that some GNU/Linux distributions are currently shipping with ``GCC 2.96''. We would like to point out that GCC 2.96 is not a formal GCC release nor will there ever be such a release. Rather, GCC 2.96 has been the code- name for our development branch that will eventually become GCC 3.0. Current snapshots of GCC, and any version labeled 2.96, produce object files that are not compatible with those produced by either GCC 2.95.2 or the forthcoming GCC 3.0. Therefore, programs built with these snapshots will not be compatible with any official GCC release. Actually, C and Fortran code will probably be compatible, but code in other languages, most notably C++ due to incompatibilities in symbol encoding (``mangling''), the standard library and the application binary interface (ABI), is likely to fail in some way. Static linking against C++ libraries may make a binary more portable, at the cost of increasing file size and memory use. To avoid any confusion, we have bumped the version of our current development branch to GCC 2.97. Please note that both GCC 2.96 and 2.97 are development versions; we do not recommend using them for production purposes. Binaries built using any version of GCC 2.96 or 2.97 will not be portable to systems based on one of our regular releases. If you encounter a bug in a compiler labeled 2.96, we suggest you contact whoever supplied the compiler as we can not support 2.96 versions that were not issued by the GCC team.
executable compatible with Debian and Redhat?
This is the first horrible thing I can think of: code compiled on Debian does not run on Redhat! Several programs I compiled on the Debian run fine on Debian, but when I installed Redhat and tried to run those programs, say in bash you type ./pgp, then the error message is: bash: ./pgp: No such file or directory I used this command: sh pgp and then the error message is: cannot execute binary file I downloaded the binary geomview package from www.geomview.org. It runs fine on Debian, but it has the several problem as above. My redhat is 7.0. What is happening here? Does anyone have similar experience? Jinsong
Re: Mule for emacs20
In emacs20, you don't need mule: it's part of emacs20. However, I'm not sure if Debian version contains the leim package. You can download and compile your self and make sure to include the leim package. For GB, you need add one line in the .emacs: (set-language-environment 'Chinese-GB) and the following in your .Xdefaults: emacs.font: fontset-16 emacs.Fontset-0: -*-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-16, chinese-gb2312:-cclib-song-delicate-r-normal-*-16-*-*-*-*-*-gb2312*-*, ascii:-*-screen-medium-r-normal--16-*-*-*-*-*-*-* You can adapt the above settings to BIG5. Also, make sure the fonts are in your X window system. I'm able to read both GB and BIG5 files. Jinsong
RIVA128 (nVidia) card works, but loses cursor in emacs ...
I mail-ordered a XFree86-supported video card, yet I received a Jaton Video-68AGP card that uses RIVA128ZX chip. To my chagrin, I spent several hours figuring out that I have to download from nVidia a special XF86_SVGA and do some setups. Now this card is working, and to my surprise, the video quality is much better than all I have used. The speed is also much better than the Sun workstation I used in the company. Except, to my surprise, that the emacs cursor does not show up! If the cursor moves to blank place, it does not show the color I specified through set-cursor-color. If the cursor moves to a character that has been fontified, the color is right. Cursor in regular xterm is fine. The emacs setups are the same for the other Linux box and the Sun workstation: seems problem is with this new X server. First thing I want to try is to remove the hardware cursor feature, but I could not find a way to do that. Anyone with similar experience? Any workaround? Thanks a lot. Jinsong XFree86 Version 3.3.3.1 / X Window System (protocol Version 11, revision 0, vendor release 6300) Release Date: January 4 1999 If the server is older than 6-12 months, or if your card is newer than the above date, look for a newer version before reporting problems. (see http://www.XFree86.Org/FAQ) Operating System: Linux 2.0.36 i586 [ELF] Configured drivers: SVGA: server for SVGA graphics adaptors (Patchlevel 0): NV1, STG2000, RIVA128, RIVATNT, RIVATNT2, RIVATNT2, RIVATNT2, RIVATNT2, generic (using VT number 7) XF86Config: /usr/X11R6/lib/X11/XF86Config (**) stands for supplied, (--) stands for probed/default values (**) XKB: disabled (**) XKB: keymap: xfree86(us) (overrides other XKB settings) (**) Mouse: type: intellimouse, device: /dev/ttyS1, baudrate: 1200 (**) Mouse: buttons: 5 (**) Mouse: zaxismapping: (-)4 (+)5 (**) SVGA: Graphics device ID: Jaton 68P AGP (**) SVGA: Graphics device ID: Jaton 68P AGP (**) SVGA: Monitor ID: Sun Multiscan Monitor (--) SVGA: Mode 640x480 needs vert refresh rate of 132.24 Hz. Deleted. (**) FontPath set to /usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/75 dpi/:unscaled,/usr/X11R6/lib/X11/fonts/100dpi/:unscaled,/usr/X11R6/lib/X11/fonts /Type1/,/usr/X11R6/lib/X11/fonts/Speedo/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X1 1R6/lib/X11/fonts/100dpi/ (--) SVGA: PCI: NVidia/SGS-Thomson Riva128 rev 34, Memory @ 0xe400, 0xe6 00 (--) SVGA: chipset: RIVA128 (--) SVGA: videoram: 4064k (**) SVGA: Using 16 bpp, Depth 16, Color weight: 555 (**) SVGA: Using 16 bpp, Depth 16, Color weight: 555 (--) SVGA: Maximum allowed dot-clock: 256.000 MHz (**) SVGA: Mode 1024x768: mode clock = 75.000 (--) SVGA: Virtual resolution set to 1024x768 (--) SVGA: RIVA128: Using hardware cursor (--) SVGA: Using XAA (XFree86 Acceleration Architecture) (--) SVGA: XAA: Solid filled rectangles (--) SVGA: XAA: Screen-to-screen copy (--) SVGA: XAA: 8x8 color expand pattern fill (--) SVGA: XAA: Using 8 128x64 areas for pixmap caching (--) SVGA: XAA: Caching tiles and stipples (--) SVGA: XAA: Horizontal and vertical lines and segments GlxExtensionInit RIVA GLX Version = 1.0
Re: RIVA128 (nVidia) card works, but loses cursor in emacs ...
I tried XF86 3.3.5 deb. The XF86_SVGA does not support Riva128 yet. So I was still using the one downloaded from nVidia, which is 3.3.3. No clue ... Jinsong Yeah, I've run into that, too. I don't use emacs at home all that often, so I'm using the simple workaround of running emacs in no window mode in an rxvt. (Just run emacs -nw.) Now, this is not acceptable for everyone. If you can't work with that, take a look at the list archives; there are Debian packages for XFree86 3.3.5, which might have fixed this bug. (Search for 'netgod' - I know that's part of the address where it's stored.) Sincerely, Ray Ingles (248) 377-7735 [EMAIL PROTECTED]
knfs success?
I was playing with knfs. I compiled the kernel 2.2.10. Then I installed the knfs package from the unstable. But looks like knfs cannot export a directory. I explicitly issue commands: exportfs /usr1 machine1(rw) then it prints Function not implemented. Then the basic function of NFS is not there. How useful can it be? Jinsong
funny NFS (Linux and Solaris)
I exported one directory at my Linux to one Solaris 2.5.1 machine. On Solaris, I ran 'ln -s /tmp tmp', then ran 'file tmp', it says: readlink error: Invalid argument. However, when I 'ls -l' on the Linux, it is fine. Another problem is when I create a directory on Solaris and then want to cd into it, it complains that it is not directory. When I check that directory on Linux, everything is fine. There must be some funny things going on between Solaris and Linux over NFS. This kind of problem prevents me from building file system around Linux. The Solaris filesystem is using UFS, Linux is using ext2. Any suggestion? Jinsong
multi-session CD writing and mounting?
From the man page of cdrecord, it looks like cdrecord can write multi-sessions on one CD. But then why do we do that? Is there anyway to mount the second session? Also, I could not find any Linux tool to read/write VCD. Any suggestions? Another problem is that mtvp could not play once my ide cd-writer is used for SCSI emulation, and it seems setting scd0 as device for mtvp does not work. Jinsong
cd-rw mount and mkfs?
Using SCSI emulation, I can mount an existing cd: mount /dev/sr0 /mnt I can also blank the cd-rw by: cdrecord -blank all -dev=0,0 Now I want to make a file system as: mkfs /dev/sr0, but it failed. My next intended action is to mount it so that I can write files on to it. So looks like I cannot treat the cd-w as a floppy disk? Comments are appreciated. Jinsong
atx and fan (noise) control
After about less than three years owning a then state-of-art Pentium MMX computer, recently I found that computer is out-of-date again. One annoying thing is that the fan is always on, making the room very noisy. Before buying an ATX, is it possible to turn off the fan on a command line? How is Linux controlling the fan or it simply only monitors the running condition? Thanks a lot. Jinsong
Encoding for EUC on xfstt?
I was trying to figure out how to remap the encoding of some Chinese TTF fonts in xfstt. The name of the encoding should be either gb2312.1980 or EUC (as used in CJK, the latex package). Maybe the supported encoding (as printed by xfstt) listed below cover what I need? Thanks! Jinsong iso8859-1 windows-1250 cp-855 symbol-0 iso8859-2 windows-1252 cp-857 wingding-0 iso8859-3 windows-1253 cp-860 atari-st iso8859-4 windows-1254 cp-861 unicode-2 iso8859-5 windows-1255 cp-862 windows-1257 iso8859-6 windows-1256 cp-863 iso8859-7 cp-437 cp-864 iso8859-8 cp-737 cp-865 iso8859-9 cp-850 cp-866 koi8-r cp-851 cp-869 windows-1251 cp-852 cp-895 iso8859-10 cp-853 wingreek-0
Re: Xemacs Chinese
I haven't used xemacs, but FSF Emacs 20.2 has very nice Chinese support. You need to use set-language-environment to start, and then use select-input-method to select input method. The info with Emacs20.2 under international has quite extensive documentation. They support basic PY and ShuangPing. Regards, Jinsong Hi, How do I use the chinese support in Xemacs 20.2? What input method do they support?? And how do I turn on this support in xemacs?? Where can I get more info on this?? Thx. Regards, shao.
how to use wheel on Logitech mouse?
I bought a set of the Logitech cordless Desktop. It contains a wireless keyboard and a wireless mouse. The mouse has two buttons and a wheel in the middle. According to the user manual, the wheel may serve as the third button (in Windows), although the main purpose is for Windows Scroll. I set the ChordMiddle in XF86Config. Then run xev to see the effects. Push the wheel yields no event. The only option for me now is to use the emulate. But it is awkard, if you know what I mean. Is there any setup for X to recognize the wheel as the third button? Thanks. Jinsong
Re: APM on Linux?
I read the docu on APM. Seems like it is useful for laptop and may not be for desktop? Suppose I can turn the system into standby mode, how can I turn the hard drive spin down? The question boils down to: how can save maximum energy when the computer is idling? I mainly use the computer after work for surfing net and do a little programming. Thanks. Jinsong
APM on Linux?
Hi, It would be very nice if we can leave the computer on without consuming too much energy. My computer has a CMOS option to turn the APM on system (doze, standby, suspend) and harddisk. If I disable the feature, no problem; but if I enable those features, the computer locked after some time: no response at the keyboard, dead. The APM works fine on X11: the monitor will automatically enter suspend mode after sometime. Hope this feature also works on the whole system. What's the best way to set up the BIOS and kernel? Thanks a lot! Jinsong
colormap problem
My computer has 96Meg, the Diamond 3D has 4Meg. However, I always get colormap problem. Look at printout of startx, and I found I was only using 6 bit per RGB. All I specified in XF86Config is 8, 16, etc. Seems I'm out of luck to get more colormaps... Thanks. Jinsong (--) S3V: PCI: ViRGE rev 5, Linear FB @ 0xe000 (--) S3V: card type: PCI (--) S3V: chipset: ViRGE rev. 5 (--) S3V: chipset driver: s3_ViRGE (--) S3V: videoram: 4096k (--) S3V: Ramdac type: s3_trio64 (--) S3V: Ramdac speed: 135 MHz (--) S3V: Using Trio32/64 programmable clock (MCLK 54.886 MHz) (--) S3V: Maximum allowed dot-clock: 135.000 MHz (**) S3V: Mode 1024x768: mode clock = 85.000 (--) S3V: Operating RAMDAC in pixel multiplex mode (--) S3V: Using 6 bits per RGB value (**) S3V: Virtual resolution set to 1024x768 (--) S3V: Local bus LAW is 0xE00x (--) S3V: Using a banksize of 4096k, line width of 1024
problem in kernel building: as86
Hi, I'm building the kernel 2.0.35 for SB AWE card. When I run make zImage, it ends with as86 not found. I link as86 to /usr/bin/as, then it complains about the unrecognized option -O. Which package should I install to get as86? Thanks! Jinsong
stereo or mono on CD play (xmcd)
I finally got xmcd work on my computer. But problem is my CD driver is OEM without specific brand. Then I use other non-SCSI in xmcdconfig. What have I got? I can only hear the right channel. After I ran xmcd, the buttons (for simple music playing) on the front panel of the CD drive are also disabled. Any clue? Jinsong
segmentation fault on Debian 2.0
This problem may have been reported. The netscape (4.05) used to work on my Debian 1.3, but it simply says segmentation fault and quit. Seems to me Netscape only delivers libc5 version. Please advise! Thanks. Jinsong