what is the boot_DynaLoader function's use?

"Alexander King" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
I compiled the subagent into the snmpd,but I got the error like this:
  
 
gcc -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/CORE -o .libs/snmpd .libs/snmpd.o -Wl,-E -Wl,-rpath -Wl,/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/CORE  -L/home/branch5118/manager/snmp/net-snmp-5.4.2.1/agent/.libs -L/home/branch5118/manager/snmp/net-snmp-5.4.2.1/agent/helpers/.libs -L/home/branch5118/manager/snmp/net-snmp-5.4.2.1/snmplib/.libs -L/home/branch5118/manager/snmp/net-snmp-5.4.2.1/snmplib -L/home/branch5118/manager/snmp/net-snmp-5.4.2.1/agent/helpers ./.libs/libnetsnmpagent.so helpers/.libs/libnetsnmphelpers.so ./.libs/libnetsnmpmibs.so /home/branch5118/manager/snmp/net-snmp-5.4.2.1/agent/helpers/.libs/libnetsnmphelpers.so /home/branch5118/manager/snmp/net-snmp-5.4.2.1/agent/.libs/libnetsnmpagent.so /home/branch5118/manager/snmp/net-snmp-5.4.2.1/snmplib/.libs/libnetsnmp.so ../snmplib/.libs/libnetsnmp.so -lcrypto -L/usr/local/lib64 -L/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/CORE -lperl -lm -ldl -lcrypt -lpthread
./.libs/libnetsnmpagent.so: undefined reference to `boot_DynaLoader'
collect2: ld returned 1 exit status
make[1]: *** [snmpd] Error 1
make[1]: Leaving directory `/home/branch5118/manager/snmp/net-snmp-5.4.2.1/agent'
make: *** [subdirs] Error 1

  
 I found the function in th file snmp_perl.c :
 [SKIP]
 
void            boot_DynaLoader(CV * cv);
 void
xs_init(void)
{
    char            myfile[] = __FILE__;
    char            modulename[] = "DynaLoader::boot_DynaLoader";
    /*
     * DynaLoader is a special case 
     */
    newXS(modulename, boot_DynaLoader, myfile);
}
  
 [SKIP]
  
 My uit net-snmp sub-system communication with other thread and mapping data via socket,initializing just like this:
  
  
 /** Initializes the uit module */
void
init_uit(void)
{
     int uitsocket = -1;
    char *ip = "127.0.0.1";
     printf("InitializingAA \n");
     system( "echo A >> /home/net-snmp/uit.txt" );
     system( "echo B >> /home/net-snmp/uit.txt" );
     if( ses_NetworkOpen( ip, &uitsocket ) == FAILURE ){
        return;
    }else{
        printf("InitializingB");
     util_init( uitsocket );
     printf(" InitializingC \n");
  
 [SKIP]
  
 Can anybody give my a word about this?pls.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.