Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 206903 - games-mud/crystal ~amd64 compile fix
Summary: games-mud/crystal ~amd64 compile fix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: AMD64 Linux
: Low enhancement (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-21 18:19 UTC by Dave V
Modified: 2011-07-27 18:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dave V 2008-01-21 18:19:37 UTC
A one line fix makes crystal nice and stable on amd64. (not sure how/why this would compile on x86 and not amd64 or any other arch).

$ make
g++ -DHAVE_CONFIG_H -DLOCALEDIR=\"\" -DPACKAGE=\"crystal\"     -g -O2 -c Socket.cc
Socket.cc: In member function 'int Socket::read(char*, int)':
Socket.cc:216: error: cannot convert 'size_t*' to 'socklen_t*' for argument '5' to 'int getsockopt(int, int, int, void*, socklen_t*)'
make: *** [Socket.o] Error 1

$ diff Socket.cc Socket.cc.new 
215c215
<     size_t osz = sizeof(int);
---
>     socklen_t osz = sizeof(int);
Comment 1 Tupone Alfredo gentoo-dev 2011-07-27 18:15:17 UTC
Fixed in 01 May 2008 by Tristan Heaven