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
➜ Cygwin - g++, gcc help me please....
Cygwin - g++, gcc help me please....
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Asean Novari
USA (82 posts) Bio
|
Date
| Sat 18 Sep 2004 12:10 AM (UTC) |
Message
| Ok first off..
System specs
------------
Windows XP Pro
256mb ram
50 gig hard drive
Ok...
I run cygwin and get to the folder with makefile i have
make installed on cygwin and it begins to work.. here is
what is displayed on screen..
$ make
make swrip
make[1]: Entering directory '/home/administrator/src'
g++ -c -g3 -Wall act_comm.c
make[1]: g++: Command not found
make[1]: *** [act_comm.o] Error 127
make[1]: Leaving directory '/home/administrator/src'
make: *** [all] Error 2
I get that or just about that for each of the 4 different
muds i try to compile using cygwin.. one is a gcc instead
of g++.
What do i have to do to get the g++ or gcc things
installed on cygwin or something so i can friggen
compile.. |
| Top |
|
Posted by
| Gatewaysysop2
USA (146 posts) Bio
|
Date
| Reply #1 on Sat 18 Sep 2004 04:33 AM (UTC) |
Message
| You should have been able to select the packages for that, under "development" or whatever it says, when you ran the Cygwin install program (setup.exe?). If not, I'm pretty sure you can fire it up again and have it install those. It should show you what you have installed already, giving you the option to keep/uninstall/reinstall for those, but the things you don't have (gcc, etc) it should let you install in the same manner. Should be pretty straight forward if you had no problem getting Cygwin installed.
Hope that helps. |
"The world of men is dreaming, it has gone mad in its sleep, and a snake is strangling it, but it can't wake up." -D.H. Lawrence | Top |
|
Posted by
| Asean Novari
USA (82 posts) Bio
|
Date
| Reply #2 on Mon 20 Sep 2004 01:15 PM (UTC) |
Message
| Ok new problem now.. After getting the gcc anf g++ packages that seemed to have missed before.. i now get this when i try to make..
Administrator@Home ~
$ ls
SW_RiP_V200.tar.gz
Administrator@Home ~
$ tar xzf SW_RiP_V200.tar.gz
Administrator@Home ~
$ ls
SW_RiP_V200.tar.gz bin clans deleted log space system
area boards corpses doc planets src vendor
backup building councils gods player storeroom
Administrator@Home ~
$ cd src
Administrator@Home ~/src
$ ls
Makefile bet.h fight.c mapper.c shops.c templateparse.c
act_comm.c boards.c grub.c misc.c skills.c track.c
act_comm.o bounty.c handler.c mud.h smalloc.c trivia.c
act_info.c build.c hashstr.c mud_comm.c space.c trivia.h
act_move.c clans.c id.c mud_prog.c space2.c update.c
act_obj.c comm.c interp.c player.c space2.h
act_wiz.c comments.c krearena.c requests.c special.c
alias.c const.c magic.c reset.c swskills.c
alias.h db.c makeobjs.c save.c tables.c
Administrator@Home ~/src
$ make
make swrip
make[1]: Entering directory `/home/Administrator/src'
g++ -c -g3 -Wall act_info.c
act_info.c: In function `void do_password(CHAR_DATA*, char*)':
act_info.c:3392: error: `crypt' undeclared (first use this function)
act_info.c:3392: error: (Each undeclared identifier is reported only once for
each function it appears in.)
make[1]: *** [act_info.o] Error 1
make[1]: Leaving directory `/home/Administrator/src'
make: *** [all] Error 2
Administrator@Home ~/src
$ crypt
usage: crypt passwd
crypt salt passwd
Administrator@Home ~/src
$ crypt apoklpit
0le9JNObjAS92
Administrator@Home ~/src
$ crypt salt apoklpit
sajHzfQeLlZvk
Administrator@Home ~/src
$ make
make swrip
make[1]: Entering directory `/home/Administrator/src'
g++ -c -g3 -Wall act_info.c
act_info.c: In function `void do_password(CHAR_DATA*, char*)':
act_info.c:3392: error: `crypt' undeclared (first use this function)
act_info.c:3392: error: (Each undeclared identifier is reported only once for
each function it appears in.)
make[1]: *** [act_info.o] Error 1
make[1]: Leaving directory `/home/Administrator/src'
make: *** [all] Error 2
Administrator@Home ~/src
$
Any help would be appreciated.. |
| Top |
|
Posted by
| Asean Novari
USA (82 posts) Bio
|
Date
| Reply #3 on Mon 20 Sep 2004 03:06 PM (UTC) |
Message
| Ok.. this time I tried the earlier version of the RiP source.. version 1.01 instead of 2.0.... and this is what i get
Administrator@Home ~
$ tar xzf sw_rip_v101.gz
Administrator@Home ~
$ ls
SW_RiP_V101.gz area building doc player system
SW_RiP_V200.gz backup clans gods space vendor
bin corpses log src boards deleted planets
storeroom
Administrator@Home ~
$ cd src
Administrator@Home ~/src
$ ls
Makefile alias.h comments.c id.c mud_comm.c shops.c tables.c
act_comm.c bet.h const.c interp.c mud_prog.c skills.c track.c
act_info.c boards.c db.c magic.c newarena.c smalloc.c update.c
act_move.c bounty.c fight.c makeobjs.c player.c space.c
act_obj.c build.c grub.c mapper.c requests.c space2.c
act_wiz.c clans.c handler.c misc.c reset.c special.c
alias.c comm.c hashstr.c mud.h save.c swskills.c
Administrator@Home ~/src
$ make
make swrip
make[1]: Entering directory `/home/Administrator/src'
gcc -c -g3 -Wall -DREQUESTS act_comm.c
gcc -c -g3 -Wall -DREQUESTS act_info.c
act_info.c: In function `do_password':
act_info.c:3336: warning: implicit declaration of function `crypt'
act_info.c:3336: warning: passing arg 1 of `strcmp' makes pointer from integer w
ithout a cast
act_info.c:3353: warning: assignment makes pointer from integer without a cast
gcc -c -g3 -Wall -DREQUESTS act_move.c
act_move.c: In function `generate_exit':
act_move.c:606: warning: use of cast expressions as lvalues is deprecated
gcc -c -g3 -Wall -DREQUESTS act_obj.c
gcc -c -g3 -Wall -DREQUESTS act_wiz.c
act_wiz.c:1838: error: conflicting types for `trunc'
/usr/include/math.h:144: error: previous declaration of `trunc'
act_wiz.c: In function `do_form_password':
act_wiz.c:4976: warning: implicit declaration of function `crypt'
make[1]: *** [act_wiz.o] Error 1
make[1]: Leaving directory `/home/Administrator/src'
make: *** [all] Error 2
It seems no matter which version i use it has a problem with the crypt command.. and im not adept enough with cygwin to try and mess with things and figure it out for myself for fear of screwing something else up..
I have put both of these files on my web page at geocities if you wish to download them and try for yourself.. my site is... http://www.geocities.com/shady_motsf/
Please excuse my lame excuse for a website.. |
| Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #4 on Mon 20 Sep 2004 08:07 PM (UTC) |
Message
| You might want to read over the Smaug documents. It explains how to fix this.
Toggle the comment in the Makefile, for crypt. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Samson
USA (683 posts) Bio
|
Date
| Reply #5 on Wed 22 Sep 2004 11:23 AM (UTC) |
Message
| Or, you could make sure that Cygwin has the crypt library installed and you have includes in the affected files for crypt.h and then all will be well.
Or, you could adopt the MD5 encrypption in the FUSS packages which makes crypt unnecessary.
Disabling crypt isn't the only working solution. | 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.
22,577 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top