[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Compiling the server
. . -> [Subject]  Compiling Error
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Compiling Error

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


Posted by Cyb Ercho Lin   Argentina  (9 posts)  [Biography] bio
Date Tue 05 Apr 2016 06:59 PM (UTC)
Message
Hi

try to compile the smaug with lua but throws me the following errors , I hope you can guide me to solve :

Compiling o/mt19937ar.o....
Compiling o/account.o....
Compiling o/trivia.o....
Compiling o/enhance.o....
Compiling o/delivery.o....
liblua.a(lauxlib.o):lauxlib.c:(.text+0x82): undefined reference to `__errno'
liblua.a(lauxlib.o):lauxlib.c:(.text+0xe6): undefined reference to `__getreent'
liblua.a(lauxlib.o):lauxlib.c:(.text+0x1256): undefined reference to `__getreent '
liblua.a(lbaselib.o):lbaselib.c:(.text+0x9ba): undefined reference to `__getreen t'
liblua.a(lbaselib.o):lbaselib.c:(.text+0x9cd): undefined reference to `__getreen t'
liblua.a(lbaselib.o):lbaselib.c:(.text+0xa51): undefined reference to `__getreen t'
liblua.a(ldblib.o):ldblib.c:(.text+0x2a1): more undefined references to `__getre ent' follow
liblua.a(liolib.o):liolib.c:(.text+0x11): undefined reference to `__errno'
liblua.a(liolib.o):liolib.c:(.text+0xd91): undefined reference to `__errno'
liblua.a(liolib.o):liolib.c:(.text+0xe7d): undefined reference to `__errno'
liblua.a(liolib.o):liolib.c:(.text+0x1118): undefined reference to `__getreent'
liblua.a(liolib.o):liolib.c:(.text+0x1136): undefined reference to `__getreent'
liblua.a(liolib.o):liolib.c:(.text+0x1154): undefined reference to `__getreent'
liblua.a(loslib.o):loslib.c:(.text+0x81): undefined reference to `__errno'
liblua.a(ldo.o):ldo.c:(.xdata+0x14): undefined reference to `__gxx_personality_s eh0'
/usr/bin/ld: smaug(.pdata): relocation ".text+0x0 (type rva32)" goes out of rang e
/usr/bin/ld: final link failed: Invalid operation
collect2: error: ld returned 1 exit status
make[1]: *** [smaug] Error 1
make: *** [all] Error 2

Using
Linux 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Ubuntu 14.04
Lua 5.1.5
SmaugFUSS
[Go to top] top

Posted by Nick Gammon   Australia  (21,321 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Tue 05 Apr 2016 08:51 PM (UTC)
Message
Did you compile liblua.a yourself? These are linking errors.

How did you compile Lua?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Cyb Ercho Lin   Argentina  (9 posts)  [Biography] bio
Date Reply #2 on Tue 05 Apr 2016 08:58 PM (UTC)

Amended on Tue 05 Apr 2016 08:59 PM (UTC) by Cyb Ercho Lin

Message
Nick Gammon said:

Did you compile liblua.a yourself? These are linking errors.

How did you compile Lua?




If I compile the same lua, lua-5.1.5.tar.gz download the package of www.lua.org , I followed the instructions in the INSTALL file that said "make linux install" and install without problems.


root@server:/home/test# lua
Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio
>

I also think they are linking problems but I searched on google, in this forum and in the lua but I have not found the answer.

which is what would have to review or correct ?
[Go to top] top

Posted by Nick Gammon   Australia  (21,321 posts)  [Biography] bio   Forum Administrator
Date Reply #3 on Wed 06 Apr 2016 05:55 AM (UTC)

Amended on Wed 06 Apr 2016 05:56 AM (UTC) by Nick Gammon

Message
Quote:

... try to compile the smaug with lua ...


I can try to reproduce this, but I need to know exactly what Smaug "with Lua" you are compiling.

Which version of Smaug, for example? Link to download?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Cyb Ercho Lin   Argentina  (9 posts)  [Biography] bio
Date Reply #4 on Wed 06 Apr 2016 04:49 PM (UTC)
Message
smaug FUSS 1.9 Download here:

http://www.smaugmuds.org/files/download/165/
[Go to top] top

Posted by Nick Gammon   Australia  (21,321 posts)  [Biography] bio   Forum Administrator
Date Reply #5 on Wed 06 Apr 2016 08:45 PM (UTC)
Message
I got it to link OK, so it must be something with your Lua build. See the suggestions in this thread:

http://www.gammon.com.au/forum/?id=12597

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Cyb Ercho Lin   Argentina  (9 posts)  [Biography] bio
Date Reply #6 on Wed 06 Apr 2016 10:26 PM (UTC)
Message
Nick Gammon said:

I got it to link OK, so it must be something with your Lua build. See the suggestions in this thread:

http://www.gammon.com.au/forum/?id=12597



Amazing! I read the link you gave me, review the data and finally I could compile the smaug.

but want to run the mud with ./startup or /smaug 4000 marks the following error:

Thu Apr 7 00:24:33 2016 :: Loading bans
Thu Apr 7 00:24:33 2016 :: Done.
Thu Apr 7 00:24:33 2016 :: Loading reserved names
Thu Apr 7 00:24:33 2016 :: Loading corpses
Thu Apr 7 00:24:33 2016 :: Loading Immortal Hosts
Thu Apr 7 00:24:33 2016 :: Done.
Thu Apr 7 00:24:33 2016 :: Loading Projects
*** Error in `../src/smaug': double free or corruption (!prev): 0x0000000001914b10 ***
Aborted

mud@mud:~/CMud/area$
[Go to top] top

Posted by Nick Gammon   Australia  (21,321 posts)  [Biography] bio   Forum Administrator
Date Reply #7 on Thu 07 Apr 2016 04:06 AM (UTC)
Message
You should run from the area directory, and then type:


../src/smaug 4000


If that still crashes, run it under gdb, like this:


gdb ../src/smaug 4000


Then read my post about using gdb:

http://www.gammon.com.au/gdb

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (21,321 posts)  [Biography] bio   Forum Administrator
Date Reply #8 on Thu 07 Apr 2016 04:07 AM (UTC)
Message
Try first standard Smaug 1.9 and see if that crashes (without any Lua stuff). If that works OK, then whatever-you-did to add Lua is the problem.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] 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.


2,515 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]