Thanks! It compiles now. However, it doesn&#39;t build the &quot;cross-dlfcn-*&quot; packages so it can&#39;t be installed. Is there perhaps a missed macro invocation? Is there somewhere that the macros are defined/described in more detail so I can try to figure out the error?<br>
<br>-Jay Higley<br><br><div class="gmail_quote">On Sun, Apr 10, 2011 at 7:01 AM, Erik van Pienbroek <span dir="ltr">&lt;<a href="mailto:erik@vanpienbroek.nl">erik@vanpienbroek.nl</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Jay Higley schreef op wo 06-04-2011 om 16:11 [-0400]:<br>
<div><div></div><div class="h5">&gt; I have a separate project that I am working on that would use dlfcn,<br>
&gt; so that is why I&#39;m trying to port it. I am running Core 15.<br>
&gt;<br>
&gt; Thanks for looking at this. Any help is greatly appreciated.<br>
&gt;<br>
&gt; The actual error message is ...<br>
&gt; + ../configure --host=i686-w64-mingw32<br>
&gt; --build=x86_64-unknown-linux-gnu --target=i686-w64-mingw32<br>
&gt; --prefix=/usr/i686-w64-mingw32/sys-root/mingw<br>
&gt; --exec-prefix=/usr/i686-w64-mingw32/sys-root/mingw<br>
&gt; --bindir=/usr/i686-w64-mingw32/sys-root/mingw/bin<br>
&gt; --sbindir=/usr/i686-w64-mingw32/sys-root/mingw/sbin<br>
&gt; --sysconfdir=/usr/i686-w64-mingw32/sys-root/mingw/etc<br>
&gt; --datadir=/usr/i686-w64-mingw32/sys-root/mingw/share<br>
&gt; --includedir=/usr/i686-w64-mingw32/sys-root/mingw/include<br>
&gt; --libdir=/usr/i686-w64-mingw32/sys-root/mingw/lib<br>
&gt; --libexecdir=/usr/i686-w64-mingw32/sys-root/mingw/libexec<br>
&gt; --localstatedir=/usr/i686-w64-mingw32/sys-root/mingw/var<br>
&gt; --sharedstatedir=/usr/i686-w64-mingw32/sys-root/mingw/com<br>
&gt; --mandir=/usr/i686-w64-mingw32/sys-root/mingw/share/man<br>
&gt; --infodir=/usr/i686-w64-mingw32/sys-root/mingw/share/info<br>
&gt; --disable-shared --enable-static<br>
&gt; /tmp/test.c:1:21: fatal error: windows.h: No such file or directory<br>
&gt; compilation terminated.<br>
&gt; prefix: /usr/i686-w64-mingw32/sys-root/mingw<br>
&gt; libdir: /usr/i686-w64-mingw32/sys-root/mingw/lib<br>
&gt; incdir: /mingw/include<br>
&gt; cc:     gcc<br>
&gt; static: yes<br>
&gt; shared: no<br>
&gt; error: Bad exit status from /var/tmp/rpm-tmp.nVuZgi (%build)<br>
<br>
</div></div>Hi,<br>
<br>
This is one of those packages which uses custom-written Makefiles and<br>
don&#39;t support cross-compilation out of the box (as can be seen in the<br>
native .spec file at<br>
<a href="http://pkgs.fedoraproject.org/gitweb/?p=mingw32-dlfcn.git;a=blob;f=mingw32-dlfcn.spec;h=d78256d10423ba13753df232d5205592e7c816be;hb=HEAD" target="_blank">http://pkgs.fedoraproject.org/gitweb/?p=mingw32-dlfcn.git;a=blob;f=mingw32-dlfcn.spec;h=d78256d10423ba13753df232d5205592e7c816be;hb=HEAD</a> )<br>

<br>
I&#39;ve just customized your .spec file so that the build of dlfcn can be<br>
done succesfully for both mingw32 and mingw64 targets. You can find the<br>
source RPM at<br>
<a href="http://www.ftd4linux.nl/contrib/cross-dlfcn-0-0.8.r11.fc15.src.rpm" target="_blank">http://www.ftd4linux.nl/contrib/cross-dlfcn-0-0.8.r11.fc15.src.rpm</a><br>
<br>
This SRPM is compatible with the testing repository, but not with the<br>
new packaging guidelines which are currently under review at<br>
<a href="https://fedorahosted.org/fpc/ticket/71" target="_blank">https://fedorahosted.org/fpc/ticket/71</a> (as there are some small changes<br>
in the naming)<br>
<div><div></div><div class="h5"><br>
Kind regards,<br>
<br>
Erik van Pienbroek<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
mingw mailing list<br>
<a href="mailto:mingw@lists.fedoraproject.org">mingw@lists.fedoraproject.org</a><br>
<a href="https://admin.fedoraproject.org/mailman/listinfo/mingw" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/mingw</a><br>
</div></div></blockquote></div><br>