Dynamic loading?

From: Richard Hu (rhu_at_opnet_dot_com)
Date: Wed Sep 28 2005 - 11:33:18 PDT

  • Next message: Paul H. Hargrove: "Re: Dynamic loading?"
    Hi,
    
    Is it possible to dynamically load the libcr.so library while the program 
    is running?  For example, I have a program that utilizes checkpoint/restart 
    but only when the user has turned on that particular option.  Therefore, in 
    the initialization, I check to see if a) the user has turned on the 
    checkpoint option and then b) see if the libcr.so library exists by 
    dynamically loading it.  However, this approach has been causing me some 
    problems so I am wondering if it is even possible.  Is it the case where 
    the libcr.so library must be loaded before the program starts?
    
    I also have another question.  I realize that support for Linux Kernel 2.6 
    is experimental but I was hoping you could still answer the question.  I am 
    attempting to run checkpoint/restart on Red Hat Enterprise 4 on an x86 
    machine.  When I build, instead of getting the usual vmadump_blcr.o and 
    blcr.o files, I get vmadump_blcr.ko and blcr.ko.  When I attempt to load 
    these modules into the kernel, I get an error message as follows:
    
    insmod: error inserting 
    '/usr/local/lib/blcr/2.6.9-5.ELsmp/vmadump_blcr.ko': -1 Unknown symbol in 
    module
    
    Do you have any suggestions as to what the problem might be?  I am using 
    gcc 3.4.3.
    
    Thanks,
    Richard
    

  • Next message: Paul H. Hargrove: "Re: Dynamic loading?"