tin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'strncpy', inlined from 'AddPhotoToList' at gui.c:698:2: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gui.c: In function 'AddPhotoToList': gui.c:698:41: note: length computed here 698 | strncpy(LastPhoto->Filename, Filename, strlen(Filename) + 1); | ^~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:504, from gui.c:37: In function 'strncpy', inlined from 'AddPhotoToList' at gui.c:703:3: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gui.c: In function 'AddPhotoToList': gui.c:703:3: note: length computed here 703 | strncpy(LastPhoto->Time, Time, strlen(Time)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gui.c: In function 'CorrelateButtonPress': gui.c:1191:4: warning: 'State' may be used uninitialized in this function [-Wmaybe-uninitialized] 1191 | SetListItem(&Walk->ListPointer, Walk->Filename, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1192 | Walk->Time, Result->Lat, Result->Long, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1193 | Result->Elev, State, 1); | ~~~~~~~~~~~~~~~~~~~~~~~ exif-gps.cpp: In function 'char* ReadExifDate(char*, int*)': exif-gps.cpp:94:18: error: 'Error' in namespace 'Exiv2' does not name a type 94 | } catch (Exiv2::Error e) { | ^~~~~ exif-gps.cpp: In function 'char* ReadExifData(char*, double*, double*, double*, int*)': exif-gps.cpp:157:18: error: 'Error' in namespace 'Exiv2' does not name a type 157 | } catch (Exiv2::Error e) { | ^~~~~ exif-gps.cpp: In function 'char* ReadGPSTimestamp(char*, char*, char*, int*)': exif-gps.cpp:296:18: error: 'Error' in namespace 'Exiv2' does not name a type 296 | } catch (Exiv2::Error e) { | ^~~~~ exif-gps.cpp: In function 'int WriteGPSData(char*, GPSPoint*, char*, int, int)': exif-gps.cpp:452:18: error: 'Error' in namespace 'Exiv2' does not name a type 452 | } catch (Exiv2::Error e) { | ^~~~~ exif-gps.cpp: In function 'int WriteFixedDatestamp(char*, time_t)': exif-gps.cpp:667:18: error: 'Error' in namespace 'Exiv2' does not name a type 667 | } catch (Exiv2::Error e) { | ^~~~~ exif-gps.cpp: In function 'int RemoveGPSExif(char*, int)': exif-gps.cpp:744:18: error: 'Error' in namespace 'Exiv2' does not name a type 744 | } catch (Exiv2::Error e) { | ^~~~~ make: *** [Makefile:30: exif-gps.o] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.E6KUHn (%build) RPM build errors: Macro expanded in comment on line 17: %{_datadir}/icons/hicolor/scalable/apps/gpscorrelate-gui.svg Bad exit status from /var/tmp/rpm-tmp.E6KUHn (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/gpscorrelate.spec