Make errors

Help
2008-05-15
2013-03-08
  • Ryan Feather

    Ryan Feather - 2008-05-15

    I am attempting to build the trunk on my Ubuntu 8.04 asus laptop, and this is the output I get

    make -C /lib/modules/2.6.24-16-generic/build SUBDIRS=/home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.24-16-generic'
      CC [M]  /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.o
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c: In function ‘show_model’:
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1615: warning: initialization from incompatible pointer type
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c: In function ‘show_in_use’:
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1616: warning: initialization from incompatible pointer type
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c: In function ‘show_streaming’:
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1617: warning: initialization from incompatible pointer type
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c: In function ‘show_palette’:
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1618: warning: initialization from incompatible pointer type
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c: In function ‘show_frames_total’:
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1619: warning: initialization from incompatible pointer type
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c: In function ‘show_frames_read’:
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1620: warning: initialization from incompatible pointer type
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c: In function ‘show_packets_dropped’:
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1621: warning: initialization from incompatible pointer type
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c: In function ‘show_decoding_errors’:
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1622: warning: initialization from incompatible pointer type
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c: In function ‘m560x_create_sysfs_files’:
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1626: warning: passing argument 2 of ‘video_device_create_file’ from incompatible pointer type
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1627: warning: passing argument 2 of ‘video_device_create_file’ from incompatible pointer type
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1628: warning: passing argument 2 of ‘video_device_create_file’ from incompatible pointer type
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1629: warning: passing argument 2 of ‘video_device_create_file’ from incompatible pointer type
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1630: warning: passing argument 2 of ‘video_device_create_file’ from incompatible pointer type
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1631: warning: passing argument 2 of ‘video_device_create_file’ from incompatible pointer type
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1632: warning: passing argument 2 of ‘video_device_create_file’ from incompatible pointer type
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1633: warning: passing argument 2 of ‘video_device_create_file’ from incompatible pointer type
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c: In function ‘m560x_remove_sysfs_files’:
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1638: warning: passing argument 2 of ‘video_device_remove_file’ from incompatible pointer type
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1639: warning: passing argument 2 of ‘video_device_remove_file’ from incompatible pointer type
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1640: warning: passing argument 2 of ‘video_device_remove_file’ from incompatible pointer type
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1641: warning: passing argument 2 of ‘video_device_remove_file’ from incompatible pointer type
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1642: warning: passing argument 2 of ‘video_device_remove_file’ from incompatible pointer type
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1643: warning: passing argument 2 of ‘video_device_remove_file’ from incompatible pointer type
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1644: warning: passing argument 2 of ‘video_device_remove_file’ from incompatible pointer type
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1645: warning: passing argument 2 of ‘video_device_remove_file’ from incompatible pointer type
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c: In function ‘usb_m560x_probe’:
    /home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:2831: error: ‘struct video_device’ has no member named ‘hardware’
    make[2]: *** [/home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.o] Error 1
    make[1]: *** [_module_/home/powersurge/m560x/m560x-driver/m560x/trunk/km_m560x] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-generic'
    make: *** [all] Error 2

    Any suggestions?

     
    • Erik Andrén

      Erik Andrén - 2008-05-28

      You should try with the m5602-ov9650-2 branch of the driver.

       
    • Maxxer

      Maxxer - 2008-06-19

      what do you mean? that branch has just few files, and when trying to insert the precompiled module says invalid module format.
      thanks.

       
    • Kaiser  Schwarcz

      Kaiser Schwarcz - 2008-07-24

      I had the same problem, so I tried the m5602-ov9650-2 branch.

      The 'make' command works well, but when I do the 'make install', I receive the follow mensage:

      "$ sudo make install
      mkdir -p /lib/modules/2.6.25.10-86.fc9.i686/kernel/drivers/usb/media
      install -m 644 -o 0 -g 0 m560x.ko /lib/modules/2.6.25.10-86.fc9.i686/kernel/drivers/usb/media
      depmod -a
      make: depmod: Comando não encontrado
      make: ** [install] Erro 127
      $"

      Why that?

      --------------------------
      I use a notebook celeron M530 with Fedora core 9; kernel 2.6.25.10-86.i686
      The webcam is a Bison (Ali Corp ID 0402:5602)

       
    • Kaiser  Schwarcz

      Kaiser Schwarcz - 2008-07-25

      Well I've made it with full root habilities. I got:

      "# make install
      mkdir -p /lib/modules/2.6.25.10-86.fc9.i686/kernel/drivers/usb/media
      install -m 644 -o 0 -g 0 m560x.ko /lib/modules/2.6.25.10-86.fc9.i686/kernel/drivers/usb/media
      depmod -a
      #"

      So, to me it seems to have installed, but the camera do not work.

      What should I do?

       
    • Roger Jove

      Roger Jove - 2008-08-29

      Hi guys, I'm sorry because I am novice. This driver is the first one that I try to install. I have a Kubuntu 8.04 installed and the chip of my webcam is the M5602 of the BisonCam NB Pro. Here you have what I have tried. It seems it's missed file m5602.ko . Any suggestion?

      roger@Tirpitz:~/Escritorio/m5602$ make load
      sudo modprobe videodev
      sudo modprobe compat_ioctl32
      sudo insmod ./m5602.ko
      insmod: can't read './m5602.ko': No such file or directory
      make: *** [load] Error 1
      roger@Tirpitz:~/Escritorio/m5602$ make install
      mkdir -p /lib/modules/2.6.24-19-generic/kernel/drivers/usb/media
      install -m 644 -o 0 -g 0 m5602.ko /lib/modules/2.6.24-19-generic/kernel/drivers/usb/media
      install: no se puede efectuar `stat' sobre «m5602.ko»: No existe el fichero ó directorio
      make: *** [install] Error 1

      Thank you very much,

      Roger

       
    • Maxxer

      Maxxer - 2008-09-05

      branch ov9650-2 doesn't exist anymore. and still i cannot compile ov9650 on 2.6.26.2

      # make
      make -C /lib/modules/2.6.26.2/build SUBDIRS=/home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650 modules
      make[1]: Entering directory `/home/linux-2.6.26.2'
        CC [M]  /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.o
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1570: warning: 'struct class_device' declared inside parameter list
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1570: warning: its scope is only this definition or declaration, which is probably not what you want
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c: In function 'show_model':
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1570: warning: initialization from incompatible pointer type
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c: At top level:
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1570: error: expected ')' before '(' token
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1571: warning: 'struct class_device' declared inside parameter list
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c: In function 'show_in_use':
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1571: warning: initialization from incompatible pointer type
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c: At top level:
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1571: error: expected ')' before '(' token
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1572: warning: 'struct class_device' declared inside parameter list
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c: In function 'show_streaming':
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1572: warning: initialization from incompatible pointer type
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c: At top level:
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1572: error: expected ')' before '(' token
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1573: warning: 'struct class_device' declared inside parameter list
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c: In function 'show_palette':
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1573: warning: initialization from incompatible pointer type
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c: At top level:
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1573: error: expected ')' before '(' token
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1574: warning: 'struct class_device' declared inside parameter list
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c: In function 'show_frames_total':
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1574: warning: initialization from incompatible pointer type
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c: At top level:
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1574: error: expected ')' before '(' token
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1575: warning: 'struct class_device' declared inside parameter list
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c: In function 'show_frames_read':
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1575: warning: initialization from incompatible pointer type
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c: At top level:
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1575: error: expected ')' before '(' token
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1576: warning: 'struct class_device' declared inside parameter list
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c: In function 'show_packets_dropped':
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1576: warning: initialization from incompatible pointer type
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c: At top level:
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1576: error: expected ')' before '(' token
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1577: warning: 'struct class_device' declared inside parameter list
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c: In function 'show_decoding_errors':
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1577: warning: initialization from incompatible pointer type
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c: At top level:
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1577: error: expected ')' before '(' token
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c: In function 'm560x_create_sysfs_files':
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1581: error: 'class_device_attr_model' undeclared (first use in this function)
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1581: error: (Each undeclared identifier is reported only once
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1581: error: for each function it appears in.)
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1582: error: 'class_device_attr_in_use' undeclared (first use in this function)
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1583: error: 'class_device_attr_streaming' undeclared (first use in this function)
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1584: error: 'class_device_attr_palette' undeclared (first use in this function)
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1585: error: 'class_device_attr_frames_total' undeclared (first use in this function)
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1586: error: 'class_device_attr_frames_read' undeclared (first use in this function)
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1587: error: 'class_device_attr_packets_dropped' undeclared (first use in this function)
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1588: error: 'class_device_attr_decoding_errors' undeclared (first use in this function)
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c: In function 'm560x_remove_sysfs_files':
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1593: error: 'class_device_attr_model' undeclared (first use in this function)
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1594: error: 'class_device_attr_in_use' undeclared (first use in this function)
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1595: error: 'class_device_attr_streaming' undeclared (first use in this function)
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1596: error: 'class_device_attr_palette' undeclared (first use in this function)
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1597: error: 'class_device_attr_frames_total' undeclared (first use in this function)
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1598: error: 'class_device_attr_frames_read' undeclared (first use in this function)
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1599: error: 'class_device_attr_packets_dropped' undeclared (first use in this function)
      /home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.c:1600: error: 'class_device_attr_decoding_errors' undeclared (first use in this function)
      make[2]: *** [/home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650/m560x_core.o] Error 1
      make[1]: *** [_module_/home/willy/software/pequeno/webcam/svn/lore/m560x-driver/m560x/branches/m5602-ov9650] Error 2
      make[1]: Leaving directory `/home/linux-2.6.26.2'

      what did i do wrong?
      thanks

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks