[JDEV] Building 1.4.2-test on cygwin

Brian Brown bbrown at icce-t.com
Wed Dec 5 15:25:52 CST 2001


Greetings!

I'm trying to build the Jabber server on cygwin and have run into a few
problems. The first one was dealing with not having the pth-1.4.0
distribution, so that was easily solved.

The one I'm currently battling is on the following:
dllwrap --def ../cygwin/pthsock_client.def --driver-name gcc -o
pthsock_client.dll client.o dllinit.o ../jabberd/jabberd.a client.o: In
function `pthsock_client':
/cygdrive/c/dist/jabber-1.4.2-test/pthsock/client.c:485: undefined reference
to `KARMA_DEF_RATE_T'
/cygdrive/c/dist/jabber-1.4.2-test/pthsock/client.c:486: undefined reference
to `KARMA_DEF_RATE_P'
/cygdrive/c/dist/jabber-1.4.2-test/pthsock/client.c:532: undefined reference
to `KARMA_DEF_RATE_T'
/cygdrive/c/dist/jabber-1.4.2-test/pthsock/client.c:533: undefined reference
to `KARMA_DEF_RATE_P'
/cygdrive/c/dist/jabber-1.4.2-test/pthsock/client.c:538: undefined reference
to `KARMA_DEF_INIT'
/cygdrive/c/dist/jabber-1.4.2-test/pthsock/client.c:544: undefined reference
to `KARMA_DEF_RESETMETER'
collect2: ld returned 1 exit status
dllwrap: gcc exited with status 1
make[1]: *** [pthsock_client] Error 1
make[1]: Leaving directory `/cygdrive/c/dist/jabber-1.4.2-test/pthsock'
make: *** [all-recursive] Error 1

---------------------
I found those defs in jabberd/lib/lib.h and included that directly in
client.c via #include, but the #ifndef that surrounds those delarations is
keeping them from being used. I'll try commenting out the #ifndef, but I'm
sure that's probably not the right way to do it!

Any ideas?

Thanks!
Brian





More information about the JDev mailing list