hello,

I found the solution, when doing the git clone for tiny cbor library, use
this command instead of the original one:

git clone https://github.com/01org/tinycbor.git extlibs/tinycbor/tinycbor
-b v0.2.1

at least it works on my side.

2016-07-28 18:14 GMT+02:00 Gregg Reynolds <dev at mobileink.com>:

>
>
> On Wed, Jul 27, 2016 at 5:15 AM, Chao Guo <chao.guo at telecom-bretagne.eu>
> wrote:
>
>> hello everyone,
>>
>> I tried to compile the source code which is download from 1.1-rel branch
>> of github, when I make everything ready and start the process, it
>> terminated because of errors.
>>
>> Here is the log:(I use the ./autobuild.sh)
>>
>> out/linux/x86_64/release/resource/csdk/stack/src/ocpayloadparse.os: In
>> function `OCParseStringLL':
>> ocpayloadparse.c:(.text+0xaf): undefined reference to
>> `_cbor_value_dup_string'
>> out/linux/x86_64/release/resource/csdk/stack/src/ocpayloadparse.os: In
>> function `OCParseSingleRepPayload':
>> ocpayloadparse.c:(.text+0x3cb): undefined reference to
>> `_cbor_value_dup_string'
>> ocpayloadparse.c:(.text+0x557): undefined reference to
>> `_cbor_value_dup_string'
>> ocpayloadparse.c:(.text+0x59b): undefined reference to
>> `_cbor_value_dup_string'
>> out/linux/x86_64/release/resource/csdk/stack/src/ocpayloadparse.os: In
>> function `OCParseArrayFillArray':
>> ocpayloadparse.c:(.text+0xa7a): undefined reference to
>> `_cbor_value_dup_string'
>> out/linux/x86_64/release/resource/csdk/stack/src/ocpayloadparse.os:ocpayloadparse.c:(.text+0xac0):
>> more undefined references to `_cbor_value_dup_string' follow
>> collect2: error: ld returned 1 exit status
>> scons: *** [out/linux/x86_64/release/resource/csdk/liboctbstack.so] Error
>> 1
>> scons: building terminated because of errors.
>>
>> this is not all output, but I think this log would help you to understand
>> the error. Any hint or help would be grateful.
>>
>
> (Going from memory so you'll have to confirm) This is caused by a change
> in tinycbor.  The implementation of _cbor_value_dup_string was moved from
> cborparser.c to a new file cborparser_dup_string.c.  I think all you need
> to do is add that file to cbor_src (in tinycbor/SConscript).
>
> HTH,
>
> Gregg
>



-- 
BR,

Chao Guo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160728/072201f1/attachment.html>

Reply via email to