Menu

Compiling, need help, plz

Anonymous
2001-02-09
2001-02-11
  • Anonymous

    Anonymous - 2001-02-09

    Hi everybody,
    New on the block (read newbies)
    I am trying to compile the QuickCam software and I get these warning and error messages.  I 'm using a Redhat distribution ver. 7 but I have RPMed all gcc files and libs......
    Someone in the support section has the same problem...
    Could anyone help me on this matter,
    Thanks
    <A HREF="mailto:diphda_the_frog@hotmail.com">Diphda</a>

    --------- Output --------------

    [root@stronghat qce-ga-0.30a]# make
    cc -I/usr/src/linux/drivers/usb -I/usr/src/linux/include -include /usr/src/linux/include/linux/config.h  -O3 -Wall -Wstrict-prototypes -fomit-frame-pointer  -pipe -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -DMODVERSIONS -include /usr/include/linux/modversions.h -DPATCHLEVEL4 -c quickcam.c
    In file included from quickcam.c:0:
    /usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
    /usr/include/linux/modversions.h:2:2: #error but headers from an appropriate kernel-source
    quickcam.c: In function `usb_quickcam_set_exposure':
    quickcam.c:417: warning: implicit declaration of function `abs'
    quickcam.c: In function `quickcam_read':
    quickcam.c:1750: warning: passing arg 1 of `interruptible_sleep_on' discards qualifiers from pointer target type
    {standard input}: Assembler messages:
    {standard input}:20: Warning: Ignoring changed section attributes for .modinfo
    make: *** [quickcam.o] Error 1
    [root@stronghat qce-ga-0.30a]#

     
    • Anonymous

      Anonymous - 2001-02-11

      In the makefile, both references to

      /usr/include/linux/modversions.h

      need to be changed to

      /usr/src/linux/include/linux/modversions.h

      Worked for me on RH7 with kernel 2.4.0.

      Hope this helps.

      Corey

       

Log in to post a comment.