pam_url_authenticate.o pam_url_authenticate.c cc -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 -std=c99 -fPIC -pthread -D_GNU_SOURCE -c -o pam_url_password.o pam_url_password.c In file included from pam_url_account.c:3: pam_url.h:33:3: error: #error libcurl headers not found on this system. Giving up. 33 | #error libcurl headers not found on this system. Giving up. | ^~~~~ In file included from pam_url.c:3: pam_url.h:33:3: error: #error libcurl headers not found on this system. Giving up. 33 | #error libcurl headers not found on this system. Giving up. | ^~~~~ In file included from pam_url_authenticate.c:3: pam_url.h:33:3: error: #error libcurl headers not found on this system. Giving up. 33 | #error libcurl headers not found on this system. Giving up. | ^~~~~ In file included from pam_url_password.c:3: pam_url.h:33:3: error: #error libcurl headers not found on this system. Giving up. 33 | #error libcurl headers not found on this system. Giving up. | ^~~~~ pam_url.c: In function 'get_password': pam_url.c:21:6: warning: unused variable 'prompt_len' [-Wunused-variable] 21 | int prompt_len = 0; | ^~~~~~~~~~ pam_url.c: In function 'parse_opts': pam_url.c:120:65: warning: passing argument 3 of 'config_lookup_string' from incompatible pointer type [-Wincompatible-pointer-types] 120 | if(config_lookup_string(&config, "pam_url.settings.extradata", &opts->extra_field) == CONFIG_FALSE) | ^~~~~~~~~~~~~~~~~~ | | | char ** In file included from pam_url.h:36, from pam_url.c:3: /usr/include/libconfig.h:317:60: note: expected 'const char **' but argument is of type 'char **' 317 | const char **value); | ~~~~~~~~~~~~~^~~~~ pam_url.c: In function 'fetch_url': pam_url.c:212:31: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'const void *' [-Wformat=] 212 | if( asprintf(&combined, "%s%s", opts.first_pass, opts.passwd) < 0 || | ~^ ~~~~~~~~~~~ | | | | char * const void * | %p pam_url_authenticate.c: In function 'pam_sm_authenticate': pam_url_authenticate.c:15:6: warning: unused variable 'len' [-Wunused-variable] 15 | int len = 0; | ^~~ make: *** [: pam_url_account.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [: pam_url_authenticate.o] Error 1 make: *** [: pam_url_password.o] Error 1 pam_url.c: In function 'check_rc': pam_url.c:329:6: warning: unused variable 'ret' [-Wunused-variable] 329 | int ret=0; | ^~~ make: *** [: pam_url.o] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.F2xZof (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.F2xZof (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, in do_with_status 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/pam_url.spec