debugging speakup_ltlk module

John Heim jheim at math.wisc.edu
Tue Jan 31 15:11:31 EST 2012


I've decided to try to see if I ccan figure out what the speakup_ltlk module 
does this:

make: *** [debian/stamp/build/kernel] Error 2
root at vv507k:/usr/src# !!
./make-kernel
TASK:
TASK: kernel
exec make kpkg_version=12.036+nmu1 -f 
/usr/share/kernel-package/ruleset/minimal.
mk debian APPEND_TO_VERSION=-2  INITRD=YES
====== making target debian/stamp/conf/minimal_debian [new prereqs: ]======
This is kernel package version 12.036+nmu1.
test -d debian             || mkdir debian
test ! -e stamp-building || rm -f stamp-building
install -p -m 755 /usr/share/kernel-package/rules debian/rules
for file in ChangeLog  Control  Control.bin86 config templates.in rules; do
                                 \
            cp -f  /usr/share/kernel-package/$file ./debian/;
            \
        done
for dir  in Config docs examples ruleset scripts pkg po;  do
                  \
          cp -af /usr/share/kernel-package/$dir  ./debian/;
            \
        done
test -f debian/control || sed         -e 's/=V/3.2.2-2/g'  \
                -e 's/=D/3.2.2-2-10.00.Custom/g'         -e 's/=A/amd64/g' 
\
                -e 's/=SA//g'  \
                -e 's/=I//g'                                \
                -e 's/=CV/3.2/g'                            \
                -e 's/=M/Unknown Kernel Package Maintainer 
<unknown at unconfigured
.in.etc.kernel-pkg.conf>/g'                         \
                -e 's/=ST/linux/g'      -e 's/=B/x86_64/g'    \
                  /usr/share/kernel-package/Control > debian/control
test -f debian/changelog ||  sed -e 's/=V/3.2.2-2/g'       \
            -e 's/=D/3.2.2-2-10.00.Custom/g'        -e 's/=A/amd64/g' 
\
            -e 's/=ST/linux/g'     -e 's/=B/x86_64/g'         \
            -e 's/=M/Unknown Kernel Package Maintainer 
<unknown at unconfigured.in.
etc.kernel-pkg.conf>/g'                            \
             /usr/share/kernel-package/changelog > debian/changelog
chmod 0644 debian/control debian/changelog
test -d ./debian/stamp || mkdir debian/stamp
make -f debian/rules debian/stamp/conf/kernel-conf
make[1]: Entering directory `/usr/src/linux-3.2.2'
====== making target debian/stamp/conf/kernel-conf [new prereqs: ]======
make EXTRAVERSION=-2   ARCH=x86_64 \
                    oldconfig;
make[2]: Entering directory `/usr/src/linux-3.2.2'
scripts/kconfig/conf --oldconfig Kconfig
#
# configuration written to .config
#
make[2]: Leaving directory `/usr/src/linux-3.2.2'
make EXTRAVERSION=-2   ARCH=x86_64 prepare
make[2]: Entering directory `/usr/src/linux-3.2.2'
scripts/kconfig/conf --silentoldconfig Kconfig
make[2]: Leaving directory `/usr/src/linux-3.2.2'
make[2]: Entering directory `/usr/src/linux-3.2.2'
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
make[2]: Leaving directory `/usr/src/linux-3.2.2'
echo done > debian/stamp/conf/kernel-conf
make[1]: Leaving directory `/usr/src/linux-3.2.2'
make -f debian/rules debian/stamp/conf/full-changelog
make[1]: Entering directory `/usr/src/linux-3.2.2'
====== making target debian/stamp/conf/full-changelog [new prereqs: ]======
for file in ChangeLog  Control  Control.bin86 config templates.in rules; do\
             cp -f  /usr/share/kernel-package/$file ./debian/;          \
        done
for dir  in Config docs examples ruleset scripts pkg po;        do      \
           cp -af /usr/share/kernel-package/$dir  ./debian/;            \
        done
install -p -m 755 /usr/share/kernel-package/rules debian/rules
sed         -e 's/=V/3.2.2-2/g'  \
                -e 's/=D/3.2.2-2-10.00.Custom/g'         -e 's/=A/amd64/g' 
\
                -e 's/=SA//g'  \
                -e 's/=I//g'                                \
                -e 's/=CV/3.2/g'                            \
                -e 's/=M/Unknown Kernel Package Maintainer 
<unknown at unconfigured
.in.etc.kernel-pkg.conf>/g'                         \
                -e 's/=ST/linux/g'      -e 's/=B/x86_64/g'    \
                  /usr/share/kernel-package/Control > debian/control
sed -e 's/=V/3.2.2-2/g' -e 's/=D/3.2.2-2-10.00.Custom/g'              \
            -e 's/=A/amd64/g' -e 's/=M/Unknown Kernel Package Maintainer 
<unknow
n at unconfigured.in.etc.kernel-pkg.conf>/g' \
            -e 's/=ST/linux/g'   -e 's/=B/x86_64/g'           \
                /usr/share/kernel-package/changelog > debian/changelog
chmod 0644 debian/control debian/changelog
make -f debian/rules debian/stamp/conf/kernel-conf
make[2]: Entering directory `/usr/src/linux-3.2.2'
make[2]: `debian/stamp/conf/kernel-conf' is up to date.
make[2]: Leaving directory `/usr/src/linux-3.2.2'
make[1]: Leaving directory `/usr/src/linux-3.2.2'
echo done > debian/stamp/conf/minimal_debian
exec debian/rules  APPEND_TO_VERSION=-2  INITRD=YES  kernel_image 
modules_image

====== making target debian/stamp/conf/vars [new prereqs: ]======

====== making target debian/stamp/build/kernel [new prereqs: vars]======
This is kernel package version 12.036+nmu1.
restore_upstream_debianization
test ! -f scripts/package/builddeb.kpkg-dist || mv -f 
scripts/package/builddeb.k
pkg-dist scripts/package/builddeb
test ! -f scripts/package/Makefile.kpkg-dist || mv -f 
scripts/package/Makefile.k
pkg-dist scripts/package/Makefile
/usr/bin/make  EXTRAVERSION=-2  ARCH=x86_64 \
                             bzImage
make[1]: Entering directory `/usr/src/linux-3.2.2'
scripts/kconfig/conf --silentoldconfig Kconfig
make[1]: Leaving directory `/usr/src/linux-3.2.2'
make[1]: Entering directory `/usr/src/linux-3.2.2'
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  VDSOSYM arch/x86/vdso/vdso-syms.lds
  VDSOSYM arch/x86/vdso/vdso32-int80-syms.lds
  VDSOSYM arch/x86/vdso/vdso32-syscall-syms.lds
  VDSOSYM arch/x86/vdso/vdso32-sysenter-syms.lds
  VDSOSYM arch/x86/vdso/vdso32-syms.lds
  LD      arch/x86/vdso/built-in.o
  LD      arch/x86/built-in.o
  LD      vmlinux.o
root at vv507k:/usr/src# modprobe speakup_ltlk
FATAL: Error inserting speakup_ltlk 
(/lib/modules/3.2.2-1/kernel/drivers/staging
/speakup/speakup_ltlk.ko): No such device
root at vv507k:/usr/src# !.
./make-kernel
TASK:
TASK: kernel
exec make kpkg_version=12.036+nmu1 -f 
/usr/share/kernel-package/ruleset/minimal.
mk debian APPEND_TO_VERSION=-2  INITRD=YES
====== making target debian/stamp/conf/minimal_debian [new prereqs: ]======
This is kernel package version 12.036+nmu1.
test -d debian             || mkdir debian
test ! -e stamp-building || rm -f stamp-building
install -p -m 755 /usr/share/kernel-package/rules debian/rules
for file in ChangeLog  Control  Control.bin86 config templates.in rules; do
                                 \
            cp -f  /usr/share/kernel-package/$file ./debian/;
            \
        done
for dir  in Config docs examples ruleset scripts pkg po;  do
                  \
          cp -af /usr/share/kernel-package/$dir  ./debian/;
            \
        done
test -f debian/control || sed         -e 's/=V/3.2.2-2/g'  \
                -e 's/=D/3.2.2-2-10.00.Custom/g'         -e 's/=A/amd64/g' 
\
                -e 's/=SA//g'  \
                -e 's/=I//g'                                \
                -e 's/=CV/3.2/g'                            \
                -e 's/=M/Unknown Kernel Package Maintainer 
<unknown at unconfigured
.in.etc.kernel-pkg.conf>/g'                         \
                -e 's/=ST/linux/g'      -e 's/=B/x86_64/g'    \
                  /usr/share/kernel-package/Control > debian/control
test -f debian/changelog ||  sed -e 's/=V/3.2.2-2/g'       \
            -e 's/=D/3.2.2-2-10.00.Custom/g'        -e 's/=A/amd64/g' 
\
            -e 's/=ST/linux/g'     -e 's/=B/x86_64/g'         \
            -e 's/=M/Unknown Kernel Package Maintainer 
<unknown at unconfigured.in.
etc.kernel-pkg.conf>/g'                            \
             /usr/share/kernel-package/changelog > debian/changelog
chmod 0644 debian/control debian/changelog
test -d ./debian/stamp || mkdir debian/stamp
make -f debian/rules debian/stamp/conf/kernel-conf
make[1]: Entering directory `/usr/src/linux-3.2.2'
====== making target debian/stamp/conf/kernel-conf [new prereqs: ]======
make EXTRAVERSION=-2   ARCH=x86_64 \
                    oldconfig;
make[2]: Entering directory `/usr/src/linux-3.2.2'
scripts/kconfig/conf --oldconfig Kconfig
#
# configuration written to .config
#
make[2]: Leaving directory `/usr/src/linux-3.2.2'
make EXTRAVERSION=-2   ARCH=x86_64 prepare
make[2]: Entering directory `/usr/src/linux-3.2.2'
scripts/kconfig/conf --silentoldconfig Kconfig
make[2]: Leaving directory `/usr/src/linux-3.2.2'
make[2]: Entering directory `/usr/src/linux-3.2.2'
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
make[2]: Leaving directory `/usr/src/linux-3.2.2'
echo done > debian/stamp/conf/kernel-conf
make[1]: Leaving directory `/usr/src/linux-3.2.2'
make -f debian/rules debian/stamp/conf/full-changelog
make[1]: Entering directory `/usr/src/linux-3.2.2'
====== making target debian/stamp/conf/full-changelog [new prereqs: ]======
for file in ChangeLog  Control  Control.bin86 config templates.in rules; do\
             cp -f  /usr/share/kernel-package/$file ./debian/;          \
        done
for dir  in Config docs examples ruleset scripts pkg po;        do      \
           cp -af /usr/share/kernel-package/$dir  ./debian/;            \
        done
install -p -m 755 /usr/share/kernel-package/rules debian/rules
sed         -e 's/=V/3.2.2-2/g'  \
                -e 's/=D/3.2.2-2-10.00.Custom/g'         -e 's/=A/amd64/g' 
\
                -e 's/=SA//g'  \
                -e 's/=I//g'                                \
                -e 's/=CV/3.2/g'                            \
                -e 's/=M/Unknown Kernel Package Maintainer 
<unknown at unconfigured
.in.etc.kernel-pkg.conf>/g'                         \
                -e 's/=ST/linux/g'      -e 's/=B/x86_64/g'    \
                  /usr/share/kernel-package/Control > debian/control
sed -e 's/=V/3.2.2-2/g' -e 's/=D/3.2.2-2-10.00.Custom/g'              \
            -e 's/=A/amd64/g' -e 's/=M/Unknown Kernel Package Maintainer 
<unknow
n at unconfigured.in.etc.kernel-pkg.conf>/g' \
            -e 's/=ST/linux/g'   -e 's/=B/x86_64/g'           \
                /usr/share/kernel-package/changelog > debian/changelog
chmod 0644 debian/control debian/changelog
make -f debian/rules debian/stamp/conf/kernel-conf
make[2]: Entering directory `/usr/src/linux-3.2.2'
make[2]: `debian/stamp/conf/kernel-conf' is up to date.
make[2]: Leaving directory `/usr/src/linux-3.2.2'
make[1]: Leaving directory `/usr/src/linux-3.2.2'
echo done > debian/stamp/conf/minimal_debian
exec debian/rules  APPEND_TO_VERSION=-2  INITRD=YES  kernel_image 
modules_image

====== making target debian/stamp/conf/vars [new prereqs: ]======

====== making target debian/stamp/build/kernel [new prereqs: vars]======
This is kernel package version 12.036+nmu1.
restore_upstream_debianization
test ! -f scripts/package/builddeb.kpkg-dist || mv -f 
scripts/package/builddeb.k
pkg-dist scripts/package/builddeb
test ! -f scripts/package/Makefile.kpkg-dist || mv -f 
scripts/package/Makefile.k
pkg-dist scripts/package/Makefile
/usr/bin/make  EXTRAVERSION=-2  ARCH=x86_64 \
                             bzImage
make[1]: Entering directory `/usr/src/linux-3.2.2'
scripts/kconfig/conf --silentoldconfig Kconfig
make[1]: Leaving directory `/usr/src/linux-3.2.2'
make[1]: Entering directory `/usr/src/linux-3.2.2'
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  VDSOSYM arch/x86/vdso/vdso-syms.lds
  VDSOSYM arch/x86/vdso/vdso32-int80-syms.lds
  VDSOSYM arch/x86/vdso/vdso32-syscall-syms.lds
  VDSOSYM arch/x86/vdso/vdso32-sysenter-syms.lds
  VDSOSYM arch/x86/vdso/vdso32-syms.lds
  LD      arch/x86/vdso/built-in.o
  LD      arch/x86/built-in.o
# modprobe speakup_ltlk
FATAL: Error inserting speakup_ltlk 
(/lib/modules/3.2.2-1/kernel/drivers/staging/speakup/speakup_ltlk.ko): No 
such device

All I've done so far is put a printf statement in the  synth_probe function.

# diff speakup_ltlk.c speakup_ltlk.old
25,26d24
<
< #include <stdio.h>
165d162
<       printf("%d\n", failed);

But I'm getting a compile error saying "incompatible implicit redeclaration 
of built-in function 'printf'".  Anybody know what I'm doing wrong?




More information about the Speakup mailing list