Date: | Wed, 25 Mar 2009 00:49:48 +0800 |
---|---|
From: | Sitos Lin <sitos.lin@xxxxxxxxx> |
Subject: | Re: [Gems-users] Failed to load module 'opal' "undefined symbol: _ZN22generic_cache_templateI21generic_cache_block_tE18registerCheckpointEP8confio_t" |
Hi all: I can answer one of my questions now. When I try to move the failing function from cache.C to cache.h, there are three functions needed to be moved: registerCheckpoint, OracleAccess, and Warmup. I copied the entire functions definition. For example, to copy registerCheckpoint, the following lines are copied from cache.C to cache.h.
template < class BlockType > int generic_cache_template < BlockType >::registerCheckpoint(confio_t * conf) { int rc; rc = conf->register_attribute(name, generic_cache_template < BlockType >::get_cache_data, (void *) this, generic_cache_template < BlockType >::set_cache_data, (void *) this);
return rc; } other functions are also copied entirely. The function definitions in cache.C is eliminated, because they are not needed any more. Besides copying the function definitions, the "confio.h" should be included in cache.h, because registerCheckpoint uses the structure confio_t which is declared in confio.h.
After moving the functions, I compiled opal module again. Then, I can successfully load opal in Simics. If somebody encountered this problem, he/she can try this approach. Best regards,
Sitos 2009/3/24 Sitos Lin <sitos.lin@xxxxxxxxx> Hi all: |
[← Prev in Thread] | Current Thread | [Next in Thread→] |
---|---|---|
|
Previous by Date: | [Gems-users] question about make request to the memory system, Guoqiang Yang |
---|---|
Next by Date: | [Gems-users] memoryBits: 0 memorySizeBits: 29 Address: [0xff164000, line 0xff164000]error: limit exceeded, Berkin Ozisikyilmaz |
Previous by Thread: | [Gems-users] Failed to load module 'opal' "undefined symbol: _ZN22generic_cache_templateI21generic_cache_block_tE18registerCheckpointEP8confio_t", Sitos Lin |
Next by Thread: | [Gems-users] failed when CCLD ruby.so, lenglihello |
Indexes: | [Date] [Thread] |