I have submitted a bug about this, but since I am using an external patch (for wavelan2) I'm not sure I'll get a response. Can anyone please help me?
I am using Debian 2.2r3, with many packages from woody. (I will try to give version numbers of all relevant packages from woody, but if I have omitted any please email me and ask.) I am trying to compile the PCMCIA modules including the wavelan2 module, using make-kpkg. I have custom compiled kernel-source-2.2.19 version 2.2.19-5 using make-kpkg. I have libc6 and libc6-dev 2.2.3-6, pcmcia-cs 3.1.25-3, pcmcia-source 3.1.25-3, and kernel-package 7.43. I also have patched /usr/src/modules/pcmcia-cs using wavelan2_cs-6.06.tar. I can successfully compile the PCMCIA modules ``manually'' (i.e., by executing make config and make all), but I cannot make a pcmcia-modules deb with make-kpkg. The debian rules fail with the wavelan2 patch because there is no /usr/src/modules/pcmcia-cs/debian/tmp-modules/etc/pcmcia/config generated by the rules. I have not yet installed my custom-compiled kernel as the running kernel; is that relevant? If necessary I can send my kernel config file, though I don't think that's relevant either. A transcript follows. (It's rather long; the error occurs at the very bottom, naturally.) I obtained wavelan2_cs-6.06.tar from http://www.net.cmu.edu/docs/services/campus/wireless-linux.html . Thanks in advance, Ruchira Datta [EMAIL PROTECTED] koladvip:/usr/src/linux# !make-kpkg make-kpkg --revision=pathlab.1.0 modules_image Warning: The revision option only has an effect during the configure phase -- in other words, since the file stamp-configure exists, this option has no effect. Also, this option has no effect when compiling any independent modules; the version from the last make-kpkg run when you compiled the kernel-image shall be used. Run make-kpkg clean or, if you know what you are doing, manually remove stamp-debian, stamp-configure and debian/changelog for it to have an effect Please hit return to continue test -f stamp-debian || make -f /usr/share/kernel-package/rules debian test -f .config || make -f /usr/share/kernel-package/rules .config test ! -f stamp-configure \ && make CROSS_COMPILE= \ ARCH=i386 oldconfig \ && make CROSS_COMPILE= \ ARCH=i386 dep \ && make CROSS_COMPILE= \ ARCH=i386 clean && \ touch stamp-configure make: [stamp-configure] Error 1 (ignored) for module in /usr/src/modules/toshutils /usr/src/modules/pcmcia-cs ; do \ if test -d $module; then \ (cd $module; \ if ./debian/rules KVERS="2.2.19" KSRC="/usr/src/linux" \ KMAINT="Unknown Kernel Package Maintainer" KEMAIL="[EMAIL PROTECTED]" \ KDREV="pathlab.1.0" kdist_image; then \ echo "Module $module processed fine"; \ else \ echo "Module $module failed."; \ echo "Hit return to Continue"; \ read ans; \ fi; \ ); \ fi; \ done make[1]: Entering directory `/usr/src/modules/toshutils' dh_testdir cd src && \ cc -m486 -O2 -Wall -D__KERNEL__ -DKERNEL -DMODULE -c toshiba.c \ -o toshiba.o -I /usr/src/linux/include /tmp/cc4TbATS.s: Assembler messages: /tmp/cc4TbATS.s:9: Warning: Ignoring changed section attributes for .modinfo # We have to hack the control file first. sed 's/#KVERS#/2.2.19/g' debian/control.modules > debian/control # And set up files so debhelper can find them. ln -sf toshiba.modules toshiba-2.2.19.modules dh_clean -k Unrecognized escape \s passed through at /usr/bin/dh_clean line 15. Unrecognized escape \p passed through at /usr/bin/dh_clean line 16. Unrecognized escape \p passed through at /usr/bin/dh_clean line 17. Unrecognized escape \p passed through at /usr/bin/dh_clean line 18. Unrecognized escape \p passed through at /usr/bin/dh_clean line 19. dh_testdir dh_testroot dh_installdirs lib/modules/2.2.19/misc install -m 0644 src/toshiba.o debian/tmp/lib/modules/2.2.19/misc dh_installdocs dh_installchangelogs dh_strip dh_compress dh_fixperms dh_installdeb dh_gencontrol -u"-v1.9.9-1+pathlab.1.0" Unrecognized escape \s passed through at /usr/bin/dh_gencontrol line 24. dh_md5sums dh_builddeb --destdir=/usr/src/linux/.. dpkg-deb: building package `toshiba-2.2.19' in `/usr/src/linux/../toshiba-2.2.19_1.9.9-1+pathlab.1.0_i386.deb'. dh_testdir dh_testroot rm -f build-stamp make distclean make[2]: Entering directory `/usr/src/modules/toshutils' make[2]: *** No rule to make target `distclean'. Stop. make[2]: Leaving directory `/usr/src/modules/toshutils' make[1]: [clean] Error 2 (ignored) dh_clean src/toshiba.o src/Makefile Unrecognized escape \s passed through at /usr/bin/dh_clean line 15. Unrecognized escape \p passed through at /usr/bin/dh_clean line 16. Unrecognized escape \p passed through at /usr/bin/dh_clean line 17. Unrecognized escape \p passed through at /usr/bin/dh_clean line 18. Unrecognized escape \p passed through at /usr/bin/dh_clean line 19. # The dependancies take care of building the module package. make[1]: Leaving directory `/usr/src/modules/toshutils' Module /usr/src/modules/toshutils processed fine make[1]: Entering directory `/usr/src/modules/pcmcia-cs' test -f man/pcmcia.5 -a -f debian/rules test root = "`whoami`" test -f man/pcmcia.5 -a -f debian/rules rm -f debian/files make -f debian/rules MOD_DIR=/usr/src/linux clean-modules binary-modules make[2]: Entering directory `/usr/src/modules/pcmcia-cs' test -f man/pcmcia.5 -a -f debian/rules umask 022; make DEB_MOD=yes clean make[3]: Entering directory `/usr/src/modules/pcmcia-cs' make[4]: Entering directory `/usr/src/modules/pcmcia-cs/modules' rm -f core core.* *.o .*.o *.s *.a *~ .depend .depfiles/*.d make[4]: Leaving directory `/usr/src/modules/pcmcia-cs/modules' make[4]: Entering directory `/usr/src/modules/pcmcia-cs/clients' rm -f core core.* *.o .*.o *.s *.a *~ .depend .depfiles/*.d make[4]: Leaving directory `/usr/src/modules/pcmcia-cs/clients' make[4]: Entering directory `/usr/src/modules/pcmcia-cs/wireless' rm -f core core.* *.o .*.o *.s *.a *~ .depend .depfiles/*.d make[4]: Leaving directory `/usr/src/modules/pcmcia-cs/wireless' rm -f .prereq.ok config.mk include/pcmcia/config.h rm -f include/linux/modversions.h make[3]: Leaving directory `/usr/src/modules/pcmcia-cs' rm -f build-modules test -f man/pcmcia.5 -a -f debian/rules test root = "`whoami`" KVERS="2.2.19" ./Configure -n --kernel="/usr/src/linux" --srctree \ --cardbus --rcdir=/etc --cc=cc -------- Linux PCMCIA Configuration Script -------- The default responses for each question are correct for most users. Consult the PCMCIA-HOWTO for additional info about each option. Linux source directory [/usr/src/linux] The kernel source tree is version 2.2.19. The current kernel build date is Sat Jun 9 14:48:14 2001. Build 'trusting' versions of card utilities (y/n) [n] Include PnP BIOS resource checking (y/n) [n] The PCMCIA drivers need to be compiled to match the kernel they will be used with, or some or all of the modules may fail to load. If you are not sure what to do, please consult the PCMCIA-HOWTO. How would you like to set kernel-specific options? 1 - Read from the currently running kernel 2 - Read from the Linux source tree Enter option (1-2) [2] Module install directory [/lib/modules/2.2.19] Kernel configuration options: Symmetric multiprocessing support is disabled. PCI BIOS support is enabled. Power management (APM) support is enabled. SCSI support is disabled. IEEE 1394 (FireWire) support is disabled. Networking support is enabled. Radio network interface support is enabled. Token Ring device support is enabled. Fast switching is disabled. Frame Diverter is disabled. Module version checking is enabled. /proc filesystem support is enabled. Maximum physical memory: 1GB It looks like you have a System V init file setup. X Windows include files found. /usr/X11R6/lib/libXpm.so and /usr/include/X11/xpm.h found. Configuration successful. rm -f build build-modules test -f man/pcmcia.5 -a -f debian/rules umask 022; make DEB_MOD=yes all make[3]: Entering directory `/usr/src/modules/pcmcia-cs' /bin/sh: @set: command not found make[4]: Entering directory `/usr/src/modules/pcmcia-cs/modules' cc -MD -O2 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c cs.c {standard input}: Assembler messages: {standard input}:9: Warning: Ignoring changed section attributes for .modinfo cc -MD -O2 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c cistpl.c {standard input}: Assembler messages: {standard input}:47: Warning: Ignoring changed section attributes for .modinfo cc -MD -O2 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c rsrc_mgr.c {standard input}: Assembler messages: {standard input}:15: Warning: Ignoring changed section attributes for .modinfo cc -MD -O2 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c bulkmem.c cc -MD -O2 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c cardbus.c cc -MD -O2 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c pci_fixup.c {standard input}: Assembler messages: {standard input}:17: Warning: Ignoring changed section attributes for .modinfo ld -r -o pcmcia_core.o cs.o cistpl.o rsrc_mgr.o bulkmem.o cardbus.o pci_fixup.o chmod -x pcmcia_core.o cc -MD -O2 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c ds.c {standard input}: Assembler messages: {standard input}:9: Warning: Ignoring changed section attributes for .modinfo cc -MD -O2 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c cb_enabler.c {standard input}: Assembler messages: {standard input}:9: Warning: Ignoring changed section attributes for .modinfo cc -MD -O2 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c i82365.c {standard input}: Assembler messages: {standard input}:9: Warning: Ignoring changed section attributes for .modinfo cc -MD -O2 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c tcic.c {standard input}: Assembler messages: {standard input}:9: Warning: Ignoring changed section attributes for .modinfo make[4]: Leaving directory `/usr/src/modules/pcmcia-cs/modules' make[4]: Entering directory `/usr/src/modules/pcmcia-cs/clients' cc -MD -O3 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c serial_cs.c {standard input}: Assembler messages: {standard input}:9: Warning: Ignoring changed section attributes for .modinfo cc -MD -O3 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c memory_cs.c {standard input}: Assembler messages: {standard input}:9: Warning: Ignoring changed section attributes for .modinfo cc -MD -O3 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c ftl_cs.c {standard input}: Assembler messages: {standard input}:9: Warning: Ignoring changed section attributes for .modinfo cc -MD -O3 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c dummy_cs.c {standard input}: Assembler messages: {standard input}:9: Warning: Ignoring changed section attributes for .modinfo cc -MD -O3 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c sram_mtd.c {standard input}: Assembler messages: {standard input}:9: Warning: Ignoring changed section attributes for .modinfo cc -MD -O3 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c iflash2_mtd.c {standard input}: Assembler messages: {standard input}:9: Warning: Ignoring changed section attributes for .modinfo cc -MD -O3 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c iflash2+_mtd.c {standard input}: Assembler messages: {standard input}:9: Warning: Ignoring changed section attributes for .modinfo cc -MD -O3 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c memory_cb.c {standard input}: Assembler messages: {standard input}:9: Warning: Ignoring changed section attributes for .modinfo cc -MD -O3 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c serial_cb.c {standard input}: Assembler messages: {standard input}:9: Warning: Ignoring changed section attributes for .modinfo cc -MD -c -O2 -I../include -I/usr/src/linux/include -D__KERNEL__ -DEXPORT_SYMTAB -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -DMODULE -DCARDBUS 3c575_cb.c /tmp/ccAVXJPh.s: Assembler messages: /tmp/ccAVXJPh.s:77: Warning: Ignoring changed section attributes for .modinfo cc -MD -c -O2 -I../include -I/usr/src/linux/include -D__KERNEL__ -DEXPORT_SYMTAB -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -DMODULE -DCARDBUS tulip_cb.c /tmp/ccauJ44C.s: Assembler messages: /tmp/ccauJ44C.s:108: Warning: Ignoring changed section attributes for .modinfo cc -MD -c -O2 -I../include -I/usr/src/linux/include -D__KERNEL__ -DEXPORT_SYMTAB -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -DMODULE -DCARDBUS epic_cb.c /tmp/ccqvGC17.s: Assembler messages: /tmp/ccqvGC17.s:58: Warning: Ignoring changed section attributes for .modinfo cc -MD -c -O2 -I../include -I/usr/src/linux/include -D__KERNEL__ -DEXPORT_SYMTAB -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -DMODULE -DCARDBUS eepro100_cb.c /tmp/ccGL67WV.s: Assembler messages: /tmp/ccGL67WV.s:88: Warning: Ignoring changed section attributes for .modinfo cc -MD -O3 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c pcnet_cs.c {standard input}: Assembler messages: {standard input}:9: Warning: Ignoring changed section attributes for .modinfo cc -MD -O3 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c 3c589_cs.c {standard input}: Assembler messages: {standard input}:9: Warning: Ignoring changed section attributes for .modinfo cc -MD -O3 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c nmclan_cs.c {standard input}: Assembler messages: {standard input}:9: Warning: Ignoring changed section attributes for .modinfo cc -MD -O3 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c fmvj18x_cs.c {standard input}: Assembler messages: {standard input}:9: Warning: Ignoring changed section attributes for .modinfo cc -MD -O3 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c smc91c92_cs.c {standard input}: Assembler messages: {standard input}:9: Warning: Ignoring changed section attributes for .modinfo cc -MD -O3 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c xirc2ps_cs.c {standard input}: Assembler messages: {standard input}:9: Warning: Ignoring changed section attributes for .modinfo cc -MD -O3 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c 3c574_cs.c {standard input}: Assembler messages: {standard input}:19: Warning: Ignoring changed section attributes for .modinfo cc -MD -c -O2 -I../include -I/usr/src/linux/include -D__KERNEL__ -DEXPORT_SYMTAB -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -DPCMCIA -D__NO_VERSION__ /usr/src/linux/drivers/net/ibmtr.c cc -c -MD -O3 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE ibmtr_cs.c -o .ibmtr_cs.o {standard input}: Assembler messages: {standard input}:9: Warning: Ignoring changed section attributes for .modinfo ld -r -o ibmtr_cs.o .ibmtr_cs.o ibmtr.o rm -f .ibmtr_cs.o ; chmod -x ibmtr_cs.o cc -MD -O3 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c ide_cs.c {standard input}: Assembler messages: {standard input}:9: Warning: Ignoring changed section attributes for .modinfo cc -MD -O3 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c parport_cs.c {standard input}: Assembler messages: {standard input}:9: Warning: Ignoring changed section attributes for .modinfo cc -MD -c -O2 -I../include -I/usr/src/linux/include -D__KERNEL__ -DEXPORT_SYMTAB -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -DMODULE /usr/src/linux/drivers/net/8390.c /tmp/cc4s2Q8O.s: Assembler messages: /tmp/cc4s2Q8O.s:19: Warning: Ignoring changed section attributes for .modinfo make[4]: Leaving directory `/usr/src/modules/pcmcia-cs/clients' make[4]: Entering directory `/usr/src/modules/pcmcia-cs/wireless' cc -MD -O3 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c netwave_cs.c {standard input}: Assembler messages: {standard input}:9: Warning: Ignoring changed section attributes for .modinfo cc -MD -O3 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c wavelan_cs.c {standard input}: Assembler messages: {standard input}:9: Warning: Ignoring changed section attributes for .modinfo cc -MD -O3 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c ray_cs.c {standard input}: Assembler messages: {standard input}:9: Warning: Ignoring changed section attributes for .modinfo cc -MD -c -O3 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h wvlan_hcf.c cc -MD -c -O3 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h wvlan_hcfio.c cc -c -MD -O3 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE wvlan_cs.c -o .wvlan_cs.o {standard input}: Assembler messages: {standard input}:9: Warning: Ignoring changed section attributes for .modinfo ld -r -o wvlan_cs.o .wvlan_cs.o wvlan_hcf.o wvlan_hcfio.o rm -f .wvlan_cs.o ; chmod -x wvlan_cs.o cc -MD -O3 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c airo_cs.c {standard input}: Assembler messages: {standard input}:9: Warning: Ignoring changed section attributes for .modinfo cc -MD -O3 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c airo.c {standard input}: Assembler messages: {standard input}:9: Warning: Ignoring changed section attributes for .modinfo make[4]: Leaving directory `/usr/src/modules/pcmcia-cs/wireless' make[4]: Entering directory `/usr/src/modules/pcmcia-cs' make -C clients -f wavelan2_cs.mk all make[5]: Entering directory `/usr/src/modules/pcmcia-cs/clients' cc -MD -c -O2 -Wall -Wstrict-prototypes -Winline -pipe -D__KERNEL__ -DMODULE -I../include -I/usr/src/linux/include -I/usr/src/linux wavelan2_cs.c -o .wavelan2_cs.o {standard input}: Assembler messages: {standard input}:9: Warning: Ignoring changed section attributes for .modinfo ld -r -o wavelan2_cs.o .wavelan2_cs.o -L../lib -lhcf-i386 rm -f .wavelan2_cs.o ; chmod -x wavelan2_cs.o make[5]: Leaving directory `/usr/src/modules/pcmcia-cs/clients' make[4]: Leaving directory `/usr/src/modules/pcmcia-cs' make[3]: Leaving directory `/usr/src/modules/pcmcia-cs' touch build-modules test -f man/pcmcia.5 -a -f debian/rules rm -f -r debian/tmp-modules install -d debian/tmp-modules debian/tmp-modules/DEBIAN KSRC="/usr/src/linux" KVERS="2.2.19" KDREV="pathlab.1.0" \ sh -v debian/setvers.sh #!/bin/sh # setvers.sh - extract version numbers from the changelog and kernel # source and build the control file and prerm script for the # pcmcia-modules package # KSRC is expected to be passed through the environment set -e umask 022 # define some sed scripts for extracting the upstream version number # and Debian revision number from a Debian changelog pc_vers_sed=' /#define CS_RELEASE "\(.*\)"/{ s//\1/p q }' up_vers_sed=' 1{ s/^[^(]*(// s/)[^)]*$// /-[A-Za-z0-9.+]*$/{ s/// b enddeb } /-/q :enddeb /^[A-Za-z0-9.+:-]\{1,\}$/p q }' deb_rev_sed=' 1{ s/^[^(]*(// s/)[^)]*$// s/^.*-\([A-Za-z0-9.+]*\)$/\1/p q }' test "$KVERS" || \ KVERS=`sed -ne '/UTS_RELEASE=/{ s/// p q }' config.mk` # extract the upstream version number and debian revision number UPVERS=`sed -ne "$pc_vers_sed" include/pcmcia/version.h` sed -ne "$pc_vers_sed" include/pcmcia/version.h DEBREV=`sed -ne "$deb_rev_sed" debian/changelog` sed -ne "$deb_rev_sed" debian/changelog NEXTVERS=${UPVERS%.*}.`expr ${UPVERS##*.} + 1` expr ${UPVERS##*.} + 1 # determine the version numbers for the kernel source # use a Debian changelog if it exists, otherwise use the kernel version # number determined by the PCMCIA configure script if [ "$KDREV" ]; then case "$KDREV" in *-*) KDEBREV=${KDREV##*-} ;; *) KDEBREV="" ;; esac KVERSDEB=${KDREV%-*} elif test -r "$KSRC/debian/changelog"; then KDEBREV=`sed -ne "$deb_rev_sed" "$KSRC/debian/changelog"` KVERSDEB=`sed -ne "$up_vers_sed" "$KSRC/debian/changelog"` else KDEBREV="" KVERSDEB="$KVERS" fi # remove the epoch number (if any) KVERSDEBNE="${KVERSDEB##*:}" # test whether we have successfully determined the version numbers test "$KVERS" -a "$UPVERS" -a "$DEBREV" || exit 1 echo "$KVERS" > debian/KVERS if [ "${KVERS%-*}" = "$KVERSDEBNE" ]; then MODVERS="$UPVERS-${DEBREV}${KDEBREV:+k$KDEBREV}" else MODVERS="$UPVERS-${DEBREV}+"`echo "$KVERSDEBNE" | tr - +`${KDEBREV:+"+$KDEBREV"} fi echo "$KVERSDEBNE" | tr - + echo "$MODVERS" > debian/MODVERS # Generate a correct control file and prerm script for the modules package for script in preinst postinst prerm; do sed -e 's/\${kvers}/'"$KVERS"'/g s/\${kversdeb}/'"$KVERSDEB"'/g' \ debian/$script-modules.in > debian/tmp-modules/DEBIAN/$script chmod +x debian/tmp-modules/DEBIAN/$script done cat debian/control-source > debian/control.tmp if [ "${KVERS%-*}" = "$KVERSDEBNE" -a "$KDEBREV" ]; then sed -e 's/\${kvers}/'"$KVERS"'/g' debian/control-modules | \ tee -a debian/control >> debian/control.tmp else sed -e 's/\${kvers}/'"$KVERS"'/g' debian/control-modules | \ sed -e 's/Depends: kernel-image[^)]*),/Depends:/' | \ tee -a debian/control >> debian/control.tmp fi dpkg-gencontrol -Vkversdeb="$KVERSDEB${KDEBREV:+-$KDEBREV}" -v"$MODVERS" \ -Vcurvers="$UPVERS" -Vnextvers="$NEXTVERS" \ -p"pcmcia-modules-$KVERS" -Pdebian/tmp-modules \ -cdebian/control.tmp exit 0 install -d "debian/tmp-modules/usr/share/doc/pcmcia-modules-`cat debian/KVERS`" umask 022; make \ DEB_MOD=yes PREFIX=`pwd`/debian/tmp-modules install make[3]: Entering directory `/usr/src/modules/pcmcia-cs' /bin/sh: @set: command not found make[4]: Entering directory `/usr/src/modules/pcmcia-cs/modules' cp pcmcia_core.o ds.o cb_enabler.o i82365.o tcic.o /usr/src/modules/pcmcia-cs/debian/tmp-modules/lib/modules/2.2.19/pcmcia make[4]: Leaving directory `/usr/src/modules/pcmcia-cs/modules' make[4]: Entering directory `/usr/src/modules/pcmcia-cs/clients' cp serial_cs.o memory_cs.o ftl_cs.o dummy_cs.o sram_mtd.o iflash2_mtd.o iflash2+_mtd.o memory_cb.o serial_cb.o 3c575_cb.o tulip_cb.o epic_cb.o eepro100_cb.o pcnet_cs.o 3c589_cs.o nmclan_cs.o fmvj18x_cs.o smc91c92_cs.o xirc2ps_cs.o 3c574_cs.o ibmtr_cs.o ide_cs.o parport_cs.o /usr/src/modules/pcmcia-cs/debian/tmp-modules/lib/modules/2.2.19/pcmcia cp 8390.o /usr/src/modules/pcmcia-cs/debian/tmp-modules/lib/modules/2.2.19/pcmcia make[4]: Leaving directory `/usr/src/modules/pcmcia-cs/clients' make[4]: Entering directory `/usr/src/modules/pcmcia-cs/wireless' cp netwave_cs.o wavelan_cs.o ray_cs.o wvlan_cs.o airo_cs.o airo.o /usr/src/modules/pcmcia-cs/debian/tmp-modules/lib/modules/2.2.19/pcmcia make[4]: Leaving directory `/usr/src/modules/pcmcia-cs/wireless' make[4]: Entering directory `/usr/src/modules/pcmcia-cs' make -C clients install-modules MODULES=wavelan2_cs.o make[5]: Entering directory `/usr/src/modules/pcmcia-cs/clients' cp wavelan2_cs.o /usr/src/modules/pcmcia-cs/debian/tmp-modules/lib/modules/2.2.19/pcmcia make[5]: Leaving directory `/usr/src/modules/pcmcia-cs/clients' make -C man install-man4 MAN4=wavelan2_cs.4 make[5]: Entering directory `/usr/src/modules/pcmcia-cs/man' cp *.4 /usr/src/modules/pcmcia-cs/debian/tmp-modules/usr/share/man/man4 make[5]: Leaving directory `/usr/src/modules/pcmcia-cs/man' make -C etc -f wavelan2_cs.mk install make[5]: Entering directory `/usr/src/modules/pcmcia-cs/etc' grep -q wavelan2 /usr/src/modules/pcmcia-cs/debian/tmp-modules/etc/pcmcia/config || \ patch -s /usr/src/modules/pcmcia-cs/debian/tmp-modules/etc/pcmcia/config wavelan2_cs.patch grep: /usr/src/modules/pcmcia-cs/debian/tmp-modules/etc/pcmcia/config: No such file or directory patch: **** Can't find file /usr/src/modules/pcmcia-cs/debian/tmp-modules/etc/pcmcia/config : No such file or directory make[5]: *** [install] Error 2 make[5]: Leaving directory `/usr/src/modules/pcmcia-cs/etc' make[4]: *** [install] Error 2 make[4]: Leaving directory `/usr/src/modules/pcmcia-cs' make[3]: *** [install] Error 2 make[3]: Leaving directory `/usr/src/modules/pcmcia-cs' make[2]: *** [binary-modules] Error 2 make[2]: Leaving directory `/usr/src/modules/pcmcia-cs' make[1]: *** [kdist_image] Error 2 make[1]: Leaving directory `/usr/src/modules/pcmcia-cs' Module /usr/src/modules/pcmcia-cs failed. Hit return to Continue koladvip:/usr/src/linux#