missing libraries under Kubuntu 12.04, 64 bit
Ian Lance Taylor
iant@google.com
Mon Jun 4 18:07:00 GMT 2012
geezers <fastsnip-gcc@yahoo.com> writes:
> Ian Lance Taylor-3 wrote:
>>
>> geezers <fastsnip-gcc@yahoo.com> 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
More information about the Gcc-help
mailing list