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

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #1  
Old 10-14-2014, 09:21 PM
jdoran
Hill Giant
 
Join Date: Jul 2012
Posts: 212
Default

If you comment those externs out and recompile, you will either see where they are used, or learn that they are not needed.

A search of the source code will also show the usages. For example: spdat.cpp has three references to SPDAT_RECORDS. eqemu_error.cpp has two references to CatchSignal, timeoutmgr.cpp has two references to timeout_manager, and spdat.cpp has a metric buttload of references to 'spells'.

The definitions may similarly be found: CatchSignal is defined in zone/net.cpp, as is SPDAT_RECORDS. I assume the other symbols are also present someplace.
Reply With Quote
  #2  
Old 10-15-2014, 07:26 AM
CoryWalker
Fire Beetle
 
Join Date: Oct 2014
Posts: 23
Default

I also assumed that the definitions would be found easily but my assumption was wrong.

The externs are obviously referenced internally in libcommon.a and must be defined by the application that uses libcommon.a - and that's what makes this less straightforward.

The project I'm working on is to resolve a series of segmentation faults that I was getting when attempting to execute these applications on FreeBSD using the project's original build system. I created a very small test application - all it does is link against libcommon.a and then exist - to see if any application linked with libcommon.a could run without instantly crashing.

I first saw these 4 linker errors when I created my test application. I assumed that the other applications such as shared_memory, world, and zone would define these variables. However, the shared_memory code base defines none of these variables.

How does shared_memory ever get linked if the application files never define these externs?
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 04:31 PM.


 

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