Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Makefile broken for kernel-2.6.16-1.2069_FC4

2006-04-01
2013-06-03
  • j-d-williams
    j-d-williams
    2006-04-01

    The Makefile is broken for the new Fedora Core 4 Kernel.

    The problems is line 27:
    ifeq ($(KERNELRELEASE),)  # Test whether we were called by 2.6.x build system

    Looks like they are now using KERNELVERSION.
    Problem is that if you change it to KERNELVERSION then it breaks it for older kernels.
    I decided to just set it to VERSION and it seems to work ok on both old and new kernels.

    New line 27 in Makefile looks like:
    ifeq ($(VERSION),)  # Test whether we were called by 2.6.x build system

    You will also need the posted patch to fix the other: compile problem with qc-driver.c.
    I did notice a error/warning, but haven't had time to look into it. 

    Also qcset.c has a problem.
    Line 386 needs to change from:
    void pnm_open(unsigned char *name
    to:
    void pnm_open(char *name
    The whole line isn't shown, just need to take out the unsigned and it gets rid of a compile warning.