When building from source in Linux, io_test (testcases.TestCases.io_test) fails
Describe the bug
After compiling, io_test (testcases.TestCases.io_test) in "bashTests" fails.
To Reproduce
Steps to reproduce the behavior:
- Download v.0.28.7 source code from Releases.
- Extract the source code and follow instructions to build:
cd /path/to/exiv2-0.28.7
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -DEXIV2_BUILD_SAMPLES=ON ..
cmake --build .
ctest --verbose
ctest reports:
The following tests FAILED:
1 - bashTests (Failed)
Errors while running CTest
Relevant excerpt of the test log attached.
I first saw this in v.0.28.5 and ignored it. Similar issue in Windows: #2781
Expected behavior
All tests after compilation pass.
Desktop (please complete the following information):
$ gcc --version
gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
Operating System: Kubuntu 24.04 KDE Plasma Version: 5.27.12 KDE Frameworks Version: 5.115.0 Qt Version: 5.15.13 Kernel Version: 6.8.0-79-generic (64-bit) Graphics Platform: X11
try
git cherry-pick e7f6a286f3d4cb458896183af727443bc9baeb09 c622ba2632421087e9eeea17520477c5cde1de8f
try
git cherry-pick e7f6a286f3d4cb458896183af727443bc9baeb09 c622ba2632421087e9eeea17520477c5cde1de8f
$ git cherry-pick e7f6a286f3d4cb458896183af727443bc9baeb09 c622ba2632421087e9eeea17520477c5cde1de8f
Auto-merging src/http.cpp
CONFLICT (content): Merge conflict in src/http.cpp
error: could not apply e7f6a286f... http: convert to inet_pton and getaddrinfo
How do I resolve this conflict? This is what I see... (been a long while since I did C/C++).
ummm
git checkout v0.28.7
git cherry-pick e7f6a286f3d4cb458896183af727443bc9baeb09 c622ba2632421087e9eeea17520477c5cde1de8f
you seem to be trying to cherry pick on master.
you seem to be trying to cherry pick on master.
Ah, yep. However, no joy. Diffed the "bashTests" log excerpts, the one after the cherry-pick is identical to the one attached above, except for the time stamps.
$ git checkout v0.28.7
Note: switching to 'v0.28.7'.
<output truncated>
HEAD is now at afcb7a8ba Merge pull request #3380 from kevinbackhouse/v0.28.7
$ git cherry-pick e7f6a286f3d4cb458896183af727443bc9baeb09 c622ba2632421087e9eeea17520477c5cde1de8f
$ cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DEXIV2_BUILD_SAMPLES=ON
$ cmake --build build
$ ctest --test-dir build --verbose