Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #25761 > unrolled thread
| Started by | Eric <nospam@nospam.com> |
|---|---|
| First post | 2012-09-02 20:44 +0000 |
| Last post | 2012-09-03 00:52 +0200 |
| Articles | 6 — 6 participants |
Back to article view | Back to comp.lang.c
undefined reference to symbol '_end' Eric <nospam@nospam.com> - 2012-09-02 20:44 +0000
Re: undefined reference to symbol '_end' Ian Collins <ian-news@hotmail.com> - 2012-09-03 09:01 +1200
Re: undefined reference to symbol '_end' Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-09-02 22:43 +0100
Re: undefined reference to symbol '_end' Keith Thompson <kst-u@mib.org> - 2012-09-02 14:33 -0700
Re: undefined reference to symbol '_end' Angel <angel+news@spamcop.net> - 2012-09-02 22:07 +0000
Re: undefined reference to symbol '_end' Vincenzo Mercuri <vincenzo.mercuri@yahoo.it> - 2012-09-03 00:52 +0200
| From | Eric <nospam@nospam.com> |
|---|---|
| Date | 2012-09-02 20:44 +0000 |
| Subject | undefined reference to symbol '_end' |
| Message-ID | <k20gei$v4e$1@speranza.aioe.org> |
Hi I am getting the following linker error, however I do not have any _end function or variable in my code. Can anyone help? Thanks /usr/bin/ld: /usr/lib64/libphobos2.a(memory_350_620.o): undefined reference to symbol '_end' /lib64/libcom_err.so.2: could not read symbols: Invalid operation collect2: ld returned 1 exit status
[toc] | [next] | [standalone]
| From | Ian Collins <ian-news@hotmail.com> |
|---|---|
| Date | 2012-09-03 09:01 +1200 |
| Message-ID | <aahvoiF3lnU2@mid.individual.net> |
| In reply to | #25761 |
On 09/ 3/12 08:44 AM, Eric wrote: > Hi > > I am getting the following linker error, however I do not have any _end > function or variable in my code. > > Can anyone help? > > Thanks > > /usr/bin/ld: /usr/lib64/libphobos2.a(memory_350_620.o): undefined > reference to symbol '_end' > /lib64/libcom_err.so.2: could not read symbols: Invalid operation > collect2: ld returned 1 exit status Something somewhere calls a function called end (the leading underscore is added by the compiler). You don't provide enough information for a decent answer, but this often happens when a) you forget to declare a function b) your library header doesn't match the actual library on your machine. -- Ian Collins
[toc] | [prev] | [next] | [standalone]
| From | Ben Bacarisse <ben.usenet@bsb.me.uk> |
|---|---|
| Date | 2012-09-02 22:43 +0100 |
| Message-ID | <0.b60b988684632dd3544a.20120902224323BST.87zk583xtw.fsf@bsb.me.uk> |
| In reply to | #25765 |
Ian Collins <ian-news@hotmail.com> writes: > On 09/ 3/12 08:44 AM, Eric wrote: >> Hi >> >> I am getting the following linker error, however I do not have any _end >> function or variable in my code. >> >> Can anyone help? >> >> Thanks >> >> /usr/bin/ld: /usr/lib64/libphobos2.a(memory_350_620.o): undefined >> reference to symbol '_end' >> /lib64/libcom_err.so.2: could not read symbols: Invalid operation >> collect2: ld returned 1 exit status > > Something somewhere calls a function called end (the leading > underscore is added by the compiler). You don't provide enough > information for a decent answer, but this often happens when > > a) you forget to declare a function > b) your library header doesn't match the actual library on your > machine. It's being referred to by a library function and one from a module that relates to memory at that. I strongly suspect old Unix code that refers to an extern called end. New code might refer to it as well, but it shouldn't! To the OP: you might try asking in comp.unix.programmer. -- Ben.
[toc] | [prev] | [next] | [standalone]
| From | Keith Thompson <kst-u@mib.org> |
|---|---|
| Date | 2012-09-02 14:33 -0700 |
| Message-ID | <ln4nnggle3.fsf@nuthaus.mib.org> |
| In reply to | #25761 |
Eric <nospam@nospam.com> writes:
> I am getting the following linker error, however I do not have any _end
> function or variable in my code.
>
> Can anyone help?
>
> Thanks
>
> /usr/bin/ld: /usr/lib64/libphobos2.a(memory_350_620.o): undefined
> reference to symbol '_end'
> /lib64/libcom_err.so.2: could not read symbols: Invalid operation
> collect2: ld returned 1 exit status
I get 145 hits on a Google search for "undefined reference to symbol '_end'".
It's likely one or more of them will point you in the right direction.
It appears to be related to /lib64/libcom_err.so.2, whatever that is.
A good approach is to narrow down your program to the smallest example
that reproduces the problem.
--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
Will write code for food.
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
[toc] | [prev] | [next] | [standalone]
| From | Angel <angel+news@spamcop.net> |
|---|---|
| Date | 2012-09-02 22:07 +0000 |
| Message-ID | <slrnk47m4n.af9.angel+news@pearlgates.net> |
| In reply to | #25770 |
On 2012-09-02, Keith Thompson <kst-u@mib.org> wrote: > Eric <nospam@nospam.com> writes: >> I am getting the following linker error, however I do not have any _end >> function or variable in my code. >> >> Can anyone help? >> >> Thanks >> >> /usr/bin/ld: /usr/lib64/libphobos2.a(memory_350_620.o): undefined >> reference to symbol '_end' >> /lib64/libcom_err.so.2: could not read symbols: Invalid operation >> collect2: ld returned 1 exit status > > I get 145 hits on a Google search for "undefined reference to symbol '_end'". > It's likely one or more of them will point you in the right direction. > > It appears to be related to /lib64/libcom_err.so.2, whatever that is. It's a library that was originally part of the ext2/ext3/ext4 filesystem utilities, but is used by some other filesystem-related utilities as well. So my guess is that the threat starter is on some brand of Linux. -- "C provides a programmer with more than enough rope to hang himself. C++ provides a firing squad, blindfold and last cigarette." - seen in comp.lang.c
[toc] | [prev] | [next] | [standalone]
| From | Vincenzo Mercuri <vincenzo.mercuri@yahoo.it> |
|---|---|
| Date | 2012-09-03 00:52 +0200 |
| Message-ID | <MqR0s.204248$GZ3.171658@tornado.fastwebnet.it> |
| In reply to | #25761 |
Il 9/2/2012 10:44 PM, Eric ha scritto: > Hi > > I am getting the following linker error, however I do not have any _end > function or variable in my code. > > Can anyone help? > > Thanks > > /usr/bin/ld: /usr/lib64/libphobos2.a(memory_350_620.o): undefined > reference to symbol '_end' > /lib64/libcom_err.so.2: could not read symbols: Invalid operation > collect2: ld returned 1 exit status > Phobos is the standard runtime library that comes with the D language compiler "dmd". You should ask in another newsgroup: http://www.digitalmars.com/NewsGroup.html However, I found this thread where quite the same error message is reported, the suggested solution could apply to your case as well: http://goo.gl/eVVMo -- Vincenzo Mercuri
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.c
csiph-web