Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 751469 - www-client/firefox-82.0: fails to compile with musl (redefinition of 'struct ifmap')
Summary: www-client/firefox-82.0: fails to compile with musl (redefinition of 'struct ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-10-27 15:51 UTC by Felix Janda
Modified: 2020-10-28 17:09 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log.xz,436.71 KB, application/x-xz)
2020-10-27 15:51 UTC, Felix Janda
Details
emerge --info (emerge.info,6.14 KB, application/x-info)
2020-10-27 15:52 UTC, Felix Janda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Janda 2020-10-27 15:51:21 UTC
Relevant part from the build.log:

In file included from /mnt/a/tmp/portage/www-client/firefox-82.0/work/firefox_build/di
st/system_wrappers/net/if.h:3,
                 from /mnt/a/tmp/portage/www-client/firefox-82.0/work/firefox-82.0/med
ia/mtransport/third_party/nICEr/src/stun/addrs-netlink.c:49,
                 from Unified_c_third_party_nICEr1.c:20:
/usr/include/net/if.h:64:8: error: redefinition of 'struct ifmap'
   64 | struct ifmap {
      |        ^~~~~
In file included from /mnt/a/tmp/portage/www-client/firefox-82.0/work/firefox-82.0/med
ia/mtransport/third_party/nICEr/src/stun/stun.h:50,
                 from /mnt/a/tmp/portage/www-client/firefox-82.0/work/firefox-82.0/med
ia/mtransport/third_party/nICEr/src/stun/stun_util.h:38,
                 from /mnt/a/tmp/portage/www-client/firefox-82.0/work/firefox-82.0/med
ia/mtransport/third_party/nICEr/src/stun/addrs-netlink.c:39,
                 from Unified_c_third_party_nICEr1.c:20:
/usr/include/linux/if.h:192:8: note: originally defined here
  192 | struct ifmap {
      |        ^~~~~
In file included from /mnt/a/tmp/portage/www-client/firefox-82.0/work/firefox_build/di
st/system_wrappers/net/if.h:3,
                 from /mnt/a/tmp/portage/www-client/firefox-82.0/work/firefox-82.0/med
ia/mtransport/third_party/nICEr/src/stun/addrs-netlink.c:49,
                 from Unified_c_third_party_nICEr1.c:20:
/usr/include/net/if.h:76:8: error: redefinition of 'struct ifreq'
   76 | struct ifreq {
      |        ^~~~~
In file included from /mnt/a/tmp/portage/www-client/firefox-82.0/work/firefox-82.0/med
ia/mtransport/third_party/nICEr/src/stun/stun.h:50,
                 from /mnt/a/tmp/portage/www-client/firefox-82.0/work/firefox-82.0/med
ia/mtransport/third_party/nICEr/src/stun/stun_util.h:38,
                 from /mnt/a/tmp/portage/www-client/firefox-82.0/work/firefox-82.0/med
ia/mtransport/third_party/nICEr/src/stun/addrs-netlink.c:39,
                 from Unified_c_third_party_nICEr1.c:20:
/usr/include/linux/if.h:229:8: note: originally defined here
  229 | struct ifreq {
      |        ^~~~~
In file included from /mnt/a/tmp/portage/www-client/firefox-82.0/work/firefox_build/di
st/system_wrappers/net/if.h:3,
                 from /mnt/a/tmp/portage/www-client/firefox-82.0/work/firefox-82.0/med
ia/mtransport/third_party/nICEr/src/stun/addrs-netlink.c:49,
                 from Unified_c_third_party_nICEr1.c:20:
/usr/include/net/if.h:116:8: error: redefinition of 'struct ifconf'

Reproducible: Always
Comment 1 Felix Janda 2020-10-27 15:51:49 UTC
Created attachment 668822 [details]
build.log
Comment 2 Felix Janda 2020-10-27 15:52:07 UTC
Created attachment 668825 [details]
emerge --info
Comment 3 Felix Janda 2020-10-27 15:52:34 UTC
Patch from Alpine addressing this issue: https://git.alpinelinux.org/aports/plain/community/firefox/avoid-redefinition.patch
Comment 4 Larry the Git Cow gentoo-dev 2020-10-28 17:09:35 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c14d3874c162f15d755908913c0390929db44a68

commit c14d3874c162f15d755908913c0390929db44a68
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2020-10-28 16:56:32 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2020-10-28 17:09:27 +0000

    www-client/firefox: bump to v82.0.2
    
    Closes: https://bugs.gentoo.org/751469
    Package-Manager: Portage-3.0.8, Repoman-3.0.2
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 www-client/firefox/Manifest              |   97 +++
 www-client/firefox/firefox-82.0.2.ebuild | 1120 ++++++++++++++++++++++++++++++
 2 files changed, 1217 insertions(+)