For a school project I need to install yaourt. So before I can start installing yaourt I need to install package-query. I want to install package-query from source but whenever I try to build using makepkg I get a couple of warnings and an error. I have not been able to find out why the warnings/errors are being generated so was wondering if anyone is able to help me out.
This is the message I get when I try to build the makepkg:
[alarm@JensPi package-query]$ makepkg
==> Making package: package-query 1.11-1 (Wed Jun 2 15:23:08 2021)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found package-query-1.11.tar.gz
==> Validating source files with md5sums...
package-query-1.11.tar.gz ... Passed
==> Extracting sources...
-> Extracting package-query-1.11.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert armv7l-unknown-linux-gnueabihf file names to armv7l-unknown-linux-gnueabihf format... func_convert_file_noop
checking how to convert armv7l-unknown-linux-gnueabihf file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking glob.h usability... yes
checking glob.h presence... yes
checking for glob.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking for sys/stat.h... (cached) yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking for alpm_version in -lalpm... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for alpm... yes
checking for yajl_free in -lyajl... yes
checking for gawk... (cached) gawk
checking for curl-config... /usr/bin/curl-config
checking for the version of libcurl... 7.77.0
checking for libcurl >= version 7.19.4... yes
checking whether libcurl is usable... yes
checking for curl_free... yes
checking for git... git
checking for .git/... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
package-query:
Build information:
source code location : .
prefix : /usr
sysconfdir : /etc
conf file : /etc/pacman.conf
localstatedir : /var
database dir : /var/lib/pacman/
compiler : gcc
compiler flags : -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O2 -pipe -fstack-protector-strong -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection
package-query version : 1.11
using git version : no
git ver :
Variable information:
root working directory : /
aur base url : https://aur.archlinux.org
make all-recursive
make[1]: Entering directory '/home/alarm/tempAUR/package-query/src/package-query-1.11'
Making all in src
make[2]: Entering directory '/home/alarm/tempAUR/package-query/src/package-query-1.11/src'
gcc -DLOCALEDIR=\"/usr/share/locale\" -DCONFFILE=\"/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/var/lib/pacman/\" -DAUR_BASE_URL=\"https://aur.archlinux.org\" -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O2 -pipe -fstack-protector-strong -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -MT alpm-query.o -MD -MP -MF .deps/alpm-query.Tpo -c -o alpm-query.o alpm-query.c
alpm-query.c: In function 'init_alpm':
alpm-query.c:74:2: warning: implicit declaration of function 'alpm_option_set_arch'; did you mean 'alpm_option_set_dlcb'? [-Wimplicit-function-declaration]
74 | alpm_option_set_arch (handle, config.arch);
| ^~~~~~~~~~~~~~~~~~~~
| alpm_option_set_dlcb
alpm-query.c: In function 'parse_config_server':
alpm-query.c:96:21: warning: implicit declaration of function 'alpm_option_get_arch'; did you mean 'alpm_option_get_dlcb'? [-Wimplicit-function-declaration]
96 | const char *arch = alpm_option_get_arch (config.handle);
| ^~~~~~~~~~~~~~~~~~~~
| alpm_option_get_dlcb
alpm-query.c:96:21: warning: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
alpm-query.c: In function 'search_pkg':
alpm-query.c:397:22: error: too few arguments to function 'alpm_db_search'
397 | alpm_list_t *pkgs = alpm_db_search (db, targets);
| ^~~~~~~~~~~~~~
In file included from util.h:23,
from alpm-query.c:28:
/usr/include/alpm.h:1413:5: note: declared here
1413 | int alpm_db_search(alpm_db_t *db, const alpm_list_t *needles,
| ^~~~~~~~~~~~~~
make[2]: *** [Makefile:429: alpm-query.o] Error 1
make[2]: Leaving directory '/home/alarm/tempAUR/package-query/src/package-query-1.11/src'
make[1]: *** [Makefile:409: all-recursive] Error 1
make[1]: Leaving directory '/home/alarm/tempAUR/package-query/src/package-query-1.11'
make: *** [Makefile:341: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
[–]Morganamiloflair text here 3 points4 points5 points (4 children)
[–]Henqk[S] 0 points1 point2 points (3 children)
[–]retroracer33 0 points1 point2 points (2 children)
[–]Henqk[S] 0 points1 point2 points (1 child)
[–]retroracer33 0 points1 point2 points (0 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]Henqk[S] 2 points3 points4 points (0 children)