Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 930543 - dev-qt/qtserialport-5.15.13 - qserialportinfo_unix.cpp:(.text+<snip>): undefined reference to udev_new
Summary: dev-qt/qtserialport-5.15.13 - qserialportinfo_unix.cpp:(.text+<snip>): undefi...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-24 07:15 UTC by Toralf Förster
Modified: 2024-05-19 21:47 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.46 KB, text/plain)
2024-04-24 07:15 UTC, Toralf Förster
Details
dev-qt:qtserialport-5.15.13:20240424-071348.log (dev-qt:qtserialport-5.15.13:20240424-071348.log,19.16 KB, text/plain)
2024-04-24 07:15 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,138.25 KB, text/plain)
2024-04-24 07:15 UTC, Toralf Förster
Details
environment (environment,99.97 KB, text/plain)
2024-04-24 07:15 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.19 KB, application/x-xz)
2024-04-24 07:15 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,23.84 KB, application/x-xz)
2024-04-24 07:15 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,644 bytes, application/x-xz)
2024-04-24 07:15 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,227.00 KB, text/plain)
2024-04-24 07:15 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,24.90 KB, application/x-xz)
2024-04-24 07:15 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
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
/usr/lib64/qt5/bin/moc -DQT_NO_LINKED_LIST -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_LINKED_LIST -DLINK_LIBUDEV -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_SERIALPORT_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_D
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 libQt5SerialPort.so.5.15.13 libQt5SerialPort.so libQt5SerialPort.so.5 libQt5SerialPort.so.5.15
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,libQt5SerialPort.so.5 -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
/usr/lib/llvm/18
18.1.4
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 <repomirrorci@gentoo.org>
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]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-04-24 07:15:14 UTC
Created attachment 891618 [details]
dev-qt:qtserialport-5.15.13:20240424-071348.log
Comment 3 Toralf Förster gentoo-dev 2024-04-24 07:15:15 UTC
Created attachment 891619 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-04-24 07:15:16 UTC
Created attachment 891620 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-04-24 07:15:17 UTC
Created attachment 891621 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-04-24 07:15:18 UTC
Created attachment 891622 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-04-24 07:15:19 UTC
Created attachment 891623 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-04-24 07:15:20 UTC
Created attachment 891624 [details]
qlist-info.txt
Comment 9 Toralf Förster gentoo-dev 2024-04-24 07:15:21 UTC
Created attachment 891625 [details]
temp.tar.xz
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!