exiv2 icon indicating copy to clipboard operation
exiv2 copied to clipboard

When building from source in Linux, io_test (testcases.TestCases.io_test) fails

Open akwala opened this issue 3 months ago • 4 comments

Describe the bug

After compiling, io_test (testcases.TestCases.io_test) in "bashTests" fails.

To Reproduce

Steps to reproduce the behavior:

  1. Download v.0.28.7 source code from Releases.
  2. 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.

exiv2-0.28.7-ctest-fail.log

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

akwala avatar Sep 01 '25 23:09 akwala

try

git cherry-pick e7f6a286f3d4cb458896183af727443bc9baeb09 c622ba2632421087e9eeea17520477c5cde1de8f

neheb avatar Sep 06 '25 21:09 neheb

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++).

Image

akwala avatar Sep 07 '25 20:09 akwala

ummm

git checkout v0.28.7
git cherry-pick e7f6a286f3d4cb458896183af727443bc9baeb09 c622ba2632421087e9eeea17520477c5cde1de8f

you seem to be trying to cherry pick on master.

neheb avatar Sep 07 '25 22:09 neheb

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

akwala avatar Sep 08 '25 19:09 akwala