Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

warning: creating a DT_TEXTREL in object.

Posted on 2009-04-02
3
Medium Priority
?
2,480 Views
Last Modified: 2012-05-06
I usually do everything I can to keep errors out of my compilation.
This one however been with my current project "forever", simply because I have no idea what to do about it.
Google doesn't reveal anything obvious either.

Any ideas what it is?

/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
0
Comment
Question by:letharion
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 24052358
Actually, a simple Google search for 'DT_TEXTREL' comes up with quite a lot, e.g.

http://gcc.gnu.org/ml/gcc-help/2006-11/msg00390.html

--------------------->8-------------------------------

Helmut Jarausch <jarausch@igpm.rwth-aachen.de> writes:

> (I believe) I have clean C++ code but g++-4.1.1
> emits the following warning during generation of
> a dynamic library (on Linux)
>    warning: creating a DT_TEXTREL in object

This means that you are including an object in the shared library
which was compiled without the -fpic option.

--------------------->8-------------------------------

http://unix.derkeiler.com/Newsgroups/comp.unix.programmer/2005-06/0060.html

--------------------->8-------------------------------

Lukasz Wojtow <lw@ftw.zamosc.pl> writes:

> Hi,
> I get this warning when compilling a module:
>
> /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/../../../../i686-pc-linux-gnu/bin/ld:
> warning: creating a DT_TEXTREL in object.
>
> What is it and how can I get rid of it (except for linker option)?

Are you sure you need to get rid of it? Try compiling your code with
the -fPIC compiler flag.

--------------------->8-------------------------------
0
 
LVL 6

Author Comment

by:letharion
ID: 24057575
Thanks. have to admit I missed the first one of those, but have seem the second. (Curious, since we should have done the same search...)

The second answer however, didn't say much IMO, and I didn't consider it an answer. It sounded like "any random guess" to me.

The first one is quite interesting however. And it also gives more credit to the second option.

I'm gonna go read up on that option then.

Thank you jkr :)
0
 
LVL 6

Accepted Solution

by:
letharion earned 0 total points
ID: 24466316
Unfortunately, I'm not a lot wiser, and adding -fPIC doesn't remove the warning message.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question