Trying to Compile on Ubuntu 10.10

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Trying to Compile on Ubuntu 10.10

trilioth
This post has NOT been accepted by the mailing list yet.
The files aren't there and I am not sure why.

make clean
Makefile:113: gameloop.d: No such file or directory
Makefile:113: mud.d: No such file or directory
Makefile:113: utils.d: No such file or directory
Makefile:113: interpret.d: No such file or directory
Makefile:113: handler.d: No such file or directory
Makefile:113: inform.d: No such file or directory
Makefile:113: action.d: No such file or directory
Makefile:113: save.d: No such file or directory
Makefile:113: socket.d: No such file or directory
Makefile:113: io.d: No such file or directory
Makefile:113: strings.d: No such file or directory
Makefile:113: event.d: No such file or directory
Makefile:113: races.d: No such file or directory
Makefile:113: log.d: No such file or directory
Makefile:113: auxiliary.d: No such file or directory
Makefile:113: world.d: No such file or directory
Makefile:113: character.d: No such file or directory
Makefile:113: room.d: No such file or directory
Makefile:113: exit.d: No such file or directory
Makefile:113: extra_descs.d: No such file or directory
Makefile:113: object.d: No such file or directory
Makefile:113: body.d: No such file or directory
Makefile:113: zone.d: No such file or directory
Makefile:113: room_reset.d: No such file or directory
Makefile:113: account.d: No such file or directory
Makefile:113: list.d: No such file or directory
Makefile:113: property_table.d: No such file or directory
Makefile:113: hashtable.d: No such file or directory
Makefile:113: map.d: No such file or directory
Makefile:113: storage.d: No such file or directory
Makefile:113: set.d: No such file or directory
Makefile:113: buffer.d: No such file or directory
Makefile:113: bitvector.d: No such file or directory
Makefile:113: numbers.d: No such file or directory
Makefile:113: prototype.d: No such file or directory
Makefile:113: hooks.d: No such file or directory
Makefile:113: parse.d: No such file or directory
Makefile:113: near_map.d: No such file or directory
Makefile:113: command.d: No such file or directory
Makefile:113: filebuf.d: No such file or directory
Makefile:113: dyn_vars/dyn_vars.d: No such file or directory
Makefile:113: set_val/set_val.d: No such file or directory
Makefile:113: olc2/olc.d: No such file or directory
Makefile:113: olc2/redit.d: No such file or directory
Makefile:113: olc2/zedit.d: No such file or directory
Makefile:113: olc2/esedit.d: No such file or directory
Makefile:113: olc2/medit.d: No such file or directory
Makefile:113: olc2/oedit.d: No such file or directory
Makefile:113: olc2/bedit.d: No such file or directory
Makefile:113: olc2/accedit.d: No such file or directory
Makefile:113: olc2/pcedit.d: No such file or directory
Makefile:113: olc2/protedit.d: No such file or directory
Makefile:113: olc2/olc_extender.d: No such file or directory
Makefile:113: editor/editor.d: No such file or directory
Makefile:113: editor/notepad.d: No such file or directory
Makefile:113: items/items.d: No such file or directory
Makefile:113: items/portal.d: No such file or directory
Makefile:113: items/iedit.d: No such file or directory
Makefile:113: items/container.d: No such file or directory
Makefile:113: items/furniture.d: No such file or directory
Makefile:113: items/worn.d: No such file or directory
Makefile:113: scripts/scripts.d: No such file or directory
Makefile:113: scripts/pychar.d: No such file or directory
Makefile:113: scripts/pyobj.d: No such file or directory
Makefile:113: scripts/pymud.d: No such file or directory
Makefile:113: scripts/pymudsys.d: No such file or directory
Makefile:113: scripts/pyhooks.d: No such file or directory
Makefile:113: scripts/pyroom.d: No such file or directory
Makefile:113: scripts/pyexit.d: No such file or directory
Makefile:113: scripts/pyaccount.d: No such file or directory
Makefile:113: scripts/pysocket.d: No such file or directory
Makefile:113: scripts/script_editor.d: No such file or directory
Makefile:113: scripts/pyplugs.d: No such file or directory
Makefile:113: scripts/pyevent.d: No such file or directory
Makefile:113: scripts/pystorage.d: No such file or directory
Makefile:113: scripts/pyauxiliary.d: No such file or directory
Makefile:113: scripts/triggers.d: No such file or directory
Makefile:113: scripts/trigedit.d: No such file or directory
Makefile:113: scripts/trighooks.d: No such file or directory
Makefile:113: scripts/pyolc.d: No such file or directory
Makefile:113: time/time.d: No such file or directory
Makefile:113: socials/socials.d: No such file or directory
Makefile:113: socials/socedit.d: No such file or directory
Makefile:113: alias/alias.d: No such file or directory
Makefile:113: help2/help.d: No such file or directory
Makefile:113: help2/hedit.d: No such file or directory

I have not changed the make file from the original.
Reply | Threaded
Open this post in threaded view
|

Re: Trying to Compile on Ubuntu 10.10

the evilpixel
This post has NOT been accepted by the mailing list yet.
DUDE,
          I'll try to go through the procedure from the beginning(I compile NAKEDMUD of ubuntu 10.10 too) -
1) Try reinstalling "GCC"; This is a fix for 70% of the problems during compilation of NAKEDMUD.
2) The " .d " files are generated the first time you compile the "makefile", is your makefile named as "clean" ? if not so, there should be a makefile with the name "makefile", just go into the directory and type "make" ( which you must already know).
Reply | Threaded
Open this post in threaded view
|

Re: Trying to Compile on Ubuntu 10.10

trilioth
This post has NOT been accepted by the mailing list yet.
I reinstalled GCC... still the same

You lost me at 'is your makefile named as "clean"' and yes I know to cd to the src dir and enter make... although I was using make clean.
Reply | Threaded
Open this post in threaded view
|

Re: Trying to Compile on Ubuntu 10.10

trilioth
This post has NOT been accepted by the mailing list yet.
Oh, I am using the makefile that came in the download, In case that wasn't obvious.
Reply | Threaded
Open this post in threaded view
|

Re: Trying to Compile on Ubuntu 10.10

trilioth
This post has NOT been accepted by the mailing list yet.
In reply to this post by trilioth
Compiling help2/help.c
Compiling help2/hedit.c
/usr/bin/ld: cannot find -lpython2.4
collect2: ld returned 1 exit status
make: *** [all] Error 1
???:~/nakedmudv3.8.1/src$ make clean
nakedmud source files cleaned
???:~/nakedmudv3.8.1/src$ make
Makefile:113: gameloop.d: No such file or directory
Makefile:113: mud.d: No such file or directory
Makefile:113: utils.d: No such file or directory
Makefile:113: interpret.d: No such file or directory
Makefile:113: handler.d: No such file or directory
Makefile:113: inform.d: No such file or directory
Makefile:113: action.d: No such file or directory
Makefile:113: save.d: No such file or directory
Makefile:113: socket.d: No such file or directory
Makefile:113: io.d: No such file or directory
Makefile:113: strings.d: No such file or directory
Makefile:113: event.d: No such file or directory
Makefile:113: races.d: No such file or directory
Makefile:113: log.d: No such file or directory
Makefile:113: auxiliary.d: No such file or directory
Makefile:113: world.d: No such file or directory
Makefile:113: character.d: No such file or directory
Makefile:113: room.d: No such file or directory
Makefile:113: exit.d: No such file or directory
Makefile:113: extra_descs.d: No such file or directory
Makefile:113: object.d: No such file or directory
Makefile:113: body.d: No such file or directory
Makefile:113: zone.d: No such file or directory
Makefile:113: room_reset.d: No such file or directory
Makefile:113: account.d: No such file or directory
Makefile:113: list.d: No such file or directory
Makefile:113: property_table.d: No such file or directory
Makefile:113: hashtable.d: No such file or directory
Makefile:113: map.d: No such file or directory
Makefile:113: storage.d: No such file or directory
Makefile:113: set.d: No such file or directory
Makefile:113: buffer.d: No such file or directory
Makefile:113: bitvector.d: No such file or directory
Makefile:113: numbers.d: No such file or directory
Makefile:113: prototype.d: No such file or directory
Makefile:113: hooks.d: No such file or directory
Makefile:113: parse.d: No such file or directory
Makefile:113: near_map.d: No such file or directory
Makefile:113: command.d: No such file or directory
Makefile:113: filebuf.d: No such file or directory
Makefile:113: dyn_vars/dyn_vars.d: No such file or directory
Makefile:113: set_val/set_val.d: No such file or directory
Makefile:113: olc2/olc.d: No such file or directory
Makefile:113: olc2/redit.d: No such file or directory
Makefile:113: olc2/zedit.d: No such file or directory
Makefile:113: olc2/esedit.d: No such file or directory
Makefile:113: olc2/medit.d: No such file or directory
Makefile:113: olc2/oedit.d: No such file or directory
Makefile:113: olc2/bedit.d: No such file or directory
Makefile:113: olc2/accedit.d: No such file or directory
Makefile:113: olc2/pcedit.d: No such file or directory
Makefile:113: olc2/protedit.d: No such file or directory
Makefile:113: olc2/olc_extender.d: No such file or directory
Makefile:113: editor/editor.d: No such file or directory
Makefile:113: editor/notepad.d: No such file or directory
Makefile:113: items/items.d: No such file or directory
Makefile:113: items/portal.d: No such file or directory
Makefile:113: items/iedit.d: No such file or directory
Makefile:113: items/container.d: No such file or directory
Makefile:113: items/furniture.d: No such file or directory
Makefile:113: items/worn.d: No such file or directory
Makefile:113: scripts/scripts.d: No such file or directory
Makefile:113: scripts/pychar.d: No such file or directory
Makefile:113: scripts/pyobj.d: No such file or directory
Makefile:113: scripts/pymud.d: No such file or directory
Makefile:113: scripts/pymudsys.d: No such file or directory
Makefile:113: scripts/pyhooks.d: No such file or directory
Makefile:113: scripts/pyroom.d: No such file or directory
Makefile:113: scripts/pyexit.d: No such file or directory
Makefile:113: scripts/pyaccount.d: No such file or directory
Makefile:113: scripts/pysocket.d: No such file or directory
Makefile:113: scripts/script_editor.d: No such file or directory
Makefile:113: scripts/pyplugs.d: No such file or directory
Makefile:113: scripts/pyevent.d: No such file or directory
Makefile:113: scripts/pystorage.d: No such file or directory
Makefile:113: scripts/pyauxiliary.d: No such file or directory
Makefile:113: scripts/triggers.d: No such file or directory
Makefile:113: scripts/trigedit.d: No such file or directory
Makefile:113: scripts/trighooks.d: No such file or directory
Makefile:113: scripts/pyolc.d: No such file or directory
Makefile:113: time/time.d: No such file or directory
Makefile:113: socials/socials.d: No such file or directory
Makefile:113: socials/socedit.d: No such file or directory
Makefile:113: alias/alias.d: No such file or directory
Makefile:113: help2/help.d: No such file or directory
Makefile:113: help2/hedit.d: No such file or directory
Building dependencies for help2/hedit.c
Building dependencies for help2/help.c
Building dependencies for alias/alias.c
Building dependencies for socials/socedit.c
Building dependencies for socials/socials.c
Building dependencies for time/time.c
Building dependencies for scripts/pyolc.c
Building dependencies for scripts/trighooks.c
Building dependencies for scripts/trigedit.c
Building dependencies for scripts/triggers.c
Building dependencies for scripts/pyauxiliary.c
Building dependencies for scripts/pystorage.c
Building dependencies for scripts/pyevent.c
Building dependencies for scripts/pyplugs.c
Building dependencies for scripts/script_editor.c
Building dependencies for scripts/pysocket.c
Building dependencies for scripts/pyaccount.c
Building dependencies for scripts/pyexit.c
Building dependencies for scripts/pyroom.c
Building dependencies for scripts/pyhooks.c
Building dependencies for scripts/pymudsys.c
Building dependencies for scripts/pymud.c
Building dependencies for scripts/pyobj.c
Building dependencies for scripts/pychar.c
Building dependencies for scripts/scripts.c
Building dependencies for items/worn.c
Building dependencies for items/furniture.c
Building dependencies for items/container.c
Building dependencies for items/iedit.c
Building dependencies for items/portal.c
Building dependencies for items/items.c
Building dependencies for editor/notepad.c
Building dependencies for editor/editor.c
Building dependencies for olc2/olc_extender.c
Building dependencies for olc2/protedit.c
Building dependencies for olc2/pcedit.c
Building dependencies for olc2/accedit.c
Building dependencies for olc2/bedit.c
Building dependencies for olc2/oedit.c
Building dependencies for olc2/medit.c
Building dependencies for olc2/esedit.c
Building dependencies for olc2/zedit.c
Building dependencies for olc2/redit.c
Building dependencies for olc2/olc.c
Building dependencies for set_val/set_val.c
Building dependencies for dyn_vars/dyn_vars.c
Building dependencies for filebuf.c
Building dependencies for command.c
Building dependencies for near_map.c
Building dependencies for parse.c
Building dependencies for hooks.c
Building dependencies for prototype.c
Building dependencies for numbers.c
Building dependencies for bitvector.c
Building dependencies for buffer.c
Building dependencies for set.c
Building dependencies for storage.c
Building dependencies for map.c
Building dependencies for hashtable.c
Building dependencies for property_table.c
Building dependencies for list.c
Building dependencies for account.c
Building dependencies for room_reset.c
Building dependencies for zone.c
Building dependencies for body.c
Building dependencies for object.c
Building dependencies for extra_descs.c
Building dependencies for exit.c
Building dependencies for room.c
Building dependencies for character.c
Building dependencies for world.c
Building dependencies for auxiliary.c
Building dependencies for log.c
Building dependencies for races.c
Building dependencies for event.c
Building dependencies for strings.c
Building dependencies for io.c
Building dependencies for socket.c
Building dependencies for save.c
Building dependencies for action.c
Building dependencies for inform.c
Building dependencies for handler.c
Building dependencies for interpret.c
Building dependencies for utils.c
Building dependencies for mud.c
Building dependencies for gameloop.c
Compiling gameloop.c
gameloop.c: In function ‘main’:
gameloop.c:182: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
Compiling mud.c
Compiling utils.c
utils.c: In function ‘see_exit_as’:
utils.c:392: warning: format not a string literal and no format arguments
utils.c: In function ‘key_malformed’:
utils.c:1521: warning: value computed is not used
utils.c: In function ‘locale_malformed’:
utils.c:1534: warning: value computed is not used
Compiling interpret.c
Compiling handler.c
Compiling inform.c
inform.c: In function ‘send_message’:
inform.c:567: warning: format not a string literal and no format arguments
inform.c:572: warning: format not a string literal and no format arguments
inform.c:607: warning: format not a string literal and no format arguments
inform.c:612: warning: format not a string literal and no format arguments
Compiling action.c
Compiling save.c
Compiling socket.c
socket.c: In function ‘copyover_recover’:
socket.c:757: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
Compiling io.c
Compiling strings.c
Compiling event.c
Compiling races.c
Compiling log.c
Compiling auxiliary.c
Compiling world.c
Compiling character.c
Compiling room.c
Compiling exit.c
Compiling extra_descs.c
Compiling object.c
Compiling body.c
Compiling zone.c
Compiling room_reset.c
Compiling account.c
Compiling list.c
Compiling property_table.c
Compiling hashtable.c
Compiling map.c
Compiling storage.c
Compiling set.c
set.c: In function ‘gen_set_hash’:
set.c:49: warning: cast from pointer to integer of different size
Compiling buffer.c
Compiling bitvector.c
bitvector.c: In function ‘bitvectorAddBit’:
bitvector.c:103: warning: cast to pointer from integer of different size
bitvector.c: In function ‘bitIsOneSet’:
bitvector.c:180: warning: cast from pointer to integer of different size
bitvector.c: In function ‘bitSet’:
bitvector.c:190: warning: cast from pointer to integer of different size
bitvector.c: In function ‘bitRemove’:
bitvector.c:213: warning: cast from pointer to integer of different size
bitvector.c: In function ‘bitToggle’:
bitvector.c:228: warning: cast from pointer to integer of different size
Compiling numbers.c
Compiling prototype.c
Compiling hooks.c
Compiling parse.c
Compiling near_map.c
Compiling command.c
Compiling filebuf.c
Compiling dyn_vars/dyn_vars.c
dyn_vars/dyn_vars.c: In function ‘variableRead’:
dyn_vars/dyn_vars.c:203: warning: cast to pointer from integer of different size
Compiling set_val/set_val.c
Compiling olc2/olc.c
Compiling olc2/redit.c
Compiling olc2/zedit.c
Compiling olc2/esedit.c
Compiling olc2/medit.c
Compiling olc2/oedit.c
Compiling olc2/bedit.c
Compiling olc2/accedit.c
Compiling olc2/pcedit.c
Compiling olc2/protedit.c
Compiling olc2/olc_extender.c
Compiling editor/editor.c
Compiling editor/notepad.c
Compiling items/items.c
Compiling items/portal.c
Compiling items/iedit.c
Compiling items/container.c
Compiling items/furniture.c
Compiling items/worn.c
Compiling scripts/scripts.c
Compiling scripts/pychar.c
scripts/pychar.c: In function ‘init_PyChar’:
scripts/pychar.c:2233: warning: dereferencing type-punned pointer will break strict-aliasing rules
scripts/pychar.c:2233: warning: dereferencing pointer ‘PyChar_Type.375’ does break strict-aliasing rules
scripts/pychar.c:2233: warning: dereferencing pointer ‘PyChar_Type.375’ does break strict-aliasing rules
scripts/pychar.c:2233: note: initialized from here
Compiling scripts/pyobj.c
scripts/pyobj.c: In function ‘init_PyObj’:
scripts/pyobj.c:1415: warning: dereferencing type-punned pointer will break strict-aliasing rules
scripts/pyobj.c:1415: warning: dereferencing pointer ‘PyObj_Type.239’ does break strict-aliasing rules
scripts/pyobj.c:1415: warning: dereferencing pointer ‘PyObj_Type.239’ does break strict-aliasing rules
scripts/pyobj.c:1415: note: initialized from here
Compiling scripts/pymud.c
scripts/pymud.c: In function ‘mud_log_string’:
scripts/pymud.c:460: warning: format not a string literal and no format arguments
Compiling scripts/pymudsys.c
Compiling scripts/pyhooks.c
Compiling scripts/pyroom.c
scripts/pyroom.c: In function ‘init_PyRoom’:
scripts/pyroom.c:1261: warning: dereferencing type-punned pointer will break strict-aliasing rules
scripts/pyroom.c:1261: warning: dereferencing pointer ‘PyRoom_Type.218’ does break strict-aliasing rules
scripts/pyroom.c:1261: warning: dereferencing pointer ‘PyRoom_Type.218’ does break strict-aliasing rules
scripts/pyroom.c:1261: note: initialized from here
Compiling scripts/pyexit.c
scripts/pyexit.c: In function ‘init_PyExit’:
scripts/pyexit.c:738: warning: dereferencing type-punned pointer will break strict-aliasing rules
scripts/pyexit.c:738: warning: dereferencing pointer ‘PyExit_Type.117’ does break strict-aliasing rules
scripts/pyexit.c:738: warning: dereferencing pointer ‘PyExit_Type.117’ does break strict-aliasing rules
scripts/pyexit.c:738: note: initialized from here
Compiling scripts/pyaccount.c
scripts/pyaccount.c: In function ‘init_PyAccount’:
scripts/pyaccount.c:319: warning: dereferencing type-punned pointer will break strict-aliasing rules
scripts/pyaccount.c:319: warning: dereferencing pointer ‘PyAccount_Type.67’ does break strict-aliasing rules
scripts/pyaccount.c:319: warning: dereferencing pointer ‘PyAccount_Type.67’ does break strict-aliasing rules
scripts/pyaccount.c:319: note: initialized from here
Compiling scripts/pysocket.c
scripts/pysocket.c: In function ‘init_PySocket’:
scripts/pysocket.c:602: warning: dereferencing type-punned pointer will break strict-aliasing rules
scripts/pysocket.c:602: warning: dereferencing pointer ‘PySocket_Type.110’ does break strict-aliasing rules
scripts/pysocket.c:602: warning: dereferencing pointer ‘PySocket_Type.110’ does break strict-aliasing rules
scripts/pysocket.c:602: note: initialized from here
Compiling scripts/script_editor.c
Compiling scripts/pyplugs.c
Compiling scripts/pyevent.c
Compiling scripts/pystorage.c
scripts/pystorage.c: In function ‘init_PyStorage’:
scripts/pystorage.c:561: warning: dereferencing type-punned pointer will break strict-aliasing rules
scripts/pystorage.c:568: warning: dereferencing type-punned pointer will break strict-aliasing rules
scripts/pystorage.c:561: warning: dereferencing pointer ‘PyStorageSet_Type.86’ does break strict-aliasing rules
scripts/pystorage.c:561: warning: dereferencing pointer ‘PyStorageSet_Type.86’ does break strict-aliasing rules
scripts/pystorage.c:561: note: initialized from here
scripts/pystorage.c:568: warning: dereferencing pointer ‘PyStorageList_Type.88’ does break strict-aliasing rules
scripts/pystorage.c:568: warning: dereferencing pointer ‘PyStorageList_Type.88’ does break strict-aliasing rules
scripts/pystorage.c:568: note: initialized from here
Compiling scripts/pyauxiliary.c
Compiling scripts/triggers.c
Compiling scripts/trigedit.c
Compiling scripts/trighooks.c
Compiling scripts/pyolc.c
Compiling time/time.c
Compiling socials/socials.c
Compiling socials/socedit.c
Compiling alias/alias.c
Compiling help2/help.c
Compiling help2/hedit.c
/usr/bin/ld: cannot find -lpython2.4
collect2: ld returned 1 exit status
make: *** [all] Error 1
Reply | Threaded
Open this post in threaded view
|

Re: Trying to Compile on Ubuntu 10.10

trilioth
This post has NOT been accepted by the mailing list yet.
In reply to this post by trilioth
make you can tell me how you got python2.4? Did you have to compile? Is there some repository I can't find? The error suggest I need libpython2.4, but I can't seem to find a way for me to install it. I'd hate to have to compile it. I am 0 for 10 on compiling anything for linux.
Reply | Threaded
Open this post in threaded view
|

Re: Trying to Compile on Ubuntu 10.10

trilioth
This post has NOT been accepted by the mailing list yet.
Here is the answer.

I never knew this guide existed. I found it by accident while going crazy over search terms.

From the page:

You will need to install a couple of extra packages if you haven't already: sudo apt-get install build-essentials python-dev zlib1g-dev

src/scripts/module.mk:

Change python2.4 for python2.6 in the C_FLAGS and LIBS defs

# the folder where python headers are located
C_FLAGS += -I$(PYTHONTOP)/python2.6

# libraries we have to include.
LIBS += -Xlinker -export-dynamic -lm -ldl -lutil -L/usr/lib/python2.6/config -lpython2.6


I just needed to change 2.4 to 2.6.