#19894: compile error with musl / libpcap on UML / r46020
-----------------------+------------------------
Reporter: bittorf@… | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: packages | Version: Trunk
Keywords: |
-----------------------+------------------------
{{{
bastian@gcc20:~/openwrt$ cat logs/package/libs/libpcap/compile.txt
make[4]: Entering directory `/home/bastian/openwrt/build_dir/target-
x86_64_musl-1.1.10/libpcap-1.5.3'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/bastian/openwrt/build_dir/target-
x86_64_musl-1.1.10/libpcap-1.5.3'
make[4]: Entering directory `/home/bastian/openwrt/build_dir/target-
x86_64_musl-1.1.10/libpcap-1.5.3'
VER=`cat ./VERSION`; \
MAJOR_VER=`sed 's/\([0-9][0-9]*\)\..*/\1/' ./VERSION`; \
x86_64-openwrt-linux-musl-gcc -shared
-Wl,-soname,libpcap.so.$MAJOR_VER -L/home/bastian/openwrt/staging_dir
/target-x86_64_musl-1.1.10/usr/lib -L/home/bastian/openwrt/staging_dir
/target-x86_64_musl-1.1.10/lib -L/home/bastian/openwrt/staging_dir
/toolchain-x86_64_gcc-4.8-linaro_musl-1.1.10/usr/lib
-L/home/bastian/openwrt/staging_dir/toolchain-
x86_64_gcc-4.8-linaro_musl-1.1.10/lib \
-o libpcap.so.$VER pcap-linux.o fad-getad.o pcap.o inet.o
gencode.o optimize.o nametoaddr.o etherent.o savefile.o sf-pcap.o sf-pcap-
ng.o pcap-common.o bpf_image.o bpf_dump.o scanner.o grammar.o
bpf_filter.o version.o
/home/bastian/openwrt/staging_dir/toolchain-
x86_64_gcc-4.8-linaro_musl-1.1.10/lib/gcc/x86_64-openwrt-linux-
musl/4.8.3/../../../../x86_64-openwrt-linux-musl/bin/ld: pcap-linux.o:
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
making a shared object; recompile with -fPIC
pcap-linux.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[4]: *** [libpcap.so] Error 1
make[4]: Leaving directory `/home/bastian/openwrt/build_dir/target-
x86_64_musl-1.1.10/libpcap-1.5.3'
make[3]: *** [/home/bastian/openwrt/build_dir/target-
x86_64_musl-1.1.10/libpcap-1.5.3/.built] Error 2
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/19894>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets