LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-26-2004, 01:31 PM   #1
dualcyclone
LQ Newbie
 
Registered: Mar 2004
Location: UK
Posts: 2

Rep: Reputation: 0
Unhappy 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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
where is the .emacs file in the emacs source code tarball? aizkorri Programming 2 01-13-2007 02:05 PM
emacs, code completion phoenix7 Programming 5 09-22-2005 09:51 AM
compilation error - code 2 jhon Programming 2 08-31-2004 01:54 AM
G++ - why am i getting errors compiling this simple code leroy27336 Programming 4 11-18-2003 08:32 PM
Getting Incompatibility Errors While Compiling The Following Code. pritesh Programming 4 10-23-2003 04:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration