{"id":15339,"date":"2024-12-26T15:00:49","date_gmt":"2024-12-26T07:00:49","guid":{"rendered":"http:\/\/xinyiworld.top\/wordpress_it\/?p=15339"},"modified":"2024-12-26T15:48:23","modified_gmt":"2024-12-26T07:48:23","slug":"pdnsd-alt-dns%e8%a7%a3%e6%9e%90%e7%9b%b8%e5%85%b3","status":"publish","type":"post","link":"http:\/\/xinyiworld.top\/wordpress_it\/?p=15339","title":{"rendered":"pdnsd-alt (dns\u89e3\u6790\u76f8\u5173)"},"content":{"rendered":"<p><a href=\"https:\/\/github.com\/op4packages\/pdnsd-alt\">https:\/\/github.com\/op4packages\/pdnsd-alt<\/a><br \/>\n<a href=\"https:\/\/github.com\/AlexZhuo\/luci-app-pdnsd\">https:\/\/github.com\/AlexZhuo\/luci-app-pdnsd<\/a><\/p>\n<h2>\u9047\u5230\u7684\u95ee\u9898<\/h2>\n<ul>\n<li>redefinition of\n<pre><code class=\"language-bash\">\/home\/openwrt\/lede\/staging_dir\/toolchain-x86_64_gcc-11.3.0_musl\/include\/sys\/poll.h:1:2: warning: #warning redirecting incorrect #include &lt;sys\/poll.h&gt; to &lt;poll.h&gt; [-Wcpp]\n1 | #warning redirecting incorrect #include &lt;sys\/poll.h&gt; to &lt;poll.h&gt;\n  |  ^~~~~~~\nIn file included from ..\/dns.h:30,\n             from ..\/cache.h:31,\n             from ..\/helpers.h:32,\n             from ..\/error.h:35,\n             from ..\/icmp.c:63:\n\/home\/openwrt\/lede\/staging_dir\/toolchain-x86_64_gcc-11.3.0_musl\/include\/net\/if.h:64:8: error: redefinition of &#039;struct ifmap&#039;\n64 | struct ifmap {\n  |        ^~~~~\nIn file included from \/home\/openwrt\/lede\/staging_dir\/toolchain-x86_64_gcc-11.3.0_musl\/include\/linux\/icmp.h:23,\n             from ..\/icmp.c:44:\n\/home\/openwrt\/lede\/staging_dir\/toolchain-x86_64_gcc-11.3.0_musl\/include\/linux\/if.h:194:8: note: originally defined here\n194 | struct ifmap {\n  |        ^~~~~\nIn file included from ..\/dns.h:30,\n             from ..\/cache.h:31,\n             from ..\/helpers.h:32,\n             from ..\/error.h:35,\n             from ..\/icmp.c:63:\n\/home\/openwrt\/lede\/staging_dir\/toolchain-x86_64_gcc-11.3.0_musl\/include\/net\/if.h:76:8: error: redefinition of &#039;struct ifreq&#039;\n76 | struct ifreq {\n  |        ^~~~~\nIn file included from \/home\/openwrt\/lede\/staging_dir\/toolchain-x86_64_gcc-11.3.0_musl\/include\/linux\/icmp.h:23,\n             from ..\/icmp.c:44:\n\/home\/openwrt\/lede\/staging_dir\/toolchain-x86_64_gcc-11.3.0_musl\/include\/linux\/if.h:232:8: note: originally defined here\n232 | struct ifreq {\n  |        ^~~~~\nIn file included from ..\/dns.h:30,\n             from ..\/cache.h:31,\n             from ..\/helpers.h:32,\n             from ..\/error.h:35,\n             from ..\/icmp.c:63:\n\/home\/openwrt\/lede\/staging_dir\/toolchain-x86_64_gcc-11.3.0_musl\/include\/net\/if.h:116:8: error: redefinition of &#039;struct ifconf&#039;\n116 | struct ifconf {\n  |        ^~~~~~\nIn file included from \/home\/openwrt\/lede\/staging_dir\/toolchain-x86_64_gcc-11.3.0_musl\/include\/linux\/icmp.h:23,\n             from ..\/icmp.c:44:\n\/home\/openwrt\/lede\/staging_dir\/toolchain-x86_64_gcc-11.3.0_musl\/include\/linux\/if.h:284:8: note: originally defined here\n284 | struct ifconf  {\n  |        ^~~~~~\nmake[6]: *** [Makefile:460: icmp.o] Error 1\nmake[6]: Leaving directory &#039;\/home\/openwrt\/lede\/build_dir\/target-x86_64_musl\/pdnsd-1.2.9\/src\/test&#039;\nmake[5]: *** [Makefile:607: all-recursive] Error 1\nmake[5]: Leaving directory &#039;\/home\/openwrt\/lede\/build_dir\/target-x86_64_musl\/pdnsd-1.2.9\/src&#039;\nMaking all in doc\nmake[5]: Entering directory &#039;\/home\/openwrt\/lede\/build_dir\/target-x86_64_musl\/pdnsd-1.2.9\/doc&#039;\nmake[5]: Nothing to be done for &#039;all&#039;.\nmake[5]: Leaving directory &#039;\/home\/openwrt\/lede\/build_dir\/target-x86_64_musl\/pdnsd-1.2.9\/doc&#039;\nMaking all in contrib\nmake[5]: Entering directory &#039;\/home\/openwrt\/lede\/build_dir\/target-x86_64_musl\/pdnsd-1.2.9\/contrib&#039;\nmake[5]: Nothing to be done for &#039;all&#039;.\nmake[5]: Leaving directory &#039;\/home\/openwrt\/lede\/build_dir\/target-x86_64_musl\/pdnsd-1.2.9\/contrib&#039;\nmake[5]: Entering directory &#039;\/home\/openwrt\/lede\/build_dir\/target-x86_64_musl\/pdnsd-1.2.9&#039;\nmake[5]: Leaving directory &#039;\/home\/openwrt\/lede\/build_dir\/target-x86_64_musl\/pdnsd-1.2.9&#039;\nmake[4]: *** [Makefile:270: all-recursive] Error 1\nmake[4]: Leaving directory &#039;\/home\/openwrt\/lede\/build_dir\/target-x86_64_musl\/pdnsd-1.2.9&#039;\nmake[3]: *** [Makefile:202: all] Error 2\nmake[3]: Leaving directory &#039;\/home\/openwrt\/lede\/build_dir\/target-x86_64_musl\/pdnsd-1.2.9&#039;\nmake[2]: *** [Makefile:58: \/home\/openwrt\/lede\/build_dir\/target-x86_64_musl\/pdnsd-1.2.9\/.built] Error 2\nmake[2]: Leaving directory &#039;\/home\/openwrt\/lede\/feeds\/openwrtpdnsd\/pdnsd&#039;\ntime: package\/feeds\/openwrtpdnsd\/pdnsd\/compile#6.23#1.35#11.23\nERROR: package\/feeds\/openwrtpdnsd\/pdnsd failed to build.\nmake[1]: *** [package\/Makefile:116: package\/feeds\/openwrtpdnsd\/pdnsd\/compile] Error 1\nmake[1]: Leaving directory &#039;\/home\/openwrt\/lede&#039;\nmake: *** [\/home\/openwrt\/lede\/include\/toplevel.mk:231\uff1apackage\/luci-app-pdnsd\/compile] \u9519\u8bef 2<\/code><\/pre>\n<\/li>\n<\/ul>\n<p>1\uff09\u95ee\u9898\u539f\u56e0\uff1al<code>ede\/staging_dir\/toolchain-x86_64_gcc-11.3.0_musl\/include\/net\/if.h<\/code>\u4e0e<code>lede\/staging_dir\/toolchain-x86_64_gcc-11.3.0_musl\/include\/linux\/if.h<\/code>\u51fa\u73b0\u4e86\u76f8\u540c\u5b9a\u4e49\u3002<\/p>\n<p>2\uff09\u67e5\u627e\u89e3\u51b3\u529e\u6cd5\uff1a<br \/>\n\u67e5\u770b<code>lede\/staging_dir\/toolchain-x86_64_gcc-11.3.0_musl\/include\/linux\/if.h<\/code><\/p>\n<pre><code class=\"language-bash\">\/* for compatibility with glibc net\/if.h *\/\n#if __UAPI_DEF_IF_IFMAP\nstruct ifmap {\n        unsigned long mem_start;\n        unsigned long mem_end;\n        unsigned short base_addr;\n        unsigned char irq;\n        unsigned char dma;\n        unsigned char port;\n        \/* 3 bytes spare *\/\n};\n#endif \/* __UAPI_DEF_IF_IFMAP *\/<\/code><\/pre>\n<p>\u6ce8\u91ca\u5df2\u7ecf\u8bf4\u660e\u4e86<code>for compatibility with glibc net\/if.h<\/code>\uff0c\u7528\u5b8f\u89e3\u51b3\u4e0enet\/if.h\u6587\u4ef6\u7684\u51b2\u7a81\uff0c\u7ecf\u67e5\u627e\u5b8f\u5b9a\u4e49\u4f4d\u4e8e<code>staging_dir\/toolchain-x86_64_gcc-11.3.0_musl\/include\/linux\/libc-compat.h<\/code>\u6587\u4ef6\u4e2d\u3002<\/p>\n<p>3\uff09\u89e3\u51b3\u65b9\u6cd5\uff1a<br \/>\n\u5c06\u76f8\u5173\u7684\u5b8f\u5b9a\u4e49\u5168\u90e8\u6539\u4e3a0,\u91cd\u65b0\u7f16\u8bd1\u3002<\/p>\n<pre><code class=\"language-bash\">#define __UAPI_DEF_IF_IFCONF 0\n#define __UAPI_DEF_IF_IFMAP 0\n#define __UAPI_DEF_IF_IFNAMSIZ 0\n#define __UAPI_DEF_IF_IFREQ 0<\/code><\/pre>\n<button class=\"simplefavorite-button\" data-postid=\"15339\" data-siteid=\"1\" data-groupid=\"1\" data-favoritecount=\"0\" style=\"\">\u6536\u85cf <i class=\"sf-icon-star-empty\"><\/i><\/button>","protected":false},"excerpt":{"rendered":"<p>https:\/\/github.com\/op4packages\/pdnsd-alt https:\/\/g [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1165],"tags":[],"_links":{"self":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/15339"}],"collection":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15339"}],"version-history":[{"count":7,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/15339\/revisions"}],"predecessor-version":[{"id":15346,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/15339\/revisions\/15346"}],"wp:attachment":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15339"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}