Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ Compiling the server ➜ Setting up/Running Cygwin

Setting up/Running Cygwin

It is now over 60 days since the last post. This thread is closed.     Refresh page


Pages: 1  2  3 

Posted by Boborak   USA  (228 posts)  Bio
Date Reply #30 on Fri 18 Apr 2003 03:56 AM (UTC)
Message
what are some of the warnings you're getting? I'm doing my best to try and replicate your problem, but I can't seem to break the thing ;-P Have you made any other modifications to the source or the Makefile?
Top

Posted by Colin Barnette   USA  (49 posts)  Bio
Date Reply #31 on Fri 18 Apr 2003 04:22 AM (UTC)
Message
comm.c:78: parameter `go_ahead_str' is initialized
comm.c:78: warning: initialization makes pointer from integer without a cast
----------- MORE WARNINGS ----------
comm.c:80: warning: excess elements in scalar initializer
comm.c:80: warning: (near initialization for `start_mxp_str')
comm.c:80: warning: excess elements in scalar initializer
comm.c:80: warning: (near initialization for `start_mxp_str')
comm.c:80: warning: excess elements in scalar initializer
comm.c:80: warning: (near initialization for `start_mxp_str')
comm.c:81: parameter `do_mxp_str' is initialized
comm.c:81: warning: initialization makes pointer from integer without a cast
comm.c:168: declaration for parameter `main' but no such parameter
comm.c:161: declaration for parameter `port' but no such parameter
comm.c:159: declaration for parameter `tax_player' but no such parameter
comm.c:157: declaration for parameter `mail_count' but no such parameter
comm.c:116: declaration for parameter `control' but no such parameter
comm.c:115: declaration for parameter `current_time' but no such parameter
comm.c:114: declaration for parameter `lastplayercmd' but no such parameter
comm.c:113: declaration for parameter `str_boot_time' but no such parameter
comm.c:112: declaration for parameter `new_boot_struct' but no such parameter
comm.c:111: declaration for parameter `new_boot_time' but no such parameter
comm.c:110: declaration for parameter `set_boot_time' but no such parameter
comm.c:109: declaration for parameter `set_boot_time_struct' but no such paramet
er
comm.c:108: declaration for parameter `boot_time' but no such parameter
comm.c:107: declaration for parameter `wizlock' but no such parameter
comm.c:106: declaration for parameter `service_shut_down' but no such parameter
comm.c:105: declaration for parameter `mud_down' but no such parameter

==== LOTS MORE DECLARATION ERRORS ===
netdb.h:160: declaration for parameter `setrpcent' but no such parameter
netdb.h:155: declaration for parameter `herror' but no such parameter
netdb.h:154: declaration for parameter `hstrerror' but no such parameter
netdb.h:153: declaration for parameter `getrpcbynumber' but no such parameter
netdb.h:152: declaration for parameter `getrpcbyname' but no such parameter
netdb.h:151: declaration for parameter `getrpcent' but no such parameter
--- lots more of this ---
netdb.h:137: declaration for parameter `endservent' but no such parameter
netdb.h:136: declaration for parameter `endprotoent' but no such parameter
netdb.h:135: declaration for parameter `endnetent' but no such parameter
netdb.h:134: declaration for parameter `endhostent' but no such parameter
netdb.h:122: declaration for parameter `h_errno' but no such parameter
---- LOTS MORE UNDECLARED ----comm.c:581: `exc_set' undeclared (first use in this function)
comm.c:583: `maxdesc' undeclared (first use in this function)
comm.c:584: `newdesc' undeclared (first use in this function)
`stop_idling'
comm.c:726: warning: implicit declaration of function `set_pager_input'
comm.c:731: warning: implicit declaration of function `nanny'
comm.c:773: warning: implicit declaration of function `pager_output'
comm.c: In function `new_descriptor':
comm.c:866: storage size of `sock' isn't known
comm.c:882: `alarm_section' undeclared (first use in this function)
comm.c:906: `O_NDELAY' undeclared (first use in this function)
comm.c:866: warning: unused variable `sock'
comm.c: At top level:
comm.c:1004: warning: type mismatch with previous implicit declaration
comm.c:949: warning: previous implicit declaration of `free_desc'
comm.c:1004: warning: `free_desc' was previously implicitly declared to return `
int'
comm.c: In function `free_desc':
comm.c:1005: warning: implicit declaration of function `kill_auth'
comm.c: In function `close_socket':
comm.c:1131: `d_next' undeclared (first use in this function)
comm.c:1136: `maxdesc' undeclared (first use in this function)
-----
LOTS MORE TYPE MISMATCHES
-----
comm.c:2612: warning: type mismatch with previous implicit declaration
comm.c:726: warning: previous implicit declaration of `set_pager_input'
comm.c:3822: warning: `set_pager_input' was previously implicitly declared to re
turn `int'
comm.c:3830: warning: type mismatch with previous implicit declaration
comm.c:773: warning: previous implicit declaration of `pager_output'
comm.c:3830: warning: `pager_output' was previously implicitly declared to retur
n `int'
ip.h:82: storage size of `ip_src' isn't known
ip.h:82: storage size of `ip_dst' isn't known
make.exe[1]: *** [comm.o] Error 1
make.exe[1]: Leaving directory `f:/cyg/usr/smaug/dist/src'
make.exe: *** [all] Error 2
Top

Posted by Colin Barnette   USA  (49 posts)  Bio
Date Reply #32 on Fri 18 Apr 2003 04:23 AM (UTC)
Message
...

:(

...
Top

Posted by Boborak   USA  (228 posts)  Bio
Date Reply #33 on Fri 18 Apr 2003 04:57 AM (UTC)
Message
Ok... what program are you using to edit the files with? About half of those errors lead me to believe you were randomly deleteing lines (which I know you weren't doing) but none of the 'UNDECLARED' stuff should be showing up just because you changed a define.
Top

Posted by Colin Barnette   USA  (49 posts)  Bio
Date Reply #34 on Fri 18 Apr 2003 12:51 PM (UTC)
Message
I am using a simle text editor.
http://www.textpad.com
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #35 on Mon 21 Apr 2003 01:32 AM (UTC)
Message
Stop, stop. It sounds like you are thrashing here. It *can* be compiled under Cygwin. You asked why you can't have Win32 and Unix both defined - well, the defines are set up to allow for one operating system OR another. You can't very well be using two operating systems at once.

However, the WIN32 defines are for the Microsoft Visual C++ compiler, not Cygwin. That is why you had the WSA problems. Don't define WIN32.

If you are using Cygwin it is, effectively, Unix.

You should be getting a minimal number of errors compiling under Cygwin, if you use the right makefile. Eg. the makefile designed for Cygwin, if there is one with this distribution.

If you are getting heaps of errors you may have a "line endings" problem. Try running the unix2dos program available at this site, to convert Unix line-endings to DOS ones.

Also, errors like this:

comm.c:81: parameter `do_mxp_str' is initialized

sound like you have do_mxp_str defined twice or some other bizarre thing.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


105,266 views.

This is page 3, subject is 3 pages long:  [Previous page]  1  2  3 

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.