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

 
 

sr #110186: Fix building with GCC 10

Submitter:  None
Submitted:  Mon 27 Jan 2020 11:51:37 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  _71007
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

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

- <_71007>
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

- <_71007>
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 _71007 (Posted a comment)
  • -email is unavailable- added by felixschwarz (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

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

    Back to the top

    Powered by Savane 3.13-8ccc.
    Corresponding source code