For shmat errors see this thread:
http://eqemulator.net/forums/showthread.php?t=23186
You can ignore the posts about the items, they are in the newest CVS (which is why you are getting the error) the second page has a few solutions to the problem, basically you have to increase your shared memory size.