packages
packages copied to clipboard
Nginx compilation error on mipsel but works good on filogic
it seems to have errors on compile ngx_http_dav_ext_module.so, could anyone help to look into this please? thanks
make[3]: Entering directory '/openwrt/feeds/packages/net/nginx'
rm -f /openwrt/build_dir/target-mipsel_24kc_musl/nginx-ssl/nginx-1.25.3/.built
touch /openwrt/build_dir/target-mipsel_24kc_musl/nginx-ssl/nginx-1.25.3/.built_check
CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -fmacro-prefix-map=/openwrt/build_dir/target-mipsel_24kc_musl/nginx-ssl/nginx-1.25.3=nginx-1.25.3 -mips16 -minterlink-mips16 -ffunction-sections -fdata-sections -flto=auto -fno-fat-lto-objects -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DNGX_LUA_NO_BY_LUA_BLOCK -I/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/usr/include -I/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/include -I/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/include/fortify " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -fmacro-prefix-map=/openwrt/build_dir/target-mipsel_24kc_musl/nginx-ssl/nginx-1.25.3=nginx-1.25.3 -mips16 -minterlink-mips16 -ffunction-sections -fdata-sections -flto=auto -fno-fat-lto-objects -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DNGX_LUA_NO_BY_LUA_BLOCK -mips16 -minterlink-mips16 -ffunction-sections -fdata-sections -flto=auto -fno-fat-lto-objects -I/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/usr/include -I/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/include -I/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/include/fortify " LDFLAGS="-L/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/usr/lib -L/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/lib -fuse-ld=bfd -Wl,--gc-sections -flto=auto -fuse-linker-plugin -znow -zrelro " make -C /openwrt/build_dir/target-mipsel_24kc_musl/nginx-ssl/nginx-1.25.3/. AR="mipsel-openwrt-linux-musl-gcc-ar" AS="mipsel-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -fmacro-prefix-map=/openwrt/build_dir/target-mipsel_24kc_musl/nginx-ssl/nginx-1.25.3=nginx-1.25.3 -ffunction-sections -fdata-sections -flto=auto -fno-fat-lto-objects -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DNGX_LUA_NO_BY_LUA_BLOCK" LD="mipsel-openwrt-linux-musl-ld.bfd" NM="mipsel-openwrt-linux-musl-gcc-nm" CC="mipsel-openwrt-linux-musl-gcc" GCC="mipsel-openwrt-linux-musl-gcc" CXX="mipsel-openwrt-linux-musl-g++" RANLIB="mipsel-openwrt-linux-musl-gcc-ranlib" STRIP=mipsel-openwrt-linux-musl-strip OBJCOPY=mipsel-openwrt-linux-musl-objcopy OBJDUMP=mipsel-openwrt-linux-musl-objdump SIZE=mipsel-openwrt-linux-musl-size CROSS="mipsel-openwrt-linux-musl-" ARCH="mipsel" ;
make[4]: Entering directory '/openwrt/build_dir/target-mipsel_24kc_musl/nginx-ssl/nginx-1.25.3'
make -f objs/Makefile
make[5]: Entering directory '/openwrt/build_dir/target-mipsel_24kc_musl/nginx-ssl/nginx-1.25.3'
mipsel-openwrt-linux-musl-gcc -o objs/ngx_http_dav_ext_module.so \
objs/addon/nginx-mod-dav-ext/ngx_http_dav_ext_module.o \
objs/ngx_http_dav_ext_module_modules.o \
-L/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/usr/lib -L/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/lib -fuse-ld=bfd -Wl,--gc-sections -flto=auto -fuse-linker-plugin -znow -zrelro -lxml2 \
-shared
/openwrt/tmp/ccWMQ06V.ltrans0.ltrans.o: in function `ngx_http_dav_ext_strip_uri':
<artificial>:(.text+0x3a): relocation R_MIPS16_26 against `strncmp' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x4e): relocation R_MIPS16_26 against `strncmp' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x70): relocation R_MIPS16_26 against `strncmp' cannot be used when making a shared object; recompile with -fPIC
/openwrt/tmp/ccWMQ06V.ltrans0.ltrans.o: in function `ngx_http_dav_ext_format_token':
<artificial>:(.text+0xce): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
/openwrt/tmp/ccWMQ06V.ltrans0.ltrans.o: in function `ngx_http_dav_ext_propfind_xml_start':
<artificial>:(.text+0x128): relocation R_MIPS16_26 against `strcmp' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x13a): relocation R_MIPS16_26 against `strcmp' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x14c): relocation R_MIPS16_26 against `strcmp' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x15e): relocation R_MIPS16_26 against `strcmp' cannot be used when making a shared object; recompile with -fPIC
/openwrt/tmp/ccWMQ06V.ltrans0.ltrans.o: in function `ngx_http_dav_ext_propfind_xml_end':
<artificial>:(.text+0x19a): relocation R_MIPS16_26 against `strcmp' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1ac): relocation R_MIPS16_26 against `strcmp' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1be): relocation R_MIPS16_26 against `strcmp' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1d0): relocation R_MIPS16_26 against `strcmp' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1e2): relocation R_MIPS16_26 against `strcmp' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1f4): relocation R_MIPS16_26 against `strcmp' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x22e): relocation R_MIPS16_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
/openwrt/tmp/ccWMQ06V.ltrans0.ltrans.o: in function `ngx_http_dav_ext_depth':
<artificial>:(.text+0x282): relocation R_MIPS16_26 against `ngx_log_error_core' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x296): relocation R_MIPS16_26 against `strcmp' cannot be used when making a shared object; recompile with -fPIC
/openwrt/tmp/ccWMQ06V.ltrans0.ltrans.o: in function `ngx_http_dav_ext_init':
<artificial>:(.text+0x2c8): relocation R_MIPS16_26 against `ngx_array_push' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x2de): relocation R_MIPS16_26 against `ngx_array_push' cannot be used when making a shared object; recompile with -fPIC
/openwrt/tmp/ccWMQ06V.ltrans0.ltrans.o: in function `ngx_http_dav_ext_if':
<artificial>:(.text+0x3a8): relocation R_MIPS16_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x3da): relocation R_MIPS16_26 against `memcmp' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x412): relocation R_MIPS16_26 against `strncmp' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x44e): relocation R_MIPS16_26 against `strncmp' cannot be used when making a shared object; recompile with -fPIC
/openwrt/tmp/ccWMQ06V.ltrans0.ltrans.o: in function `ngx_http_dav_ext_lock_lookup.constprop.0':
<artificial>:(.text+0x4f6): relocation R_MIPS16_26 against `ngx_slab_free_locked' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x50e): relocation R_MIPS16_26 against `memcmp' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x564): relocation R_MIPS16_26 against `memcmp' cannot be used when making a shared object; recompile with -fPIC
/openwrt/tmp/ccWMQ06V.ltrans0.ltrans.o: in function `ngx_http_dav_ext_verify_lock':
<artificial>:(.text+0x5a2): relocation R_MIPS16_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x5be): relocation R_MIPS16_26 against `ngx_shmtx_lock' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x5ca): relocation R_MIPS16_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x5d4): relocation R_MIPS16_26 against `ngx_shmtx_unlock' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x5e6): relocation R_MIPS16_26 against `ngx_shmtx_unlock' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x5fc): relocation R_MIPS16_26 against `ngx_shmtx_unlock' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x61a): relocation R_MIPS16_26 against `ngx_slab_free_locked' cannot be used when making a shared object; recompile with -fPIC
/openwrt/tmp/ccWMQ06V.ltrans0.ltrans.o: in function `ngx_http_dav_ext_precontent_handler':
<artificial>:(.text+0x672): relocation R_MIPS16_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x68e): relocation R_MIPS16_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x69a): relocation R_MIPS16_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
/openwrt/tmp/ccWMQ06V.ltrans0.ltrans.o: in function `ngx_http_dav_ext_set_locks':
<artificial>:(.text+0x6e2): relocation R_MIPS16_26 against `ngx_shmtx_lock' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x6ee): relocation R_MIPS16_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x6fc): relocation R_MIPS16_26 against `ngx_shmtx_unlock' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x730): relocation R_MIPS16_26 against `ngx_pnalloc' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x740): relocation R_MIPS16_26 against `ngx_shmtx_unlock' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x768): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
/openwrt/tmp/ccWMQ06V.ltrans0.ltrans.o: in function `ngx_http_dav_ext_init_zone':
<artificial>:(.text+0x79c): relocation R_MIPS16_26 against `ngx_slab_alloc' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x7bc): relocation R_MIPS16_26 against `ngx_slab_alloc' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x7d0): relocation R_MIPS16_26 against `ngx_sprintf' cannot be used when making a shared object; recompile with -fPIC
/openwrt/tmp/ccWMQ06V.ltrans0.ltrans.o: in function `ngx_http_dav_ext_create_loc_conf':
<artificial>:(.text+0x7e0): relocation R_MIPS16_26 against `ngx_pcalloc' cannot be used when making a shared object; recompile with -fPIC
/openwrt/tmp/ccWMQ06V.ltrans0.ltrans.o: in function `ngx_http_dav_ext_lock':
<artificial>:(.text+0x824): relocation R_MIPS16_26 against `strncmp' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x83e): relocation R_MIPS16_26 against `ngx_shared_memory_add' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x858): relocation R_MIPS16_26 against `ngx_conf_log_error' cannot be used when making a shared object; recompile with -fPIC
/openwrt/tmp/ccWMQ06V.ltrans0.ltrans.o: in function `ngx_http_dav_ext_lock_zone':
<artificial>:(.text+0x8ca): relocation R_MIPS16_26 against `strncmp' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x8dc): relocation R_MIPS16_26 against `strchr' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x8ec): relocation R_MIPS16_26 against `ngx_conf_log_error' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x90e): relocation R_MIPS16_26 against `ngx_parse_size' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x930): relocation R_MIPS16_26 against `strncmp' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x946): relocation R_MIPS16_26 against `ngx_parse_time' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x97a): relocation R_MIPS16_26 against `ngx_pcalloc' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x996): relocation R_MIPS16_26 against `ngx_shared_memory_add' cannot be used when making a shared object; recompile with -fPIC
/openwrt/tmp/ccWMQ06V.ltrans0.ltrans.o: in function `ngx_http_dav_ext_format_lockdiscovery.constprop.0':
<artificial>:(.text+0x9f0): relocation R_MIPS16_26 against `ngx_escape_html' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xa20): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xa50): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xa72): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xa94): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xab6): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xad0): relocation R_MIPS16_26 against `ngx_sprintf' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xaea): relocation R_MIPS16_26 against `ngx_sprintf' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xb0c): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xb18): relocation R_MIPS16_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xb3e): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xb64): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xb70): relocation R_MIPS16_26 against `ngx_escape_html' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xb96): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xbbc): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
/openwrt/tmp/ccWMQ06V.ltrans0.ltrans.o: in function `ngx_http_dav_ext_lock_response':
<artificial>:(.text+0xc7a): relocation R_MIPS16_26 against `memset' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xcba): relocation R_MIPS16_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xcc4): relocation R_MIPS16_26 against `ngx_create_temp_buf' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xcf4): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xd00): relocation R_MIPS16_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xd24): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xd8c): relocation R_MIPS16_26 against `ngx_list_push' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xda0): relocation R_MIPS16_26 against `ngx_pnalloc' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xdb0): relocation R_MIPS16_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xdc0): relocation R_MIPS16_26 against `ngx_http_send_header' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xddc): relocation R_MIPS16_26 against `ngx_http_output_filter' cannot be used when making a shared object; recompile with -fPIC
/openwrt/tmp/ccWMQ06V.ltrans0.ltrans.o: in function `ngx_http_dav_ext_content_handler':
<artificial>:(.text+0xe4e): relocation R_MIPS16_26 against `ngx_http_discard_request_body' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xe92): relocation R_MIPS16_26 against `ngx_http_read_client_request_body' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xea2): relocation R_MIPS16_26 against `ngx_http_discard_request_body' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xeae): relocation R_MIPS16_26 against `ngx_list_push' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xed6): relocation R_MIPS16_26 against `ngx_list_push' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xf02): relocation R_MIPS16_26 against `ngx_http_send_header' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xf1c): relocation R_MIPS16_26 against `ngx_http_send_special' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xf2e): relocation R_MIPS16_26 against `ngx_http_discard_request_body' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xf58): relocation R_MIPS16_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xf72): relocation R_MIPS16_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xf7a): relocation R_MIPS16_26 against `random' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xf94): relocation R_MIPS16_26 against `ngx_shmtx_lock' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xf9e): relocation R_MIPS16_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xfb0): relocation R_MIPS16_26 against `ngx_shmtx_unlock' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xfc4): relocation R_MIPS16_26 against `ngx_shmtx_unlock' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0xff8): relocation R_MIPS16_26 against `ngx_shmtx_unlock' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x100c): relocation R_MIPS16_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x101c): relocation R_MIPS16_26 against `ngx_slab_alloc_locked' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1028): relocation R_MIPS16_26 against `ngx_shmtx_unlock' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1034): relocation R_MIPS16_26 against `memset' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x105e): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x10a8): relocation R_MIPS16_26 against `ngx_shmtx_unlock' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x10b4): relocation R_MIPS16_26 against `ngx_http_map_uri_to_path' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x10c4): relocation R_MIPS16_26 against `__stat_time64' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x10d6): relocation R_MIPS16_26 against `open' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x10ec): relocation R_MIPS16_26 against `__errno_location' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x10fc): relocation R_MIPS16_26 against `ngx_log_error_core' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1108): relocation R_MIPS16_26 against `close' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x111e): relocation R_MIPS16_26 against `__errno_location' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x112e): relocation R_MIPS16_26 against `ngx_log_error_core' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x117e): relocation R_MIPS16_26 against `strncmp' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x11c4): relocation R_MIPS16_26 against `ngx_shmtx_lock' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x11d2): relocation R_MIPS16_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x11e6): relocation R_MIPS16_26 against `ngx_shmtx_unlock' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x120a): relocation R_MIPS16_26 against `ngx_slab_free_locked' cannot be used when making a shared object; recompile with -fPIC
/openwrt/tmp/ccWMQ06V.ltrans0.ltrans.o: in function `ngx_http_dav_ext_format_propfind.isra.0':
<artificial>:(.text+0x125a): relocation R_MIPS16_26 against `ngx_escape_html' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x127c): relocation R_MIPS16_26 against `ngx_escape_html' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x128e): relocation R_MIPS16_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x12c0): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x12cc): relocation R_MIPS16_26 against `ngx_escape_html' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x12ee): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1318): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x133c): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1364): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1370): relocation R_MIPS16_26 against `ngx_escape_html' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1392): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x13b0): relocation R_MIPS16_26 against `ngx_sprintf' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x13dc): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x13e8): relocation R_MIPS16_26 against `ngx_http_time' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x140e): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x143c): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x146c): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1494): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x14a4): relocation R_MIPS16_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x14d2): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1502): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x152a): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
/openwrt/tmp/ccWMQ06V.ltrans0.ltrans.o: in function `ngx_http_dav_ext_propfind_response':
<artificial>:(.text+0x15da): relocation R_MIPS16_26 against `ngx_create_temp_buf' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x15fc): relocation R_MIPS16_26 against `ngx_escape_uri' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x160a): relocation R_MIPS16_26 against `ngx_pnalloc' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1622): relocation R_MIPS16_26 against `ngx_escape_uri' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x163e): relocation R_MIPS16_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1660): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1694): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1706): relocation R_MIPS16_26 against `ngx_http_send_header' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1722): relocation R_MIPS16_26 against `ngx_http_output_filter' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x172c): relocation R_MIPS16_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
/openwrt/tmp/ccWMQ06V.ltrans0.ltrans.o: in function `ngx_http_dav_ext_propfind_handler':
<artificial>:(.text+0x1774): relocation R_MIPS16_26 against `memset' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1798): relocation R_MIPS16_26 against `xmlCreatePushParserCtxt@@LIBXML2_2.4.30' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x17b2): relocation R_MIPS16_26 against `ngx_log_error_core' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x17ce): relocation R_MIPS16_26 against `xmlFreeParserCtxt@@LIBXML2_2.4.30' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x17f6): relocation R_MIPS16_26 against `ngx_palloc' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1802): relocation R_MIPS16_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1822): relocation R_MIPS16_26 against `ngx_http_map_uri_to_path' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1856): relocation R_MIPS16_26 against `__stat_time64' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1890): relocation R_MIPS16_26 against `ngx_array_push' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x189e): relocation R_MIPS16_26 against `memset' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x18ec): relocation R_MIPS16_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1908): relocation R_MIPS16_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1910): relocation R_MIPS16_26 against `ngx_http_finalize_request' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1936): relocation R_MIPS16_26 against `ngx_log_error_core' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x193c): relocation R_MIPS16_26 against `xmlFreeParserCtxt@@LIBXML2_2.4.30' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x196e): relocation R_MIPS16_26 against `xmlParseChunk@@LIBXML2_2.4.30' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1984): relocation R_MIPS16_26 against `ngx_log_error_core' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x198a): relocation R_MIPS16_26 against `xmlFreeParserCtxt@@LIBXML2_2.4.30' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x19be): relocation R_MIPS16_26 against `ngx_open_dir' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x19d4): relocation R_MIPS16_26 against `__errno_location' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x19e4): relocation R_MIPS16_26 against `ngx_log_error_core' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x19f6): relocation R_MIPS16_26 against `__errno_location' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1a04): relocation R_MIPS16_26 against `ngx_read_dir' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1a28): relocation R_MIPS16_26 against `ngx_log_error_core' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1a2e): relocation R_MIPS16_26 against `closedir' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1a54): relocation R_MIPS16_26 against `strlen' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1a64): relocation R_MIPS16_26 against `ngx_array_push' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1a72): relocation R_MIPS16_26 against `memset' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1a96): relocation R_MIPS16_26 against `ngx_pnalloc' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1aa6): relocation R_MIPS16_26 against `ngx_cpystrn' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1ab8): relocation R_MIPS16_26 against `ngx_cpystrn' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1acc): relocation R_MIPS16_26 against `__stat_time64' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1aee): relocation R_MIPS16_26 against `ngx_pnalloc' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1b1a): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1b30): relocation R_MIPS16_26 against `ngx_pnalloc' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1b52): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1b84): relocation R_MIPS16_26 against `memcpy' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1bde): relocation R_MIPS16_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1c24): relocation R_MIPS16_26 against `closedir' cannot be used when making a shared object; recompile with -fPIC
<artificial>:(.text+0x1c46): relocation R_MIPS16_26 against `ngx_log_error_core' cannot be used when making a shared object; recompile with -fPIC
/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.3.0/../../../../mipsel-openwrt-linux-musl/bin/ld.bfd: non-dynamic relocations refer to dynamic symbol close
/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.3.0/../../../../mipsel-openwrt-linux-musl/bin/ld.bfd: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status
make[5]: *** [objs/Makefile:1337: objs/ngx_http_dav_ext_module.so] Error 1
make[4]: *** [Makefile:10: build] Error 2
make[3]: *** [Makefile:461: /openwrt/build_dir/target-mipsel_24kc_musl/nginx-ssl/nginx-1.25.3/.built] Error 2
make[2]: *** [package/Makefile:129: package/feeds/packages/nginx/compile] Error 1
make[5]: Leaving directory '/openwrt/build_dir/target-mipsel_24kc_musl/nginx-ssl/nginx-1.25.3'
make[4]: Leaving directory '/openwrt/build_dir/target-mipsel_24kc_musl/nginx-ssl/nginx-1.25.3'
make[3]: Leaving directory '/openwrt/feeds/packages/net/nginx'
time: package/feeds/packages/nginx/ssl/compile#0.46#0.09#0.53
ERROR: package/feeds/packages/nginx failed to build (build variant: ssl).
Can you follow issue template, i looked at your copypasta, so you can close this issue.
@brada4 @zcy85611 @Rondom @neheb the same build error on my mt7621/ramips build. since commit: https://github.com/openwrt/packages/commit/3b13b08ad98dd15999e83c98f80674c9965d7a10
Why?
anyway, this just sounds like missing fPIC.