* [PATCH v4l-utils] Fix build failure on s390x
@ 2020-02-16 9:18 Sean Young
2020-02-26 15:46 ` Sakari Ailus
0 siblings, 1 reply; 2+ messages in thread
From: Sean Young @ 2020-02-16 9:18 UTC (permalink / raw)
To: linux-media
See: https://bugzilla.redhat.com/show_bug.cgi?id=1800228
/usr/bin/ld: .libs/libdvbv5_la-dvb-fe.o:(.bss+0x8): multiple definition of `delivery_system_name'; .libs/libdvbv5_la-dvb-v5.o:/builddir/build/BUILD/v4l-utils-1.18.0/lib/libdvbv5/dvb-v5.h:29: first defined here
/usr/bin/ld: .libs/libdvbv5_la-dvb-fe.o:(.bss+0xa8): multiple definition of `dvb_v5_name'; .libs/libdvbv5_la-dvb-v5.o:/builddir/build/BUILD/v4l-utils-1.18.0/lib/libdvbv5/dvb-v5.h:28: first defined here
/usr/bin/ld: .libs/libdvbv5_la-dvb-fe.o:(.rodata+0x3ec): multiple definition of `fe_bandwidth_name'; .libs/libdvbv5_la-dvb-v5.o:/builddir/build/BUILD/v4l-utils-1.18.0/lib/libdvbv5/dvb-v5.h:20: first defined here
delivery_system_name etc are being defined both in lib/libdvbv5/dvb-v5.c and
lib/libdvbv5/dvb-v5.h.
Signed-off-by: Sean Young <sean@mess.org>
---
lib/libdvbv5/gen_dvb_structs.pl | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/libdvbv5/gen_dvb_structs.pl b/lib/libdvbv5/gen_dvb_structs.pl
index 7e1d645c..d15d1fc3 100755
--- a/lib/libdvbv5/gen_dvb_structs.pl
+++ b/lib/libdvbv5/gen_dvb_structs.pl
@@ -419,6 +419,9 @@ sub output_arrays($$$$$)
}
printf OUT " %s[%i]", $name, $size;
} else {
+ if ($decl) {
+ printf OUT "extern ";
+ }
printf OUT "const %s%s[%i]", $type, $name, $size + 1;
}
--
2.24.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v4l-utils] Fix build failure on s390x
2020-02-16 9:18 [PATCH v4l-utils] Fix build failure on s390x Sean Young
@ 2020-02-26 15:46 ` Sakari Ailus
0 siblings, 0 replies; 2+ messages in thread
From: Sakari Ailus @ 2020-02-26 15:46 UTC (permalink / raw)
To: Sean Young; +Cc: linux-media
Hi Sean,
On Sun, Feb 16, 2020 at 09:18:39AM +0000, Sean Young wrote:
> See: https://bugzilla.redhat.com/show_bug.cgi?id=1800228
>
> /usr/bin/ld: .libs/libdvbv5_la-dvb-fe.o:(.bss+0x8): multiple definition of `delivery_system_name'; .libs/libdvbv5_la-dvb-v5.o:/builddir/build/BUILD/v4l-utils-1.18.0/lib/libdvbv5/dvb-v5.h:29: first defined here
> /usr/bin/ld: .libs/libdvbv5_la-dvb-fe.o:(.bss+0xa8): multiple definition of `dvb_v5_name'; .libs/libdvbv5_la-dvb-v5.o:/builddir/build/BUILD/v4l-utils-1.18.0/lib/libdvbv5/dvb-v5.h:28: first defined here
> /usr/bin/ld: .libs/libdvbv5_la-dvb-fe.o:(.rodata+0x3ec): multiple definition of `fe_bandwidth_name'; .libs/libdvbv5_la-dvb-v5.o:/builddir/build/BUILD/v4l-utils-1.18.0/lib/libdvbv5/dvb-v5.h:20: first defined here
>
> delivery_system_name etc are being defined both in lib/libdvbv5/dvb-v5.c and
> lib/libdvbv5/dvb-v5.h.
>
> Signed-off-by: Sean Young <sean@mess.org>
> ---
> lib/libdvbv5/gen_dvb_structs.pl | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/lib/libdvbv5/gen_dvb_structs.pl b/lib/libdvbv5/gen_dvb_structs.pl
> index 7e1d645c..d15d1fc3 100755
> --- a/lib/libdvbv5/gen_dvb_structs.pl
> +++ b/lib/libdvbv5/gen_dvb_structs.pl
> @@ -419,6 +419,9 @@ sub output_arrays($$$$$)
> }
> printf OUT " %s[%i]", $name, $size;
> } else {
> + if ($decl) {
> + printf OUT "extern ";
> + }
> printf OUT "const %s%s[%i]", $type, $name, $size + 1;
> }
>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
--
Sakari Ailus
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-02-26 15:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-16 9:18 [PATCH v4l-utils] Fix build failure on s390x Sean Young
2020-02-26 15:46 ` Sakari Ailus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).