Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 605390 - net-libs/libqmi-1.16.2 - missing virtual/libgudev {,R}DEPEND
Summary: net-libs/libqmi-1.16.2 - missing virtual/libgudev {,R}DEPEND
Status: RESOLVED DUPLICATE of bug 628276
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 2 votes (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-11 14:01 UTC by Oleh
Modified: 2018-06-18 10:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,5.17 KB, text/plain)
2017-04-12 19:14 UTC, Toralf Förster
Details
config.log.tbz2 (config.log.tbz2,7.14 KB, application/x-bzip)
2017-04-12 19:14 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,102.27 KB, text/plain)
2017-04-12 19:14 UTC, Toralf Förster
Details
environment (environment,41.59 KB, text/plain)
2017-04-12 19:14 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,23.43 KB, application/x-bzip)
2017-04-12 19:14 UTC, Toralf Förster
Details
net-libs:libqmi-1.18.0:20170412-190635.log (net-libs:libqmi-1.18.0:20170412-190635.log,7.28 KB, text/plain)
2017-04-12 19:14 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,13.20 KB, application/x-bzip)
2017-04-12 19:14 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oleh 2017-01-11 14:01:03 UTC
As in summary:
have the box without libgudev installed and attempt to install =net-libs/libqmi-1.16.2 leading to failure.

Reproducible: Always

Steps to Reproduce:
1. have box wihout libgudev (or remove it)
2. emerge =net-libs/libqmi-1.16.2
3. notice failure
4. emerge -1 libgudev
5. emerge =net-libs/libqmi-1.16.2 is OK.
Actual Results:  
[01;32m[K                       ^[m[K
/bin/sh ../../../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -march=westmere -O2 -pipe  -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -o test-generated test_generated-test-fixture.o test_generated-test-port-context.o test_generated-test-generated.o ../../../src/libqmi-glib/libqmi-glib.la -lgio-2.0 -lgobject-2.0 -lglib-2.0   
/bin/sh ../../../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -march=westmere -O2 -pipe  -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -o test-utils test_utils-test-utils.o ../../../src/libqmi-glib/libqmi-glib.la -lgio-2.0 -lgobject-2.0 -lglib-2.0   
libtool: link: x86_64-pc-linux-gnu-gcc -march=westmere -O2 -pipe -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -o .libs/test-utils test_utils-test-utils.o  ../../../src/libqmi-glib/.libs/libqmi-glib.so -lmbim-glib -lgio-2.0 -lgobject-2.0 -lglib-2.0
libtool: link: x86_64-pc-linux-gnu-gcc -march=westmere -O2 -pipe -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -o .libs/test-generated test_generated-test-fixture.o test_generated-test-port-context.o test_generated-test-generated.o  ../../../src/libqmi-glib/.libs/libqmi-glib.so -lmbim-glib -lgio-2.0 -lgobject-2.0 -lglib-2.0
/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libgudev-1.0.so.0, needed by /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../lib64/libmbim-glib.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../lib64/libmbim-glib.so: undefined reference to `g_udev_device_get_sysfs_path'
/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../lib64/libmbim-glib.so: undefined reference to `g_udev_client_new'
/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../lib64/libmbim-glib.so: undefined reference to `g_udev_client_get_type'
/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../lib64/libmbim-glib.so: undefined reference to `g_udev_device_get_parent'
/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../lib64/libmbim-glib.so: undefined reference to `g_udev_client_query_by_subsystem_and_name'
collect2: error: ld returned 1 exit status
/usr/lib/Makefile:446: recipe for target 'test-utils' failed
gcc/x86_64-pcmake[4]: *** [test-utils] Error 1
-linux-gnu/5.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libgudevmake[4]: *** Waiting for unfinished jobs....
-1.0.so.0, needed by /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../lib64/libmbim-glib.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../lib64/libmbim-glib.so: undefined reference to `g_udev_device_get_sysfs_path'
/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../lib64/libmbim-glib.so: undefined reference to `g_udev_client_new'
/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../lib64/libmbim-glib.so: undefined reference to `g_udev_client_get_type'
/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../lib64/libmbim-glib.so: undefined reference to `g_udev_device_get_parent'
/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../lib64/libmbim-glib.so: undefined reference to `g_udev_client_query_by_subsystem_and_name'
collect2: error: ld returned 1 exit status
Makefile:438: recipe for target 'test-generated' failed
make[4]: *** [test-generated] Error 1
make[4]: Leaving directory '/var/tmp/portage/net-libs/libqmi-1.16.2/work/libqmi-1.16.2/src/libqmi-glib/test'
Makefile:663: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/var/tmp/portage/net-libs/libqmi-1.16.2/work/libqmi-1.16.2/src/libqmi-glib'
Makefile:375: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-libs/libqmi-1.16.2/work/libqmi-1.16.2/src'
Makefile:432: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-libs/libqmi-1.16.2/work/libqmi-1.16.2'
Makefile:364: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: net-libs/libqmi-1.16.2::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=net-libs/libqmi-1.16.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-libs/libqmi-1.16.2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-libs/libqmi-1.16.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/libqmi-1.16.2/temp/environment'.
 * Working directory: '/var/tmp/portage/net-libs/libqmi-1.16.2/work/libqmi-1.16.2'
 * S: '/var/tmp/portage/net-libs/libqmi-1.16.2/work/libqmi-1.16.2'
Comment 1 Toralf Förster gentoo-dev 2017-04-12 19:13:57 UTC
same at the tinderbox image 13.0_20170410-205353
Comment 2 Toralf Förster gentoo-dev 2017-04-12 19:14:03 UTC
Created attachment 469922 [details]
emerge-info.txt
Comment 3 Toralf Förster gentoo-dev 2017-04-12 19:14:08 UTC
Created attachment 469924 [details]
config.log.tbz2
Comment 4 Toralf Förster gentoo-dev 2017-04-12 19:14:12 UTC
Created attachment 469926 [details]
emerge-history.txt
Comment 5 Toralf Förster gentoo-dev 2017-04-12 19:14:17 UTC
Created attachment 469928 [details]
environment
Comment 6 Toralf Förster gentoo-dev 2017-04-12 19:14:23 UTC
Created attachment 469930 [details]
etc.portage.tbz2
Comment 7 Toralf Förster gentoo-dev 2017-04-12 19:14:28 UTC
Created attachment 469932 [details]
net-libs:libqmi-1.18.0:20170412-190635.log
Comment 8 Toralf Förster gentoo-dev 2017-04-12 19:14:33 UTC
Created attachment 469934 [details]
temp.tbz2
Comment 9 Stuart Longland 2017-06-14 08:53:05 UTC
Just encountered this issue myself on mips64el (n64 ABI) with libqmi-1.18.0.

---
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... no
checking for more warnings... no
checking for mips64el-unknown-linux-gnu-pkg-config... /usr/bin/mips64el-unknown-linux-gnu-pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for GUDEV... no
configure: error: Couldn't find gudev >= 147. Install it, or otherwise configure using --without-udev to disable udev support.
---

By the sounds of things, it *can* be turned off, so perhaps in the ebuild:
---
IUSE="doc +mbim static-libs udev"

RDEPEND=">=dev-libs/glib-2.32
        mbim? ( >=net-libs/libmbim-1.14.0 )
        udev? ( >=virtual/libgudev-147 )"
DEPEND="${RDEPEND}
        doc? ( dev-util/gtk-doc )
        virtual/pkgconfig"
[[ ${PV} == "9999" ]] && DEPEND+=" dev-util/gtk-doc" #469214

src_prepare() {
        default
        [[ -e configure ]] || eautoreconf
}

src_configure() {
        econf \
                --disable-more-warnings \
                $(use_enable mbim mbim-qmux) \
                $(use_enable static{-libs,}) \
                $(use_enable {,gtk-}doc) \
                $(use_with udev)
}
---

… those amendments would take care of it and give users some configure-ability to boot.
Comment 10 Tony Vroon (RETIRED) gentoo-dev 2018-06-18 10:09:29 UTC

*** This bug has been marked as a duplicate of bug 628276 ***