Scott Aitchison wrote: > Hi all. > > I'm trying to call a function from a kernel module that is within the kernel > (ip_cksum). However, everytime I load the module, I get an "undefined > symbol" message for it. > > I think I'm missing something basic here, but I'm not sure what it is. What > options do I have to pass to "ld" when linking the module to give it access > to functions like ip_cksum? > > Thanks, > -Scott. > > > This message posted from opensolaris.org > _______________________________________________ > opensolaris-code mailing list > [email protected] > http://mail.opensolaris.org/mailman/listinfo/opensolaris-code >
You need to set up a dependency to the right module. ip_cksum is probably in drv/ip, so -N drv/ip in your ld command line. Calling ip_cksum is probably not a good idea, btw. Its not a public function, and subject to change. -- Garrett D'Amore, Principal Software Engineer Tadpole Computer / Computing Technologies Division, General Dynamics C4 Systems http://www.tadpolecomputer.com/ Phone: 951 325-2134 Fax: 951 325-2191 _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
