[Olsr-dev] Olsrd v0.9.5 and Openwrt CC v15.05 complie problem
Ferry Huberts
(spam-protected)
Wed Dec 21 20:54:17 CET 2016
On 21/12/16 19:45, (spam-protected) wrote:
> Hi
>
> I have add following:
>
> #if defined(__GLIBC__) && defined(__linux__) && !defined(__ANDROID__)
> #define OLSR_HAVE_EXECINFO_H
> #endif /* defined(__GLIBC__) && defined(__linux__) && !defined(__ANDROID__) */
>
this part should be
#if defined(__GLIBC__) && defined(__linux__) && !defined(__ANDROID__) && !defined(__UCLIBC__)
#define OLSR_HAVE_EXECINFO_H
#endif
> #ifdef OLSR_HAVE_EXECINFO_H
> #if !defined(__UCLIBC__)
> # include <execinfo.h>
> #endif
> #endif /* OLSR_HAVE_EXECINFO_H */
remove this part
>
>
> but I am not sure but now I have other problem :
>
>
> [CC] src/lq_plugin_default_float.c
> [CC] src/lq_plugin_default_fpm.c
> [CC] src/main.c
> src/main.c: In function 'printStacktrace':
> src/main.c:116:11: warning: assignment makes pointer from integer
> without a cast [enabled by default]
> bt_syms = backtrace_symbols(bt_array, bt_size);
> ^
> [CC] src/mantissa.c
> [CC] src/mid_set.c
> [CC] src/mpr.c
> [CC] src/mpr_selector_set.c
> [CC] src/neighbor_table.c
> [CC] src/net_olsr.c
> [CC] src/olsr.c
> [CC] src/olsr_cookie.c
> [CC] src/olsr_niit.c
> [CC] src/olsr_spf.c
> [CC] src/packet.c
> [CC] src/parser.c
> [CC] src/pid_file.c
> [CC] src/plugin_loader.c
> [CC] src/plugin_util.c
> [CC] src/process_package.c
> [CC] src/process_routes.c
> [CC] src/rebuild_packet.c
> [CC] src/routing_table.c
> [CC] src/scheduler.c
> [CC] src/tc_set.c
> [CC] src/two_hop_neighbor_table.c
> [CC] src/linux/apm.c
> [CC] src/linux/kernel_routes_nl.c
> [CC] src/linux/kernel_tunnel.c
> [CC] src/linux/lq_plugin_ffeth_nl80211.c
> [CC] src/linux/net.c
> [CC] src/linux/nl80211_link_info.c
> [CC] src/unix/ifnet.c
> [CC] src/unix/log.c
> [CC] src/unix/misc.c
> [CC] src/cfgparser/olsrd_conf.c
> [BISON] src/cfgparser/oparse.c
> [CC] src/cfgparser/oparse.c
> [FLEX] src/cfgparser/oscan.c
> [CC] src/cfgparser/oscan.c
> [CC] src/cfgparser/cfgfile_gen.c
> [CREATE] builddata.txt
> [CC] src/builddata.c
> [LD] olsrd
> src/main.o: In function `printStacktrace':
> /home/users/Projects/UBNT/OpenWRT/15.05/build_dir/target-mips_34kc_uClibc-0.9.33.2/olsrd-0.9.5/src/main.c:108:
> undefined reference to `backtrace'
> /home/user/Projects/UBNT/OpenWRT/15.05/build_dir/target-mips_34kc_uClibc-0.9.33.2/olsrd-0.9.5/src/main.c:115:
> undefined reference to `backtrace_symbols'
> collect2: error: ld returned 1 exit status
>
>
>
> 2016-12-21 18:43 GMT+01:00 Ferry Huberts <(spam-protected)>:
>>
>>
>> On 21/12/16 18:38, (spam-protected) wrote:
>>>
>>> Hi,
>>>
>>> I have update latest sources olsrd from git because I have see that
>>> Ferry add new version main.c but I still have a problem with compile
>>> olsrd for OpenWRT:
>>>
>>>
>>> [CC] src/lq_plugin_default_fpm.c
>>> [CC] src/main.c
>>> src/main.c:81:24: fatal error: execinfo.h: No such file or directory
>>> #include <execinfo.h>
>>> ^
>>> compilation terminated.
>>>
>>> I have see that others suggest use like:
>>>
>>>
>>> #if !defined(__UCLIBC__)
>>
>>
>>
>> try adding this condition to the new OLSR_HAVE_EXECINFO_H evaluation and
>> report back if that works, I'll adjust it then (or just submit a patch)
>>
>>
>>> # include <execinfo.h>
>>> #endif
>>>
>>>
>>>
>>>
>>>
>>> 2016-12-21 8:57 GMT+01:00 Ferry Huberts <(spam-protected)>:
>>>>
>>>>
>>>>
>>>> On 20/12/16 20:13, Bastian Bittorf wrote:
>>>>>
>>>>>
>>>>> * Bastian Bittorf <(spam-protected)> [20.12.2016 20:08]:
>>>>>>
>>>>>>
>>>>>> * (spam-protected) <(spam-protected)> [20.12.2016 19:58]:
>>>>>>>
>>>>>>>
>>>>>>> make[4]: Entering directory
>>>>>>>
>>>>>>>
>>>>>>> `/home/users/OpenWRT/15.05/build_dir/target-mips_34kc_uClibc-0.9.33.2/olsrd-0.9.5'
>>>>>>> [CC] src/main.c
>>>>>>> src/main.c:54:26: fatal error: execinfo.h: No such file or directory
>>>>>>> #include <execinfo.h>
>>>>>>> ^
>>>>>>> compilation terminated.
>>>>>
>>>>>
>>>>>
>>>>> sorry, i misunderstood the reason.
>>>>>
>>>>> Ferry: if i read something about this message other
>>>>> projects suggest using this:
>>>>>
>>>>> #ifdef HAVE_EXECINFO_H
>>>>> #include <execinfo.h>
>>>>> #endif
>>>>
>>>>
>>>>
>>>>
>>>> The only relevant define I see on my Linux system is
>>>> _GLIBCXX_HAVE_EXECINFO_H.
>>>>
>>>> Can you point me to your feed?
>>>> Or just make a PR?
>>>>
>>>> Please do try to upstream fixes.
>>>>
>>>>
>>>>>
>>>>> i have no clue what i'am doing, any option about this?
>>>>>
>>>>> bye, bastian
>>>>>
>>>>
>>>> --
>>>> Ferry Huberts
>>>>
>>>> --
>>>> Olsr-dev mailing list
>>>> (spam-protected)
>>>> https://lists.olsr.org/mailman/listinfo/olsr-dev
>>
>>
>> --
>> Ferry Huberts
>>
--
Ferry Huberts
More information about the Olsr-dev
mailing list