All,

I've found a solution to the problem concerning loading the 'pfil' module on Solaris.

The problem was that, if 'pfil' is built with gcc, it fails to load with the message:

        krtld: /kernel/drv/sparcv9/pfil: undefined symbol 'memset'
        krtld: WARNING: mod_load: cannot load module 'pfil'

The solution is to build the module with the '-fno-hosted' flag. This tells gcc to assume that the standard shared libraries, libc.so in this case, are not available at run time.

The documentation specifically says that this flag is useful for building kernel items.

George Karas

------------------------------------
JPL Information Services
Jet Propulsion Laboratory
4800 Oak Grove Drive
M/S B-2923
Pasadena, CA 91109-8099



Reply via email to