compiling bonjour on mingw from 2.0.2 source tarball

David Byron dbyron at dbyron.com
Thu Jun 28 19:24:49 EDT 2007


On Thursday, June 28, 2007 @ 2:17p, I wrote:

> Grabbing the latest source from monotone is taking a long
> time...I'll look there when it's done.

Still the same results from the head of the tree.  My bad for not noticing
the new dependency here:

http://developer.pidgin.im/wiki/BuildingWinPidgin

I went to:

http://developer.apple.com/networking/bonjour/download/

and grabbed the Bonjour SDK, installed it, and got past the compiler error.
Unforunately now I'm running into a linker error that doesn't make sense to
me (even after cleaning and rebuilding):

.../pidgin/libpurple $ make -f Makefile.mingw install
gcc.exe -shared bonjour.o buddy.o mdns_common.o mdns_win32.o jabber.o
-L../../../../win32-dev/gtk_2_0/lib -L../../../../win32-dev/Bonjour_SDK/lib
-L../../../libpurple -lglib-2.0 -lws2_32 -lintl -ldnssd -lpurple
-Wl,--enable-auto-image-base -o libbonjour.dll
buddy.o(.text+0x546): In function `bonjour_buddy_delete':
C:/utils/cygwin/home/dbyron/src/pidgin/libpurple/protocols/bonjour/buddy.c:1
89: undefined reference to `DNSServiceRefDeallocate at 4'

but

$ nm -C dnssd.lib  | grep DNSServiceRefDeallocate
00000000 T DNSServiceRefDeallocate at 4
00000000 I _imp__DNSServiceRefDeallocate at 4

Is there something else obvious I'm missing?

Sorry for being dense.  Thanks for the help.

-DB





More information about the Devel mailing list