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.
 Entire forum ➜ SMAUG ➜ Compiling the server ➜ Ubuntu 20.04 problem...

Ubuntu 20.04 problem...

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


Posted by Balgur   (7 posts)  Bio
Date Wed 05 Oct 2022 12:32 PM (UTC)
Message
hi, i'm approcing to compile smaugfuss1.9, but i have a lot of errors like:

calendar.c:504:22: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]

In make file i did try to comment:

IMC in Makefile. That at least stops the errors in the imc.c file.
On the line "W_FLAGS" (in Makefile) remove: -Werror

but not compile yet...
I have gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)

Some help? thanks
Top

Posted by Nick Gammon   Australia  (23,121 posts)  Bio   Forum Administrator
Date Reply #1 on Fri 07 Oct 2022 04:57 AM (UTC)
Message
Warnings won't stop it compiling unless you have -Werror flag set.

If there are other messages which actually are errors please post those.

I think there is a flag in the Makefile to omit including IMC at all, which you probably don't need.

- Nick Gammon

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

Posted by Balgur   (7 posts)  Bio
Date Reply #2 on Fri 07 Oct 2022 12:41 PM (UTC)
Message
sorry, i did try the smaugFUSS version 1.9.4 2019-16-03 17:32:06

compiling appear ok, but when insert nohup ./startup &


make -s smaug
Compiling o/imc.o....
Compiling o/act_comm.o....
Compiling o/act_info.o....
Compiling o/act_move.o....
Compiling o/act_obj.o....
Compiling o/act_wiz.o....
Compiling o/ban.o....
Compiling o/boards.o....
Compiling o/build.o....
Compiling o/calendar.o....
Compiling o/chess.o....
Compiling o/clans.o....
Compiling o/color.o....
Compiling o/comm.o....
Compiling o/comments.o....
Compiling o/const.o....
Compiling o/db.o....
Compiling o/deity.o....
Compiling o/dns.o....
Compiling o/fight.o....
Compiling o/handler.o....
Compiling o/hashstr.o....
Compiling o/hint.o....
Compiling o/hotboot.o....
Compiling o/house.o....
Compiling o/imm_host.o....
Compiling o/interp.o....
Compiling o/liquids.o....
Compiling o/magic.o....
Compiling o/makeobjs.o....
Compiling o/mapout.o....
Compiling o/mapper.o....
Compiling o/mccp.o....
Compiling o/misc.o....
Compiling o/mpxset.o....
Compiling o/mssp.o....
Compiling o/mud_comm.o....
Compiling o/mud_prog.o....
Compiling o/news.o....
Compiling o/planes.o....
Compiling o/player.o....
Compiling o/polymorph.o....
Compiling o/renumber.o....
Compiling o/reset.o....
Compiling o/save.o....
Compiling o/services.o....
Compiling o/sha256.o....
Compiling o/shops.o....
Compiling o/skills.o....
Compiling o/special.o....
Compiling o/tables.o....
Compiling o/track.o....
Compiling o/update.o....
Compiling o/variables.o....
Compiling o/weather.o....
Generating dependency file ...
Done compiling mud.
make -s dns
Done compiling DNS resolver.
serena-maurizio@R2-D2:~/C/MUD/extra/SmaugFUSS-master/src$ nohup ./startup &
[1] 9727
serena-maurizio@R2-D2:~/C/MUD/extra/SmaugFUSS-master/src$ nohup: input ignorato e output accodato a 'nohup.out'
nohup: impossibile eseguire il comando './startup': Permesso negato


traslate:
[1] 9727
serena-maurizio @ R2-D2: ~ / C / MUD / extra / SmaugFUSS-master / src $ nohup: input ignored and output appended to 'nohup.out'
nohup: unable to execute command './startup': Permission denied
Top

Posted by Fiendish   USA  (2,533 posts)  Bio   Global Moderator
Date Reply #3 on Sat 08 Oct 2022 04:35 AM (UTC)
Message
Quote:
nohup: unable to execute command './startup': Permission denied

chmod +x startup

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Balgur   (7 posts)  Bio
Date Reply #4 on Sat 08 Oct 2022 06:47 AM (UTC)
Message
when insert chmod +x startup nothing appen..none error and not run server.

Anyway in SRC folder startup.h lacks.. there is only startup.
Top

Posted by Fiendish   USA  (2,533 posts)  Bio   Global Moderator
Date Reply #5 on Sat 08 Oct 2022 06:08 PM (UTC)

Amended on Sat 08 Oct 2022 06:09 PM (UTC) by Fiendish

Message
Try running your nohup command again now.

Doing the command `chmod +x startup` adds the permission to execute the file named startup. You said you got a permission denied to execute startup error message. Therefore, adding the execute permission should fix the problem.

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Balgur   (7 posts)  Bio
Date Reply #6 on Sun 09 Oct 2022 05:59 AM (UTC)
Message
i did try:

serena-maurizio@R2-D2:~/C/MUD/extra/SmaugFUSS-master/src$ chmod +x startup
serena-maurizio@R2-D2:~/C/MUD/extra/SmaugFUSS-master/src$ nohup ./startup &
[1] 10220
serena-maurizio@R2-D2:~/C/MUD/extra/SmaugFUSS-master/src$ nohup: input ignorato e output accodato a 'nohup.out'


return this error: input ignored and output appended to 'nohup.out'
Top

Posted by Nick Gammon   Australia  (23,121 posts)  Bio   Forum Administrator
Date Reply #7 on Sun 09 Oct 2022 08:01 AM (UTC)
Message
Try this:


cd ../area
../src/smaug


That is basically what the startup file does.

- Nick Gammon

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

Posted by Balgur   (7 posts)  Bio
Date Reply #8 on Sun 09 Oct 2022 12:28 PM (UTC)
Message
work! by
cd ../area
../src/smaug

but after some time server block and report this error:

=================================================================
==3542==ERROR: AddressSanitizer: global-buffer-overflow on address 0x5579ebb19598 at pc 0x5579eb80cdf2 bp 0x7ffe041a7470 sp 0x7ffe041a7460
READ of size 4 at 0x5579ebb19598 thread T0
#0 0x5579eb80cdf1 in CalculateCellToCellChanges() /home/serena-maurizio/C/MUD/extra/SmaugFUSS-master/src/weather.c:761
#1 0x5579eb814263 in UpdateWeather() /home/serena-maurizio/C/MUD/extra/SmaugFUSS-master/src/weather.c:1222
#2 0x5579eb7fa77f in update_handler() /home/serena-maurizio/C/MUD/extra/SmaugFUSS-master/src/update.c:2073
#3 0x5579eb56860a in game_loop() /home/serena-maurizio/C/MUD/extra/SmaugFUSS-master/src/comm.c:882
#4 0x5579eb5660d6 in main /home/serena-maurizio/C/MUD/extra/SmaugFUSS-master/src/comm.c:532
#5 0x7efce6516082 in __libc_start_main ../csu/libc-start.c:308
#6 0x5579eb38c30d in _start (/home/serena-maurizio/C/Smaug1.9/src/smaug+0x17f30d)

0x5579ebb19598 is located 16 bytes to the right of global variable 'weatherMap' defined in 'weather.c:90:20' (0x5579ebb19420) of size 360
0x5579ebb19598 is located 40 bytes to the left of global variable 'weatherDelta' defined in 'weather.c:103:20' (0x5579ebb195c0) of size 360
SUMMARY: AddressSanitizer: global-buffer-overflow /home/serena-maurizio/C/MUD/extra/SmaugFUSS-master/src/weather.c:761 in CalculateCellToCellChanges()
Shadow bytes around the buggy address:
0x0aafbd75b260: 04 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
0x0aafbd75b270: 04 f9 f9 f9 f9 f9 f9 f9 01 f9 f9 f9 f9 f9 f9 f9
0x0aafbd75b280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0aafbd75b290: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0aafbd75b2a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0aafbd75b2b0: 00 f9 f9[f9]f9 f9 f9 f9 00 00 00 00 00 00 00 00
0x0aafbd75b2c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0aafbd75b2d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0aafbd75b2e0: 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9
0x0aafbd75b2f0: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00
0x0aafbd75b300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==3542==ABORTING
serena-maurizio@R2-D2:~/C/Smaug1.9/area$
Top

Posted by Fiendish   USA  (2,533 posts)  Bio   Global Moderator
Date Reply #9 on Sun 09 Oct 2022 04:31 PM (UTC)

Amended on Sun 09 Oct 2022 04:33 PM (UTC) by Fiendish

Message
The weather updating code looks bugged to me.

Try applying the changes I proposed here: https://github.com/Arthmoor/SmaugFUSS/issues/5

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Balgur   (7 posts)  Bio
Date Reply #10 on Mon 10 Oct 2022 08:11 AM (UTC)
Message
now work, thanks.
Now i must understand why reboot not work . And maybe some others thinks.
Top

Posted by Nick Gammon   Australia  (23,121 posts)  Bio   Forum Administrator
Date Reply #11 on Tue 11 Oct 2022 09:08 PM (UTC)
Message
Balgur said:

when insert chmod +x startup nothing appen..none error and not run server.


You do not "insert" that command into startup. You do it to the startup file.

If you startup file does not have execute permissions you cannot run it the way you did. An alternative is to do:


sh startup

- 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.


12,646 views.

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.