Chris Bailey
Wizard

Group: Members
Posts: 602
Joined: Sep 13, 2008
|
#16 id:12432 Posted Sep 21, 2008, 3:12 am
|
Append -lcrypt to line 6 (L_FLAGS)
Edit to add a PS.
PS. Look at the navigation controls up top, Pastebin is next to MUD List and it's coool =)
|
|
......................... If what Proust says is true, that happiness is the absence of fever, then I will never know happiness. For I am possessed by a fever for knowledge, experience, and creation.
Last edited Sep 21, 2008, 3:13 am by Chris Bailey
|
|
Igabod
Wizard


Group: Members
Posts: 1,080
Joined: Jul 23, 2008
|
#17 id:12434 Posted Sep 21, 2008, 3:27 am
|
Chris Bailey said:Append -lcrypt to line 6 (L_FLAGS)
Edit to add a PS.
PS. Look at the navigation controls up top, Pastebin is next to MUD List and it's coool =)
ah ok thanks for the help i really do appreciate it. and now i feel a little bit stupid for not knowing about the pastebin but i've never used it before.
[edit to add this update]
Just now put -lcrypt on line 6 and i still get the same message when i do a make.
just to be sure i got it correct here's the first few lines of makefile.
Code (text): 1
2
3
4
5
6
7
8 | CC = gcc
PROF =
NOCRYPT =
C_FLAGS = -O -Wall -g -ggdb3 -Dlinux $(PROF) $(NOCRYPT)
L_FLAGS = -O $(PROF) -lcrypt
|
|
|
......................... Every man has his follies, and often they are the most interesting thing he has got - Josh Billings
Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. - Albert Einstein
I have a love interest in every one of my films... a gun. - Arnold Schwarzenegger
Recession is when a neighbor loses his job. Depression is when you lose yours. - Ronald Reagan
I like long walks, especially when they are taken by people who annoy me. - Fred Allen
Last edited Sep 21, 2008, 3:30 am by Igabod
|
|
Chris Bailey
Wizard

Group: Members
Posts: 602
Joined: Sep 13, 2008
|
#18 id:12435 Posted Sep 21, 2008, 3:29 am
|
Np. Does that mean it is compiling for you now?
|
|
......................... If what Proust says is true, that happiness is the absence of fever, then I will never know happiness. For I am possessed by a fever for knowledge, experience, and creation.
|
|
Igabod
Wizard


Group: Members
Posts: 1,080
Joined: Jul 23, 2008
|
#19 id:12436 Posted Sep 21, 2008, 3:37 am
|
heh i was editing while you were replying, answer to your question is above your last post
|
|
......................... Every man has his follies, and often they are the most interesting thing he has got - Josh Billings
Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. - Albert Einstein
I have a love interest in every one of my films... a gun. - Arnold Schwarzenegger
Recession is when a neighbor loses his job. Depression is when you lose yours. - Ronald Reagan
I like long walks, especially when they are taken by people who annoy me. - Fred Allen
|
|
Chris Bailey
Wizard

Group: Members
Posts: 602
Joined: Sep 13, 2008
|
#20 id:12437 Posted Sep 21, 2008, 3:41 am
|
Ok try appending it to line 21. That would make it look like...(remove it from the other location)
Code (text): 1
2
3
4
5 |
$(CC) $(L_FLAGS) -o merc $(O_FILES) -lcrypt
|
|
|
......................... If what Proust says is true, that happiness is the absence of fever, then I will never know happiness. For I am possessed by a fever for knowledge, experience, and creation.
|
|
Igabod
Wizard


Group: Members
Posts: 1,080
Joined: Jul 23, 2008
|
#21 id:12438 Posted Sep 21, 2008, 3:55 am
|
that worked, thank you so much for that. it's been a thorn in my side for 2 days now. the only thing stopping me from playtesting now is that either my startup script is not working or something. maybe you can help with that too? when i type ./startup & i get this message:
bash: ./startup: /bin/csh: bad interpreter: No such file or directory
here's my startup script, with the /bin/csh mentioned on the first line.
Code (text): 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42 | #! /bin/csh -f
# Written by Furey.
# With additions from Tony.
# Set the port number.
set port = 4444
if ( "$1" != "" ) set port="$1"
# Change to area directory.
# autokill 60 >> ~/area/autokill.txt &
cd ../area
# Set limits.
nohup
nice
#ulimit -c unlimited
#limit stack 1024k
if ( -e shutdown.txt ) rm -f shutdown.txt
while ( 1 )
# If you want to have logs in a different directory,
# change the 'set logfile' line to reflect the directory name.
set index = 1000
while ( 1 )
set logfile = ../log/$index.log
if ( ! -e $logfile ) break
@ index++
end
# Run merc.
../src/merc $port >&! $logfile
# Restart, giving old connections a chance to die.
if ( -e shutdown.txt ) then
rm -f shutdown.txt
exit 0
endif
sleep 5
end
|
i thought the problem was that there was no bin directory so i created it and tried again with the same resulting message.
[Edit to add this]
I get the same problem when i try to startup my rom codebase as well, i'm beginning to think this is a cygwin problem not a startup script problem.
|
|
......................... Every man has his follies, and often they are the most interesting thing he has got - Josh Billings
Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. - Albert Einstein
I have a love interest in every one of my films... a gun. - Arnold Schwarzenegger
Recession is when a neighbor loses his job. Depression is when you lose yours. - Ronald Reagan
I like long walks, especially when they are taken by people who annoy me. - Fred Allen
Last edited Sep 21, 2008, 4:04 am by Igabod
|
|
Chris Bailey
Wizard

Group: Members
Posts: 602
Joined: Sep 13, 2008
|
#22 id:12439 Posted Sep 21, 2008, 4:06 am
|
You need to install csh. I'm unaware of how to install packages in cygwin but that is what you are missing. In debian it would just be "apt-get install csh". You will have to check into package installation for that thing though. =P
|
|
......................... If what Proust says is true, that happiness is the absence of fever, then I will never know happiness. For I am possessed by a fever for knowledge, experience, and creation.
|
|
Igabod
Wizard


Group: Members
Posts: 1,080
Joined: Jul 23, 2008
|
#23 id:12440 Posted Sep 21, 2008, 4:21 am
|
the only thing i found in the cygwin install options is scsh and the descriptor for it is open-source unix shell embedded within scheme. if it's something else i can't find it.
[edit] and thats in the interpreters category by the way.
|
|
......................... Every man has his follies, and often they are the most interesting thing he has got - Josh Billings
Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. - Albert Einstein
I have a love interest in every one of my films... a gun. - Arnold Schwarzenegger
Recession is when a neighbor loses his job. Depression is when you lose yours. - Ronald Reagan
I like long walks, especially when they are taken by people who annoy me. - Fred Allen
Last edited Sep 21, 2008, 4:23 am by Igabod
|
|
Chris Bailey
Wizard

Group: Members
Posts: 602
Joined: Sep 13, 2008
|
#24 id:12441 Posted Sep 21, 2008, 4:26 am
|
Get that and change the reference in the makefile to scsh and see if that works.
EDIT:
Better idea: See if you can use tcsh, I just read somewhere that cygwin comes with it.
|
|
......................... If what Proust says is true, that happiness is the absence of fever, then I will never know happiness. For I am possessed by a fever for knowledge, experience, and creation.
Last edited Sep 21, 2008, 4:29 am by Chris Bailey
|
|
Igabod
Wizard


Group: Members
Posts: 1,080
Joined: Jul 23, 2008
|
#25 id:12442 Posted Sep 21, 2008, 4:44 am
|
ok it's installed and startup file is changed accordingly, i tried startup again and it says unknown switch -f then gives me a list of valid switches, since i can't copy and paste from cygwin i'll summarize them below:
-e <entry-point> specify top level entry point
-o <structure> open structure in current package
-m <package> switch to package
-n <new package> switch to new package
-lm <module-file-name> load module into config package
-le <exec-file-name> load file into exec package
-l <file-name> load file into current package
-ll <module-file-name> as in -lm but search library path list
-lel < exec-file-name> as in -le " "
+lp <dir> add <dir> to front of library path list
lp+ <dir> add <dir> to end of library path list
+lpe <dir> +lp with env var and ~user expansion
lpe+ <dir> lp+ " "
+lpsd add script-file's dir to front of path list
lpsd+ add to end of path list
-lp-clear clear library path list to ().
-lp-default reset library path list to system default
-ds do script
-dm do script module
-de do script exec.
end option:
-s <script> specify script
-sfd <num> script is on file descriptor <num>.
-c <exp> evaluate expression
-- interactive session.
my thoughts are that the -f should be changed to -l (i'm assuming the -f means file-name but it's different with scsh for some odd reason)
[edit] just saw your edit, there is no tcsh that i could find in the installation package but i'll scan through it again, there's about 200 different utilities that can be selected from so i could have just missed it or something.
|
|
......................... Every man has his follies, and often they are the most interesting thing he has got - Josh Billings
Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. - Albert Einstein
I have a love interest in every one of my films... a gun. - Arnold Schwarzenegger
Recession is when a neighbor loses his job. Depression is when you lose yours. - Ronald Reagan
I like long walks, especially when they are taken by people who annoy me. - Fred Allen
Last edited Sep 21, 2008, 4:47 am by Igabod
|
|
Darva
Apprentice

Group: Members
Posts: 27
Joined: Sep 29, 2007
|
#26 id:12444 Posted Sep 21, 2008, 5:45 am
|
If you're only doing playtesting, the startup file is, for the moment, irrelevent. From the area directory, try typing ../src/merc <port number>, then connecting to localhost:<port number>
|
|
|
Igabod
Wizard


Group: Members
Posts: 1,080
Joined: Jul 23, 2008
|
#27 id:12445 Posted Sep 21, 2008, 5:50 am
|
awesome, thanks for the help.
|
|
......................... Every man has his follies, and often they are the most interesting thing he has got - Josh Billings
Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. - Albert Einstein
I have a love interest in every one of my films... a gun. - Arnold Schwarzenegger
Recession is when a neighbor loses his job. Depression is when you lose yours. - Ronald Reagan
I like long walks, especially when they are taken by people who annoy me. - Fred Allen
Last edited Sep 21, 2008, 6:48 am by Igabod
|
|