helpdavfs2 - Support: sr #110186, Fix building with GCC 10

 
 

sr #110186: Fix building with GCC 10

Submitted by:  None
Submitted on:  Mon 27 Jan 2020 11:51:37 PM UTC  
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  Werner Baumann <wbaumann>
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  GNU/Linux

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 08 Aug 2020 07:10:43 AM UTC, comment #5: 

Hi Werner,

I've integrated successfully 1.6.0 release to debian sid and now it's waiting for sponsoring. Thanks for new upstream code.

Woodrow

Woodrow Shen <woodrowshen>
Fri 07 Aug 2020 05:42:33 PM UTC, comment #4: 

It is not a bug to have variables with the same name in different source files. The bug was the missing keyword "static".

But there was a different bug that was not tolerated by GCC 10. It was same strange data type conversions in dav_coda.c. The resolution was to drop coda altogether because there is still fuse which is better suited anyway.

The new release 1.6.0 should fix all these problems. Please tell me if there are still problems with GCC 10.

Werner

Werner Baumann <wbaumann>
Project AdministratorIn charge of this item.
Thu 06 Aug 2020 01:02:19 PM UTC, comment #3: 

Hi Werner,

I'd like to inform that this bug is still there since 1.5.6 after I check that dav_coda.c and dav_fuse.c also have a global debug variable. Please take a look and I'm responsible to update debian side as well.

Woodrow

comment #2:

> Thanks for reporting.
>
> The bug is fixed in the CVS-resources, branch rel-1-4-6.
> It is just the declaration "static" in dav_coda.c, line 100, and dav_fuse.c, line 87.
>
> Werner
>

Woodrow Shen <woodrowshen>
Sat 01 Feb 2020 08:56:45 AM UTC, comment #2: 

Thanks for reporting.

The bug is fixed in the CVS-resources, branch rel-1-4-6.
It is just the declaration "static" in dav_coda.c, line 100, and dav_fuse.c, line 87.

Werner

Werner Baumann <wbaumann>
Project AdministratorIn charge of this item.
Wed 29 Jan 2020 01:15:50 PM UTC, comment #1: 

Thank you very much for fixing this. We also found this problem in the Fedora mass rebuild today.

https://koji.fedoraproject.org/koji/buildinfo?buildID=1435026

Felix Schwarz <felixschwarz>
Mon 27 Jan 2020 11:51:37 PM UTC, original submission:  

GCC 10 enables -fno-common bydefault, which breaks the build with:

/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: dav_fuse.o:(.bss.debug+0x0): multiple definition of `debug'; dav_coda.o:(.bss.debug+0x0): first defined here
collect2: error: ld returned 1 exit status

Bug: https://bugs.gentoo.org/706356
Bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85678

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #48294:  davfs2-gcc-10-fix.patch added by None (325B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by woodrowshen (Posted a comment)
  • -email is unavailable- added by wbaumann (Posted a comment)
  • -email is unavailable- added by felixschwarz (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-02-01 wbaumann StatusNone => Done
        Assigned toNone => wbaumann
    2020-01-27 None Attached File- => Added davfs2-gcc-10-fix.patch, #48294

    Back to the top


    Powered by Savane 3.7