Discussion:
[Mingw-w64-public] i686-w64-mingw32 1.0 includes dlfcn.h but not its library
Luis Lavena
2010-09-11 21:56:58 UTC
Permalink
Hello,

I'm using mingw-w64 to cross-compile Ruby and other libraries from OSX
to Windows.

Using 4.5.1 prerelease
(mingw-w32-1.0-bin_i686-darwin_20100702.tar.bz2) from automated
builds, I found that dlfcn.h is included in i686-w64-mingw32/include
directory of the package, but there is not libdl.a that complements
it.

Either was a problem on the packaging or a mistake.

A simple test program:

#include <winsock2.h>
#include <windows.h>
#include <dlfcn.h>

int main()
{
return 0;
}

using the following compile options:

i686-w64-mingw32-gcc -E conftest.c -o conftest.i

end with exit code 0, but:

i686-w64-mingw32-gcc conftest.c -o conftest -ldl
/Users/luis/mingw/w32/bin/../lib/gcc/i686-w64-mingw32/4.5.1/../../../../i686-w64-mingw32/bin/ld:
cannot find -ldl
collect2: ld returned 1 exit status

So is faulty.

This still exist on newer (non-1.0) releases
(mingw-w32-bin_i686-darwin_20100902.tar.bz2).

Should I report this to the bug tracker or reports from automated
builds are not valid?

Thank you.
--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry
Xiaofan Chen
2010-09-12 00:58:47 UTC
Permalink
Post by Luis Lavena
Hello,
I'm using mingw-w64 to cross-compile Ruby and other libraries from OSX
to Windows.
Using 4.5.1 prerelease
(mingw-w32-1.0-bin_i686-darwin_20100702.tar.bz2) from automated
builds, I found that dlfcn.h is included in i686-w64-mingw32/include
directory of the package, but there is not libdl.a that complements
it.
Either was a problem on the packaging or a mistake.
Luis Lavena
2010-09-12 02:19:15 UTC
Permalink
Post by Luis Lavena
Hello,
I'm using mingw-w64 to cross-compile Ruby and other libraries from OSX
to Windows.
Using 4.5.1 prerelease
(mingw-w32-1.0-bin_i686-darwin_20100702.tar.bz2) from automated
builds, I found that dlfcn.h is included in i686-w64-mingw32/include
directory of the package, but there is not libdl.a that complements
it.
Either was a problem on the packaging or a mistake.
Xiaofan Chen
2010-09-12 04:45:33 UTC
Permalink
Luis Lavena
2010-09-12 19:24:26 UTC
Permalink
NightStrike
2010-09-13 19:29:21 UTC
Permalink
Loading...