Quoting =?iso-8859-1?Q?R=FCdiger?= Kuhlmann from ml.softs.gtk-gnutella.devel:
:Two reasons. First: libxml and gtk/glib >= 2.0 use pkg-config to detect
:libraries. Though you can convince pkg-config by hand to find the cross-.pc
:files, I modified it to detect cross-compilation and do the right thing.
:Those changes will be merged upstream (though possibly in a different
:manner) in the next version.

You modified pkg-config ot handle cross-compilation?  How?

I'm not really fond on having a port depend on changes made by a single
individual, because that's brittle over the long run.  This should be
done by Configure at run time, somehow.

Could you point me to the patches you had to make to pkg-config so that
I can understand what's really needed here?

:The second: on Windows, library function names are (Pascal-) mangled, that
:is, something like @4 is added to the actual (assembler) function name. This
:makes detection hard: there won't be a _select symbol in ws2_32, but
:_select@<something>, so the detection will fail. My solution to the problem
:was modifying dlltool to add the @-less symbol as well to the resulting dll
:wrapper (if the --kill-at option is specified and there actually _is_ an @).
:Then the generated ws2_32.a will contain _select as well as
:_select@<something>, and the detection will just work. If you google around
:for function names in Winsocks appended with that mangling you'll find
:several people having this problem. Though I reportet it in the Debian as
:well as the MingW bug tracking system, I've not yet seen any reply.

I don't fully understand what you're talking about here.  Do you mean to
say that one has to call [EMAIL PROTECTED]() for instance in the code to make it work,
or that by calling select(), it will be mangled by the dynamic linker on
Windows to transparetly find [EMAIL PROTECTED]()?

What is ws2_32?  WinSocks?  Isn't that a given?

Sorry, I'm currently totally alien to this MingW environment, having not
got a chance to play with it yet.

Raphael


-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
Gtk-gnutella-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel

Reply via email to