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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160728/c0c73d6a/attachment.html>

Reply via email to