[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pdf-devel] Fix compilation of unit tests when libz not available
From: |
Aleksander Morgado |
Subject: |
Re: [pdf-devel] Fix compilation of unit tests when libz not available |
Date: |
Thu, 8 Jan 2009 22:11:36 +0100 |
> > The following patch fixes the issue disabling the corresponding UT
> > when libz is not available.
> >
> > Applied, thanks.
> > To this means that you were able to run the unit tests in wine? :)
>
> Not really, just trying to compile and get rid of the warn/errors in
> my code. But I will try it soon :-)
>
> Ok, superb :)
> Please tell us if it works.
More or less...
1. Running "make check" doesn't work. This is probably because make
check runs the binary which is created in torture/unit/
2. Running manually wine ./torture/unit/runtests.exe doesn't do
anything (returns 127). Also, this binary is really smaller than the
one in .libs (the one used in next step). In GNU/Linux, the `runtests'
in ./torture/unit is a shell script preparing environment so that then
the `runtests' in ./torture/unit/.libs is executed. Don't know if this
is the same behaviour when cross-compiling...
3. Running manually wine ./torture/unit/.libs/runtests.exe returns:
err:module:import_dll Library libgnupdf-0.dll (which is needed by
L"Z:\\home\\aleksander\\Development\\gnu\\libgnupdf\\w32-build\\torture\\unit\\.libs\\runtests.exe")
not found
err:module:LdrInitializeThunk Main exe initialization for
L"Z:\\home\\aleksander\\Development\\gnu\\libgnupdf\\w32-build\\torture\\unit\\.libs\\runtests.exe"
failed, status c0000135
(here it just seems a DLL-finding problem)
4. My last test was: running make install in a given prefix (same
prefix used also for libgcrypt and libgpg-error), which in my case is
/opt/w32
Seems that the DLLs are not installed in prefix/lib, but in
prefix/bin, with the executables:
$> ls /opt/w32/bin/
dumpsexp.exe gpg-error-config gpg-error.exe libgcrypt-11.dll
libgcrypt-config libgnupdf-0.dll libgpg-error-0.dll pdf-filter.exe
Now I copy the ./torture/unit/.libs/runtests.exe into this folder,
where all the DLL files are (it's not installed during make install,
as it is defined like that in the Makefile.am).
Finally, I run it: /opt/w32/bin/runtests.exe
And I get all the tests running (and some of them failing). Attached
the results to the email.
I don't really know how to fix the "make check" in this w32
compilation... any idea someone?
Cheers,
-Aleksander
w32_tests.txt
Description: Text document