Some patches

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/OpenBSC@lists.osmocom.org/.

Alexander Huemer alexander.huemer at xx.vu
Fri Nov 6 20:35:33 UTC 2015


Hi,

gcc-5.2.1 from Debian stretch refuses to build osmo-pcu.

> bts.cpp:86:1: error: invalid conversion from 'const rate_ctr_desc*' to 
> 'unsigned int' [-fpermissive]
> };

The relevant piece of code from bts.cpp is:

        static const struct rate_ctr_group_desc bts_ctrg_desc = {
                "bts",
                "BTS Statistics",
                ARRAY_SIZE(bts_ctr_description),
                bts_ctr_description,
        };


This structure comes from libosmocore, osmocom/core/rate_ctr.h, without 
comments:

        struct rate_ctr_group_desc {
                const char *group_name_prefix;
                const char *group_description;
                int class_id;
                const unsigned int num_ctr;
                const struct rate_ctr_desc *ctr_desc;
        };

It seems like the class_id is missing.
Since the initialization is done in the classic, ordered way, the last 
three fields are initialized to unintened values, at least that's what I 
make of this.
For me that looks like a real bug.

Kind regards,
-Alex



More information about the OpenBSC mailing list