Info the same as earlier... Build output: i686-pc-linux-gnu-gcc -O2 -march=athlon-xp -pipe -I./../include -D_GNU_SOURCE -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DCONFIG_ROOT_CHECK_OFF=0 -DCOMMON_3264 -DELF_MACHINE_H='"elf_i386.h"' -DARCH_i386 -DONLY_32 -c -o obj_common.o obj_common.c In file included from obj_kallsyms.c:26: ./../include/util.h:43: warning: built-in function
Info the same as earlier... Build output: i686-pc-linux-gnu-gcc -O2 -march=athlon-xp -pipe -I./../include -D_GNU_SOURCE -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DCONFIG_ROOT_CHECK_OFF=0 -DCOMMON_3264 -DELF_MACHINE_H='"elf_i386.h"' -DARCH_i386 -DONLY_32 -c -o obj_common.o obj_common.c In file included from obj_kallsyms.c:26: ./../include/util.h:43: warning: built-in function log declared as non-function In file included from obj_common.c:28: ./../include/util.h:43: warning: built-in function log declared as non-function obj_kallsyms.c: In function obj32_kallsyms: obj_kallsyms.c:204: error: invalid lvalue in assignment obj_kallsyms.c:279: error: invalid lvalue in assignment make[1]: *** [obj_kallsyms.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/var/tmp/portage/module-init-tools-3.1/work/modutils-2.4.27/obj' make: *** [all] Error 2 !!! ERROR: sys-apps/module-init-tools-3.1 failed. !!! Function src_compile, Line 88, Exitcode 2 !!! emake modutils failed !!! If you need support, post the topmost build error, NOT this status message.
please provide a patch to resolve the issue
*** Bug 80610 has been marked as a duplicate of this bug. ***
From http://debian-amd64.alioth.debian.org/patches/current/modutils_2.4.26-1.2.0.0.1.gcc4.patch Here thy go: diff -urN ../tmp-orig/modutils-2.4.26/obj/obj_kallsyms.c ./obj/obj_kallsyms.c --- ../tmp-orig/modutils-2.4.26/obj/obj_kallsyms.c 2002-03-01 00:39:06.000000000 +0000 +++ ./obj/obj_kallsyms.c 2004-11-30 09:54:52.000000000 +0000 @@ -200,8 +200,8 @@ /* Initial contents, header + one entry per input section. No strings. */ osec->header.sh_size = sizeof(*a_hdr) + loaded*sizeof(*a_sec); - a_hdr = (struct kallsyms_header *) osec->contents = - xmalloc(osec->header.sh_size); + osec->contents = xmalloc(osec->header.sh_size); + a_hdr = (struct kallsyms_header *) osec->contents; memset(osec->contents, 0, osec->header.sh_size); a_hdr->size = sizeof(*a_hdr); a_hdr->sections = loaded; @@ -275,8 +275,8 @@ a_hdr->symbol_off + a_hdr->symbols*a_hdr->symbol_size + strings_size - strings_left; - a_hdr = (struct kallsyms_header *) osec->contents = - xrealloc(a_hdr, a_hdr->total_size); + osec->contents = xrealloc(a_hdr, a_hdr->total_size); + a_hdr = (struct kallsyms_header *) osec->contents; p = (char *)a_hdr + a_hdr->symbol_off; memcpy(p, symbols, a_hdr->symbols*a_hdr->symbol_size); free(symbols); diff -urN ../tmp-orig/modutils-2.4.26/obj/obj_ppc.c ./obj/obj_ppc.c --- ../tmp-orig/modutils-2.4.26/obj/obj_ppc.c 2002-03-01 00:39:06.000000000 +0000 +++ ./obj/obj_ppc.c 2004-11-30 09:55:50.000000000 +0000 @@ -255,7 +255,8 @@ archdata_sec->header.sh_size = 0; sec = obj_find_section(f, "__ftr_fixup"); if (sec) { - ad = (struct archdata *) (archdata_sec->contents) = xmalloc(sizeof(*ad)); + archdata_sec->contents = xmalloc(sizeof(*ad)); + ad = (struct archdata *) (archdata_sec->contents); memset(ad, 0, sizeof(*ad)); archdata_sec->header.sh_size = sizeof(*ad); ad->__start___ftr_fixup = sec->header.sh_addr;
Nope - The full patch is needed, link above.
Just adding a "Works for me" for the linked to patch.
In CVS, thanks for your report. Please give the change two hours to propagate before syncing your portage tree.