Author Topic: Trouble running/compiling  (Read 8406 times)

Offline syphon

  • Acquaintance
  • *
  • Posts: 0
    • View Profile
Trouble running/compiling
« on: November 14, 2006, 09:20:27 PM »
Im not sure what Im doing wrong, but first off I tried to ./configure and make install, on a friends linux box. That didn't work, So next I tried manually, Now I followed the instructions for that, Not to sure what they ment about copying the "driver" file into $MUDHOME/bin/ cause I don't even know what file is the driver file, If that's what they mean. But I followed the Instructions, changed the two lines in mudos.cfg, mudlib directory and binary directory. Then I edited startmud, Then when I went to type ./startmud, I got nothing. Id be greatful If sombody would help me out with this considering how much I just read on this codebase.
-Syphon

Offline saquivor

  • BFF
  • ***
  • Posts: 110
    • View Profile
Trouble running/compiling
« Reply #1 on: November 14, 2006, 11:46:50 PM »
Syphon,



You need to provide a little more information on what platform you are running on. From the details you provided I will assume it is linux, the fact that ./configure and make install, did not work is an issue you need to resolve. On Ubuntu isssuing sudo apt-get install build-essential would install gcc and other related tools to let you be able to compile software from source.



Saquivor

Offline syphon

  • Acquaintance
  • *
  • Posts: 0
    • View Profile
Trouble running/compiling
« Reply #2 on: November 15, 2006, 12:04:35 AM »

Debian GNU/Linux , It has GCC ofcorse. This is what happens when I type ./configure

Preparing to build developmental version of MudOS driver ...

Trying out some stuff to see what works; ignore errors ...

./build.MudOS: line 149: gmake: command not found

make: Nothing to be done for `nothing'.

./build.MudOS: line 188: xlc: command not found

mkdir: cannot create directory `tmp': File exists

install: invalid option -- f

Try `install --help' for more information.

rm: cannot remove `tmp/insttest': No such file or directory

./build.MudOS: line 325: bison: command not found

./build.MudOS: line 329: byacc: command not found

./build.MudOS: line 333: yacc: command not found

FATAL ERROR: Could not find bison or yacc.

No Wolfpaw config needed.


-Syphon

Offline Jimorie

  • Friend
  • **
  • Posts: 58
    • View Profile
Trouble running/compiling
« Reply #3 on: November 15, 2006, 02:24:39 AM »

The configure script complains about not finding bison or yacc. Make sure you have that. Try "sudo apt-get install bison" if you are on a Debian machine. Then run configure again and see if that works.



I took this occasion to also compile and test MudOS (v22.2b14) on an Ubuntu machine, and ran into a few other troubles after configure while compiling the driver. To get around them I had to make a few guess-hacks in the SMakefile. But they might not be necessary for you. If you get more problems however, I am sure people here will be able to help you finalize the set up.



Considering the relative popularity of the MudOS driver I think it is strange no one has taken it upon themselves to maintain the project - at least making sure it compiles neatly on major platforms. (Edit: Stating this without having a clue whether MudOS is currently maintained or not, I realized. My apologies if it is.)



Good luck with your MUD!


Offline saquivor

  • BFF
  • ***
  • Posts: 110
    • View Profile
Trouble running/compiling
« Reply #4 on: November 15, 2006, 03:20:31 AM »
This can also help on newer versions of gcc



export CC=gcc-3.4

then run ./configure and make as normal.

sartok

  • Guest
Trouble running/compiling
« Reply #5 on: November 15, 2006, 06:06:17 PM »

I can ./configure but when I make I get a lot of errors.   Here is some of it:



igset_t'

In file included from /usr/include/sys/time.h:30,

                 from portability.h:162,

                 from std.h:23,

                 from make_func.tab.c:32:

/usr/include/sys/select.h:38: error: storage class specified for parameter `__sigset_t'

/usr/include/sys/select.h:38: error: conflicting types for '__sigset_t'

/usr/include/bits/sigset.h:31: error: previous definition of '__sigset_t' was here

/usr/include/sys/select.h:38: error: syntax error before "sigset_t"

In file included from /usr/include/sys/select.h:44,

                 from /usr/include/sys/time.h:30,

                 from portability.h:162,

                 from std.h:23,

                 from make_func.tab.c:32:

/usr/include/time.h:120: error: syntax error before "__time_t"

/usr/include/time.h:122: error: syntax error before '}' token

In file included from /usr/include/sys/time.h:30,

                 from portability.h:162,

                 from std.h:23,

                 from make_func.tab.c:32:

/usr/include/sys/select.h:49: error: storage class specified for parameter `__suseconds_t'

/usr/include/sys/select.h:49: error: syntax error before "suseconds_t"

/usr/include/sys/select.h:55: error: storage class specified for parameter `__fd_mask'

/usr/include/sys/select.h:75: error: syntax error before "__fd_mask"

/usr/include/sys/select.h:85: error: storage class specified for parameter `__fd_mask'

/usr/include/sys/select.h:85: error: conflicting types for '__fd_mask'

/usr/include/sys/select.h:55: error: previous definition of '__fd_mask' was here

/usr/include/sys/select.h:85: error: syntax error before "fd_mask"

/usr/include/sys/select.h:109: error: syntax error before "fd_set"

/usr/include/sys/select.h:112: error: storage class specified for parameter `select'

In file included from portability.h:162,

                 from std.h:23,

                 from make_func.tab.c:32:

/usr/include/sys/time.h:62: error: storage class specified for parameter `__timezone_ptr_t'

/usr/include/sys/time.h:73: error: syntax error before "__timezone_ptr_t"

/usr/include/sys/time.h:73: error: storage class specified for parameter `gettimeofday'

/usr/include/sys/time.h:79: error: storage class specified for parameter `settimeofday'

/usr/include/sys/time.h:86: error: storage class specified for parameter `adjtime'

/usr/include/sys/time.h:110: error: field `it_interval' has incomplete type

/usr/include/sys/time.h:112: error: field `it_value' has incomplete type

/usr/include/sys/time.h:120: error: storage class specified for parameter `__itimer_which_t'

/usr/include/sys/time.h:125: error: syntax error before "__which"

/usr/include/sys/time.h:126: error: storage class specified for parameter `getitimer'

/usr/include/sys/time.h:131: error: syntax error before "__which"

/usr/include/sys/time.h:133: error: storage class specified for parameter `setitimer'

/usr/include/sys/time.h:139: error: storage class specified for parameter `utimes'

/usr/include/sys/time.h:144: error: storage class specified for parameter `lutimes'

/usr/include/sys/time.h:147: error: storage class specified for parameter `futimes'

In file included from /usr/include/sys/uio.h:24,

                 from /usr/include/sys/socket.h:27,

                 from portability.h:163,

                 from std.h:23,

                 from make_func.tab.c:32:

/usr/include/sys/types.h:35: error: storage class specified for parameter `__u_char'

/usr/include/sys/types.h:35: error: conflicting types for '__u_char'

/usr/include/bits/types.h:34: error: previous definition of '__u_char' was here

/usr/include/sys/types.h:35: error: syntax error before "u_char"

/usr/include/sys/types.h:36: error: storage class specified for parameter `__u_short'

/usr/include/sys/types.h:36: error: conflicting types for '__u_short'

/usr/include/bits/types.h:35: error: previous definition of '__u_short' was here

/usr/include/sys/types.h:36: error: syntax error before "u_short"

/usr/include/sys/types.h:37: error: storage class specified for parameter `__u_int'

/usr/include/sys/types.h:37: error: conflicting types for '__u_int'

/usr/include/bits/types.h:36: error: previous definition of '__u_int' was here

/usr/include/sys/types.h:37: error: syntax error before "u_int"

/usr/include/sys/types.h:38: error: storage class specified for parameter `__u_long'

/usr/include/sys/types.h:38: error: conflicting types for '__u_long'

/usr/include/bits/types.h:37: error: previous definition of '__u_long' was here

/usr/include/sys/types.h:38: error: syntax error before "u_long"

/usr/include/sys/types.h:39: error: storage class specified for parameter `__quad_t'

/usr/include/sys/types.h:39: error: redefinition of parameter '__quad_t'

/usr/include/bits/types.h:187: error: previous definition of '__quad_t' was here

/usr/include/sys/types.h:39: error: syntax error before "quad_t"

/usr/include/sys/types.h:40: error: storage class specified for parameter `__u_quad_t'

/usr/include/sys/types.h:40: error: syntax error before "u_quad_t"

/usr/include/sys/types.h:41: error: storage class specified for parameter `__fsid_t'

/usr/include/sys/types.h:41: error: syntax error before "fsid_t"

/usr/include/sys/types.h:46: error: storage class specified for parameter `__loff_t'

/usr/include/sys/types.h:46: error: syntax error before "loff_t"

/usr/include/sys/types.h:50: error: storage class specified for parameter `__ino_t'

/usr/include/sys/types.h:50: error: syntax error before "ino_t"

/usr/include/sys/types.h:62: error: storage class specified for parameter `__dev_t'

/usr/include/sys/types.h:62: error: syntax error before "dev_t"

/usr/include/sys/types.h:67: error: storage class specified for parameter `__gid_t'

/usr/include/sys/types.h:67: error: syntax error before "gid_t"

/usr/include/sys/types.h:72: error: storage class specified for parameter `__mode_t'

/usr/include/sys/types.h:72: error: syntax error before "mode_t"

/usr/include/sys/types.h:77: error: storage class specified for parameter `__nlink_t'

/usr/include/sys/types.h:77: error: syntax error before "nlink_t"

/usr/include/sys/types.h:82: error: storage class specified for parameter `__uid_t'

/usr/include/sys/types.h:82: error: syntax error before "uid_t"

/usr/include/sys/types.h:88: error: storage class specified for parameter `__off_t'

/usr/include/sys/types.h:88: error: syntax error before "off_t"

/usr/include/sys/types.h:100: error: storage class specified for parameter `__pid_t'

/usr/include/sys/types.h:100: error: syntax error before "pid_t"

/usr/include/sys/types.h:105: error: storage class specified for parameter `__id_t'

/usr/include/sys/types.h:105: error: syntax error before "id_t"

/usr/include/sys/types.h:110: error: storage class specified for parameter `__ssize_t'

/usr/include/sys/types.h:110: error: syntax error before "ssize_t"

/usr/include/sys/types.h:116: error: storage class specified for parameter `__daddr_t'

/usr/include/sys/types.h:116: error: syntax error before "daddr_t"

/usr/include/sys/types.h:117: error: storage class specified for parameter `__caddr_t'

/usr/include/sys/types.h:117: error: conflicting types for '__caddr_t'

/usr/include/bits/types.h:188: error: previous definition of '__caddr_t' was here

/usr/include/sys/types.h:117: error: syntax error before "caddr_t"

/usr/include/sys/types.h:123: error: storage class specified for parameter `__key_t'

/usr/include/sys/types.h:123: error: syntax error before "key_t"

In file included from /usr/include/sys/types.h:133,

                 from /usr/include/sys/uio.h:24,

                 from /usr/include/sys/socket.h:27,

                 from portability.h:163,

                 from std.h:23,

                 from make_func.tab.c:32:

/usr/include/time.h:92: error: storage class specified for parameter `__clockid_t'

/usr/include/time.h:92: error: syntax error before "clockid_t"

/usr/include/time.h:104: error: storage class specified for parameter `__timer_t'

/usr/include/time.h:104: error: syntax error before "timer_t"

In file included from /usr/include/sys/uio.h:24,

                 from /usr/include/sys/socket.h:27,

                 from portability.h:163,

                 from std.h:23,

                 from make_func.tab.c:32:

/usr/include/sys/types.h:151: error: storage class specified for parameter `ulong'

/usr/include/sys/types.h:152: error: storage class specified for parameter `ushort'

/usr/include/sys/types.h:153: error: storage class specified for parameter `uint'

/usr/include/sys/types.h:191: error: storage class specified for parameter `int8_t'

/usr/include/sys/types.h:192: error: storage class specified for parameter `int16_t'

/usr/include/sys/types.h:193: error: storage class specified for parameter `int32_t'

/usr/include/sys/types.h:194: error: storage class specified for parameter `int64_t'

/usr/include/sys/types.h:197: error: storage class specified for parameter `u_int8_t'

/usr/include/sys/types.h:198: error: storage class specified for parameter `u_int16_t'

/usr/include/sys/types.h:199: error: storage class specified for parameter `u_int32_t'

/usr/include/sys/types.h:200: error: storage class specified for parameter `u_int64_t'

/usr/include/sys/types.h:202: error: storage class specified for parameter `register_t'

In file included from /usr/include/sys/types.h:219,

                 from /usr/include/sys/uio.h:24,

                 from /usr/include/sys/socket.h:27,

                 from portability.h:163,

                 from std.h:23,

                 from make_func.tab.c:32:

/usr/include/sys/sysmacros.h:29: error: syntax error before "__extension__"

In file included from /usr/include/sys/uio.h:24,

                 from /usr/include/sys/socket.h:27,

                 from portability.h:163,

                 from std.h:23,

                 from make_func.tab.c:32:

/usr/include/sys/types.h:235: error: storage class specified for parameter `__fsblkcnt_t'

/usr/include/sys/types.h:235: error: syntax error before "fsblkcnt_t"

/usr/include/sys/types.h:239: error: storage class specified for parameter `__fsfilcnt_t'

/usr/include/sys/types.h:239: error: syntax error before "fsfilcnt_t"

In file included from /usr/include/sys/types.h:266,

                 from /usr/include/sys/uio.h:24,

                 from /usr/include/sys/socket.h:27,

                 from portability.h:163,

                 from std.h:23,

                 from make_func.tab.c:32:

/usr/include/bits/pthreadtypes.h:35: error: storage class specified for parameter `_pthread_descr'

/usr/include/bits/pthreadtypes.h:48: error: syntax error before "size_t"

/usr/include/bits/pthreadtypes.h:51: error: syntax error before "size_t"

/usr/include/bits/pthreadtypes.h:66: error: syntax error before "_pthread_descr"

/usr/include/bits/pthreadtypes.h:68: error: `__pthread_cond_align_t' undeclared (first use in this function)

/usr/include/bits/pthreadtypes.h:68: error: (Each undeclared identifier is reported only once

/usr/include/bits/pthreadtypes.h:68: error: for each function it appears in.)

/usr/include/bits/pthreadtypes.h:68: confused by earlier errors, bailing out

make: *** [obj/make_func.tab.o] Error 1





Any ideas.


Offline syphon

  • Acquaintance
  • *
  • Posts: 0
    • View Profile
Trouble running/compiling
« Reply #6 on: November 15, 2006, 10:20:15 PM »

I got it to configure, and compile, But now I can't get it to boot up, I keep geting this error when I ./startmud.

Connection to address server (localhost 5001) refused.

Accepting connections on port 5000.

System Error: init_user_conn: bind:Address already in use



It will refuse one port and allow anther, Not sure, But the ports are not in use, I've tried many others also.


-Syphon

Offline saquivor

  • BFF
  • ***
  • Posts: 110
    • View Profile
Trouble running/compiling
« Reply #7 on: November 16, 2006, 12:10:22 AM »
Could you post your mudos.cfg file. Is there are a reason you are changing the address server port rather than the external port? I have pasted an example section below. Mud running on port 6680 for player conections and address server on standard port.



# port number to accept users on

external_port_1 : telnet 6680





# the address server is an external program that lets the mud translate

# internet names to numbers (and vice versa).  select an unused port.

address server ip : localhost

address server port : 9999

Offline cratylus

  • Your favorite and best
  • Administrator
  • ***
  • Posts: 1020
  • Cratylus@Dead Souls <ds> np
    • View Profile
    • About Cratylus
Trouble running/compiling
« Reply #8 on: November 16, 2006, 03:48:18 AM »

It sounds like you're accidentally running more than one instance

of the mud. Assuming you're running linux (and ONLY if

you're running linux) do this:



killall -9 startmud

killall -9 driver



Then try to run the mud again.



Offline syphon

  • Acquaintance
  • *
  • Posts: 0
    • View Profile
Trouble running/compiling
« Reply #9 on: November 16, 2006, 11:12:54 AM »

Yes, Im on a Linux box. This is what I have it set to, The only reason I was changing the server port and such is because of the problems Im having

Connection to address server (localhost 9999) refused.



     (mudos.cfg)

# port number to accept users on

external_port_1 : telnet 5000



# the address server is an external program that lets the mud translate

# internet names to numbers (and vice versa).  select an unused port.

address server ip : localhost

address server port : 9999



# absolute pathname of mudlib

mudlib directory : /home/snoop/ds/ds2.1.1/lib





This is what I get when I ./startmud

----------------------------------------------------------------------------

DeadSoulsNew (MudOS v22.2b14) starting up on Linux - Thu Nov 16 14:19:07 2006





Connection to address server (localhost 9999) refused.



Loading preloaded files ...

]Preloading: /lib/sentient...](0.0)

]Preloading: /lib/std/table...](0.0)

]Preloading: /lib/std/room...](0.0)

]Preloading: /daemon/soul...](0.0)

]Preloading: /lib/player...](0.0)

]Preloading: /secure/daemon/localpost...](0.0)

]Preloading: /secure/daemon/letters...](0.0)

]Preloading: /secure/daemon/folders...](0.0)

]Preloading: /secure/daemon/events...](0.0)

]Preloading: /daemon/seasons...](0.0)

]Preloading: /daemon/intermud...](0.0)

]Preloading: /secure/daemon/economy...](0.0)

]Preloading: /secure/daemon/chat...](0.0)

]Preloading: /daemon/verbs...](0.0)

]Preloading: /daemon/command...](0.0)

]Preloading: /daemon/preload_check...](0.0)

]Preloading: /daemon/decay...](0.0)

]Preloading: /daemon/reaper...](0.0)

]Preloading: /secure/daemon/ping...](0.0)

]Preloading: /secure/daemon/update...](0.0)

]Preloading: /secure/room/arch...](0.0)

]Preloading: /secure/daemon/snoop...](0.0)

]Preloading: /secure/daemon/log...](0.0)

Initializations complete.



Accepting connections on port 5000.

socket_connect: socket already bound to address/port: 24.0.0.0/0

socket_connect: requested on: 149.152.218.102 23

-Syphon

Offline saquivor

  • BFF
  • ***
  • Posts: 110
    • View Profile
Trouble running/compiling
« Reply #10 on: November 16, 2006, 12:20:39 PM »
Does this http://dead-souls.net/ds-admin-faq.html#29">FAQ answer your question ?







Saquivor

Offline Jimorie

  • Friend
  • **
  • Posts: 58
    • View Profile
Trouble running/compiling
« Reply #11 on: November 16, 2006, 12:52:15 PM »
DataCorrupt: Those errors do not look like the ones I had and could remedy by hacking the SMakefile. What is your OS and compiler? Did you catch the tip someone else gave about not using the most recent version of GCC? I don't feel I can help you here really, but I'm trying to bring up your problem so that someone more knowledgeable can come and rescue you instead. =)

Offline cratylus

  • Your favorite and best
  • Administrator
  • ***
  • Posts: 1020
  • Cratylus@Dead Souls <ds> np
    • View Profile
    • About Cratylus
Trouble running/compiling
« Reply #12 on: November 16, 2006, 04:42:56 PM »
So what's the problem exactly? Are you unable to telnet in?

Offline syphon

  • Acquaintance
  • *
  • Posts: 0
    • View Profile
Trouble running/compiling
« Reply #13 on: November 16, 2006, 08:56:47 PM »

I can telnet in but when I ./startmud it keeps repeating this

 socket_connect: requested on: 149.152.218.102 23

socket_connect: socket already bound to address/port: 24.0.0.0/0

socket_connect: requested on: 149.152.218.102 23

socket_connect: socket already bound to address/port: 24.0.0.0/0



when I run ./startmud I get this



DeadSoulsNew (MudOS v22.2b14) starting up on Linux - Thu Nov 16 23:54:19 2006





Connection to address server (localhost 9999) refused.



Loading preloaded files ...

]Preloading: /lib/sentient...](0.0)

]Preloading: /lib/std/table...](0.0)

]Preloading: /lib/std/room...](0.0)

]Preloading: /daemon/soul...](0.0)

]Preloading: /lib/player...](0.0)

]Preloading: /secure/daemon/localpost...](0.0)

]Preloading: /secure/daemon/letters...](0.0)

]Preloading: /secure/daemon/folders...](0.0)

]Preloading: /secure/daemon/events...](0.0)

]Preloading: /daemon/seasons...](0.0)

]Preloading: /daemon/intermud...](0.0)

]Preloading: /secure/daemon/economy...](0.0)

]Preloading: /secure/daemon/chat...](0.0)

]Preloading: /daemon/verbs...](0.0)

]Preloading: /daemon/command...](0.0)

]Preloading: /daemon/preload_check...](0.0)

]Preloading: /daemon/decay...](0.0)

]Preloading: /daemon/reaper...](0.0)

]Preloading: /secure/daemon/ping...](0.0)

]Preloading: /secure/daemon/update...](0.0)

]Preloading: /secure/room/arch...](0.0)

]Preloading: /secure/daemon/snoop...](0.0)

]Preloading: /secure/daemon/log...](0.0)

Initializations complete.



Accepting connections on port 5000.

socket_connect: socket already bound to address/port: 24.0.0.0/0

socket_connect: requested on: 149.152.218.102 23





[1]+  Stopped                 ./startmud



Then When I point addr_server to 9999 and ./startmud I get this



DeadSoulsNew (MudOS v22.2b14) starting up on Linux - Fri Nov 17 00:02:07 2006





Connected to address server on localhost port 9999



Loading preloaded files ...

]Preloading: /lib/sentient...](0.0)

]Preloading: /lib/std/table...](0.0)

]Preloading: /lib/std/room...](0.0)

]Preloading: /daemon/soul...](0.0)

]Preloading: /lib/player...](0.0)

]Preloading: /secure/daemon/localpost...](0.0)

]Preloading: /secure/daemon/letters...](0.0)

]Preloading: /secure/daemon/folders...](0.0)

]Preloading: /secure/daemon/events...](0.0)

]Preloading: /daemon/seasons...](0.0)

]Preloading: /daemon/intermud...](0.0)

]Preloading: /secure/daemon/economy...](0.0)

]Preloading: /secure/daemon/chat...](0.0)

]Preloading: /daemon/verbs...](0.0)

]Preloading: /daemon/command...](0.0)

]Preloading: /daemon/preload_check...](0.0)

]Preloading: /daemon/decay...](0.0)

]Preloading: /daemon/reaper...](0.0)

]Preloading: /secure/daemon/ping...](0.0)

]Preloading: /secure/daemon/update...](0.0)

]Preloading: /secure/room/arch...](0.0)

]Preloading: /secure/daemon/snoop...](0.0)

]Preloading: /secure/daemon/log...](0.0)

Initializations complete.



Accepting connections on port 5555.

socket_connect: socket already bound to address/port: 24.0.0.0/0

socket_connect: requested on: 149.152.218.102 23





[2]+  Stopped                 ./startmud



When I telnet in all I get is





snoop@presidium:~/ds/ds2.1.1/bin$ telnet presidium.org 5555

Trying 199.232.228.66...

Connected to presidium.org.

Escape character is '^]'.

-Syphon

Offline syphon

  • Acquaintance
  • *
  • Posts: 0
    • View Profile
Trouble running/compiling
« Reply #14 on: November 16, 2006, 09:01:29 PM »

I get this when I do that

addr_server: listening for connections on port 9999



and it freeze there and does nothing..


-Syphon