Package: lush Version: 1.1-1 Tags: patch Lush currently FTBFS due to a "invalid lvalue in assignment" in the bfd support code for mips/mipsel. The code likely compiled with a pre-4.0 gcc. The appended patch fixes it.
Thiemo --- lush-1.1/src/dldbfd.c.old 2005-10-27 19:51:55.000000000 +0200 +++ lush-1.1/src/dldbfd.c 2005-10-27 20:01:04.000000000 +0200 @@ -88,9 +88,11 @@ #ifdef bfd_get_section_size_before_reloc /* bfd<2.15 */ # define dldbfd_section_rawsize(p) ((p)->_raw_size) +# define dldbfd_set_section_rawsize(p, v) ((p)->_raw_size = (v)) # define dldbfd_section_size(p) ((p)->_cooked_size) #else # define dldbfd_section_rawsize(p) ((p)->rawsize ? (p)->rawsize : (p)->size) +# define dldbfd_set_section_rawsize(p, v) ((p)->rawsize ? ((p)->rawsize = (v)) : ((p)->size = (v))) # define dldbfd_section_size(p) ((p)->size) #endif @@ -1190,7 +1192,7 @@ mipself_create_got(module_entry *ent, sgot = bfd_make_section(ent->abfd, ".got"); ASSERT_BFD(sgot); sgot->flags = SEC_ALLOC|SEC_RELOC; - dldbfd_section_rawsize(sgot) = 0; + dldbfd_set_section_rawsize(sgot, 0); dldbfd_section_size(sgot) = offset; if (sgot->alignment_power < 4) sgot->alignment_power = 4; -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]