bugSwinput - Bugs: bug #36511, swinput 0.7.4 does not compile:...


bug #36511: swinput 0.7.4 does not compile: "swinput.c:52:2: error: invalid initializer"

Submitted by:  Malte Wetz <maltewetz>
Submitted on:  Mon 21 May 2012 08:50:09 AM UTC  
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Mon 21 May 2012 08:50:09 AM UTC, original submission:

When building swinput 0.7.4 on Ubuntu 12.04 with gcc 4.6.3 on Kernel 3.3.6, I get the following output:

cd src && make -C /lib/modules/3.3.6/build SUBDIRS=/usr/local/src/swinput-0.7.4/src modules
make[1]: Entering directory `/usr/src/linux-3.3.6'
CC [M] /usr/local/src/swinput-0.7.4/src/swinput.o
/usr/local/src/swinput-0.7.4/src/swinput.c: In function 'logger':
/usr/local/src/swinput-0.7.4/src/swinput.c:52:2: error: invalid initializer
make[2]: *** [/usr/local/src/swinput-0.7.4/src/swinput.o] Error 1
make[1]: *** [_module_/usr/local/src/swinput-0.7.4/src] Error 2
make[1]: Leaving directory `/usr/src/linux-3.3.6'
make: *** [default] Error 2

The line mentioned says: "va_list ap = NULL;" which is, to my very, very limited understanding of C, a strange line (assigning a pointer value to a non-pointer variable). Removing the "=NULL" part fixes the error and lets swinput compile but I do not know what other effects that might have.

Malte Wetz <maltewetz>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by maltewetz (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    No Changes Have Been Made to This Item

    Back to the top

    Powered by Savane 3.1-cleanup1