Compile any Rom code with Cygwin

Posted by Michael Piwoni on Fri 15 Aug 2008 04:34 AM — 8 posts, 34,458 views.

#0
Hi.. I'm messing around trying to pick back up some of the skills I swear I used to have with MUD code. I've tried NUMEROUS packages today and none have worked but for arguments sake, the last one I've tried was your QuickMUD download.

I've tried a number of different Makefile's and part of the problem is that it isn't apparent to me which I should be using. When I do use the "make" command using Cygwin in the ../src directory, i get A LOT of errors, most of which go something like:

tables.h:29: error: array type has incomplete element type

I've checked and MOST of the .c files successfully compile into object files but a few don't:
act_comm.c
act_info.c
bit.c
bitsys.c
comm.c
db.c
db2.c
handler.c
hedit.c
lookup.c
olc.c
olc_act.c
olc_mpcode.c
olc_save.c
save.c
scan.c

Ok so quite a few don't compile.. any idea what's going on here? I've made sure to download all of the necessary make command files for cygwin.. at least I'm pretty sure I have.

HELP!
map




USA #1
Quote:
I've tried NUMEROUS packages today and none have worked but for arguments sake

SmaugFUSS should work just fine (and I recommend it).

Quote:
any idea what's going on here?

As it states, it's getting an error on line 29 of tables.h
#2
Thanks,

I'll give Smaug a try but the error I noted is just one of hundreds like it so I'm more wondering what the root cause is of that specific error. What is it trying to reference that is missing? I've checked a few of the lines of code it mentions but I just don't see anything wrong.. this is why I am thinking I'm somehow using the wrong Makefile (even though I've tried them all).
#3
Smaug definitely got further.. however.. there are errors stemming from the fact that it can't find a /sys folder containing a socket.h file which doesn't seem to have been included with the release..
USA #4
If you're not finding socket.h, it means that your Cygwin install probably isn't correct. Did you get normal SMAUG or SmaugFUSS?
#5
*sigh*

Well I was trying SmaugFUSS but now I've been trying the same thing on linux Ubuntu (easier, right??) but I'm just getting a bunch of errors again:

gcc -c -O -g3 -Wall -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC act_comm.c
act_comm.c: In function ‘is_profane’:
act_comm.c:4306: warning: implicit declaration of function ‘re_exec’
gcc -c -O -g3 -Wall -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC act_info.c
gcc -c -O -g3 -Wall -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC act_move.c
act_move.c:393:15: warning: trigraph ??> ignored, use -trigraphs to enable
act_move.c: In function ‘generate_exit’:
act_move.c:604: error: lvalue required as left operand of assignment
make[1]: *** [act_move.o] Error 1
make[1]: Leaving directory `/home/map/Smaug/dist/src'
make: *** [all] Error 2

And that's as far as it goes..

Australia Forum Administrator #6
Are you using the latest SmaugFUSS? Try searching this forum for re_exec - I think that has come up quite a few times.
USA #7
That is not SmaugFUSS.