Disabling shoulder buttons when the lid is closed

Stefan Sperling stsp at stsp.name
Thu May 7 01:07:05 CEST 2009

On Wed, May 06, 2009 at 01:34:39PM -0500, Albert wrote:
> After poking around in makefiles a bit more, I found that running
> "make loadkeys" in user/console-tools/src/kbdtools, while using xsh,
> will attempt to build loadkeys, though it throws this blob of text:
> make[2]: Entering directory
> `/home/rummik/Source/dslinux/user/console-tools/src/kbdtools'
> #cd .. && /home/rummik/Source/dslinux/user/console-tools/src/missing
> automake --foreign --include-deps kbdtools/Makefile
> ucfront-gcc arm-linux-elf-gcc  -DHAVE_CONFIG_H -I. -I. -I..
> -I../include -DDATADIR=\"/nonexistent/share\" -DKEYMAPDIR=\"keymaps\"
>   -O2 -g -fomit-frame-pointer -fno-common -fno-builtin -Wall
> -mswp-byte-writes -DCONFIG_NDS_ROM8BIT -mcpu=arm946e-s -mfpu=fpe3
> -DEMBED -D__PIC__ -fpic -msingle-pic-base -Dlinux -D__linux__ -Dunix
> -D__uClinux__ -c analyze.c
> analyze.l: In function 'yylex':
> analyze.l:69: warning: implicit declaration of function 'strlen'
> analyze.l:71: warning: implicit declaration of function 'strcpy'
> analyze.l:114: warning: pointer targets in assignment differ in signedness
> In file included from analyze.l:126:
> /home/rummik/Source/dslinux/uClibc/include/string.h: At top level:
> /home/rummik/Source/dslinux/uClibc/include/string.h:83: error:
> conflicting types for 'strcpy'
> analyze.l:71: error: previous implicit declaration of 'strcpy' was here
> /home/rummik/Source/dslinux/uClibc/include/string.h:238: error:
> conflicting types for 'strlen'
> analyze.l:69: error: previous implicit declaration of 'strlen' was here
> make[2]: *** [analyze.o] Error 1
> make[2]: Leaving directory
> `/home/rummik/Source/dslinux/user/console-tools/src/kbdtools'
> So it looks like, even if it was attempting to build loadkeys by
> default, there's a problem with the uClibc string.h. Unfortunately, my
> knowledge of C is very limited...so, someone might have to step in and
> clue me in on what's going on with these conflicting types for
> 'strlen' and 'strcpy'.

Looks like you need to remove lines 69 and 71 from analyze.l.


More information about the dslinux-devel mailing list