Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Development

Archive::Development Archive area for Development's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 02-09-2002, 11:56 AM
misanthropicfnd
Fire Beetle
 
Join Date: Feb 2002
Posts: 19
Default Mutex declaration for Linux

I figured out how to get rid of the static instantiation of the mutexes using pthreads.

For pthread.h to define the necessary symbols _GNU_SOURCE needs to be declared. Probably easiest to add -D_GNU_SOURCE to the COPTS in the makefiles. While editing the makefiles adding -DLUCLIN is also a good idea.

Then, the code commented out above the current static assignment can be uncommented, and the static initialization can be removed.

While unclear if it has any beneficial effects, the world server still works properly (as properly as I've seen it work on linux that is) after these changes and a few others I had to made to get it to build.

Attached is the code & makefile from world as an example of the changes to the makefile & code. They also include a few of the other changes I've made. It also appears that console.cpp wasn't initializing the mutex referenced throughout the code so that change is in here as well.

Hope this is useful...
Reply With Quote
  #2  
Old 02-09-2002, 02:15 PM
misanthropicfnd
Fire Beetle
 
Join Date: Feb 2002
Posts: 19
Default

If somemone wants to try building the rest of 0.2.2 on linux, I've attached the remaining zips. I had to split them up to stay under the file size limit. Unzip them all in the same directory & give it a try. With any luck it might even work.
Reply With Quote
  #3  
Old 02-09-2002, 02:16 PM
misanthropicfnd
Fire Beetle
 
Join Date: Feb 2002
Posts: 19
Default

And now for zone...
Reply With Quote
  #4  
Old 02-09-2002, 02:17 PM
misanthropicfnd
Fire Beetle
 
Join Date: Feb 2002
Posts: 19
Default

...
Reply With Quote
Reply


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 07:28 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