Change in osmo-iuh[rel-0.6.0]: Fix compilation with gcc-10

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Sun Jul 26 12:08:32 UTC 2020


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-iuh/+/19390 )


Change subject: Fix compilation with gcc-10
......................................................................

Fix compilation with gcc-10

/usr/bin/ld: test_common.o:(.bss+0x0): multiple definition of `talloc_asn1_ctx'; test-helpers.o:(.bss+0x0): first defined here

See also https://alioth-lists.debian.net/pipermail/debian-mobcom-maintainers/Week-of-Mon-20200413/000652.html

Change-Id: I4ce41158bb27e6b9242613106f226fc86995c53c
---
M src/tests/test-helpers.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-iuh refs/changes/90/19390/1

diff --git a/src/tests/test-helpers.c b/src/tests/test-helpers.c
index f218a79..ac7e129 100644
--- a/src/tests/test-helpers.c
+++ b/src/tests/test-helpers.c
@@ -33,7 +33,7 @@
 #include <osmocom/ranap/RANAP_LAI.h>
 
 int asn1_xer_print = 0;
-void *talloc_asn1_ctx;
+extern void *talloc_asn1_ctx;
 
 /* use odd number of digits */
 const uint8_t imsi_encoded[] = { 0x10, 0x32, 0x54, 0x76, 0xF8 };

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-iuh/+/19390
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-iuh
Gerrit-Branch: rel-0.6.0
Gerrit-Change-Id: I4ce41158bb27e6b9242613106f226fc86995c53c
Gerrit-Change-Number: 19390
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200726/e9161924/attachment.htm>


More information about the gerrit-log mailing list