INSTALLATION ============ First of all, remember to remove the old man pages in section 1! They are (usually) stored in the /usr/man/man1 directory. The new man pages for the utilities are now located in section 8: depmod.8 genksyms.8 insmod.8 kerneld.8 ksyms.8 lsmod.8 modinfo.8 modprobe.8 rmmod.8 The next step is to run the configure script by entering the command: ./configure The build process uses the configure script to figure out a few things about your system before actually compiling anything. Configure takes several command line options which can modify the installation paths. Try './configure --help' for more information. (Minor note: --exec-prefix defaults to / not /usr if not specified.) Cross compilation and unusual compilation requirements ------------------------------------------------------ You can compile modutils on one system to run on another. The Makefiles generated by configure contain several variables which can be tweaked for unusual compilation environments, including cross compilation. Do not edit the generated Makefiles, set the variables the environment before invoking configure. The default is to compile for the current system type using standard utilities and flags. If you change any of these values after running configure, you should erase config.cache before running configure again. CC C compiler for target system, default "gcc". CFLAGS C flags for target system, default "-O2 -Wall". HOSTCC C compiler for host system, default $(CC). Some of the modutils programs are run on the host system so they must be compiled iwth the host compiler and flags. HOSTCFLAGS C flags for host system, default $(CFLAGS). LDFLAGS Linker flags for target system, default "". AR ar program for target system, default "ar". RANLIB ranlib program for target system, default "ranlib". INSTALL install program for target system, default "install". PARSERCFLAGS The parser programs generated by lex and yacc have spurious warnings about uninitialized variables when the default -Wall is used. This option is included on the compilation of those programs to suppress the warnings, default is "-Wno-uninitialized". configure takes ten modutils specific options, as well as the standard configure options. --enable-combined Create insmod and rmmod/modprobe/lsmod/ksyms as one executable. Default is one combined module, if you --disable-combined you can still combine individual modules into insmod with --enable-combined-X. --enable-combined-rmmod Create insmod and rmmod as one executable, default is taken from --enable-combined. --enable-combined-modprobe Create insmod and modprobe as one executable, default is taken from --enable-combined. --enable-combined-lsmod Create insmod and lsmod as one executable, default is taken from --enable-combined. --enable-combined-ksyms Create insmod and ksyms as one executable, default is taken from --enable-combined. --enable-compat-2-0 Create utilities runnable on a Linux 2.0 system, default is yes. --enable-kerneld The default is to compile kerneld, even though this utility has not been used since kernel 2.1.91, the option exists for backwards compatibility. Distributions can use --disable-kerneld to remove the crud. --enable-common-sparc Make all the utilities work on both sparc32 and sparc64 as one executable. Default is yes for sparc, no for other architectures. --disable-insmod-static The default is not to build insmod.static. You probably only need this if you are building your own initrd boot system. --enable-strip Are binaries to be stripped during install? Default is yes. To disable any of these, specify --disable-