https://bugs.kde.org/show_bug.cgi?id=498018

            Bug ID: 498018
           Summary: KRDC fails to build due to newer version of FreeRDP
                    version  3.10.3 available
    Classification: Applications
           Product: krdc
           Version: unspecified
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: general
          Assignee: uwol...@kde.org
          Reporter: chocolatemagn...@gmail.com
  Target Milestone: ---

SUMMARY
Fedora Workstation 41 ships FreeRDP version 3.10.3, preventing KRDC from
building because it requires an older version of the library. In CMakeLists.txt
at
https://invent.kde.org/network/krdc/-/blob/master/CMakeLists.txt?ref_type=heads#L122
on the line 122, it says:
```
find_package(FreeRDP 2.10)
```
Which on Fedora 41 causes the following issue when building with kde-builder:
```
-- The C compiler identification is GNU 14.2.1
-- The CXX compiler identification is GNU 14.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- 

Installing in /home/chocolate-magnate/kde/usr. Run
/home/chocolate-magnate/kde/build/krdp/prefix.sh to set the environment for
KRdp.
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE
-- Found OpenGL: /usr/lib64/libOpenGL.so
-- Found WrapOpenGL: TRUE
-- Found XKB: /usr/lib64/libxkbcommon.so (found suitable version "1.7.0",
minimum required is "0.5.0")
-- Found WrapVulkanHeaders: /usr/include
-- Found Wayland_Client:
/home/chocolate-magnate/kde/usr/lib64/libwayland-client.so (found version
"1.23.90")
-- Found Wayland_Server:
/home/chocolate-magnate/kde/usr/lib64/libwayland-server.so (found version
"1.23.90")
-- Found Wayland_Cursor:
/home/chocolate-magnate/kde/usr/lib64/libwayland-cursor.so (found version
"1.23.90")
-- Found Wayland_Egl: /home/chocolate-magnate/kde/usr/lib64/libwayland-egl.so
(found version "18.1.0")
-- Found Wayland:
/home/chocolate-magnate/kde/usr/lib64/libwayland-client.so;/home/chocolate-magnate/kde/usr/lib64/libwayland-server.so;/home/chocolate-magnate/kde/usr/lib64/libwayland-cursor.so;/home/chocolate-magnate/kde/usr/lib64/libwayland-egl.so
(found suitable version "1.23.90", minimum required is "1.15")
-- Found WaylandScanner: /home/chocolate-magnate/kde/usr/bin/wayland-scanner
-- Found KF6Config:
/home/chocolate-magnate/kde/usr/lib64/cmake/KF6Config/KF6ConfigConfig.cmake
(found version "6.10.0")
-- Found KF6DBusAddons:
/home/chocolate-magnate/kde/usr/lib64/cmake/KF6DBusAddons/KF6DBusAddonsConfig.cmake
(found version "6.10.0")
-- Found KF6KCMUtils:
/home/chocolate-magnate/kde/usr/lib64/cmake/KF6KCMUtils/KF6KCMUtilsConfig.cmake
(found version "6.10.0")
-- Found Gettext: /usr/bin/msgmerge (found version "0.22.5")
-- Found KF6I18n:
/home/chocolate-magnate/kde/usr/lib64/cmake/KF6I18n/KF6I18nConfig.cmake (found
version "6.10.0")
-- Found KF6CoreAddons:
/home/chocolate-magnate/kde/usr/lib64/cmake/KF6CoreAddons/KF6CoreAddonsConfig.cmake
(found version "6.10.0")
-- Found KF6StatusNotifierItem:
/home/chocolate-magnate/kde/usr/lib64/cmake/KF6StatusNotifierItem/KF6StatusNotifierItemConfig.cmake
(found version "6.10.0")
-- Found KF6Crash:
/home/chocolate-magnate/kde/usr/lib64/cmake/KF6Crash/KF6CrashConfig.cmake
(found version "6.10.0")
-- Found KF6: success (found suitable version "6.10.0", minimum required is
"6.5.0") found components: Config DBusAddons KCMUtils I18n CoreAddons
StatusNotifierItem Crash
CMake Error at CMakeLists.txt:41 (find_package):
  Could not find a configuration file for package "FreeRDP" that is
  compatible with requested version "2.10".

  The following configuration files were considered but not accepted:

    /usr/lib64/cmake/FreeRDP3/FreeRDPConfig.cmake, version: 3.10.3
    /lib64/cmake/FreeRDP3/FreeRDPConfig.cmake, version: 3.10.3



-- Configuring incomplete, errors occurred!

STEPS TO REPRODUCE
1. Follow getting started guide at
https://community.kde.org/Get_Involved/development
2. Set up kde-builder as per documentation
3. Attempt to build KRDC
4. Build fails with CMake error due to FreeRDP version mismatch

System has FreeRDP 3.10.3 installed
(/usr/lib64/cmake/FreeRDP3/FreeRDPConfig.cmake)
CMakeLists.txt requires exactly FreeRDP 2.10

OBSERVED RESULT
kde-builder fails to build KRDC because of strict version match. The exact
error occurs here:
CMake Error at CMakeLists.txt:41 (find_package):
  Could not find a configuration file for package "FreeRDP" that is
  compatible with requested version "2.10".

  The following configuration files were considered but not accepted:

    /usr/lib64/cmake/FreeRDP3/FreeRDPConfig.cmake, version: 3.10.3
    /lib64/cmake/FreeRDP3/FreeRDPConfig.cmake, version: 3.10.3

EXPECTED RESULT
KRDC accepts FreeRDP version >=3 and proceeds with the build.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Workstation 41
KDE Plasma Version: Plasma 6 master branch commit c61aa0e17a
KDE Frameworks Version: Plasma 6 master branch commit c61aa0e17a
Qt Version: Qt 6.8.1

ADDITIONAL INFORMATION
Potential fix: allow FreeRDP version up to 4 explicitly:
```
find_package(FreeRDP 2.10...3.99)
```

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to