Bug 510334

Summary: build failled with : correlator_utest.cpp.o] Error 1
Product: [Applications] digikam Reporter: pascal lacroix <kikoucalou>
Component: Portability-CompilationAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version First Reported In: 8.8.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 8.8.0
Sentry Crash Report:

Description pascal lacroix 2025-10-07 07:28:23 UTC
build failled with : correlator_utest.cpp.o] Error 1

``` log* KNotifications -g -O2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510070836=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fdebug-prefix-map=/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510070836=/usr/src/digikam-8.7.0-dev-202510070836 -Wdate-time -D_FORTIFY_SOURCE=3 -fno-operator-names -Wall -Wextra  -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Wvla -Wdate-time  -Wlogical-op -fopenmp -Wno-deprecated-copy -fexceptions -fexceptions -g -std=c++17 -fPIE -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -MD -MT core/tests/geolocation/geoiface/CMakeFiles/tileindex_utest.dir/tileindex_utest.cpp.o -MF CMakeFiles/tileindex_utest.dir/tileindex_utest.cpp.o.d -o CMakeFiles/tileindex_utest.dir/tileindex_utest.cpp.o -c /mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510070836/core/tests/geolocation/geoiface/tileindex_utest.cpp
/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510070836/core/tests/geolocation/editor/correlator_utest.cpp: In member function 'void TestGPXParsing::testCorrelator1()':
/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510070836/core/tests/geolocation/editor/correlator_utest.cpp:84:40: error: 'ParseTime' is not a member of 'Digikam::TrackReader'
   84 |         myItem.dateTime = TrackReader::ParseTime(QLatin1String("2009-07-26T18:00:00Z"));
      |                                        ^~~~~~~~~
/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510070836/core/tests/geolocation/editor/correlator_utest.cpp: In member function 'void TestGPXParsing::testInterpolation()':
/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510070836/core/tests/geolocation/editor/correlator_utest.cpp:146:40: error: 'ParseTime' is not a member of 'Digikam::TrackReader'
  146 |         myItem.dateTime = TrackReader::ParseTime(QLatin1String("2009-11-29T17:00:30Z"));
      |                                        ^~~~~~~~~
make[3]: *** [core/tests/geolocation/editor/CMakeFiles/correlator_utest.dir/build.make:102: core/tests/geolocation/editor/CMakeFiles/correlator_utest.dir/correlator_utest.cpp.o] Error 1
make[3]: Leaving directory '/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510070836/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:48727: core/tests/geolocation/editor/CMakeFiles/correlator_utest.dir/all] Error 2 ```

SOFTWARE/OS VERSIONS
OS: Linux Mint 22.2 x86_64 
Host:ThinkStation S30
Environnement de développement de KDE 
Version 5.115.0
Qt 
Version 5.15.13 (Compilé avec 5.15.13)

ADDITIONAL INFORMATION
last commit : 81641f5d build and run fine
Comment 1 caulier.gilles 2025-10-07 08:19:58 UTC
Git commit b84926c56ec39cd29fbb04e528de4fcde501a440 by Gilles Caulier.
Committed on 07/10/2025 at 08:19.
Pushed by cgilles into branch 'master'.

fix broken compilation
FIXED-IN: 8.8.0

M  +2    -2    core/tests/geolocation/editor/correlator_utest.cpp
M  +4    -4    core/tests/geolocation/geoiface/tracks_utest.cpp

https://invent.kde.org/graphics/digikam/-/commit/b84926c56ec39cd29fbb04e528de4fcde501a440
Comment 2 pascal lacroix 2025-12-04 11:45:04 UTC
Thanks, build and run fine now on linux mint 22-2