Compiling UOX3 on Linux

Forum where anything UOX3-related goes - including, but not limited to: newbie-support, ideas, general questions, comments, etc and-so-forth.
Post Reply
GhostTyper
UOX3 Neophyte
Posts: 26
Joined: Sun Sep 18, 2005 2:00 pm
Has thanked: 0
Been thanked: 0
Contact:

Compiling UOX3 on Linux

Post by GhostTyper »

Compiling UOX3 on linux was no problem. it compiled without any errors. (I compiled the version in the downloads section, cause the cvs version had various bugs!)

like said: uox3 compiled without any errors!

but:

if i connect to the server i can login, and the "create player" screen comes up. but then, after continunging the linux server segmentation faults.

why?

the windows version is running without any problems.
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

Various bugs on the CVS version.... mind expanding on that? It will soon be the next official release, and I've yet to get any bug reports on it....


As for the segmentation fault on linux, I really can't say. Is there any way to get a dump of where it died (what line, what function, etc)? Also what client version were you using?
Scott
GhostTyper
UOX3 Neophyte
Posts: 26
Joined: Sun Sep 18, 2005 2:00 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by GhostTyper »

samurai empire, latest.

i compiled the source from the page, not the cvs version.
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

The 5.0.x clients have various issues with the UOX3 version available in the UOX3.org downloads section.

However you reported the CVS version having various issues (your reasoning for using the source available on this site). Can you expand on what those issues are? As I've noted, I've yet to get a single bug report for the CVS source.
Scott
GhostTyper
UOX3 Neophyte
Posts: 26
Joined: Sun Sep 18, 2005 2:00 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by GhostTyper »

i need to compile the cvs version again for posting the error messages. it didn't compile cause of some "errors" reported by gcc.

and for the linux version, you say i shuldt use a older client? would the latest third dawn or reannisace client run well?
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

I compiled UOX3 on mingw32 (which uses gcc) and found a couple problems. Thus I fixed those issues and made a new commit to the CVS today. Anonymous access can take up to 24 hours to be updated to the current CVS, but when it's updated I'd appreciate if you give it a go.

As for the older release, any client higher than 3.x and lower than 5.x (IE the AoS clients) should have no problem working with it.
Scott
GhostTyper
UOX3 Neophyte
Posts: 26
Joined: Sun Sep 18, 2005 2:00 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by GhostTyper »

i will compile the new cvs version this afternoon (CET).

is there a solution, blocking bad clients? cause someone connecting to this shard using samurai empire willl crash the server. :-/
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

Well any server crash I would like to fix, ultimately.

But yes, we do need to implement a method for users to block certain clients.
Scott
GhostTyper
UOX3 Neophyte
Posts: 26
Joined: Sun Sep 18, 2005 2:00 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by GhostTyper »

tried to compile the cvs version. compilation aborted with following error message

Code: Select all

In file included from UOXStdHeaders.h:95, 
                 from Prerequisites.h:59, 
                 from uox3.h:29, 
                 from cChar.cpp:40: 
socket_interface.h:38:1: warning: "INADDR_NONE" redefined 
In file included from /usr/include/netdb.h:28, 
                 from socket_interface.h:26, 
                 from UOXStdHeaders.h:95, 
                 from Prerequisites.h:59, 
                 from uox3.h:29, 
                 from cChar.cpp:40: 
/usr/include/netinet/in.h:176:1: warning: this is the location of the 
previous definition 
cChar.cpp: In constructor `UOX::CChar::CChar()': 
cChar.cpp:172: error: invalid conversion from `unsigned char' to ` 
   std::_Rb_tree_node<std::pair<const UOX::ItemLayers, UOX::CItem*> >*' 
cChar.cpp:172: error:   initializing argument 1 of ` 
   std::_Rb_tree_iterator<_Val, _Ref,  
   _Ptr>::_Rb_tree_iterator(std::_Rb_tree_node<_Val>*) [with _Val =  
   std::pair<const UOX::ItemLayers, UOX::CItem*>, _Ref = std::pair<const  
   UOX::ItemLayers, UOX::CItem*>&, _Ptr = std::pair<const 
UOX::ItemLayers,  
   UOX::CItem*>*]' 
make: *** [cChar.o] Error 1 
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

viewtopic.php?t=617

Another user reported the issue and a fix is posted in that thread. :)
Scott
GhostTyper
UOX3 Neophyte
Posts: 26
Joined: Sun Sep 18, 2005 2:00 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by GhostTyper »

i couldn't get it working. it continues crashing on every client i tried (2.x,4.x,5.x).

the server crashes if i try to create a new char.

i can give you a shell, and put my uox version on it, if you want to see. :D
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

I'll have a look at the CreateCharacter routines when I get home, if I don't see anything obvious, we'll see about adding some debug console spam to narrow down where exactly it is crashing.

I'm determined to find this bug, if it's crashing on linux, then it's probably secretly not working properly in windows.
Scott
GhostTyper
UOX3 Neophyte
Posts: 26
Joined: Sun Sep 18, 2005 2:00 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by GhostTyper »

did you find something?
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

Been a busy couple of weeks...

I uploaded a new build to the CVS just now, so it will take a few hours for anonymous CVS to catch up. Once it is up there, try using it and see if it fixes the problem for you.
Scott
GhostTyper
UOX3 Neophyte
Posts: 26
Joined: Sun Sep 18, 2005 2:00 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by GhostTyper »

ok, i will try this afternoon (22 CET)
Post Reply