Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 930543

Summary: dev-qt/qtserialport-5.15.13 - qserialportinfo_unix.cpp:(.text+<snip>): undefined reference to udev_new
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Qt Bug Alias <qt>
Status: CONFIRMED ---    
Severity: normal CC: paul
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt

Description Toralf Förster gentoo-dev 2024-04-24 07:15:12 UTC
too long lines were shrinked:

x86_64-pc-linux-gnu-g++ -c -O2 -pipe -march=native -fno-diagnostics-color -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -Wextra -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -Wno-format-overflow -D_REENTRANT -fPIC -DQT_NO_LINKED_LIST
x86_64-pc-linux-gnu-g++ -c -O2 -pipe -march=native -fno-diagnostics-color -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -Wextra -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -Wno-format-overflow -D_REENTRANT -fPIC -DQT_NO_LINKED_LIST
rm -f
x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--undefined-version -Wl,--no-undefined -Wl,--version-script,QtSerialPort.version -Wl,--enable-new-dtags -shared -Wl,-Bsymbolic-functions -Wl,-soname, -o libQt5
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: .obj/qserialportinfo_unix.o: in function `availablePortsByUdev(bool&)':
qserialportinfo_unix.cpp:(.text+0xdc7): undefined reference to `udev_new'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: qserialportinfo_unix.cpp:(.text+0xddf): undefined reference to `udev_enumerate_new'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: qserialportinfo_unix.cpp:(.text+0xdfa): undefined reference to `udev_enumerate_add_match_subsystem'


  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_plasma_test-20240419-193003


gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 18.1.4
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
Python 3.11.9
Available Rust versions:
  [1]   rust-bin-1.77.1 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 21.0.2_p13 [openjdk-bin-21]
Available Java Virtual Machines:
  [1]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.22.2 linux/amd64

  HEAD of ::gentoo
commit d288e00c26c57271f87899298b2aae7947c62e54
Author: Repository mirror & CI <>
Date:   Wed Apr 24 06:04:25 2024 +0000

    2024-04-24 06:04:25 UTC

emerge -qpvO dev-qt/qtserialport
[ebuild  N    ] dev-qt/qtserialport-6.7.0  USE="test"
Comment 1 Toralf Förster gentoo-dev 2024-04-24 07:15:13 UTC
Created attachment 891617 [details]
Comment 2 Toralf Förster gentoo-dev 2024-04-24 07:15:14 UTC
Created attachment 891618 [details]
Comment 3 Toralf Förster gentoo-dev 2024-04-24 07:15:15 UTC
Created attachment 891619 [details]
Comment 4 Toralf Förster gentoo-dev 2024-04-24 07:15:16 UTC
Created attachment 891620 [details]
Comment 5 Toralf Förster gentoo-dev 2024-04-24 07:15:17 UTC
Created attachment 891621 [details]
Comment 6 Toralf Förster gentoo-dev 2024-04-24 07:15:18 UTC
Created attachment 891622 [details]
Comment 7 Toralf Förster gentoo-dev 2024-04-24 07:15:19 UTC
Created attachment 891623 [details]
Comment 8 Toralf Förster gentoo-dev 2024-04-24 07:15:20 UTC
Created attachment 891624 [details]
Comment 9 Toralf Förster gentoo-dev 2024-04-24 07:15:21 UTC
Created attachment 891625 [details]
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-19 18:22:57 UTC
paul: do you mind if I ask if you've hit this after upgrading to gcc 14, or just hit it otherwise?
Comment 11 Paul Jewell 2024-05-19 21:47:02 UTC
(In reply to Sam James from comment #10)
> paul: do you mind if I ask if you've hit this after upgrading to gcc 14, or
> just hit it otherwise?

Hi Sam - You can always ask! I have come across this bug on a completely new install on my laptop. After following the handbook installation process, I installed kde plasma. Then I wanted to install freecad, and hit this issue. I have gcc 13 installed, so it isn't related to updating to gcc 14. 
After hitting this problem on the laptop, I installed freecad including qtserialport on my desktop system without any issues - again using gcc 13. 

udev versions seem to match on both systems, but the kernel versions differ. The desktop is on 6.8.6, while the new install on the laptop is on 6.6.30. I am planning to get everything working as I like before moving to the unstable kernel.

If you want me to check anything - just ask!