Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Linux Servers

Support::Linux Servers Support forum for Linux EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 01-28-2012, 08:03 PM
Harcourt
Sarnak
 
Join Date: Jul 2011
Posts: 33
Default

Thanks for the responses. I am building on 64-bit Linux. I rebuilt azone2 as a 32-bit application and it runs fine.

And most importantly, the mobs in Moors follow the terrain now.

For any Fedora folks out there, you'll need:
zlib-devel-1.2.5-6.fc16.i686

I looked into building a working 64-bit version. There is some sort of sizing error, as the following is 20 bytes long rather than 12. Probably alignment.

Code:
struct struct_header {
  unsigned long offset;
  char magicCookie[4];
  unsigned long unknown;
} typedef struct_header;
PS: Reading the structure field-by-field may be the easiest solution
Reply With Quote
  #2  
Old 01-29-2012, 12:19 AM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,742
Default

It could be alignment or it could be that unsigned long is actually 64 bits.

The output from this would determine either or both cases:

Code:
#include <stdio.h>
#include <stddef.h>

struct struct_header {
	unsigned long offset;
	char magicCookie[4];
	unsigned long unknown;
} typedef struct_header;

int main()
{
	printf("sizeof %u %u \n", sizeof(struct_header), sizeof(unsigned long));
	printf("offset %u %u\n", offsetof(struct_header,magicCookie), offsetof(struct_header,unknown));
	return 0;
}
Reply With Quote
  #3  
Old 01-29-2012, 02:44 AM
Harcourt
Sarnak
 
Join Date: Jul 2011
Posts: 33
Default

The output:
sizeof 24 8
offset 8 16

My understanding of the C++ standard was that unsigned long is always 32 bits. If you want a 64-bit integer use "long long" or "unsigned long long". But that does not appear to be the case anymore.

In any event, I'll change the headers to use uint32 and see if that helps. At best a nitpick since I can run it as a 32-bit application. But I spent enough time looking into this, so I might as well track down the source of the problem.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 06:12 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3