Skip to contentSkip to conversation

linux-2.4.23

uml-devel Patrick Kilian 5 participants 5 messages Dec 12, 2003 – Dec 13, 2003 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

Hi,

when trying to compile linux-2.4.23 from kernel.org patched with uml_patch-2.4.22-uml6 I get the following error:

make all_targets
make[2]: Wechsel in das Verzeichnis Verzeichnis »/usr/src/linux-2.4.23-uml/fs«
gcc -D__KERNEL__ -I/usr/src/linux-2.4.23-uml/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -U__i386__ -Ui386 -DUM_FASTCALL -g -D__arch_um__ -DSUBARCH="i386" -D_LARGEFILE64_SOURCE -I/usr/src/linux-2.4.23-uml/arch/um/include -Derrno=kernel_errno -I/usr/src/linux-2.4.23-uml/arch/um/kernel/tt/include
-I/usr/src/linux-2.4.23-uml/arch/um/kernel/skas/include -nostdinc
-iwithprefix include -DKBUILD_BASENAME=binfmt_elf -c -o binfmt_elf.o binfmt_elf.c
binfmt_elf.c:806: macro `ELF_PLAT_INIT' used with too many (2) args make[2]: *** [binfmt_elf.o] Fehler 1
make[2]: Verlassen des Verzeichnisses Verzeichnis »/usr/src/linux-2.4.23-uml/fs«
make[1]: *** [first_rule] Fehler 2
make[1]: Verlassen des Verzeichnisses Verzeichnis »/usr/src/linux-2.4.23-uml/fs«
make: *** [_dir_fs] Fehler 2

Is this a know behavourier? Is there a workaround other than to wait for uml_patch-2.4.23-uml1?

mfg,
Patrick "Petschge" Kilian

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78&alloc_id371&opÌk
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#1 lore raw
Quoted 2 lines · Patrick Kilian

when trying to compile linux-2.4.23 from kernel.org patched with uml_patch-2.4.22-uml6 I get the following error:

[...]

Quoted 1 line

binfmt_elf.c:806: macro `ELF_PLAT_INIT' used with too many (2) args

This was answered a week or two ago (by someone else).

asm-um/archparam-i386.h renamed from asm-um/archparam-i386.h.orig +1 -1
@@ -23,7 +23,7 @@
 #define ELF_DATA        ELFDATA2LSB
 #define ELF_ARCH        EM_386
 
-#define ELF_PLAT_INIT(regs) do { \
+#define ELF_PLAT_INIT(regs, load_addr) do { \
 	PT_REGS_EBX(regs) = 0; \
 	PT_REGS_ECX(regs) = 0; \
 	PT_REGS_EDX(regs) = 0; \

Steve

Signature · 14 lines
Steven Pritchard - K&S Pritchard Enterprises, Inc.
Email: [email protected]             http://www.kspei.com/
Phone: (618)398-7360               Mobile: (618)567-7320


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
#2 lore raw
In reply to Patrick Kilian
Quoted 2 lines · Patrick Kilian

Is this a know behavourier? Is there a workaround other than to wait for uml_patch-2.4.23-uml1?

There is a workaround by making a small change in the source. See the mail archives about one week back I think.

Regards
Henrik

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#3 lore raw

Hi,

Quoted 4 lines · Henrik Nordstrom
Quoted 2 lines

Is this a know behavourier? Is there a workaround other than to wait for uml_patch-2.4.23-uml1?

There is a workaround by making a small change in the source. See the mail archives about one week back I think.

Thanks alot for your and Steves help.

Does anybody know why there isn't a official uml_patch-2.4.23-uml1?

mfg,
Patrick "Petschge" Kilian

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#4 lore raw
Quoted 1 line · [email protected] said:

Does anybody know why there isn't a official uml_patch-2.4.23-uml1?

I do.

It's because I haven't had any time to put it together. Just fix the ELF_PLAT_INIT thing, and you'll have pretty much what I'd release anyway.

Jeff

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel