This is a linking problem. I think you need to add the dl library at a
different place in the link path. I've seen situations in which listing a
library twice was needed. Try adding it to the beginning of the link line
as well:
target_link_libraries(dfsclient dl HyperDfsCmds ${EDITLINE_LIBRARIES} dl)
- Doug
On Mon, Nov 18, 2013 at 9:20 PM, Kai Guo <[email protected]> wrote:
> I have tried your way but it doesn't work. I re-run cmake and then run
> make. Even, I delete all build files and cmake once again.
>
> On Tuesday, November 19, 2013 11:19:09 AM UTC+8, Doug Judd wrote:
>
>> Hi Kai,
>>
>> Did you try with the dfsclient patch that I posted earlier? You'll need
>> to re-run cmake and then run make.
>>
>> - Doug
>>
>>
>> On Mon, Nov 18, 2013 at 6:54 PM, Kai Guo <[email protected]> wrote:
>>
>>> Hi Doug,
>>>
>>> I can pass the cmake smoothly. However, when execute "make" command, a
>>> new probelm came up. It is about the hyperic-sigar. I can't figure out why
>>> it should be a problem in there because the configuration of hyperic-sigar
>>> is simple. The error is as follow:
>>>
>>> Scanning dependencies of target dfsclient
>>> [ 89%] Building CXX object src/cc/Tools/dfsclient/
>>> CMakeFiles/dfsclient.dir/dfsclient.cc.o
>>> Linking CXX executable dfsclient
>>> /usr/local/lib/libsigar-x86-linux.so: undefined reference to `dlopen'
>>> /usr/local/lib/libsigar-x86-linux.so: undefined reference to `dlclose'
>>> /usr/local/lib/libsigar-x86-linux.so: undefined reference to `dlsym'
>>> collect2: error: ld returned 1 exit status
>>> make[2]: *** [src/cc/Tools/dfsclient/dfsclient] Error 1
>>> make[1]: *** [src/cc/Tools/dfsclient/CMakeFiles/dfsclient.dir/all]
>>> Error 2
>>> make: *** [all] Error 2
>>>
>>> I thank you again in advance for any help. I am very eager to your reply!
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Hypertable Development" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>>
>>> Visit this group at http://groups.google.com/group/hypertable-dev.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>
>>
>> --
>> Doug Judd
>> CEO, Hypertable Inc.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Hypertable Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/hypertable-dev.
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
Doug Judd
CEO, Hypertable Inc.
--
You received this message because you are subscribed to the Google Groups
"Hypertable Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hypertable-dev.
For more options, visit https://groups.google.com/groups/opt_out.