Opened 8 years ago
Closed 8 years ago
Last modified 8 years ago
#13049 closed Bug Report - General (fixed)
error: redefinition of 'double bswap_dbl(double)' on ppc64
Reported by: | Owned by: | Stuart Auchterlonie | |
---|---|---|---|
Priority: | minor | Milestone: | 0.28.2 |
Component: | MythTV - General | Version: | 0.28.1 |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
Build error on RPM Fusion for PPC 64 build:
In file included from recorders/NuppelVideoRecorder.cpp:40:0: ../libmythbase/bswap.h: In function 'double bswap_dbl(double)': ../libmythbase/bswap.h:30:26: error: redefinition of 'double bswap_dbl(double)' static __inline__ double bswap_dbl(double x) ^~~~~~~~~ In file included from ../../external/FFmpeg/libavutil/intreadwrite.h:25:0, from ../../external/FFmpeg/libavcodec/get_bits.h:32, from mpeg/H264Parser.h:48, from recorders/dtvrecorder.h:21, from recorders/v4lrecorder.h:5, from recorders/NuppelVideoRecorder.h:33, from recorders/NuppelVideoRecorder.cpp:25: ../../external/FFmpeg/libavutil/bswap.h:80:22: note: 'double bswap_dbl(double)' previously defined here static inline double bswap_dbl(double x) ^~~~~~~~~
Full log: http://koji.rpmfusion.org/kojifiles/work/tasks/7660/127660/build.log
Attachments (2)
Change History (14)
comment:1 by , 8 years ago
Milestone: | unknown → 29.0 |
---|
comment:2 by , 8 years ago
by , 8 years ago
Attachment: | ticket13049-bswap-guard.diff added |
---|
comment:3 by , 8 years ago
Status: | new → infoneeded_new |
---|
Can you please try the attached patch and see if this works for you?
Regards Stuart
comment:4 by , 8 years ago
Owner: | set to |
---|
comment:5 by , 8 years ago
Nope, that's a no go... same error.
In file included from recorders/NuppelVideoRecorder.cpp:40:0: ../libmythbase/bswap.h: In function 'double bswap_dbl(double)': ../libmythbase/bswap.h:30:26: error: redefinition of 'double bswap_dbl(double)' static __inline__ double bswap_dbl(double x) ^~~~~~~~~ In file included from ../../external/FFmpeg/libavutil/intreadwrite.h:25:0, from ../../external/FFmpeg/libavcodec/get_bits.h:32, from mpeg/H264Parser.h:48, from recorders/dtvrecorder.h:21, from recorders/v4lrecorder.h:5, from recorders/NuppelVideoRecorder.h:33, from recorders/NuppelVideoRecorder.cpp:25: ../../external/FFmpeg/libavutil/bswap.h:80:22: note: 'double bswap_dbl(double)' previously defined here static inline double bswap_dbl(double x) ^~~~~~~~~
I verified the patch did get applied:
Patch #1 (ticket13049-bswap-guard.diff): + echo 'Patch #1 (ticket13049-bswap-guard.diff):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file mythtv/libs/libmythbase/bswap.h
comment:6 by , 8 years ago
Okay, instead can you try the patch avoid_bswap_conflict.patch
from #12634 ??
Regards Stuart
by , 8 years ago
Attachment: | ticket13049-remove-ffmpeg-bswap-change.diff added |
---|
comment:7 by , 8 years ago
Actually, can you try this patch ticket13049-remove-ffmpeg-bswap-change.diff
which i've attached to this ticket.
We have been carrying a custom patch for FFmpeg which adds bswap_dbl to the
ffmpeg codebase, yet it's not used within ffmpeg, and we also have the same
definition in libs/libmythbase/bswap.h
Rather than carrying an unneeded ffmpeg customization around lets just remove that customization.
The longer todo would be as documented in libs/libmythbase/bswap.h:29
which
asks why didn't we just use bswap_64 instead.
Regards Stuart
comment:8 by , 8 years ago
I'm still waiting on the arm builds but both ppc64le and ppc64 builds completed. Thanks!
Not sure if you currently test for it but Fedora Rawhide (future 27 release) is currently on GCC 7 so that's good.
comment:10 by , 8 years ago
Milestone: | 29.0 → 0.28.2 |
---|
comment:11 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | infoneeded_new → closed |
Is there any plan to provide a patch before 0.29? This effectively stops all builds/updates on RPM Fusion.