Re: missing libraries under Kubuntu 12.04, 64 bit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



geezers <fastsnip-gcc@xxxxxxxxx> writes:

> Ian Lance Taylor-3 wrote:
>> 
>> geezers <fastsnip-gcc@xxxxxxxxx> writes:
>> 
>>> Curious that the makefile worked for the previous years (at least 10)
>>> with
>>> no problem. Maybe the latest  'make' is more strict regarding
>>> interpreting
>>> the rules ??
>> 
>> It doesn't have anything to do with make.  Something changed in your
>> libc.
>> 
>> Ian
>> 
> Then I do not understand. If I run the makefile as:
>
> $(CC) -o $@ $(OBJS) -ldl -rdynamic
>
> I get the error messages that the external references for dlopen, dlclose,
> etc cannot be satisfied.
>
> If I change the makefile line to read:
>
> $(CC) -o $@ -rdynamic $(OBJS) -ldl
>
> the error messages do not appear and the executable is linked and runs
> properly.
>
> Now it is possible it is in the libc and changing the makefile line makes
> the linker work with the new libc. 
>
> Is there a means of testing this and determining what changed in libc if
> that is the root cause of the problem.


You are saying that just moving the -rdynamic line changes the
behaviour?  That seems very strange.  The first step would be to take
make out of the equation and just run the commands directly from the
command line.  If you can repeat the problem that way, add the -v option
and look at the way the linker is being invoked.  Send the linker
commands back to this mailing list so that we can see why the different
linker command is causing the error.

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux