V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
OpenWrt 是一个专门面向嵌入式设备的 Linux 发行版。你可以将 OpenWrt 支持的型号的嵌入式设备,比如各种路由器上的系统,换成一个有更多可能性可以折腾的 Linux 系统。
OpenWrt 官方网站
debiansid
V2EX  ›  OpenWrt

uclibc 下编译 powerdns-recursor

  •  
  •   debiansid · 2015-02-01 11:59:13 +08:00 · 956 次点击
    这是一个创建于 3576 天前的主题,其中的信息可能已经有所发展或是发生改变。
    eglibc 没有问题,可以生成ipk. uclibc 没有get|swap|make context ,找了一个补丁打进去,也显示成功了。编译最后一步出现
    mips-openwrt-linux-uclibc-g++ syncres.o misc.o unix_utility.o qtype.o logger.o arguments.o lwres.o pdns_recursor.o recursor_cache.o dnsparser.o dnswriter.o dnsrecords.o rcpgenerator.o base64.o zoneparser-tng.o rec_channel.o rec_channel_rec.o selectmplexer.o sillyrecords.o dns_random.o pubsuffix.o ext/polarssl/library/aes.o ext/polarssl/library/base64.o dnslabeltext.o lua-pdns.o lua-recursor.o randomhelper.o recpacketcache.o dns.o reczones.o base32.o nsecrecords.o json.o ws-recursor.o ws-api.o version.o responsestats.o webserver.o ext/yahttp/yahttp/reqresp.o ext/yahttp/yahttp/router.o rec-carbon.o secpoll-recursor.o lua-iputils.o iputils.o optional/epollmplexer.o -L/home/admin/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib -L/home/admin/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/lib -L/home/admin/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/admin/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib -pthread -Wl,-z -Wl,relro -Wl,-z -Wl,now -pie -o pdns_recursor
    syncres.o: In function `_ZN16DNSRecordContent12NumberToTypeEtt.constprop.550':
    syncres.cc:(.text+0x9a4): undefined reference to `__stack_chk_guard'
    syncres.cc:(.text+0xb54): undefined reference to `__stack_chk_fail'
    syncres.cc:(.text+0xb58): undefined reference to `__stack_chk_fail'
    syncres.o: In function `SyncRes::asyncresolveWrapper(ComboAddress const&, std::string const&, int, bool, bool, timeval*, LWResult*)':
    syncres.cc:(.text+0xbac): undefined reference to `__stack_chk_guard'
    syncres.cc:(.text+0x1360): undefined reference to `__stack_chk_fail'
    syncres.cc:(.text+0x1364): undefined reference to `__stack_chk_fail'
    syncres.o: In function `SyncRes::doResolveAt(std::set<std::string, CIStringCompare, std::allocator<std::string> >, std::string, bool, std::string const&, QType const&, std::vector<DNSResourceRecord, std::allocator<DNSResourceRecord> >&, int, std::set<SyncRes::GetBestNSAnswer, std::less<SyncRes::GetBestNSAnswer>, std::allocator<SyncRes::GetBestNSAnswer> >&)':
    syncres.cc:(.text+0x89ac): undefined reference to `__stack_chk_guard'
    syncres.cc:(.text+0xb6f8): undefined reference to `__stack_chk_guard'
    syncres.cc:(.text+0x128e4): undefined reference to `__stack_chk_fail'
    syncres.cc:(.text+0x128e8): undefined reference to `__stack_chk_fail'
    syncres.o: In function `SyncRes::doResolve(std::string const&, QType const&, std::vector<DNSResourceRecord, std::allocator<DNSResourceRecord> >&, int, std::set<SyncRes::GetBestNSAnswer, std::less<SyncRes::GetBestNSAnswer>, std::allocator<SyncRes::GetBestNSAnswer> >&)':
    syncres.cc:(.text+0x134d4): undefined reference to `__stack_chk_guard'
    syncres.cc:(.text+0x1379c): undefined reference to `__stack_chk_guard'
    syncres.cc:(.text+0x14678): undefined reference to `__stack_chk_fail'
    syncres.cc:(.text+0x1467c): undefined reference to `__stack_chk_fail'
    syncres.o: In function `directResolve(std::string const&, QType const&, int, std::vector<DNSResourceRecord, std::allocator<DNSResourceRecord> >&)':
    syncres.cc:(.text+0x15714): undefined reference to `__stack_chk_guard'
    syncres.cc:(.text+0x15904): undefined r
    很多这样的错误,是不是还是context支持不完善导致?

    谢谢
    第 1 条附言  ·  2015-02-02 23:26:31 +08:00
    搞定了终于,uclibc下跑起来了。
    1 条回复    2015-02-02 21:19:21 +08:00
    debiansid
        1
    debiansid  
    OP
       2015-02-02 21:19:21 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1371 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 17:52 · PVG 01:52 · LAX 09:52 · JFK 12:52
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.