Compiling 1.7.7 w/ Cygwin

Posted by Rankard on Thu 29 Jul 2004 09:15 PM — 4 posts, 22,108 views.

#0
Hey Yall,
Im having a bit of trouble compiling 1.7.7 with Cygwin. After configuring, editing options.h and typing make install, I get this error:

gcc -g -I.. -I../hdrs -I/bin/exim-4.20-1/minires -c -o mysocket.o mysocket.c
mysocket.c: In function 'getaddrinfo':
mysocket.c:1046: '_res' undeclared(first use in this function)
mysocket.c:1046: (Each undeclared identifier is reported only once
mysocket.c:1046: for each function it appears in.)
mysocket.c:1046: 'RES_INIT' undeclared (first use in this function)
mysocket.c:1052: 'RES_USE_INET6' undeclared (first use in this function)
make[1]: *** [mysocket.o] Error1
make[1]: Leaving directory '/home/pennmush/pennmush/src'
make: *** [all] Error2

Any help that you might give me is greatly appreciated.

Thanks!
Australia Forum Administrator #1

After downloading pennmush-1.7.7p34.tar.gz and unpacking it, I ran ". Configure -d" and copied options.h.dist to options.h, then typed "make". I got some warnings, but no errors. Then I could start the MUSH up ...


cc -g -I.. -I../hdrs -c -o memcheck.o memcheck.c
cc -g -I.. -I../hdrs -c -o move.o move.c
cc -g -I.. -I../hdrs -c -o mycrypt.o mycrypt.c
cc -g -I.. -I../hdrs -c -o mymalloc.o mymalloc.c
cc -g -I.. -I../hdrs -c -o mysocket.o mysocket.c
mysocket.c:491:1: warning: "IN6ADDRSZ" redefined
In file included from /usr/include/arpa/nameser.h:560,
from mysocket.c:50:
/usr/include/arpa/nameser_compat.h:142:1: warning: this is the location of the previous definition
mysocket.c:492:1: warning: "INADDRSZ" redefined
/usr/include/arpa/nameser_compat.h:141:1: warning: this is the location of the previous definition
mysocket.c:493:1: warning: "INT16SZ" redefined
/usr/include/arpa/nameser_compat.h:140:1: warning: this is the location of the previous definition
cc -g -I.. -I../hdrs -c -o myssl.o myssl.c
cc -g -I.. -I../hdrs -c -o notify.o notify.c
cc -g -I.. -I../hdrs -c -o parse.o parse.c
cc -g -I.. -I../hdrs -c -o pcre.o pcre.c
cc -g -I.. -I../hdrs -c -o player.o player.c

#2
I did notice that you are compiling using cc and I am using gcc ... while do realize that one is a version of the other, I thought that perhaps this was having an affect on the overall result?
When I deleted my distribution, reunpacked and attempted to configure again I ran into the same error I was having the first time... 'WOAH THERE!! Your C compiler doesn't seem to be working....' etc. I had configured it to use gcc before... What is wrong with my cygwin distribution, where it would have trouble using cc to compile? Thankyou

Australia Forum Administrator #3
Hard to say what is wrong with your Cygwin. Perhaps you didn't install all the compiler tools.