commit | 4b487b836a89c0274b1918302cffd241adbdc34b | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@gnumonks.org> | Thu Aug 08 10:18:35 2019 +0200 |
committer | Harald Welte <laforge@gnumonks.org> | Thu Aug 08 10:18:35 2019 +0200 |
tree | 6e9c4c2525b08d9662167187a3dbd60bfa67e13a | |
parent | e0265462d8c05ebfa133db2039c2fbe3ebbd286e [diff] |
Fix builds on Ubuntu 16.04 The most recent commits introduced 'C99' syntax by declaring variables inside the 'for' statement itself, rather than before. This resulted in compile failures in the Ubuntu 16.04 builds on build.opensuse.org: [ 105s] libcommon/source/usb.c: In function 'SIMtrace_USB_Initialize': [ 105s] libcommon/source/usb.c:679:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode [ 105s] for (uint8_t i = 0; i < ARRAY_SIZE(device_id_string) - 1; i++) { [ 105s] ^ [ 105s] libcommon/source/usb.c:679:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code [ 105s] libcommon/source/usb.c:686:15: error: redefinition of 'i' [ 105s] for (uint8_t i = 0; i < ARRAY_SIZE(git_version) - 1; i++) { [ 105s] ^ [ 105s] libcommon/source/usb.c:679:15: note: previous definition of 'i' was here [ 105s] for (uint8_t i = 0; i < ARRAY_SIZE(device_id_string) - 1; i++) { [ 105s] ^ [ 105s] libcommon/source/usb.c:686:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode [ 105s] for (uint8_t i = 0; i < ARRAY_SIZE(git_version) - 1; i++) { [ 105s] ^ [ 105s] libcommon/source/usb.c:692:15: error: redefinition of 'i' [ 105s] for (uint8_t i = 0; i < ARRAY_SIZE(usb_strings) && i < ARRAY_SIZE(usb_strings_extended); i++) { [ 105s] ^ [ 105s] libcommon/source/usb.c:686:15: note: previous definition of 'i' was here [ 105s] for (uint8_t i = 0; i < ARRAY_SIZE(git_version) - 1; i++) { [ 105s] ^ [ 105s] libcommon/source/usb.c:692:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode [ 105s] for (uint8_t i = 0; i < ARRAY_SIZE(usb_strings) && i < ARRAY_SIZE(usb_strings_extended); i++) { [ 105s] ^ [ 105s] Makefile:227: recipe for target 'obj/simtrace/flash_usb.o' faile Change-Id: Ibdb837ac105664484b10873c2c0d9561051b1c2a
This is the repository for the next-generation SIMtrace devices, providing abilities to trace the communication between (U)SIM card and phone, remote (U)SIM card forward, (U)SIM man-in-the-middle, and more.
This is under heavy development, and right now it is not surprising if things still break on a daily basis.
NOTE: Nothing in this repository applies to the SIMtrace v1.x hardware or its associated firmware. SIMtrace v1.x is based on a different CPU / microcontroller architecture and uses a completely different software stack and host software.
At this point, the primary development target is still the OWHW + sysmoQMOD device, but we expect to add support for a SAM3 based SIMtrace hardware board soon.
The goal is to support the following devices:
This repository contains several directory