Problem compiling OpenBSC on Kubuntu Hardy

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/.

Stefan Schmidt stefan at datenfreihafen.org
Thu Jun 17 14:30:29 UTC 2010


Hello.

On Thu, 2010-06-17 at 16:20, Luca Bertoncello wrote:
> 
> I'm trying to compile OpenBSC (last version from GIT) on my KUbuntu
> Hardy (8.04).
> Unfortunately, I get this error:
> 
> make[3]: Betrete Verzeichnis '/home/lucabert/BSC/openbsc/openbsc/src'
> gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I..   -Wall -I/usr/local/include/   -I/usr/local/include/   -g -O2 -MT gsm_04_11.o -MD -MP -MF .deps/gsm_04_11.Tpo -c -o gsm_04_11.o gsm_04_11.c
> gsm_04_11.c:357:16: Fehler: ungültiger Suffix »b111« an Ganzzahlkonstante
> gsm_04_11.c:358:8: Fehler: ungültiger Suffix »b000« an Ganzzahlkonstante
> gsm_04_11.c:360:8: Fehler: ungültiger Suffix »b001« an Ganzzahlkonstante
> gsm_04_11.c:362:8: Fehler: ungültiger Suffix »b010« an Ganzzahlkonstante
> gsm_04_11.c:364:8: Fehler: ungültiger Suffix »b011« an Ganzzahlkonstante

As non-german speaker would not know what this means let me jump in here. It
seems gcc gets confused with using something like 0b011 as a constant. Which is
a bit strange as this is actually a gcc extension to my best knowledge to use
not only decimal and hex but also bit.

> gsm_04_11.c: In Funktion »gsm340_rx_tpdu«:
> gsm_04_11.c:563: Warnung: Vergleich ist durch beschränkten Wertebereich des Datentyps stets »unwahr«
> make[3]: *** [gsm_04_11.o] Fehler 1
> make[3]: Verlasse Verzeichnis '/home/lucabert/BSC/openbsc/openbsc/src'
> make[2]: *** [all-recursive] Fehler 1
> make[2]: Verlasse Verzeichnis '/home/lucabert/BSC/openbsc/openbsc/src'
> make[1]: *** [all-recursive] Fehler 1
> make[1]: Verlasse Verzeichnis '/home/lucabert/BSC/openbsc/openbsc'
> make: *** [all] Fehler 2
> 
> I see the line in gsm_04_11.c and it seems OK. What is the problem?
> Ubuntu Hardy uses gcc 4.2.4.

Hmm, easiest thing to try is changing them into decimal values and see if that
fixes it for you.

regards
Stefan Schmidt




More information about the OpenBSC mailing list