LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Error compiling fwupd from slackbuilds (https://www.linuxquestions.org/questions/slackware-14/error-compiling-fwupd-from-slackbuilds-4175719632/)

camerabambai 12-10-2022 12:15 PM

Error compiling fwupd from slackbuilds
 
Code:

Run-time dependency gmodule-2.0 found: YES 2.70.3
Run-time dependency gudev-1.0 found: YES 237
Run-time dependency xmlb found: YES 0.3.10
Run-time dependency gusb found: YES 0.4.2
Run-time dependency sqlite3 found: YES 3.37.2
Found CMake: /usr/bin/cmake (3.21.4)
Run-time dependency libarchive found: NO (tried cmake)

meson.build:226:2: ERROR: Could not generate cargs for libarchive:
Package iconv was not found in the pkg-config search path.
Perhaps you should add the directory containing `iconv.pc'
to the PKG_CONFIG_PATH environment variable
Package 'iconv', required by 'libarchive', not found

which package is "iconv"? Sbopkg said..

Code:

sbopkg -s *iconv*
Searching for *iconv*
1) graphics/uniconvertor
2) libraries/libticonv
3) Quit


marav 12-10-2022 12:31 PM

Quote:

Originally Posted by camerabambai (Post 6397081)

which package is "iconv"? Sbopkg said..

glibc

rizitis 12-10-2022 01:19 PM

Code:

l/libarchive-3.6.2-x86_64-1.txz: Upgraded.
      This is a bugfix and security release.
      Relevant bugfixes:
      rar5 reader: fix possible garbled output with bsdtar -O (#1745)
      mtree reader: support reading mtree files with tabs (#1783)
      Security fixes:
      various small fixes for issues found by CodeQL
      (* Security fix *)


kjhambrick 12-10-2022 01:42 PM

good catch, camerabambai

I get the same error on Slackware64 15.0 + MultiLib

As rizitis noted, libarchive was updated Fri Dec 9 19:43:46 UTC 2022

So maybe there is an issue with the new libarchive related to iconv ?

Not sure, I havn't dug any deeper.

-- kjh

Code:


<<snip>>
The Meson build system
Version: 0.59.4
Source dir: /tmp/SBo/fwupd-1.7.10
Build dir: /tmp/SBo/fwupd-1.7.10/build
Build type: native build
Project name: fwupd
Project version: 1.7.10
C compiler for the host machine: ccache cc (gcc 11.2.0 "cc (GCC) 11.2.0")
C linker for the host machine: cc ld.bfd 2.37-slack15
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program git found: YES (/usr/bin/git)

<<snip>>

Program diff found: YES (/usr/bin/diff)
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Run-time dependency gio-2.0 found: YES 2.70.3
Run-time dependency gio-unix-2.0 found: YES 2.70.3
Run-time dependency gmodule-2.0 found: YES 2.70.3
Run-time dependency gudev-1.0 found: YES 237
Run-time dependency xmlb found: YES 0.3.10
Run-time dependency gusb found: YES 0.4.2
Run-time dependency sqlite3 found: YES 3.37.2
Found CMake: /usr/bin/cmake (3.21.4)
Run-time dependency libarchive found: NO (tried cmake)

meson.build:226:2: ERROR: Could not generate cargs for libarchive:
Package iconv was not found in the pkg-config search path.
Perhaps you should add the directory containing `iconv.pc'
to the PKG_CONFIG_PATH environment variable
Package 'iconv', required by 'libarchive', not found


rizitis 12-10-2022 01:46 PM

since libarchive updated try glibc recompile and try again... probably that fix it.
I think lots of things should need recompile for all of us...

reddog83 12-10-2022 01:47 PM

Me and @slackernetuk can also confirm this with recompiling of Flatpak 1.14.1 today.

Quote:

flatpak-1.14.1/app/flatpak-main.c
flatpak-1.14.1/app/parse-datetime.h
flatpak-1.14.1/app/flatpak-table-printer.h
flatpak-1.14.1/app/flatpak-table-printer.c
flatpak-1.14.1/app/flatpak-builtins-utils.c
flatpak-1.14.1/app/flatpak-builtins-utils.h
flatpak-1.14.1/app/Makefile.am.inc
<<<snip>>>>
checking for libarchive >= 2.8.0... no
configure: error: Package requirements (libarchive >= 2.8.0) were not met:

Package 'iconv', required by 'libarchive', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables ARCHIVE_CFLAGS
and ARCHIVE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
bash-5.2#

0XBF 12-10-2022 02:23 PM

I run into this trying to build gnome-autoar on the new libarchive as well.

There's an open pull request to fix this in libarchive here: https://github.com/libarchive/libarchive/pull/1813

And some relevant discussion on a slightly older pull request: https://github.com/libarchive/libarchive/pull/1812

camerabambai 12-10-2022 02:48 PM

Also virt-manager fail

Code:

Run-time dependency json-glib-1.0 found: YES 1.6.6
Found CMake: /usr/bin/cmake (3.21.4)
Run-time dependency libarchive found: NO (tried cmake)

../meson.build:63:0: ERROR: Could not generate cargs for libarchive:
Package iconv was not found in the pkg-config search path.
Perhaps you should add the directory containing `iconv.pc'
to the PKG_CONFIG_PATH environment variable
Package 'iconv', required by 'libarchive', not found


marav 12-10-2022 05:52 PM

Quote:

Originally Posted by camerabambai (Post 6397114)
Also virt-manager fail

Code:

Run-time dependency json-glib-1.0 found: YES 1.6.6
Found CMake: /usr/bin/cmake (3.21.4)
Run-time dependency libarchive found: NO (tried cmake)

../meson.build:63:0: ERROR: Could not generate cargs for libarchive:
Package iconv was not found in the pkg-config search path.
Perhaps you should add the directory containing `iconv.pc'
to the PKG_CONFIG_PATH environment variable
Package 'iconv', required by 'libarchive', not found


I just tested on my VM (Slackware 15) not yet updated with libarchive 3.6.2
virt-manager builds fine

reddog83 12-10-2022 05:53 PM

@marav u have version 3.6.1 on ur system then?

marav 12-10-2022 06:00 PM

Quote:

Originally Posted by reddog83 (Post 6397141)
@marav u have version 3.6.1 on ur system then?

yep

Thanks to Didier Spaier on Sbo mailing list:
Quote:

hopefully will be fixed soon:
https://github.com/libarchive/libarchive/pull/1813
I missed OXBF post ...

phalange 12-10-2022 10:00 PM

3.6.2 doesn't fix it. The PR for (what appears to be) the patch for libarchive is still open.

Daedra 12-10-2022 11:46 PM

I applied the patches in the above link and recompiled libarchive. This fixed compiling appstream-glib for me. So based on my testing the above pull request does solve this problem.

lancsuk 12-11-2022 01:48 AM

It works for me....I was able to build fwupd and flatpak

Code:

--- libarchive.SlackBuild.orig        2021-08-24 07:27:01.000000000 +0100
+++ libarchive.SlackBuild        2022-12-11 07:37:05.288000000 +0000
@@ -72,6 +72,11 @@
 rm -rf $PKGNAM-$VERSION
 tar xvf $CWD/$PKGNAM-$VERSION.tar.?z || exit 1
 cd $PKGNAM-$VERSION || exit 1
+zcat $CWD/1813.patch.gz | patch -p1 || exit
+aclocal
+libtoolize --force
+autoreconf
+automake --add-missing
 chown -R root:root .
 find . \
  \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \


jloco 12-11-2022 06:25 AM

Simple fix/hack as root:

open "/usr/lib64/pkgconfig/libarchive.pc"

on the last line "Requires.private:" remove "iconv", save file... move on.

Proper fix needs to be worked out upstream, but rather than re-building Slackware packages, that enables you to do whatever building you need. Nothing I've built has ended up broken locally afterwards, but take my uneducated advice with a grain of salt.


All times are GMT -5. The time now is 09:25 PM.