o -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o libsurl.la -rpath /usr/lib64 surl.lo engine.lo curl_simple.lo libtool: link: gcc -shared -fPIC -DPIC .libs/surl.o .libs/engine.o .libs/curl_simple.o -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -Wl,-soname -Wl,libsurl.so.0 -o .libs/libsurl.so.0.0.0 libtool: link: (cd ".libs" && rm -f "libsurl.so.0" && ln -s "libsurl.so.0.0.0" "libsurl.so.0") libtool: link: (cd ".libs" && rm -f "libsurl.so" && ln -s "libsurl.so.0.0.0" "libsurl.so") libtool: link: ( cd ".libs" && rm -f "libsurl.la" && ln -s "../libsurl.la" "libsurl.la" ) make[2]: Leaving directory '/builddir/build/BUILD/libsurl-0.7.2/surl' make[1]: Leaving directory '/builddir/build/BUILD/libsurl-0.7.2/surl' Making all in tests make[1]: Entering directory '/builddir/build/BUILD/libsurl-0.7.2/tests' gcc -DHAVE_CONFIG_H -I. -I../surl -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c main.c BUILDSTDERR: main.c: In function 'main': BUILDSTDERR: main.c:46:8: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] BUILDSTDERR: if(strcmp(c,"https://launchpad.net/libsurl")) BUILDSTDERR: ^~~~~~ /bin/sh ../libtool --tag=CC --mode=link gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -pthread -lcurl -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o libsurl-tests main.o -lsurl -L../surl libtool: link: gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -pthread -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/libsurl-tests main.o -lcurl /builddir/build/BUILD/libsurl-0.7.2/surl/.libs/libsurl.so -L../surl -pthread -Wl,-rpath -Wl,/usr/lib64 BUILDSTDERR: /usr/bin/ld: /builddir/build/BUILD/libsurl-0.7.2/surl/.libs/libsurl.so: undefined reference to `curl_easy_perform' BUILDSTDERR: /usr/bin/ld: /builddir/build/BUILD/libsurl-0.7.2/surl/.libs/libsurl.so: undefined reference to `curl_easy_init' BUILDSTDERR: /usr/bin/ld: /builddir/build/BUILD/libsurl-0.7.2/surl/.libs/libsurl.so: undefined reference to `curl_easy_setopt' BUILDSTDERR: /usr/bin/ld: /builddir/build/BUILD/libsurl-0.7.2/surl/.libs/libsurl.so: undefined reference to `curl_easy_cleanup' BUILDSTDERR: collect2: error: ld returned 1 exit status make[1]: Leaving directory '/builddir/build/BUILD/libsurl-0.7.2/tests' BUILDSTDERR: make[1]: *** [Makefile:279: libsurl-tests] Error 1 BUILDSTDERR: make: *** [Makefile:309: all-recursive] Error 1 BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.t2UVQT (%build) RPM build errors: BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.t2UVQT (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 636, in do raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/libsurl.spec