From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 18 Dec 2003 14:40:36 +0500 From: Andrey Rahmatullin To: ALT Linux kernel packages development Subject: Re: [d-kernel] Re: kernel 2.6.0-test11 Message-ID: <20031218094035.GB1930@wrars-comp.wrarsdomain> Mail-Followup-To: ALT Linux kernel packages development References: <20031218073508.GA21087@wrars-comp.wrarsdomain> <200312181056.13875.LAV@VL3143.spb.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="da4uJneut+ArUgXk" Content-Disposition: inline In-Reply-To: <200312181056.13875.LAV@VL3143.spb.edu> User-Agent: Mutt/1.4.1i X-Operating-System: ALT Linux Sisyphus (20031103) X-Window-System: 4.3.0 X-Spam-Status: No, tests=bogofilter, spamicity=0.500000, version=0.12.3 X-BeenThere: devel-kernel@altlinux.ru X-Mailman-Version: 2.1.3 Precedence: list Reply-To: ALT Linux kernel packages development List-Id: ALT Linux kernel packages development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Dec 2003 09:43:46 -0000 Archived-At: List-Archive: List-Post: --da4uJneut+ArUgXk Content-Type: multipart/mixed; boundary="l76fUT7nc3MelDdI" Content-Disposition: inline Content-Transfer-Encoding: 8bit --l76fUT7nc3MelDdI Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit On Thu, Dec 18, 2003 at 10:56:13AM +0300, Vitaly Lipatov wrote: > On 18 Декабрь 2003 10:35, Andrey Rahmatullin wrote: > > Как теперь собрать модуль, натурально требующий дерево > > исходников, т.к. в его Makefile стоит только make -C > > $(KERNEL_DIR) SUBDIRS=$(PWD) modules. Конкретно - ltmodem. > А как же раньше ltmodem всегда собирался без исходников ядра? А это не совсем официальная сборка, содержит только проприетарный кусок, 2 оберточных исходника и такой вот Makefile. Собираться и работать должно только под 2.6. Бралось с http://linmodems.technion.ac.il/packages/ltmodem/kernel-2.6/ wrar@wrars-comp SRC/2.6/ltmodem-2.6-alk $ l итого 576 drwxr-xr-x 2 wrar wrar 99 Дек 18 14:34 ./ drwxr-xr-x 3 wrar wrar 4096 Дек 18 14:28 ../ -rw-r--r-- 1 wrar wrar 20389 Окт 17 18:21 serial.c -rw-r--r-- 1 wrar wrar 479 Окт 17 15:42 Makefile -rw-r--r-- 1 wrar wrar 10921 Окт 17 15:18 lt_modem.c -rw-r--r-- 1 wrar wrar 2047 Окт 17 14:11 linuxif.h -rw-r--r-- 1 wrar wrar 270 Окт 16 01:02 README -rw-r--r-- 1 wrar wrar 537188 Окт 13 22:46 ltmdmobj.o Если ему таки дать полные исходники ядра (распакованный тарбол + конфиг), видно вот что: (логи в сокращенном и классическом форматах приаттачены). -- Использовать зарезервированные словосочетания не по назначению нехорошо. :) -- ldv in devel@ --l76fUT7nc3MelDdI Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="V0.log" wrar@wrars-comp SRC/2.6/ltmodem-2.6-alk $ make KERNEL_DIR=/usr/src/kernel/sources/kernel-source-2.6.0 make -C /usr/src/kernel/sources/kernel-source-2.6.0 SUBDIRS=/home/wrar/SRC/2.6/ltmodem-2.6-alk modules make[1]: Entering directory `/usr/src/kernel/sources/kernel-source-2.6.0' HOSTCC scripts/fixdep HOSTCC scripts/genksyms/genksyms.o SHIPPED scripts/genksyms/lex.c SHIPPED scripts/genksyms/parse.h SHIPPED scripts/genksyms/keywords.c HOSTCC scripts/genksyms/lex.o SHIPPED scripts/genksyms/parse.c HOSTCC scripts/genksyms/parse.o HOSTLD scripts/genksyms/genksyms HOSTCC scripts/split-include HOSTCC scripts/conmakehash HOSTCC scripts/docproc HOSTCC scripts/kallsyms CC scripts/empty.o HOSTCC scripts/mk_elfconfig MKELF scripts/elfconfig.h HOSTCC scripts/file2alias.o HOSTCC scripts/modpost.o HOSTLD scripts/modpost HOSTCC scripts/pnmtologo HOSTCC scripts/bin2c SPLIT include/linux/autoconf.h -> include/config/* *** Warning: Overriding SUBDIRS on the command line can cause *** inconsistencies CC arch/i386/kernel/asm-offsets.s CHK include/asm-i386/asm_offsets.h UPD include/asm-i386/asm_offsets.h CC [M] /home/wrar/SRC/2.6/ltmodem-2.6-alk/lt_modem.o CC [M] /home/wrar/SRC/2.6/ltmodem-2.6-alk/serial.o LD [M] /home/wrar/SRC/2.6/ltmodem-2.6-alk/ltmodem.o LD [M] /home/wrar/SRC/2.6/ltmodem-2.6-alk/ltserial.o Building modules, stage 2. MODPOST CC /home/wrar/SRC/2.6/ltmodem-2.6-alk/ltmodem.mod.o LD [M] /home/wrar/SRC/2.6/ltmodem-2.6-alk/ltmodem.ko CC /home/wrar/SRC/2.6/ltmodem-2.6-alk/ltserial.mod.o LD [M] /home/wrar/SRC/2.6/ltmodem-2.6-alk/ltserial.ko make[1]: Leaving directory `/usr/src/kernel/sources/kernel-source-2.6.0' --l76fUT7nc3MelDdI Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="V1.log" wrar@wrars-comp SRC/2.6/ltmodem-2.6-alk $ make V=1 KERNEL_DIR=/usr/src/kernel/sources/kernel-source-2.6.0 make -C /usr/src/kernel/sources/kernel-source-2.6.0 SUBDIRS=/home/wrar/SRC/2.6/ltmodem-2.6-alk modules make[1]: Entering directory `/usr/src/kernel/sources/kernel-source-2.6.0' make -f scripts/Makefile.build obj=scripts gcc -Wp,-MD,scripts/.fixdep.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/fixdep scripts/fixdep.c make -f scripts/Makefile.build obj=scripts/genksyms gcc -Wp,-MD,scripts/genksyms/.genksyms.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o scripts/genksyms/genksyms.o scripts/genksyms/genksyms.c cat scripts/genksyms/lex.c_shipped > scripts/genksyms/lex.c cat scripts/genksyms/parse.h_shipped > scripts/genksyms/parse.h cat scripts/genksyms/keywords.c_shipped > scripts/genksyms/keywords.c gcc -Wp,-MD,scripts/genksyms/.lex.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -Iscripts/genksyms -c -o scripts/genksyms/lex.o scripts/genksyms/lex.c cat scripts/genksyms/parse.c_shipped > scripts/genksyms/parse.c gcc -Wp,-MD,scripts/genksyms/.parse.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -Wno-uninitialized -Iscripts/genksyms -c -o scripts/genksyms/parse.o scripts/genksyms/parse.c gcc -o scripts/genksyms/genksyms scripts/genksyms/genksyms.o scripts/genksyms/parse.o scripts/genksyms/lex.o gcc -Wp,-MD,scripts/.split-include.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include scripts/split-include.c gcc -Wp,-MD,scripts/.conmakehash.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/conmakehash scripts/conmakehash.c gcc -Wp,-MD,scripts/.docproc.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/docproc scripts/docproc.c gcc -Wp,-MD,scripts/.kallsyms.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/kallsyms scripts/kallsyms.c gcc -Wp,-MD,scripts/.empty.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=pentium3 -Iinclude/asm-i386/mach-default -fomit-frame-pointer -DKBUILD_BASENAME=empty -DKBUILD_MODNAME=empty -c -o scripts/.tmp_empty.o scripts/empty.c gcc -Wp,-MD,scripts/.mk_elfconfig.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mk_elfconfig scripts/mk_elfconfig.c scripts/mk_elfconfig i386 < scripts/empty.o > scripts/elfconfig.h gcc -Wp,-MD,scripts/.file2alias.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o scripts/file2alias.o scripts/file2alias.c gcc -Wp,-MD,scripts/.modpost.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o scripts/modpost.o scripts/modpost.c gcc -o scripts/modpost scripts/modpost.o scripts/file2alias.o gcc -Wp,-MD,scripts/.pnmtologo.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/pnmtologo scripts/pnmtologo.c gcc -Wp,-MD,scripts/.bin2c.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/bin2c scripts/bin2c.c SPLIT include/linux/autoconf.h -> include/config/* *** Warning: Overriding SUBDIRS on the command line can cause *** inconsistencies mkdir -p .tmp_versions make -f scripts/Makefile.build obj=arch/i386/kernel arch/i386/kernel/asm-offsets.s gcc -Wp,-MD,arch/i386/kernel/.asm-offsets.s.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=pentium3 -Iinclude/asm-i386/mach-default -fomit-frame-pointer -DKBUILD_BASENAME=asm_offsets -DKBUILD_MODNAME=asm_offsets -S -o arch/i386/kernel/asm-offsets.s arch/i386/kernel/asm-offsets.c CHK include/asm-i386/asm_offsets.h UPD include/asm-i386/asm_offsets.h make -f scripts/Makefile.build obj=/home/wrar/SRC/2.6/ltmodem-2.6-alk gcc -Wp,-MD,/home/wrar/SRC/2.6/ltmodem-2.6-alk/.lt_modem.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=pentium3 -Iinclude/asm-i386/mach-default -fomit-frame-pointer -Wall -DMODULE -DKBUILD_BASENAME=lt_modem -DKBUILD_MODNAME=ltmodem -c -o /home/wrar/SRC/2.6/ltmodem-2.6-alk/.tmp_lt_modem.o /home/wrar/SRC/2.6/ltmodem-2.6-alk/lt_modem.c gcc -Wp,-MD,/home/wrar/SRC/2.6/ltmodem-2.6-alk/.serial.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=pentium3 -Iinclude/asm-i386/mach-default -fomit-frame-pointer -Wall -DMODULE -DKBUILD_BASENAME=serial -DKBUILD_MODNAME=ltserial -c -o /home/wrar/SRC/2.6/ltmodem-2.6-alk/.tmp_serial.o /home/wrar/SRC/2.6/ltmodem-2.6-alk/serial.c ld -m elf_i386 -d -r -o /home/wrar/SRC/2.6/ltmodem-2.6-alk/ltmodem.o /home/wrar/SRC/2.6/ltmodem-2.6-alk/lt_modem.o /home/wrar/SRC/2.6/ltmodem-2.6-alk/ltmdmobj.o ld -m elf_i386 -d -r -o /home/wrar/SRC/2.6/ltmodem-2.6-alk/ltserial.o /home/wrar/SRC/2.6/ltmodem-2.6-alk/serial.o Building modules, stage 2. make -rR -f /usr/src/kernel/sources/kernel-source-2.6.0/scripts/Makefile.modpost scripts/modpost /home/wrar/SRC/2.6/ltmodem-2.6-alk/ltmodem.o /home/wrar/SRC/2.6/ltmodem-2.6-alk/ltserial.o gcc -Wp,-MD,/home/wrar/SRC/2.6/ltmodem-2.6-alk/.ltmodem.mod.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=pentium3 -Iinclude/asm-i386/mach-default -fomit-frame-pointer -DKBUILD_BASENAME=ltmodem -DMODULE -c -o /home/wrar/SRC/2.6/ltmodem-2.6-alk/ltmodem.mod.o /home/wrar/SRC/2.6/ltmodem-2.6-alk/ltmodem.mod.c ld -m elf_i386 -r -o /home/wrar/SRC/2.6/ltmodem-2.6-alk/ltmodem.ko /home/wrar/SRC/2.6/ltmodem-2.6-alk/ltmodem.o /home/wrar/SRC/2.6/ltmodem-2.6-alk/ltmodem.mod.o gcc -Wp,-MD,/home/wrar/SRC/2.6/ltmodem-2.6-alk/.ltserial.mod.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=pentium3 -Iinclude/asm-i386/mach-default -fomit-frame-pointer -DKBUILD_BASENAME=ltserial -DMODULE -c -o /home/wrar/SRC/2.6/ltmodem-2.6-alk/ltserial.mod.o /home/wrar/SRC/2.6/ltmodem-2.6-alk/ltserial.mod.c ld -m elf_i386 -r -o /home/wrar/SRC/2.6/ltmodem-2.6-alk/ltserial.ko /home/wrar/SRC/2.6/ltmodem-2.6-alk/ltserial.o /home/wrar/SRC/2.6/ltmodem-2.6-alk/ltserial.mod.o make[1]: Leaving directory `/usr/src/kernel/sources/kernel-source-2.6.0' --l76fUT7nc3MelDdI-- --da4uJneut+ArUgXk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/4XYTB4Vf7hFmt5URAvA5AJ9duWmjTaE5XK6dtBdSHM0JIMhJyQCeIMo8 T5VFpLbHHvnPoKhjYZ4PtFU= =F6SI -----END PGP SIGNATURE----- --da4uJneut+ArUgXk--