Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error emerging pciutils
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
alahel
n00b
n00b


Joined: 03 Jan 2019
Posts: 5

PostPosted: Thu Jan 03, 2019 1:54 pm    Post subject: Error emerging pciutils Reply with quote

When trying to emerge sys-apps/pciutils I got the following error:

Error:

In file included from lspci.h:10:0,
                 from lspci.c:14:
lspci.c: In function ‘main’:
pciutils.h:18:26: error: expected ‘)’ before ‘PCILIB_VERSION’
 #define PCIUTILS_VERSION PCILIB_VERSION
                          ^
lspci.c:957:29: note: in expansion of macro ‘PCIUTILS_VERSION’
       puts("lspci version " PCIUTILS_VERSION);
                             ^~~~~~~~~~~~~~~~


Any ideas?
Thanks.


emerge -pqv '=sys-apps/pciutils-3.5.6::gentoo':

[ebuild  N    ] sys-apps/pciutils-3.5.6  USE="kmod udev zlib -dns -static-libs" ABI_X86="(64) -32 (-x32)"


emerge --info '=sys-apps/pciutils-3.5.6::gentoo':

Portage 2.3.51 (python 3.6.5-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-7.3.0, glibc-2.27-r6, 4.14.83-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.14.83-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E3-1535M_v6_@_3.10GHz-with-gentoo-2.6
KiB Mem:    65719424 total,  61281008 free
KiB Swap:  100663292 total, 100663292 free
Timestamp of repository gentoo: Thu, 03 Jan 2019 11:30:01 +0000
Head commit of repository gentoo: e114185f9b8e1c8a577fa39d1c5106885632616a
sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p5) 2.30.0
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.3-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.30-r4::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.14-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.dei.uc.pt/pub/linux/gentoo/ ftp://ftp.fau.de/gentoo ftp://ftp.fi.muni.cz/pub/linux/gentoo/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://ftp.gtlib.gatech.edu/pub/gentoo ftp://ftp.halifax.rwth-aachen.de/gentoo/ ftp://ftp.iij.ad.jp/pub/linux/gentoo/ ftp://ftp.jaist.ac.jp/pub/Linux/Gentoo/ ftp://ftp.kaist.ac.kr/gentoo/ ftp://ftp.lanet.kr/pub/gentoo/ ftp://ftp.linux.org.tr/gentoo/ ftp://ftp.mirrorservice.org/sites/distfiles.gentoo.org/ ftp://ftp.ntua.gr/pub/linux/gentoo/ ftp://ftp.rnl.tecnico.ulisboa.pt/pub/gentoo/gentoo-distfiles/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.swin.edu.au/gentoo ftp://ftp.twaren.net/Linux/Gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.vectranet.pl/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://gentoo.bloodhost.ru/ ftp://gentoo.c3sl.ufpr.br/gentoo/ ftp://gentoo.mirror.web4u.cz/ ftp://gentoo.wheel.sk/pub/linux/gentoo/ ftp://mirror.bytemark.co.uk/gentoo/ ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ ftp://mirror.dkm.cz/gentoo/ ftp://mirror.leaseweb.com/gentoo/ ftp://mirror.mdfnet.se/gentoo ftp://mirror.netcologne.de/gentoo/ ftp://mirror.ps.kz/gentoo/pub ftp://mirror.rise.ph/gentoo ftp://mirror.yandex.ru/gentoo-distfiles/ ftp://mirrors.rit.edu/gentoo/ ftp://mirrors.soeasyto.com/distfiles.gentoo.org/ ftp://mirrors.tera-byte.com/pub/gentoo ftp://tux.rainside.sk/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://ftp.daum.net/gentoo/ http://ftp.dei.uc.pt/pub/linux/gentoo/ http://ftp.fau.de/gentoo http://ftp.fi.muni.cz/pub/linux/gentoo/ http://ftp.free.fr/mirrors/ftp.gentoo.org/ http://ftp.halifax.rwth-aachen.de/gentoo/ http://ftp.iij.ad.jp/pub/linux/gentoo/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/ http://ftp.kaist.ac.kr/pub/gentoo/ http://ftp.lanet.kr/pub/gentoo/ http://ftp.linux.org.tr/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/ http://ftp.rnl.tecnico.ulisboa.pt/pub/gentoo/gentoo-distfiles/ http://ftp.romnet.org/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.swin.edu.au/gentoo http://ftp.twaren.net/Linux/Gentoo/ http://ftp.vectranet.pl/gentoo/ http://gentoo-mirror.alexxy.name/ http://gentoo.aditsu.net:8000/ http://gentoo.bloodhost.ru/ http://gentoo.c3sl.ufpr.br/ http://gentoo.cs.utah.edu/ http://gentoo.gossamerhost.com http://gentoo.mirror.web4u.cz/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/ http://gentoo.mirrors.pair.com/ http://gentoo.mirrors.tds.net/gentoo http://gentoo.mirrors.tera-byte.com/ http://gentoo.modulix.net/gentoo/ http://gentoo.osuosl.org/ http://gentoo.ussg.indiana.edu/ http://gentoo.wheel.sk/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirror.bytemark.co.uk/gentoo/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://mirror.dkm.cz/gentoo/ http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ http://mirror.isoc.org.il/pub/gentoo/ http://mirror.leaseweb.com/gentoo/ http://mirror.lug.udel.edu/pub/gentoo/ http://mirror.mdfnet.se/gentoo http://mirror.netcologne.de/gentoo/ http://mirror.ps.kz/gentoo/pub http://mirror.rise.ph/gentoo http://mirror.sjc02.svwh.net/gentoo/ http://mirror.yandex.ru/gentoo-distfiles/ http://mirrors.163.com/gentoo/ http://mirrors.evowise.com/gentoo/ http://mirrors.lug.mtu.edu/gentoo/ http://mirrors.rit.edu/gentoo/ http://mirrors.soeasyto.com/distfiles.gentoo.org/ http://mirrors.xservers.ro/gentoo/ http://tux.rainside.sk/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo http://www.mirrorservice.org/sites/distfiles.gentoo.org/ https://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ https://ftp.fau.de/gentoo https://ftp.halifax.rwth-aachen.de/gentoo/ https://ftp.jaist.ac.jp/pub/Linux/Gentoo/ https://ftp.lanet.kr/pub/gentoo/ https://ftp.rnl.tecnico.ulisboa.pt/pub/gentoo/gentoo-distfiles/ https://gentoo-mirror.alexxy.name/ https://gentoo.c3sl.ufpr.br/ https://gentoo.osuosl.org/ https://gentoo.ussg.indiana.edu/ https://gentoo.wheel.sk/ https://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ https://mirror.bytemark.co.uk/gentoo/ https://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ https://mirror.dkm.cz/gentoo/ https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ https://mirror.isoc.org.il/pub/gentoo/ https://mirror.leaseweb.com/gentoo/ https://mirror.netcologne.de/gentoo/ https://mirror.ps.kz/gentoo/pub https://mirror.sjc02.svwh.net/gentoo/ https://mirror.yandex.ru/gentoo-distfiles/ https://mirrors.163.com/gentoo/ https://mirrors.evowise.com/gentoo/ https://mirrors.lug.mtu.edu/gentoo/ https://mirrors.rit.edu/gentoo/ https://mirrors.tuna.tsinghua.edu.cn/gentoo https://www.mirrorservice.org/sites/distfiles.gentoo.org/ rsync://ftp-stud.hs-esslingen.de/gentoo/ rsync://ftp.fau.de/gentoo rsync://ftp.fi.muni.cz/pub/linux/gentoo/ rsync://ftp.halifax.rwth-aachen.de/gentoo/ rsync://ftp.iij.ad.jp/pub/linux/gentoo/ rsync://ftp.jaist.ac.jp/pub/Linux/Gentoo/ rsync://ftp.linux.org.tr/gentoo-distfiles/ rsync://ftp.rnl.tecnico.ulisboa.pt/pub/gentoo/gentoo-distfiles/ rsync://ftp.snt.utwente.nl/gentoo rsync://ftp.vectranet.pl/gentoo/ rsync://gentoo.bloodhost.ru/gentoo-distfiles rsync://gentoo.c3sl.ufpr.br/gentoo/ rsync://gentoo.gossamerhost.com/gentoo-distfiles/ rsync://mirror.bytemark.co.uk/gentoo/ rsync://mirror.dkm.cz/gentoo/ rsync://mirror.eu.oneandone.net/gentoo/ rsync://mirror.leaseweb.com/gentoo/ rsync://mirror.netcologne.de/gentoo/ rsync://mirror.ps.kz/gentoo rsync://mirrors.rit.edu/gentoo/ rsync://mirrors.tera-byte.com/gentoo rsync://rsync.gtlib.gatech.edu/gentoo rsync://rsync.mirrorservice.org/distfiles.gentoo.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8 -l9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam flac fortran gdbm gif glamor gpm gtk iconv ipv6 jpeg kde kipi kwallet lcms ldap libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qml qt5 readline sdl seccomp semantic-desktop spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xcomposite xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


cat /var/tmp/portage/sys-apps/pciutils-3.5.6/temp/build.log:

 * Package:    sys-apps/pciutils-3.5.6
 * Repository: gentoo
 * Maintainer: base-system@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux kmod udev userland_GNU zlib
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking pciutils-3.5.6.tar.gz to /var/tmp/portage/sys-apps/pciutils-3.5.6/work
>>> Source unpacked in /var/tmp/portage/sys-apps/pciutils-3.5.6/work
>>> Preparing source in /var/tmp/portage/sys-apps/pciutils-3.5.6/work/pciutils-3.5.6 ...
 * Applying pciutils-3.1.9-static-pc.patch ...                                                                                [ ok ]
 * Will copy sources from /var/tmp/portage/sys-apps/pciutils-3.5.6/work/pciutils-3.5.6
 * abi_x86_64.amd64: copying to /var/tmp/portage/sys-apps/pciutils-3.5.6/work/pciutils-3.5.6-abi_x86_64.amd64
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-apps/pciutils-3.5.6/work/pciutils-3.5.6 ...
 * abi_x86_64.amd64: running multilib-minimal_abi_src_configure
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-apps/pciutils-3.5.6/work/pciutils-3.5.6 ...
 * abi_x86_64.amd64: running multilib-minimal_abi_src_compile
make -j8 -l9 HOST=x86_64-pc-linux-gnu CROSS_COMPILE=x86_64-pc-linux-gnu- CC=gcc AR=ar PKG_CONFIG=x86_64-pc-linux-gnu-pkg-config RANLIB=ranlib DNS=no IDSDIR=$(SHAREDIR)/misc MANDIR=$(SHAREDIR)/man PREFIX=/usr SHARED=yes STRIP= ZLIB=yes PCI_COMPRESSED_IDS=0 PCI_IDS=pci.ids LIBDIR=${PREFIX}/lib64 LIBKMOD=yes HWDB=yes 'OPT=-march=native -O2 -pipe' all
cd lib && ./configure
Configuring libpci for your system... x86_64--linux  x86_64 linux
Looking for access methods... sysfs proc i386-ports dump
Checking for zlib support... yes (set manually)
Checking for DNS support... no (set manually)
Checking for libkmod... yes (set manually)
Requested use of libkmod, but it is not available. Giving up.
make -C lib all
gcc -march=native -O2 -pipe -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -c -o lspci.o lspci.c
gcc -march=native -O2 -pipe -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -c -o ls-vpd.o ls-vpd.c
gcc -march=native -O2 -pipe -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -c -o ls-caps.o ls-caps.c
gcc -march=native -O2 -pipe -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -c -o ls-caps-vendor.o ls-caps-vendor.c
make[1]: Entering directory '/var/tmp/portage/sys-apps/pciutils-3.5.6/work/pciutils-3.5.6-abi_x86_64.amd64/lib'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/var/tmp/portage/sys-apps/pciutils-3.5.6/work/pciutils-3.5.6-abi_x86_64.amd64/lib'
gcc -march=native -O2 -pipe -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -c -o ls-ecaps.o ls-ecaps.c
gcc -march=native -O2 -pipe -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes   -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -c -o ls-kernel.o ls-kernel.c
gcc -march=native -O2 -pipe -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -c -o ls-tree.o ls-tree.c
gcc -march=native -O2 -pipe -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -c -o ls-map.o ls-map.c
In file included from lspci.h:10:0,
                 from lspci.c:14:
lspci.c: In function ‘main’:
pciutils.h:18:26: error: expected ‘)’ before ‘PCILIB_VERSION’
 #define PCIUTILS_VERSION PCILIB_VERSION
                          ^
lspci.c:957:29: note: in expansion of macro ‘PCIUTILS_VERSION’
       puts("lspci version " PCIUTILS_VERSION);
                             ^~~~~~~~~~~~~~~~
make: *** [<builtin>: lspci.o] Error 1
make: *** Waiting for unfinished jobs....
 * ERROR: sys-apps/pciutils-3.5.6::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-apps/pciutils-3.5.6::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-apps/pciutils-3.5.6::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-apps/pciutils-3.5.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/pciutils-3.5.6/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-apps/pciutils-3.5.6/work/pciutils-3.5.6-abi_x86_64.amd64'
 * S: '/var/tmp/portage/sys-apps/pciutils-3.5.6/work/pciutils-3.5.6'
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21779
Location: here

PostPosted: Thu Jan 03, 2019 3:17 pm    Post subject: Reply with quote

What return command pkg-config libkmod --libs and emerge -pvq libkmod?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
alahel
n00b
n00b


Joined: 03 Jan 2019
Posts: 5

PostPosted: Thu Jan 03, 2019 5:02 pm    Post subject: Reply with quote

fedeliallalinea wrote:
What return command pkg-config libkmod --libs and emerge -pvq libkmod?


pkg-config libkmod --libs:

-lkmod


Can't emerge libkmod, but for kmod I got this:

emerge -pvq kmod:

[ebuild   R   ] sys-apps/kmod-24  USE="tools zlib -debug -doc -lzma -python -static-libs" PYTHON_TARGETS="python2_7 python3_6 -python3_4 -python3_5"
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3940
Location: Dallas area

PostPosted: Thu Jan 03, 2019 5:30 pm    Post subject: Reply with quote

The code looks for "pkg-config libkmod" not "pkg-config libkmod --libs" and so returns empty.

Edit to add: still returns a "0" though, so test should work, but for some reason isn't.

What does "pkg-config libkmod; echo $?" return (should be zero)

ETA2: code for checking
Code:
    LIBKMOD_DETECTED=
    if [ -z "$PKG_CONFIG" ] ; then
        PKG_CONFIG=pkg-config
    fi
    if [ "$LIBKMOD" != no ] ; then
        if ! which $PKG_CONFIG >/dev/null ; then
            echo_n "($PKG_CONFIG not found) "
        elif $PKG_CONFIG libkmod ; then
            LIBKMOD_DETECTED=1
        fi
    fi
    if [ "$LIBKMOD" = yes -o "$LIBKMOD" = no ] ; then
        echo "$LIBKMOD (set manually)"
        if [ "$LIBKMOD" = yes -a -z "$LIBKMOD_DETECTED" ] ; then
            echo "Requested use of libkmod, but it is not available. Giving up."
            exit 1
        fi
    else


is sys-apps/which installed on your system?
_________________
Asus m5a99fx, FX 8320 - nouveau, oss4, rx550 for qemu passthrough
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
5.0.13 zen kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
alahel
n00b
n00b


Joined: 03 Jan 2019
Posts: 5

PostPosted: Thu Jan 03, 2019 7:27 pm    Post subject: Reply with quote

Anon-E-moose wrote:
What does "pkg-config libkmod; echo $?" return (should be zero)

returns 0

Anon-E-moose wrote:
is sys-apps/which installed on your system?

yes
Back to top
View user's profile Send private message
alahel
n00b
n00b


Joined: 03 Jan 2019
Posts: 5

PostPosted: Thu Jan 03, 2019 8:09 pm    Post subject: Reply with quote

Apparently kmod was not emerged. I installed it and was able to get past the error. But then the linker was complaining that it can't find -lkmod.

I will try again tomorrow and let you know.

In the meantime thanks for your help.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13842

PostPosted: Fri Jan 04, 2019 2:28 am    Post subject: Reply with quote

As I see the Portage tree, =sys-apps/pciutils-3.5.6 has a DEPEND relation kmod? ( sys-apps/kmod ), so Portage should have required you to install kmod before attempting this package. How did you install pciutils without Portage installing kmod?
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21779
Location: here

PostPosted: Fri Jan 04, 2019 7:00 am    Post subject: Reply with quote

alahel wrote:
Apparently kmod was not emerged. I installed it and was able to get past the error. But then the linker was complaining that it can't find -lkmod.

I will try again tomorrow and let you know.

In the meantime thanks for your help.

This means that you have installed manually kmod, because if pkg-config return 0 means that kmod is installed.
What return command locate libkmod (locate is part of sys-apps/mlocate)
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
alahel
n00b
n00b


Joined: 03 Jan 2019
Posts: 5

PostPosted: Fri Jan 04, 2019 5:14 pm    Post subject: Reply with quote

OK problem solved. I started from scratch and discover that during 'emerge --ask --verbose --update --deep --newuse @world' there was some errors I did not address. My bad.

I am really sorry I wasted your time. (Will do better next time)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum