Compileing with Cygwin

Posted by Silicon on Wed 30 May 2001 04:56 AM — 5 posts, 20,516 views.

#0
Any chance anybody has successfully compiled PennMUSH v1.7.3p3 with Cygwin?

I get the following error(s) durring the "MAKE":

mysocket.c: In function `getaddrinfo':
mysocket.c:1007: warning: passing arg 1 of `bzero' from incompatible pointer typ
e
mysocket.c:1063: `_res' undeclared (first use in this function)
mysocket.c:1063: (Each undeclared identifier is reported only once
mysocket.c:1063: for each function it appears in.)
mysocket.c:1063: `RES_INIT' undeclared (first use in this function)
mysocket.c:1069: `RES_USE_INET6' undeclared (first use in this function)

Anyone know what causes this, or how to fix it at all?

- Silicon
#1
I'm sorry. Typo. I meant 1.7.4p3 and NOT 1.7.3p3
Australia Forum Administrator #2
I have compiled it OK with version 1.7.4p5 which was the latest from the www.pennmush.org site ...

1. Download the file pennmush-1.7.4p5.tar.gz and put in my home directory.

2. Using Cygwin unzip the file:


tar xvzf pennmush-1.7.4p5.tar.gz


3. Make a symbolic link from cc to gcc, like this:


cd /bin
ln -s gcc.exe cc.exe


4. Go to pennmush directory:


cd ~/pennmush


5. Run configuration script:


sh Configure -d


6. Make options file:


make update


Press <enter> repeatedly to accept all the defaults.


7. Make adjustments:

In config.h, comment out these lines:


/* #define HAS_SETLOCALE /**/
/* #define HAS_IPV6 /**/




In mysocket.c, comment out these lines:


/* #include <resolv.h> */

/* extern int h_errno; */



8. Build it:


make


9. Install it:


make install

#3
Well, I'm trying to do the same thing, but it is with PennMUSH 1.7.4p6... I untar it using CYGWin, but there is no BIN folder to get the cc.exe and gcc.exe things .... so what's up?

Hehe, Thanks ^.^
~Jaguar385
Australia Forum Administrator #4
It's "bin" not "BIN", but there must be one there if you have Cygwin. It is where all the "binaries" (programs) go - hence its name.

The bin folder is not part of PennMUSH, it is part of Cygwin.

Say you installed Cygwin onto your C: drive, then you will have a folder:

c:\Cygwin\bin

You have to follow my instructions exactly, like typing:


cd /bin


not


cd bin


or


cd \bin