LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-10-2022, 12:15 PM   #1
camerabambai
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 408

Rep: Reputation: 54
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
 
Old 12-10-2022, 12:31 PM   #2
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,366

Rep: Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082
Quote:
Originally Posted by camerabambai View Post

which package is "iconv"? Sbopkg said..
glibc
 
Old 12-10-2022, 01:19 PM   #3
rizitis
Member
 
Registered: Mar 2009
Location: Greece,Crete
Distribution: Slackware64-current, Slint
Posts: 639

Rep: Reputation: 488Reputation: 488Reputation: 488Reputation: 488Reputation: 488
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 *)
 
Old 12-10-2022, 01:42 PM   #4
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
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
 
Old 12-10-2022, 01:46 PM   #5
rizitis
Member
 
Registered: Mar 2009
Location: Greece,Crete
Distribution: Slackware64-current, Slint
Posts: 639

Rep: Reputation: 488Reputation: 488Reputation: 488Reputation: 488Reputation: 488
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...
 
1 members found this post helpful.
Old 12-10-2022, 01:47 PM   #6
reddog83
Member
 
Registered: Apr 2018
Distribution: Slackware 15.0/Current
Posts: 443

Rep: Reputation: 229Reputation: 229Reputation: 229
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#

Last edited by reddog83; 12-10-2022 at 01:50 PM.
 
1 members found this post helpful.
Old 12-10-2022, 02:23 PM   #7
0XBF
Member
 
Registered: Nov 2018
Distribution: Slackware
Posts: 766

Rep: Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867
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
 
1 members found this post helpful.
Old 12-10-2022, 02:48 PM   #8
camerabambai
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 408

Original Poster
Rep: Reputation: 54
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
 
Old 12-10-2022, 05:52 PM   #9
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,366

Rep: Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082
Quote:
Originally Posted by camerabambai View Post
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
 
1 members found this post helpful.
Old 12-10-2022, 05:53 PM   #10
reddog83
Member
 
Registered: Apr 2018
Distribution: Slackware 15.0/Current
Posts: 443

Rep: Reputation: 229Reputation: 229Reputation: 229
@marav u have version 3.6.1 on ur system then?
 
Old 12-10-2022, 06:00 PM   #11
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,366

Rep: Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082
Quote:
Originally Posted by reddog83 View Post
@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 ...

Last edited by marav; 12-10-2022 at 06:22 PM.
 
2 members found this post helpful.
Old 12-10-2022, 10:00 PM   #12
phalange
Member
 
Registered: May 2018
Distribution: Slackware, FreeBSD, Debian
Posts: 355

Rep: Reputation: 184Reputation: 184
3.6.2 doesn't fix it. The PR for (what appears to be) the patch for libarchive is still open.
 
Old 12-10-2022, 11:46 PM   #13
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,684

Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
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.
 
2 members found this post helpful.
Old 12-11-2022, 01:48 AM   #14
lancsuk
Member
 
Registered: Jul 2019
Location: Burnley / UK
Distribution: Slackware current
Posts: 226

Rep: Reputation: 204Reputation: 204Reputation: 204
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 \) \
 
3 members found this post helpful.
Old 12-11-2022, 06:25 AM   #15
jloco
Member
 
Registered: Apr 2016
Location: Detroit, MI
Distribution: Slackware
Posts: 180

Rep: Reputation: 148Reputation: 148
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.
 
5 members found this post helpful.
  


Reply

Tags
fwupd



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Fwupd 1.5.7 Adds Initial Support for BlueZ Bluetooth Devices, More Improvements LXer Syndicated Linux News 0 03-25-2021 07:42 AM
LXer: Fwupd 1.5.6 Released with Support for System76’s Keyboard, Star LabTop Mk IV Laptop LXer Syndicated Linux News 0 02-17-2021 09:12 AM
[SOLVED] fwupd Slackbuild tramtrist Slackware 11 01-26-2020 01:04 PM
Ubuntu freedesktop.fwupd error dr_berta Linux - Software 0 08-01-2019 09:45 AM
Use SlackBuilds.org or my own hosting to offer up SlackBuilds? hollywoodb Slackware 6 11-30-2006 08:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration