Added a few questions
[comedilib.git] / doc / FAQ
1
2 1.  Should I use CONFIG_MODVERSIONS when compiling a Linux kernel?
3
4 Short answer:  No.  Long answer: MODVERSIONS allows you to safely
5 use a module on multiple kernel versions.  However, making comedi
6 work with CONFIG_MODVERSIONS is a real pain.  Sometimes it works,
7 sometimes it doesn't.
8
9
10 2. I get the error message:
11
12 Makefile:14: /usr/src/linux/.config: No such file or directory
13 make: *** No rule to make target `/usr/src/linux/.config'.  Stop.
14
15
16 It means you don't have the file /usr/src/linux/.config.  This file
17 contains all the configuration information about your linux kernel,
18 which comedi needs in order to compile correctly.  Some distributions
19 don't contain this file, so you will need to create your own, by
20 compiling your own kernel.  This file is automatically created
21 when you run 'make config', the first step in compiling a kernel.
22
23
24 3. When compiling programs that use libcomedi, I get error message:
25
26 /usr/lib/libcomedi.a(range.o): In function `comedi_from_phys':
27 range.o(.text+0x169): undefined reference to `floor'
28
29
30 This error messsage indicates that the linker cannot resolve the
31 reference to floor(), which is a function in the math library
32 that is used in the function comedi_from_phys().  This only
33 happens when you link statically.  Add '-lm' to your linking
34 command.
35
36
37 4. Someone on the mailing list told me to look in the kernel log.
38 How do I do that?
39
40 Kernel log messages are continuously written to the file
41 /var/log/messages.  In addition, a shortcut to get recent log
42 messages is the 'dmesg' command, which will print the last 4-16 kB
43 (depending on the kernel) of kernel log messages.
44
45
46 5. I think I found a bug: I get Oops messages in the kernel log.
47
48 Oops messages always indicate a bug.  If you are not using the
49 latest version of Comedi, please upgrade and try again, since
50 these types of bugs are usually quickly fixed.  Look at the file
51 BUG_REPORTING in the Linux kernel source, follow the instructions,
52 and send the information to David Schleef <ds@schleef.org>.
53
54
55 6. Could you please add a search engine to the mailing list archive?
56
57 No.  Please use generic web search engines such as Google, where you
58 can add the search term "host:stm.lbl.gov" to limit the search to
59 the site where the Comedi archives are located.
60
61