From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,ac224eeceac97358 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-07-08 19:10:44 PST Path: archiver1.google.com!newsfeed.google.com!postnews1.google.com!not-for-mail From: banny52@yahoo.com (Ginny E. Kim) Newsgroups: comp.unix.tru64 Subject: Re: Load loadable kernel driver Date: 8 Jul 2001 19:10:43 -0700 Organization: http://groups.google.com/ Message-ID: <2f6bec0a.0107081810.4e04cf21@posting.google.com> References: <2f6bec0a.0106280036.16304a21@posting.google.com> <3B3C86C6.D19FDE67@zk3.dec.com> <2f6bec0a.0107012239.13e110b6@posting.google.com> <3B4617A8.CF8A5A53@zk3.dec.com> NNTP-Posting-Host: 211.117.39.59 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 994644643 10264 127.0.0.1 (9 Jul 2001 02:10:43 GMT) X-Complaints-To: groups-support@google.com NNTP-Posting-Date: 9 Jul 2001 02:10:43 GMT Xref: archiver1.google.com comp.unix.tru64:3230 This message is very helpful to me. By the way, I have OSF1 Tru64UNIX V4.0F using doconfig ...I rebuilt Tru64 UNIX module.. But, I couldn't find "fr_checkp" symbol although new Tru64UNIX module had "inet.mod". Do I need to patch specially? How can I get new Tru64UNIX module having "fr_checkp" symbol? Joe Mario wrote in message news:<3B4617A8.CF8A5A53@zk3.dec.com>... > Ginny: > You have an unresolved symbol in the module you are compiling. > The name of that symbol is "fr_checkp". That symbol is > defined in the Tru64 UNIX module called "inet.mod". > I suspect inet.mod is an optional module in a kernel > configuration. > > Try running doconfig again, configuring in all network > related modules to ensure that inet.mod gets linked into > your newly rebuilt /vmunix. You can verify it is by the > following command: > nm -xv /vmunix |grep fr_checkp > > If the fr_checkp symbol is in the new vmunix, reboot the > system with the new vmunix and then then try reloading your > module. > > BTW, on another note, the "subsystem error : Not owner" > messages you were seeing had nothing to do with your problem, > nor were they ownership problems. There was a kloadsrv bug > that incorrectly reported a "file not found" error message > as "Not owner". Kloadsrv has a search path that it uses > to find the modules it will load. The "Not owner" message > means that it didn't find it in the first directory of the > search path. Not a problem in your case. > This bug has since been fixed. > Joe > > > "Ginny E. Kim" wrote: > > > > Joe Mario wrote in message news:<3B3C86C6.D19FDE67@zk3.dec.com>... > > > "Ginny E. Kim" wrote: > > > > > > > > My system is "OSF1 Tru64UNIX V4.0F 1229 alpha". > > > > I have one loadable kernel module and I want to load it. > > > > I've already read documents(Creating Dynamically Configurable Kernel > > > > Subsystems) > > > > I did as they suggested..but, I couldn't succeed it. > > > > > > > > My method > > > > 1. if I put attributes of my module in /etc/sysconfigtab, and put my > > > > module in /sys/BINARY/ directory and /subsys/ > > > > I got following error after excuting "sysconfig -c mymodule" > > > > framework error : unresolved symbol name > > > > ... > > > > How can I do to load my module to kernel? > > > > and How can I compile my module(mymodule.mod)? > > > > > > Your loadable module won't load if there is an unresolved symbol. > > > The name of the unresolved symbol should be reported to the > > > console window. > > > > > > If you want to see the name of the unresolved symbol reported to a > > > file, you can stop kloadsrv and then restart it with the following > > > syntax: > > > /sbin/kloadsrv -log /tmp/kls.log -d 15 < /dev/console > /dev/console > > > 2>&1 > > > > > > Joe Mario > > > Compaq Tru64 UNIX Development Environment > > > > I did it as your advice...and, > > As results of "syslog -c mymodule ", I got same message-framework > > error : unresolved symbol name..and I got console message following... > > > > ============================= > > cfgmgr: starting > > protocol version: 2 > > request from user: root > > request from host: compaq2 > > waiting for new packet > > packet received-> > > subsystem: mymodule > > operation: CFG_OP_CONFIGURE > > data size: 0 > > looking for method /subsys/mymodule.mth > > looking for method /var/subsys/mymodule.mth > > executing method for preconfiguration: > > /var/subsys/mymodule.mth preconfigure mymodule 1 > > device.mth: preconfiguration started for the "mymodule" device driver > > device.mth: Warning: Unable to find a Module_Config line in the > > sysconfigtab database > > device.mth: Psuedo Driver configured, no kernel topology > > structure created for this driver. > > device.mth: preconfigure returned successfully > > calling kmodcall to configure mymodule > > calling kloadsrv to load mymodule > > attaching to kloadsrv > > ldr_flag=0x100 > > requesting kloadsrv to perform load > > recognizer: > > Warning: /subsys/mymodule.mod is improperly built. > > This module was built without the recommended kernel switches. > > The -Wf,-static flag was not specified during the compilation. > > Unpredictable runtime behavior may result without the correct > > flags. See the example in /usr/examples/cfgmgr/README for the > > correct compile and link flags. > > > > kloadsrv: kernel_load("/subsys/mymodule.mod", x, module) = 256 > > ldr_resolve_symbol: error looking up package kernel symbol fr_checkp: > > Unresolved symbol name > > kloadsrv load return 93 > > load failed: unresolved symbol name > > sending reply packet > > waiting for new packet > > cfgmgr: read failed > > (errno 93) > > ============================ > > > > So, After Seeing the example in /usr/examples/cfgmgr/README, I comiled > > mymodule for same comilpe and link flags. > > (#cc -c -Wb,-static -Wco,-nofloat mymodule.c > > #ld -r -dc -o mymodule.mod mymodule.o) > > > > Do you have solutions?.....I really want to get the solutions.....