LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Major compilation errors in emacs while compiling c code (https://www.linuxquestions.org/questions/linux-software-2/major-compilation-errors-in-emacs-while-compiling-c-code-162699/)

dualcyclone 03-26-2004 02:31 PM

Major compilation errors in emacs while compiling c code
 
Hi,

Earlier today, while doing some coursework which has to be in on monday, I was just finishing off some code to present.

Except, something happened... thats not the point, but the point now is, whenever I compile anything using the command:

gcc -o -pedantic anyfile anyfile.c

I get some huge error, it looks like this:

cd ~/networks/
gcc -o pedantic shell shellbuiltin.c
collect2: ld terminated with signal 11 [Segmentation fault]
shell(.rodata+0x0): multiple definition of `_fp_hw'
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../crt1.o(.rodata+0x0): first defined here
shell(.data+0x4): In function `__data_start':
: multiple definition of `__dso_handle'
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/crtbegin.o(.data+0x0): first defined here
shell(.init+0x0): In function `_init':
: multiple definition of `_init'
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../crti.o(.init+0x0): first defined here
shell(.text+0x0): In function `_start':
: multiple definition of `_start'
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../crt1.o(.text+0x0): first defined here
shell(.fini+0x0): In function `_fini':
: multiple definition of `_fini'
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../crti.o(.fini+0x0): first defined here
shell(.got+0x0): multiple definition of `_GLOBAL_OFFSET_TABLE_'
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../crt1.o(.got.plt+0x0): first defined here
shell(.rodata+0x4): multiple definition of `_IO_stdin_used'
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../crt1.o(.rodata+0x4): first defined here
shell(.data+0x0): In function `__data_start':
: multiple definition of `__data_start'
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../crt1.o(.data+0x0): first defined here
/tmp/cctvHhft.o(.text+0x0): In function `main':
: multiple definition of `main'
shell(.text+0xb0): first defined here
/usr/bin/ld: Warning: size of symbol `main' changed from 60 in shell to 65 in /tmp/cctvHhft.o
/tmp/cctvHhft.o(.text+0x4b): In function `initwarm':
: multiple definition of `initwarm'
shell(.text+0xec): first defined here
/tmp/cctvHhft.o(.text+0x11f): In function `getline':
: multiple definition of `getline'
shell(.text+0x1c0): first defined here
/tmp/cctvHhft.o(.text+0x197): In function `parse':
: multiple definition of `parse'
shell(.text+0x238): first defined here
/tmp/cctvHhft.o(.text+0x40c): In function `execute':
: multiple definition of `execute'
shell(.text+0x4ad): first defined here
/usr/bin/ld: Warning: size of symbol `execute' changed from 1124 in shell to 1022 in /tmp/cctvHhft.o
/tmp/cctvHhft.o(.text+0x2a4): In function `command':
: multiple definition of `command'
shell(.text+0x345): first defined here
/tmp/cctvHhft.o(.text+0x95f): In function `check':
: multiple definition of `check'
shell(.text+0xa66): first defined here
/tmp/cctvHhft.o(.text+0x9c7): In function `getname':
: multiple definition of `getname'
shell(.text+0xace): first defined here
/tmp/cctvHhft.o(.text+0x80a): In function `forkexec':
: multiple definition of `forkexec'
shell(.text+0x911): first defined here
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../crt1.o(.dynamic+0x0): multiple definition of `_DYNAMIC'
shell(.dynamic+0x0): first defined here

Compilation exited abnormally with code 1 at Fri Mar 26 19:20:07

Does anyone know what this signifies? Has my compiler decided to just die or something? It just happened suddenly, I have no idea what this means.

Thanks


All times are GMT -5. The time now is 04:34 AM.