[Click] undefined reference to `dlopen'

Eddie Kohler kohler at CS.UCLA.EDU
Mon Oct 3 12:01:13 EDT 2005


Great, thanks for your help tracking this down.  I've fixed the link  
order in the CVS repository.

Eddie


On Oct 2, 2005, at 9:54 PM, YenJung Chang wrote:

> Hi Eddie,
>
> Sorry for my poor English.
>
> 1. Yes, it works. :)
>
> 2. The problem of "-ldl" also occured when compiling other tools in
> click/tools, and they also could be fixed by moving "-ldl" to the end
> manually.
>
> Thanks,
> YJ.
>
> 2005/10/3, Eddie Kohler <kohler at cs.ucla.edu>:
>
>> I don't understand your comment.  Does shifting the position of -ldl
>> work, or not?
>>
>> E
>>
>>
>> On Oct 2, 2005, at 7:15 PM, YenJung Chang wrote:
>>
>>
>>> Hi Eddie,
>>>
>>> 1.  (g++ -v)
>>> Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
>>> gcc version 2.95.4 20011002 (Debian prerelease)
>>>
>>> 2. Yes, it works. This problem, however, occurs in most  
>>> directories in
>>> click/tools/. :(
>>>
>>> Thanks,
>>> YJ.
>>>
>>> 2005/9/30, Eddie Kohler <kohler at cs.ucla.edu>:
>>>
>>>
>>>> Hi YenJung,
>>>>
>>>> Two questions.  First, can you report the result of g++ --v?  We'll
>>>> use that to improve our "deprecated" attribute fixes.  Second,  
>>>> if you
>>>> look further in your config.log, you'll see that it *did* find  
>>>> dlopen
>>>> eventually, in -ldl.  I wonder why your build can't find it in - 
>>>> ldl.
>>>> Can you please try this link line instead?
>>>>
>>>> mipsel-linux-g++ -W -Wall -fno-exceptions -fno-rtti  -static  -o
>>>> click-align -rdynamic alignment.o alignclass.o click-align.o ../ 
>>>> lib/
>>>> libclicktool.a -ldl
>>>>
>>>> Moved -ldl to the end.
>>>>
>>>> Thanks
>>>> E
>>>>
>>>>
>>>>
>>>> On Sep 22, 2005, at 11:52 PM, YenJung Chang wrote:
>>>>
>>>>
>>>>
>>>>> What should I do to fix this?
>>>>>
>>>>> Thank for your help in advance.
>>>>>
>>>>> ps. Please refer to the attched files for more information;
>>>>> config.log
>>>>> is the log when executed configure, and make.log is the log when
>>>>> executed make.
>>>>>
>>>>> YJ.
>>>>>
>>>>> <config.log>
>>>>> <make.log>
>>>>> _______________________________________________
>>>>> click mailing list
>>>>> click at amsterdam.lcs.mit.edu
>>>>> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> YJ.
>>>
>>>
>>>
>>
>>
>>
>
>
> --
> YJ.
>
>



More information about the click mailing list