Comment 4 for bug 131422

Revision history for this message
jessedyer (jessedyer) wrote :

.. and promptly realized I should be pulling the _Ubuntu_ source package instead. Arg.
In any case, I tried building the source package, and it fails:

jdyer@Atom:~/Desktop/utils$ ls
acceltest.c ffcfstress.c fftest.c jscal.c remove-obsolete-files
cvmove ffmvforce.c gencodes.c jstest.c scancodes.h
evtest.c ffset.c inputattach.c Makefile
jdyer@Atom:~/Desktop/utils$ make
gcc -g -O2 -Wall -I../linux/include evtest.c -o evtest
gcc -g -O2 -Wall -I../linux/include inputattach.c -o inputattach
inputattach.c: In function ‘logitech_command’:
inputattach.c:95: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
inputattach.c: In function ‘magellan_init’:
inputattach.c:106: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
inputattach.c: In function ‘spaceball_waitcmd’:
inputattach.c:137: warning: pointer targets in passing argument 3 of ‘spaceball_waitchar’ differ in signedness
inputattach.c:117: note: expected ‘unsigned char *’ but argument is of type ‘char *’
inputattach.c: In function ‘spaceball_cmd’:
inputattach.c:151: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
inputattach.c:152: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
inputattach.c: In function ‘spaceball_init’:
inputattach.c:170: warning: pointer targets in passing argument 3 of ‘spaceball_waitchar’ differ in signedness
inputattach.c:117: note: expected ‘unsigned char *’ but argument is of type ‘char *’
inputattach.c:171: warning: pointer targets in passing argument 3 of ‘spaceball_waitchar’ differ in signedness
inputattach.c:117: note: expected ‘unsigned char *’ but argument is of type ‘char *’
inputattach.c: In function ‘stinger_init’:
inputattach.c:233: warning: pointer targets in initialization differ in signedness
inputattach.c: In function ‘main’:
inputattach.c:442: warning: pointer targets in passing argument 2 of ‘readchar’ differ in signedness
inputattach.c:52: note: expected ‘unsigned char *’ but argument is of type ‘char *’
inputattach.c:465: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result
gcc -g -O2 -Wall -I../linux/include jstest.c -o jstest
gcc -g -O2 -Wall -I../linux/include -c -o jscal.o jscal.c
jscal.c: In function ‘wait_for_event’:
jscal.c:116: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result
gcc -g -O2 -Wall -I../linux/include -lm jscal.o -o jscal
gcc -g -O2 -Wall -I../linux/include fftest.c -o fftest
fftest.c: In function ‘main’:
fftest.c:222: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result
gcc -c -g -O2 -Wall -I../linux/include ffmvforce.c -o ffmvforce.o `sdl-config --cflags`
/bin/sh: sdl-config: not found
ffmvforce.c:37:17: error: SDL.h: No such file or directory
ffmvforce.c: In function ‘main’:
ffmvforce.c:117: error: ‘SDL_Surface’ undeclared (first use in this function)
ffmvforce.c:117: error: (Each undeclared identifier is reported only once
ffmvforce.c:117: error: for each function it appears in.)
ffmvforce.c:117: error: ‘screen’ undeclared (first use in this function)
ffmvforce.c:120: error: ‘Uint32’ undeclared (first use in this function)
ffmvforce.c:120: error: expected ‘;’ before ‘ticks’
ffmvforce.c:138: error: ‘period’ undeclared (first use in this function)
ffmvforce.c:146: warning: implicit declaration of function ‘SDL_Init’
ffmvforce.c:146: error: ‘SDL_INIT_VIDEO’ undeclared (first use in this function)
ffmvforce.c:147: warning: implicit declaration of function ‘SDL_GetError’
ffmvforce.c:147: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
ffmvforce.c:150: error: ‘SDL_Quit’ undeclared (first use in this function)
ffmvforce.c:151: warning: implicit declaration of function ‘SDL_SetVideoMode’
ffmvforce.c:151: error: ‘SDL_SWSURFACE’ undeclared (first use in this function)
ffmvforce.c:153: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
ffmvforce.c:164: error: ‘ticks’ undeclared (first use in this function)
ffmvforce.c:164: warning: implicit declaration of function ‘SDL_GetTicks’
ffmvforce.c:167: error: ‘SDL_Event’ undeclared (first use in this function)
ffmvforce.c:167: error: expected ‘;’ before ‘event’
ffmvforce.c:168: warning: implicit declaration of function ‘SDL_WaitEvent’
ffmvforce.c:168: error: ‘event’ undeclared (first use in this function)
ffmvforce.c:171: error: ‘SDL_QUIT’ undeclared (first use in this function)
ffmvforce.c:175: error: ‘SDL_MOUSEMOTION’ undeclared (first use in this function)
make: *** [ffmvforce.o] Error 1
jdyer@Atom:~/Desktop/utils$ ls
acceltest.c ffcfstress.c fftest.c jscal jstest.c
cvmove ffmvforce.c gencodes.c jscal.c Makefile
evtest ffset.c inputattach jscal.o remove-obsolete-files
evtest.c fftest inputattach.c jstest scancodes.h
jdyer@Atom:~/Desktop/utils$