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:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned 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 Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

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

    Only logged-in users can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.5