You are not logged in.

#1 2020-02-26 07:22:27

blackbearx3
Member
Registered: 2020-02-19
Posts: 5

[SOLVED] Header files not found by yay/makepkg

I cannot upgrade some packages (e.g. yay and libmysqlclient57) because some header files are not found, even though they are in /usr/include. How do I tell makepkg to look for headers there?

Last edited by blackbearx3 (2020-02-26 10:24:43)

Offline

#2 2020-02-26 08:00:47

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,428

Re: [SOLVED] Header files not found by yay/makepkg

Post full commands and outputs in [ code ] [ /code ] tags.

This usually happens because there is some broken outside configuration, do you set LD_LIBRARY_PATH or so globally?

Last edited by V1del (2020-02-26 08:02:10)

Offline

#3 2020-02-26 08:38:40

blackbearx3
Member
Registered: 2020-02-19
Posts: 5

Re: [SOLVED] Header files not found by yay/makepkg

So this is the original error

==> Making package: yay 9.4.4-1 (Wed 26 Feb 2020 09:37:30 AM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found yay-9.4.4.tar.gz
==> Validating source files with sha1sums...
    yay-9.4.4.tar.gz ... Passed
==> Extracting sources...
  -> Extracting yay-9.4.4.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
go build -v -mod=vendor -ldflags '-s -w -linkmode external -extldflags "-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" -X "main.version=9.4.4"' -gcflags all=-trimpath=/home/edo/.cache/yay/yay/src/yay-9.4.4 -asmflags all=-trimpath=/home/edo/.cache/yay/yay/src/yay-9.4.4 -o yay
github.com/Jguer/go-alpm
# github.com/Jguer/go-alpm
vendor/github.com/Jguer/go-alpm/alpm.go:10:11: fatal error: alpm.h: No such file or directory
 // #include <alpm.h>
           ^~~~~~~~
compilation terminated.
make: *** [Makefile:47: yay] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

I managed to get past it via CPATH="/usr/include" makepkg and I now get another error:

==> Making package: yay 9.4.4-1 (Wed 26 Feb 2020 09:38:25 AM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found yay-9.4.4.tar.gz
==> Validating source files with sha1sums...
    yay-9.4.4.tar.gz ... Passed
==> Extracting sources...
  -> Extracting yay-9.4.4.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
go build -v -mod=vendor -ldflags '-s -w -linkmode external -extldflags "-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" -X "main.version=9.4.4"' -gcflags all=-trimpath=/home/edo/.cache/yay/yay/src/yay-9.4.4 -asmflags all=-trimpath=/home/edo/.cache/yay/yay/src/yay-9.4.4 -o yay
github.com/Jguer/go-alpm
# github.com/Jguer/go-alpm
/home/edo/miniconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /usr/lib/libresolv.so.2: undefined reference to `__resolv_context_put@GLIBC_PRIVATE'
/home/edo/miniconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /usr/lib/libresolv.so.2: undefined reference to `__resolv_context_get_override@GLIBC_PRIVATE'
/home/edo/miniconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /usr/lib/libgpgme.so.11: undefined reference to `__fdelt_chk@GLIBC_2.15'
/home/edo/miniconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /usr/lib/libalpm.so: undefined reference to `memcpy@GLIBC_2.14'
/home/edo/miniconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /usr/lib/libdl.so.2: undefined reference to `_dl_catch_error@GLIBC_PRIVATE'
/home/edo/miniconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /usr/lib/libresolv.so.2: undefined reference to `__sendmmsg@GLIBC_PRIVATE'
/home/edo/miniconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /usr/lib/libresolv.so.2: undefined reference to `__resolv_context_get_preinit@GLIBC_PRIVATE'
/home/edo/miniconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /usr/lib/libgssapi_krb5.so.2: undefined reference to `glob@GLIBC_2.27'
/home/edo/miniconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /usr/lib/libresolv.so.2: undefined reference to `__h_errno@GLIBC_PRIVATE'
/home/edo/miniconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /usr/lib/libdl.so.2: undefined reference to `_dl_signal_error@GLIBC_PRIVATE'
/home/edo/miniconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /usr/lib/libexpat.so.1: undefined reference to `getrandom@GLIBC_2.25'
/home/edo/miniconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /usr/lib/libresolv.so.2: undefined reference to `__clock_gettime@GLIBC_PRIVATE'
/home/edo/miniconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /usr/lib/libcrypto.so.1.1: undefined reference to `secure_getenv@GLIBC_2.17'
/home/edo/miniconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /usr/lib/libcrypto.so.1.1: undefined reference to `getauxval@GLIBC_2.16'
/home/edo/miniconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /usr/lib/libresolv.so.2: undefined reference to `__resolv_context_get@GLIBC_PRIVATE'
/home/edo/miniconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /usr/lib/libarchive.so.13: undefined reference to `__poll_chk@GLIBC_2.16'
/home/edo/miniconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /usr/lib/libarchive.so.13: undefined reference to `posix_spawnp@GLIBC_2.15'
/home/edo/miniconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /usr/lib/libcurl.so.4: undefined reference to `clock_gettime@GLIBC_2.17'
collect2: error: ld returned 1 exit status
make: *** [Makefile:47: yay] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

I already replaced miniconda's ld with /usr/bin/ld through a symlink. Not sure how to proceed now.

Offline

#4 2020-02-26 08:52:25

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,788
Website

Re: [SOLVED] Header files not found by yay/makepkg

Deactivate conda before building packages, or use a clean chroot.

https://wiki.archlinux.org/index.php/De … ean_chroot


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2020-02-26 09:53:48

blackbearx3
Member
Registered: 2020-02-19
Posts: 5

Re: [SOLVED] Header files not found by yay/makepkg

That worked! Thank you very much smile

Offline

#6 2020-02-26 10:20:47

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,788
Website

Re: [SOLVED] Header files not found by yay/makepkg

Please remember to mark your thread as solved by editing the first post and amending the topic title.

https://wiki.archlinux.org/index.php/Co … ow_to_post


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB