As I cut and pasted main.c from this e-mail it wouldn't compile... do
to a number | (pipes) showing up. What I got was

i get no |'s when cut/paste... using mozilla mail. The main.c file has no |'s in it.


#include <stdlib.h>
#include <stdio.h>


int main ( ) { | | | | printf("hello world\n"); }


(I had to edit this to make them visible in the e-mail.)


but when I removed them.

#include <stdlib.h>
#include <stdio.h>


int main ( ) { printf("hello world\n"); }

That is correct.


it worked fine here on 9.1 with gcc3.  It's possible I guess that your
e-mail client inserted the pipes or mine did when cutting or pasting...
not sure.  The important part is that it compiled, and ran, as expected.


What I'm running.


Mandrake 9.1 Kernel 2.4.21-18mdk (stock)
libgcc1-3.2.2-3mdk
gcc-cpp-3.2.2-3mdk
gcc-3.2.2-3mdk
gcc-c++-3.2.2-3mdk

[EMAIL PROTECTED] ~]$ rpm -qa | grep gcc gcc-3.2.2-3mdk gcc-g77-3.2.2-3mdk gcc2.96-cpp-2.96-0.82mdk gcc-objc-3.2.2-3mdk gcc2.96-c++-2.96-0.82mdk gcc-colorgcc-3.2.2-3mdk gcc-cpp-3.2.2-3mdk gcc2.96-2.96-0.82mdk gcc-doc-3.2.2-3mdk gcc-java-3.2.2-3mdk libgcc1-3.2.2-3mdk gcc-c++-3.2.2-3mdk

my uname -a

Linux jamlin.linuxpda.biz 2.4.21-0.18mdk #1 Wed Jun 4 12:38:37 MDT 2003
i686 unknown unknown GNU/Linux


If you note I'm not using the enterprise version of the kernel. I'm
instead using the standard. Since in my case our workstations don't
seem to benefit from it at all. (ie no performance change, or other
gain)

I use the enterprise version of the kernel because I have over 900MB of ram. some machines have 2GB or more.


Machines running the regular kernel (smaller amount of ram) have the same problem.
[EMAIL PROTECTED] ~]$ uname -a
Linux mirror.jpl.nasa.gov 2.4.21-0.18mdksmp #1 SMP Wed Jun 4 09:48:52 MDT 2003 i686 unknown unknown GNU/Linux
[EMAIL PROTECTED] ~]$ cat main.c
#include <stdlib.h>
#include <stdio.h>


int main ( )
{
printf("hello world\n");
}
[EMAIL PROTECTED] ~]$ gcc -g -o main main.c
[EMAIL PROTECTED] ~]$ free
total used free shared buffers cached
Mem: 773984 766368 7616 0 52 412204
-/+ buffers/cache: 354112 419872
Swap: 2097136 400 2096736
[EMAIL PROTECTED] ~]$ gdb ./main
GNU gdb 5.3-22mdk (Mandrake Linux)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i586-mandrake-linux-gnu"...
(gdb) break 6
Breakpoint 1 at 0x804834c: file main.c, line 6.
(gdb) run
Starting program: /home/driver/main
Warning:
Cannot insert breakpoint -2.
Error accessing memory address 0x4000af50: Input/output error.
The same program may be running in another process.
(gdb)


When you say "it worked fine" what do you mean? Yes, the program runs just fine. but I cannot trace the program in gdb, set breakpoints, or step thru the program....

I've also tried the UNI-proccess kernels and have the same problem.

None of the machines are "upgraded" machines, mandrake was installed fresh via kickstart.

--
Bryan Whitehead
SysAdmin - JPL - Interferometry and Large Optical Systems
Phone: 818 354 2903
[EMAIL PROTECTED]


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to