==> Creating clean working copy [build]...done
==> Making package: qgroundcontrol-git r3643.812348f-1 (Fri Sep 30 11:46:25 EDT 2016)
==> Retrieving sources...
  -> Cloning qgroundcontrol git repo...
Cloning into bare repository '/srv/build/builder/plugbuild/work/qgroundcontrol-git/qgroundcontrol'...
  -> Found qgroundcontrol.patch
==> Validating source files with sha256sums...
    qgroundcontrol ... Skipped
    qgroundcontrol.patch ... Passed
==> Making package: qgroundcontrol-git r3643.812348f-1 (Fri Sep 30 11:46:44 EDT 2016)
==> Checking runtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
:: There are 4 providers available for libgl:
:: Repository extra
   1) mesa-libgl  2) nvidia-304xx-libgl  3) nvidia-340xx-libgl  4) nvidia-libgl

Enter a number (default=1): 
looking for conflicting packages...
warning: dependency cycle detected:
warning: harfbuzz will be installed before its freetype2 dependency

Packages (64) alsa-lib-1.1.2-1  damageproto-1.2.1-3  dbus-1.10.10-3  desktop-file-utils-0.23-1  elfutils-0.167-1  fixesproto-5.0-3  fontconfig-2.12.1-3  freetype2-2.7-2  graphite-1:1.3.8-1  harfbuzz-1.3.1-1  hicolor-icon-theme-0.15-1  hwids-20160801-1  inputproto-2.3.2-1  iptables-1.6.0-1  kbd-2.0.3-1  kbproto-1.0.7-1  kmod-23-1  lcms2-2.8-1  libdrm-2.4.70-1  libedit-20160618_3.1-1  libelf-0.167-1  libice-1.0.9-1  libjpeg-turbo-1.5.1-1  libmng-2.0.3-1  libmnl-1.0.4-1  libnftnl-1.0.6-1  libomxil-bellagio-0.9.3-1  libpciaccess-0.13.4-1  libpng-1.6.25-1  libseccomp-2.3.1-1  libsm-1.2.2-2  libtiff-4.0.6-2  libtxc_dxtn-1.0.1-6  libx11-1.6.3-1  libxau-1.0.8-2  libxcb-1.12-1  libxdamage-1.1.4-2  libxdmcp-1.1.2-1  libxext-1.3.3-1  libxfixes-5.0.2-1  libxi-1.7.6-1  libxml2-2.9.4+4+g3169602-1  libxmu-1.1.2-1  libxrandr-1.5.0-1  libxrender-0.9.9-1  libxshmfence-1.2-1  libxt-1.1.5-1  libxv-1.0.10-1  libxxf86vm-1.1.4-1  llvm-libs-3.8.1-1  mesa-12.0.3-1  mesa-libgl-12.0.3-1  randrproto-1.5.0-1  renderproto-0.11.1-3  systemd-231-1  videoproto-2.3.3-1  wayland-1.12.0-1  xcb-proto-1.12-2  xdg-utils-1.1.1-4  xextproto-7.3.0-1  xf86vidmodeproto-2.3.1-3  xorg-xset-1.2.3-1  xproto-7.0.31-1  qt4-4.8.7-9

Total Download Size:    21.70 MiB
Total Installed Size:  246.10 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
downloading alsa-lib-1.1.2-1-x86_64.pkg.tar.xz...
downloading libmng-2.0.3-1-x86_64.pkg.tar.xz...
downloading qt4-4.8.7-9-x86_64.pkg.tar.xz...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Processing package changes...
installing libjpeg-turbo...
installing libtiff...
Optional dependencies for libtiff
    freeglut: for using tiffgt
installing libpng...
installing dbus...
installing graphite...
installing harfbuzz...
Optional dependencies for harfbuzz
    cairo: hb-view program
installing freetype2...
Optional dependencies for freetype2
    libx11: Some demo programs [pending]
installing fontconfig...
  
  Fontconfig configuration is done via /etc/fonts/conf.avail and conf.d.
  Read /etc/fonts/conf.d/README for more information.

  Configuration via /etc/fonts/local.conf is still possible,
  but is no longer recommended for options available in conf.avail.

  Main systemwide configuration should be done by symlinks
  (especially for autohinting, sub-pixel and lcdfilter):
  
  cd /etc/fonts/conf.d
  ln -s ../conf.avail/XX-foo.conf
  
  Check also https://wiki.archlinux.org/index.php/Font_Configuration
  and https://wiki.archlinux.org/index.php/Fonts.

updating font cache... done.
installing libpciaccess...
installing libdrm...
installing libxml2...
installing wayland...
installing xcb-proto...
installing xproto...
installing libxdmcp...
installing libxau...
installing libxcb...
installing kbproto...
installing libx11...
installing xextproto...
installing libxext...
installing xf86vidmodeproto...
installing libxxf86vm...
installing fixesproto...
installing libxfixes...
installing damageproto...
installing libxdamage...
installing libxshmfence...
installing libmnl...
installing libnftnl...
installing iptables...
installing kbd...
installing kmod...
installing hwids...
installing libelf...
installing libseccomp...
installing systemd...
Initializing machine ID from random generator.
Creating group systemd-journal-remote with gid 999.
Creating user systemd-journal-remote (systemd Journal Remote) with uid 999 and gid 999.
Creating group systemd-journal-upload with gid 998.
Creating user systemd-journal-upload (systemd Journal Upload) with uid 998 and gid 998.
Creating group systemd-coredump with gid 997.
Creating user systemd-coredump (systemd Core Dumper) with uid 997 and gid 997.
Created symlink /etc/systemd/system/getty.target.wants/getty@tty1.service -> /usr/lib/systemd/system/getty@.service.
Created symlink /etc/systemd/system/multi-user.target.wants/remote-fs.target -> /usr/lib/systemd/system/remote-fs.target.
:: Append 'init=/usr/lib/systemd/systemd' to your kernel command line in your
   bootloader to replace sysvinit with systemd, or install systemd-sysvcompat
Optional dependencies for systemd
    cryptsetup: required for encrypted block devices
    libmicrohttpd: remote journald capabilities
    quota-tools: kernel-level quota management
    systemd-sysvcompat: symlink package to provide sysvinit binaries
    polkit: allow administration as unprivileged user
installing elfutils...
installing libomxil-bellagio...
installing libtxc_dxtn...
installing libedit...
installing llvm-libs...
installing mesa...
Optional dependencies for mesa
    opengl-man-pages: for the OpenGL API man pages
    mesa-vdpau: for accelerated video playback
    libva-mesa-driver: for accelerated video playback
installing mesa-libgl...
installing renderproto...
installing libxrender...
installing randrproto...
installing libxrandr...
installing videoproto...
installing libxv...
installing inputproto...
installing libxi...
installing alsa-lib...
Optional dependencies for alsa-lib
    python2: for python smixer plugin
installing libice...
installing libsm...
installing libxt...
installing libxmu...
installing xorg-xset...
installing xdg-utils...
Optional dependencies for xdg-utils
    kde-cli-tools: for KDE Plasma5 support in xdg-open
    libgnome: for GNOME support in xdg-open
    exo: for Xfce support in xdg-open
    xorg-xprop: for Xfce support in xdg-open
    pcmanfm: for LXDE support in xdg-open
    perl-file-mimeinfo: for generic support in xdg-open
    perl-net-dbus: Perl extension to dbus used in xdg-screensaver
    perl-x11-protocol: Perl X11 protocol used in xdg-screensaver
installing hicolor-icon-theme...
installing desktop-file-utils...
installing lcms2...
installing libmng...
installing qt4...
Optional dependencies for qt4
    qtchooser: set the default Qt toolkit
    postgresql-libs: PostgreSQL driver
    libmariadbclient: MariaDB driver
    unixodbc: ODBC driver
    libfbclient: Firebird/iBase driver
    libxinerama: Xinerama support
    libxcursor: Xcursor support
    libxfixes: Xfixes support [installed]
    icu: Unicode support
    sni-qt: StatusNotifierItem (AppIndicators) support
:: Running post-transaction hooks...
(1/2) Updating udev Hardware Database...
(2/2) Updating the desktop file MIME type cache...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
:: There are 2 providers available for phonon-qt4-backend:
:: Repository extra
   1) phonon-qt4-gstreamer  2) phonon-qt4-vlc

Enter a number (default=1): 
:: There are 2 providers available for libx264.so=148-64:
:: Repository extra
   1) libx264  2) libx264-10bit

Enter a number (default=1): 
looking for conflicting packages...

Packages (76) cairo-1.14.6-2  cdparanoia-10.2-5  ffmpeg-1:3.1.3-2  flac-1.3.1-3  fribidi-0.19.7-1  gdk-pixbuf2-2.34.0-2  giflib-5.1.4-1  gsm-1.0.14-1  gst-plugins-base-1.8.3-1  gst-plugins-base-libs-1.8.3-1  gstreamer-1.8.3-1  hdf5-1.10.0_patch1-1  jack-0.124.1-6  jasper-1.900.1-15  json-c-0.12.1-1  lame-3.99.5-3  libass-0.13.3-1  libasyncns-0.8+3+g68cd5af-1  libavc1394-0.5.4-2  libbluray-0.9.2-2  libcroco-0.6.11-1  libdatrie-0.2.10-1  libiec61883-1.2.0-4  libmodplug-0.8.8.5-2  libogg-1.3.2-1  libpulse-9.0-1  libqzeitgeist-0.8.0-6  libraw1394-2.1.2-1  librsvg-2:2.40.16-1  libsamplerate-0.1.8-3  libsndfile-1.0.27-1  libsoxr-0.1.2-1  libssh-0.7.3-1  libthai-0.1.24-1  libtheora-1.1.1-3  libva-1.7.2-1  libvdpau-1.1.1-2  libvisual-0.4.0-6  libvorbis-1.3.5-1  libvpx-1.6.0-2  libwebp-0.5.1-1  libx264-2:148.20160613-2  libxft-2.3.2-1  libxinerama-1.1.3-2  libxtst-1.2.2-1  libxvmc-1.0.9-1  netcdf-4.4.1rc1-1  opencore-amr-0.1.3-2  openjpeg-1.5.2-1  opus-1.1.3-2  orc-0.4.26-1  pango-1.40.3-1  perl-error-0.17024-1  phonon-qt4-gstreamer-4.9.0-1  pixman-0.34.0-1  python-3.5.2-1  python-pyserial-3.1.1-1  recordproto-1.14.2-2  schroedinger-1.0.11-3  sdl-1.2.15-7  speex-1.2rc2-1  speexdsp-1.2rc3-2  sysfsutils-2.1.0-9  v4l-utils-1.10.1-1  vid.stab-1.1-1  x265-2.0-1  xine-lib-1.2.6-10  xineramaproto-1.2.1-3  xvidcore-1.3.4-1  zita-alsa-pcmi-0.2.0-3  zita-resampler-1.3.0-5  flite-full-1.4-3  git-2.10.0-1  openscenegraph-3.4.0-2  phonon-qt4-4.9.0-1  python-xbee-2.2.3-2

Total Download Size:    62.65 MiB
Total Installed Size:  333.50 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
downloading sysfsutils-2.1.0-9-x86_64.pkg.tar.xz...
downloading gstreamer-1.8.3-1-x86_64.pkg.tar.xz...
downloading gst-plugins-base-libs-1.8.3-1-x86_64.pkg.tar.xz...
downloading cdparanoia-10.2-5-x86_64.pkg.tar.xz...
downloading libvisual-0.4.0-6-x86_64.pkg.tar.xz...
downloading libogg-1.3.2-1-x86_64.pkg.tar.xz...
downloading libvorbis-1.3.5-1-x86_64.pkg.tar.xz...
downloading libtheora-1.1.1-3-x86_64.pkg.tar.xz...
downloading opus-1.1.3-2-x86_64.pkg.tar.xz...
downloading gst-plugins-base-1.8.3-1-x86_64.pkg.tar.xz...
downloading phonon-qt4-gstreamer-4.9.0-1-x86_64.pkg.tar.xz...
downloading libasyncns-0.8+3+g68cd5af-1-x86_64.pkg.tar.xz...
downloading recordproto-1.14.2-2-any.pkg.tar.xz...
downloading libxtst-1.2.2-1-x86_64.pkg.tar.xz...
downloading flac-1.3.1-3-x86_64.pkg.tar.xz...
downloading libsndfile-1.0.27-1-x86_64.pkg.tar.xz...
downloading json-c-0.12.1-1-x86_64.pkg.tar.xz...
downloading libpulse-9.0-1-x86_64.pkg.tar.xz...
downloading libqzeitgeist-0.8.0-6-x86_64.pkg.tar.xz...
downloading phonon-qt4-4.9.0-1-x86_64.pkg.tar.xz...
downloading libxvmc-1.0.9-1-x86_64.pkg.tar.xz...
downloading fribidi-0.19.7-1-x86_64.pkg.tar.xz...
downloading gsm-1.0.14-1-x86_64.pkg.tar.xz...
downloading libsamplerate-0.1.8-3-x86_64.pkg.tar.xz...
downloading zita-alsa-pcmi-0.2.0-3-x86_64.pkg.tar.xz...
downloading zita-resampler-1.3.0-5-x86_64.pkg.tar.xz...
downloading jack-0.124.1-6-x86_64.pkg.tar.xz...
downloading lame-3.99.5-3-x86_64.pkg.tar.xz...
downloading libass-0.13.3-1-x86_64.pkg.tar.xz...
downloading libraw1394-2.1.2-1-x86_64.pkg.tar.xz...
downloading libavc1394-0.5.4-2-x86_64.pkg.tar.xz...
downloading libbluray-0.9.2-2-x86_64.pkg.tar.xz...
downloading libiec61883-1.2.0-4-x86_64.pkg.tar.xz...
downloading libmodplug-0.8.8.5-2-x86_64.pkg.tar.xz...
downloading libsoxr-0.1.2-1-x86_64.pkg.tar.xz...
downloading libssh-0.7.3-1-x86_64.pkg.tar.xz...
downloading libva-1.7.2-1-x86_64.pkg.tar.xz...
downloading libvdpau-1.1.1-2-x86_64.pkg.tar.xz...
downloading hdf5-1.10.0_patch1-1-x86_64.pkg.tar.xz...
downloading netcdf-4.4.1rc1-1-x86_64.pkg.tar.xz...
downloading opencore-amr-0.1.3-2-x86_64.pkg.tar.xz...
downloading openjpeg-1.5.2-1-x86_64.pkg.tar.xz...
downloading schroedinger-1.0.11-3-x86_64.pkg.tar.xz...
downloading sdl-1.2.15-7-x86_64.pkg.tar.xz...
downloading speexdsp-1.2rc3-2-x86_64.pkg.tar.xz...
downloading speex-1.2rc2-1-x86_64.pkg.tar.xz...
downloading v4l-utils-1.10.1-1-x86_64.pkg.tar.xz...
downloading xvidcore-1.3.4-1-x86_64.pkg.tar.xz...
downloading vid.stab-1.1-1-x86_64.pkg.tar.xz...
downloading libvpx-1.6.0-2-x86_64.pkg.tar.xz...
downloading libx264-2:148.20160613-2-x86_64.pkg.tar.xz...
downloading x265-2.0-1-x86_64.pkg.tar.xz...
downloading ffmpeg-1:3.1.3-2-x86_64.pkg.tar.xz...
downloading xine-lib-1.2.6-10-x86_64.pkg.tar.xz...
downloading python-3.5.2-1-x86_64.pkg.tar.xz...
downloading openscenegraph-3.4.0-2-x86_64.pkg.tar.xz...
downloading python-pyserial-3.1.1-1-any.pkg.tar.xz...
downloading python-xbee-2.2.3-2-any.pkg.tar.xz...
downloading python-xbee-2.2.3-2-any.pkg.tar.xz...
downloading python-xbee-2.2.3-2-any.pkg.tar.xz...
downloading python-xbee-2.2.3-2-any.pkg.tar.xz...
downloading python-xbee-2.2.3-2-any.pkg.tar.xz...
downloading flite-full-1.4-3-x86_64.pkg.tar.xz...
downloading flite-full-1.4-3-x86_64.pkg.tar.xz...
downloading flite-full-1.4-3-x86_64.pkg.tar.xz...
downloading flite-full-1.4-3-x86_64.pkg.tar.xz...
downloading flite-full-1.4-3-x86_64.pkg.tar.xz...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Processing package changes...
installing perl-error...
installing git...
Optional dependencies for git
    tk: gitk and git gui
    perl-libwww: git svn
    perl-term-readkey: git svn
    perl-mime-tools: git send-email
    perl-net-smtp-ssl: git send-email TLS support
    perl-authen-sasl: git send-email TLS support
    python2: various helper scripts
    subversion: git svn
    cvsps2: git cvsimport
    gnome-keyring: GNOME keyring credential helper
installing flite-full...
installing gstreamer...
installing orc...
installing gst-plugins-base-libs...
installing cdparanoia...
installing libvisual...
installing libogg...
installing libvorbis...
installing libtheora...
installing libdatrie...
installing libthai...
installing pixman...
installing cairo...
installing libxft...
installing pango...
installing opus...
installing gst-plugins-base...
installing phonon-qt4-gstreamer...
Optional dependencies for phonon-qt4-gstreamer
    pulseaudio: PulseAudio support
    gst-plugins-good: PulseAudio support and good codecs
    gst-plugins-bad: additional codecs
    gst-plugins-ugly: additional codecs
    gst-libav: libav codec
installing libasyncns...
installing recordproto...
installing libxtst...
installing flac...
installing libsndfile...
installing json-c...
installing libpulse...
installing libqzeitgeist...
installing phonon-qt4...
Optional dependencies for phonon-qt4
    pulseaudio: PulseAudio support
installing giflib...
installing jasper...
Optional dependencies for jasper
    freeglut: for jiv support
    glu: for jiv support
installing gdk-pixbuf2...
installing libcroco...
installing librsvg...
installing libxvmc...
installing fribidi...
installing gsm...
installing libsamplerate...
installing zita-alsa-pcmi...
installing zita-resampler...
installing jack...
Optional dependencies for jack
    libffado: FireWire support
    celt: NetJACK driver
installing lame...
installing libass...
installing libraw1394...
installing libavc1394...
installing libbluray...
Optional dependencies for libbluray
    java-environment: BD-J library
installing libiec61883...
installing libmodplug...
installing libsoxr...
installing libssh...
installing libva...
Optional dependencies for libva
    libva-vdpau-driver: backend for Nvidia and AMD cards
    libva-intel-driver: backend for Intel cards
installing libvdpau...
installing libwebp...
Optional dependencies for libwebp
    freeglut: vwebp viewer
installing hdf5...
installing netcdf...
Optional dependencies for netcdf
    netcdf-fortran: fortran bindings
    netcdf-cxx: c++ bindings
installing opencore-amr...
installing openjpeg...
Optional dependencies for openjpeg
    lcms2: j2k_to_image and image_to_j2k programs [installed]
    libpng: j2k_to_image and image_to_j2k programs [installed]
installing schroedinger...
installing sdl...
Optional dependencies for sdl
    alsa-lib: ALSA audio driver [installed]
    libpulse: PulseAudio audio driver [installed]
installing speexdsp...
installing speex...
installing sysfsutils...
installing v4l-utils...
Optional dependencies for v4l-utils
    qt5-base
    alsa-lib [installed]
installing xvidcore...
installing vid.stab...
installing libvpx...
installing libx264...
installing x265...
installing ffmpeg...
Optional dependencies for ffmpeg
    ladspa: LADSPA filters
installing xineramaproto...
installing libxinerama...
installing xine-lib...
Optional dependencies for xine-lib
    imagemagick: for using the imagemagick plugin
    jack: for using the jack plugin [installed]
    vcdimager: for using the vcd plugin
    glu: for using the opengl plugin
    wavpack: for using the wavpack plugin
    faad2: for using the faad plugin
    libmng: for using the mng plugin [installed]
    aalib: for using the aalib plugin
    libmodplug: for using the modplug plugin [installed]
    libdca: for using the dca plugin
    a52dec: for using the a52 plugin
    libmad: for using the mp3 plugin
    libdvdnav: for using the dvd plugin
    libmpcdec: for using the musepack plugin
    libcaca: for using the caca plugin
    libbluray: for using the bluray plugin [installed]
    gnome-vfs: for using the gnome-vfs plugin
    libvdpau: for using the VDPAU plugin [installed]
    smbclient: for using the samba plugin
    gdk-pixbuf2: for using the gdk-pixbuf plugin [installed]
installing openscenegraph...
Optional dependencies for openscenegraph
    libvncserver
    gdal
    openexr
    poppler-glib
    qt5-base
    ffmpeg [installed]
installing python...
Optional dependencies for python
    python-setuptools
    python-pip
    sqlite [installed]
    mpdecimal: for decimal
    xz: for lzma [installed]
    tk: for tkinter
installing python-pyserial...
installing python-xbee...
:: Running post-transaction hooks...
(1/2) Probing GDK-Pixbuf loader modules...
(2/2) Updating the desktop file MIME type cache...
==> Retrieving sources...
  -> Found qgroundcontrol.patch
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
    qgroundcontrol ... Skipped
    qgroundcontrol.patch ... Passed
==> Extracting sources...
  -> Creating working copy of qgroundcontrol git repo...
Cloning into 'qgroundcontrol'...
done.
==> Starting prepare()...
Submodule 'libs/mavlink/include/mavlink/v1.0' (https://github.com/mavlink/c_library_v1.git) registered for path 'libs/mavlink/include/mavlink/v1.0'
Submodule 'libs/mavlink/include/mavlink/v2.0' (git://github.com/mavlink/c_library_v2.git) registered for path 'libs/mavlink/include/mavlink/v2.0'
Submodule 'src/GPS/Drivers' (https://github.com/PX4/GpsDrivers.git) registered for path 'src/GPS/Drivers'
Cloning into '/build/qgroundcontrol-git/src/qgroundcontrol/libs/mavlink/include/mavlink/v1.0'...
Cloning into '/build/qgroundcontrol-git/src/qgroundcontrol/libs/mavlink/include/mavlink/v2.0'...
Cloning into '/build/qgroundcontrol-git/src/qgroundcontrol/src/GPS/Drivers'...
Submodule path 'libs/mavlink/include/mavlink/v1.0': checked out 'e93ac62981a338a7c823364e7c4ff1077e3f8fc1'
Submodule path 'libs/mavlink/include/mavlink/v2.0': checked out '1ae7a11de2d17ee620edf71a9d7342e601eec347'
Submodule path 'src/GPS/Drivers': checked out '3cac6a5bc5826d7ac495827a46b63f476d82ba86'
==> Starting pkgver()...
==> Updated version: qgroundcontrol-git r9207.d24e93d-1
==> Starting build()...
mkdir ./obj/
gcc -Wall -Wstrict-prototypes -Wno-variadic-macros -pedantic -c -fPIC    api.c -o obj/api.o
In file included from api.h:239:0,
                 from api.c:23:
xsys/linux.c: In function 'init_serial':
xsys/linux.c:48:83: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
     fprintf(stderr,"%s(): Unknown or incompatiable baud rate specified... (%d)\n",__FUNCTION__,baudrate);
                                                                                   ^~~~~~~~~~~~
In file included from api.c:23:0:
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.h:212:18: note: in expansion of macro 'xbee_logI'
   if (xbee->log) xbee_logI("%s:%s",str,strerror(errno)); \
                  ^~~~~~~~~
xsys/linux.c:54:5: note: in expansion of macro 'xbee_perror'
     xbee_perror("xbee_setup():open()");
     ^~~~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.h:212:18: note: in expansion of macro 'xbee_logI'
   if (xbee->log) xbee_logI("%s:%s",str,strerror(errno)); \
                  ^~~~~~~~~
xsys/linux.c:69:5: note: in expansion of macro 'xbee_perror'
     xbee_perror("xbee_setup():fcntl()");
     ^~~~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.h:212:18: note: in expansion of macro 'xbee_logI'
   if (xbee->log) xbee_logI("%s:%s",str,strerror(errno)); \
                  ^~~~~~~~~
xsys/linux.c:80:5: note: in expansion of macro 'xbee_perror'
     xbee_perror("xbee_setup():fdopen()");
     ^~~~~~~~~~~
api.c: In function 'Xmalloc2':
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.h:212:18: note: in expansion of macro 'xbee_logI'
   if (xbee->log) xbee_logI("%s:%s",str,strerror(errno)); \
                  ^~~~~~~~~
api.c:51:5: note: in expansion of macro 'xbee_perror'
     xbee_perror("libxbee:malloc()");
     ^~~~~~~~~~~
api.c: In function 'Xcalloc2':
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.h:212:18: note: in expansion of macro 'xbee_logI'
   if (xbee->log) xbee_logI("%s:%s",str,strerror(errno)); \
                  ^~~~~~~~~
api.c:63:5: note: in expansion of macro 'xbee_perror'
     xbee_perror("libxbee:calloc()");
     ^~~~~~~~~~~
api.c: In function '_xbee_logit':
api.c:171:54: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
   fprintf(xbee->log,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,str);
                                                      ^~~~~~~~~~~~
In file included from api.c:23:0:
api.c: In function 'xbee_sendATdelay':
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:199:3: note: in expansion of macro 'xbee_log'
   xbee_log("sendATdelay: Sending '%s'", command);
   ^~~~~~~~
In file included from api.c:23:0:
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.h:212:18: note: in expansion of macro 'xbee_logI'
   if (xbee->log) xbee_logI("%s:%s",str,strerror(errno)); \
                  ^~~~~~~~~
api.c:226:5: note: in expansion of macro 'xbee_perror'
     xbee_perror("libxbee:xbee_sendATdelay()");
     ^~~~~~~~~~~
In file included from api.c:23:0:
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:232:5: note: in expansion of macro 'xbee_log'
     xbee_log("sendATdelay: No Data to read - Timeout...");
     ^~~~~~~~
In file included from api.c:23:0:
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.h:212:18: note: in expansion of macro 'xbee_logI'
   if (xbee->log) xbee_logI("%s:%s",str,strerror(errno)); \
                  ^~~~~~~~~
api.c:255:7: note: in expansion of macro 'xbee_perror'
       xbee_perror("libxbee:xbee_sendATdelay()");
       ^~~~~~~~~~~
In file included from api.c:23:0:
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:263:5: note: in expansion of macro 'xbee_log'
     xbee_log("sendATdelay: No response...");
     ^~~~~~~~
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:270:3: note: in expansion of macro 'xbee_log'
   xbee_log("sendATdelay: Recieved '%s'",retBuf);
   ^~~~~~~~
api.c: In function '_xbee_end':
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:327:3: note: in expansion of macro 'xbee_log'
   xbee_log("Stopping libxbee instance...");
   ^~~~~~~~
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:330:3: note: in expansion of macro 'xbee_log'
   xbee_log("Unlinking instance from list...");
   ^~~~~~~~
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:351:5: note: in expansion of macro 'xbee_log'
     xbee_log("XBee was already in API mode 2, no need to reset");
     ^~~~~~~~
In file included from api.c:23:0:
api.c: In function '_xbee_setuplogAPI':
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.h:212:18: note: in expansion of macro 'xbee_logI'
   if (xbee->log) xbee_logI("%s:%s",str,strerror(errno)); \
                  ^~~~~~~~~
api.c:472:23: note: in expansion of macro 'xbee_perror'
       if (errno != 9) xbee_perror("xbee_setup(): Failed opening logfile");
                       ^~~~~~~~~~~
api.h:205:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logS(...)    if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:485:3: note: in expansion of macro 'xbee_logS'
   xbee_logS("---------------------------------------------------------------------");
   ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:486:3: note: in expansion of macro 'xbee_logI'
   xbee_logI("libxbee Starting...");
   ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:487:3: note: in expansion of macro 'xbee_logI'
   xbee_logI("SVN Info: %s",xbee_svn_version());
   ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:488:3: note: in expansion of macro 'xbee_logI'
   xbee_logI("Build Info: %s",xbee_build_info());
   ^~~~~~~~~
api.h:209:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logE(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:489:3: note: in expansion of macro 'xbee_logE'
   xbee_logE("---------------------------------------------------------------------");
   ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.h:212:18: note: in expansion of macro 'xbee_logI'
   if (xbee->log) xbee_logI("%s:%s",str,strerror(errno)); \
                  ^~~~~~~~~
api.c:502:5: note: in expansion of macro 'xbee_perror'
     xbee_perror("xbee_setup():xbee_mutex_init(conmutex)");
     ^~~~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.h:212:18: note: in expansion of macro 'xbee_logI'
   if (xbee->log) xbee_logI("%s:%s",str,strerror(errno)); \
                  ^~~~~~~~~
api.c:508:5: note: in expansion of macro 'xbee_perror'
     xbee_perror("xbee_setup():xbee_mutex_init(pktmutex)");
     ^~~~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.h:212:18: note: in expansion of macro 'xbee_logI'
   if (xbee->log) xbee_logI("%s:%s",str,strerror(errno)); \
                  ^~~~~~~~~
api.c:515:5: note: in expansion of macro 'xbee_perror'
     xbee_perror("xbee_setup():xbee_mutex_init(sendmutex)");
     ^~~~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.h:212:18: note: in expansion of macro 'xbee_logI'
   if (xbee->log) xbee_logI("%s:%s",str,strerror(errno)); \
                  ^~~~~~~~~
api.c:525:5: note: in expansion of macro 'xbee_perror'
     xbee_perror("xbee_setup():Xmalloc(path)");
     ^~~~~~~~~~~
In file included from api.c:23:0:
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:534:18: note: in expansion of macro 'xbee_log'
   if (xbee->log) xbee_log("Opening serial port '%s'...",xbee->path);
                  ^~~~~~~~
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:538:5: note: in expansion of macro 'xbee_log'
     xbee_log("Something failed while opening the serial port...");
     ^~~~~~~~
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:555:9: note: in expansion of macro 'xbee_log'
         xbee_log("Couldn't communicate with XBee...");
         ^~~~~~~~
In file included from api.c:23:0:
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.h:212:18: note: in expansion of macro 'xbee_logI'
   if (xbee->log) xbee_logI("%s:%s",str,strerror(errno)); \
                  ^~~~~~~~~
api.c:576:5: note: in expansion of macro 'xbee_perror'
     xbee_perror("xbee_setup():xbee_thread_create(listent)");
     ^~~~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.h:212:18: note: in expansion of macro 'xbee_logI'
   if (xbee->log) xbee_logI("%s:%s",str,strerror(errno)); \
                  ^~~~~~~~~
api.c:592:5: note: in expansion of macro 'xbee_perror'
     xbee_perror("xbee_setup():xbee_thread_create(threadt)");
     ^~~~~~~~~~~
In file included from api.c:23:0:
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:609:5: note: in expansion of macro 'xbee_log'
     xbee_log("Waiting for xbee_listen() to be ready...");
     ^~~~~~~~
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:615:3: note: in expansion of macro 'xbee_log'
   xbee_log("Linking xbee instance...");
   ^~~~~~~~
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:632:3: note: in expansion of macro 'xbee_log'
   xbee_log("libxbee: Started!");
   ^~~~~~~~
api.c: In function '_xbee_vnewcon':
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:780:7: note: in expansion of macro 'xbee_log'
       xbee_log("New local AT connection!");
       ^~~~~~~~
In file included from api.c:23:0:
api.h:202:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logc(...)    if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT    ,__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:784:7: note: in expansion of macro 'xbee_logc'
       xbee_logc("New %d-bit remote AT connection! (to: ",(con->tAddr64?64:16));
       ^~~~~~~~~
api.h:202:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logc(...)    if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT    ,__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:793:7: note: in expansion of macro 'xbee_logc'
       xbee_logc("New %d-bit data connection! (to: ",(con->tAddr64?64:16));
       ^~~~~~~~~
api.h:202:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logc(...)    if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT    ,__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:802:7: note: in expansion of macro 'xbee_logc'
       xbee_logc("New %d-bit IO connection! (to: ",(con->tAddr64?64:16));
       ^~~~~~~~~
api.h:202:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logc(...)    if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT    ,__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:810:7: note: in expansion of macro 'xbee_logc'
       xbee_logc("New Series 2 data connection! (to: ");
       ^~~~~~~~~
In file included from api.c:23:0:
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:818:7: note: in expansion of macro 'xbee_log'
       xbee_log("New Tx status connection!");
       ^~~~~~~~
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:821:7: note: in expansion of macro 'xbee_log'
       xbee_log("New modem status connection!");
       ^~~~~~~~
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:825:7: note: in expansion of macro 'xbee_log'
       xbee_log("New unknown connection!");
       ^~~~~~~~
api.c: In function '_xbee_endcon2':
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:921:9: note: in expansion of macro 'xbee_log'
         xbee_log("Attempted to close invalid connection...");
         ^~~~~~~~
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:942:5: note: in expansion of macro 'xbee_log'
     xbee_log("Attempted to close a connection with active callbacks... "
     ^~~~~~~~
In file included from api.c:23:0:
api.c: In function '_xbee_nsenddata':
api.h:205:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logS(...)    if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1021:5: note: in expansion of macro 'xbee_logS'
     xbee_logS("--== TX Packet ============--");
     ^~~~~~~~~
api.h:207:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logIc(...)   if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT    ,__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1022:5: note: in expansion of macro 'xbee_logIc'
     xbee_logIc("Connection Type: ");
     ^~~~~~~~~~
api.h:207:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logIc(...)   if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT    ,__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1043:7: note: in expansion of macro 'xbee_logIc'
       xbee_logIc("Destination: ");
       ^~~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1049:5: note: in expansion of macro 'xbee_logI'
     xbee_logI("Length: %d",length);
     ^~~~~~~~~
api.h:207:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logIc(...)   if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT    ,__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1051:7: note: in expansion of macro 'xbee_logIc'
       xbee_logIc("%3d | 0x%02X ",i,(unsigned char)data[i]);
       ^~~~~~~~~~
In file included from api.c:23:0:
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:1158:7: note: in expansion of macro 'xbee_log'
       xbee_log("******* TODO ********\n");
       ^~~~~~~~
In file included from api.c:23:0:
api.c: In function '_xbee_getpacket':
api.h:205:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logS(...)    if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1253:7: note: in expansion of macro 'xbee_logS'
       xbee_logS("--== Get Packet ==========--");
       ^~~~~~~~~
api.h:209:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logE(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:1255:7: note: in expansion of macro 'xbee_logE'
       xbee_logE("Didn't get a packet @ %ld.%06ld",tv.tv_sec,tv.tv_usec);
       ^~~~~~~~~
api.h:205:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logS(...)    if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1281:5: note: in expansion of macro 'xbee_logS'
     xbee_logS("--== Get Packet ==========--");
     ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1283:5: note: in expansion of macro 'xbee_logI'
     xbee_logI("Got a packet @ %ld.%06ld",tv.tv_sec,tv.tv_usec);
     ^~~~~~~~~
api.h:209:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logE(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:1284:5: note: in expansion of macro 'xbee_logE'
     xbee_logE("Packets left: %d",xbee->pktcount);
     ^~~~~~~~~
api.c: In function 'xbee_parse_io':
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1388:7: note: in expansion of macro 'xbee_logI'
       xbee_logI("Digital 0: %c",((s->IOdigital & 0x0001)?'1':'0'));
       ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1390:7: note: in expansion of macro 'xbee_logI'
       xbee_logI("Digital 1: %c",((s->IOdigital & 0x0002)?'1':'0'));
       ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1392:7: note: in expansion of macro 'xbee_logI'
       xbee_logI("Digital 2: %c",((s->IOdigital & 0x0004)?'1':'0'));
       ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1394:7: note: in expansion of macro 'xbee_logI'
       xbee_logI("Digital 3: %c",((s->IOdigital & 0x0008)?'1':'0'));
       ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1396:7: note: in expansion of macro 'xbee_logI'
       xbee_logI("Digital 4: %c",((s->IOdigital & 0x0010)?'1':'0'));
       ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1398:7: note: in expansion of macro 'xbee_logI'
       xbee_logI("Digital 5: %c",((s->IOdigital & 0x0020)?'1':'0'));
       ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1400:7: note: in expansion of macro 'xbee_logI'
       xbee_logI("Digital 6: %c",((s->IOdigital & 0x0040)?'1':'0'));
       ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1402:7: note: in expansion of macro 'xbee_logI'
       xbee_logI("Digital 7: %c",((s->IOdigital & 0x0080)?'1':'0'));
       ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1404:7: note: in expansion of macro 'xbee_logI'
       xbee_logI("Digital 8: %c",((s->IOdigital & 0x0100)?'1':'0'));
       ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1406:7: note: in expansion of macro 'xbee_logI'
       xbee_logI("Analog  0: %d (~%.2fv)",s->IOanalog[0],(3.3/1023)*s->IOanalog[0]);
       ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1408:7: note: in expansion of macro 'xbee_logI'
       xbee_logI("Analog  1: %d (~%.2fv)",s->IOanalog[1],(3.3/1023)*s->IOanalog[1]);
       ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1410:7: note: in expansion of macro 'xbee_logI'
       xbee_logI("Analog  2: %d (~%.2fv)",s->IOanalog[2],(3.3/1023)*s->IOanalog[2]);
       ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1412:7: note: in expansion of macro 'xbee_logI'
       xbee_logI("Analog  3: %d (~%.2fv)",s->IOanalog[3],(3.3/1023)*s->IOanalog[3]);
       ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1414:7: note: in expansion of macro 'xbee_logI'
       xbee_logI("Analog  4: %d (~%.2fv)",s->IOanalog[4],(3.3/1023)*s->IOanalog[4]);
       ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1416:7: note: in expansion of macro 'xbee_logI'
       xbee_logI("Analog  5: %d (~%.2fv)",s->IOanalog[5],(3.3/1023)*s->IOanalog[5]);
       ^~~~~~~~~
In file included from api.c:23:0:
api.c: In function 'xbee_listen_wrapper':
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:1449:5: note: in expansion of macro 'xbee_log'
     xbee_log("xbee_listen() returned [%d]... Restarting in 25ms!",ret);
     ^~~~~~~~
api.c: In function 'xbee_listen':
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:1473:22: note: in expansion of macro 'xbee_log'
       if (xbee->log) xbee_log("***** Unexpected byte (0x%02X)... *****",c);
                      ^~~~~~~~
In file included from api.c:23:0:
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1481:7: note: in expansion of macro 'xbee_logI'
       xbee_logI("--== RX Packet ===========--");
       ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1483:7: note: in expansion of macro 'xbee_logI'
       xbee_logI("Got a packet @ %ld.%06ld",tv.tv_sec,tv.tv_usec);
       ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1493:9: note: in expansion of macro 'xbee_logI'
         xbee_logI("Recived zero length packet!");
         ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1499:9: note: in expansion of macro 'xbee_logI'
         xbee_logI("Recived oversized packet! Length: %d",l - 1);
         ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1504:9: note: in expansion of macro 'xbee_logI'
         xbee_logI("Recived packet larger than buffer! Discarding...");
         ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1510:7: note: in expansion of macro 'xbee_logI'
       xbee_logI("Length: %d",l - 1);
       ^~~~~~~~~
api.h:207:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logIc(...)   if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT    ,__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1526:9: note: in expansion of macro 'xbee_logIc'
         xbee_logIc("%3d | 0x%02X | ",i,c);
         ^~~~~~~~~~
api.h:209:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logE(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:1557:9: note: in expansion of macro 'xbee_logE'
         xbee_logE("Didn't get whole packet... :(");
         ^~~~~~~~~
api.h:209:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logE(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:1566:9: note: in expansion of macro 'xbee_logE'
         xbee_logE("Invalid Checksum: 0x%02X",chksum);
         ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1580:9: note: in expansion of macro 'xbee_logI'
         xbee_logI("Packet type: Modem Status (0x8A)");
         ^~~~~~~~~
api.h:207:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logIc(...)   if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT    ,__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1581:9: note: in expansion of macro 'xbee_logIc'
         xbee_logIc("Event: ");
         ^~~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1611:9: note: in expansion of macro 'xbee_logI'
         xbee_logI("Packet type: Local AT Response (0x88)");
         ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1612:9: note: in expansion of macro 'xbee_logI'
         xbee_logI("FrameID: 0x%02X",d[0]);
         ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1613:9: note: in expansion of macro 'xbee_logI'
         xbee_logI("AT Command: %c%c",d[1],d[2]);
         ^~~~~~~~~
api.h:207:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logIc(...)   if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT    ,__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1614:9: note: in expansion of macro 'xbee_logIc'
         xbee_logIc("Status: ");
         ^~~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1645:9: note: in expansion of macro 'xbee_logI'
         xbee_logI("Packet type: Remote AT Response (0x97)");
         ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1646:9: note: in expansion of macro 'xbee_logI'
         xbee_logI("FrameID: 0x%02X",d[0]);
         ^~~~~~~~~
api.h:207:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logIc(...)   if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT    ,__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1647:9: note: in expansion of macro 'xbee_logIc'
         xbee_logIc("64-bit Address: ");
         ^~~~~~~~~~
api.h:207:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logIc(...)   if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT    ,__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1652:9: note: in expansion of macro 'xbee_logIc'
         xbee_logIc("16-bit Address: ");
         ^~~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1657:9: note: in expansion of macro 'xbee_logI'
         xbee_logI("AT Command: %c%c",d[11],d[12]);
         ^~~~~~~~~
api.h:207:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logIc(...)   if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT    ,__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1658:9: note: in expansion of macro 'xbee_logIc'
         xbee_logIc("Status: ");
         ^~~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1699:9: note: in expansion of macro 'xbee_logI'
         xbee_logI("--- Sample -----------------");
         ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1701:9: note: in expansion of macro 'xbee_logI'
         xbee_logI("----------------------------");
         ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1712:9: note: in expansion of macro 'xbee_logI'
         xbee_logI("Packet type: TX Status Report (0x89)");
         ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1713:9: note: in expansion of macro 'xbee_logI'
         xbee_logI("FrameID: 0x%02X",d[0]);
         ^~~~~~~~~
api.h:207:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logIc(...)   if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT    ,__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1714:9: note: in expansion of macro 'xbee_logIc'
         xbee_logIc("Status: ");
         ^~~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1741:7: note: in expansion of macro 'xbee_logI'
       xbee_logI("Looking for a connection that wants a status update...");
       ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1746:11: note: in expansion of macro 'xbee_logI'
           xbee_logI("Found @ 0x%08X!",con);
           ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1767:9: note: in expansion of macro 'xbee_logI'
         xbee_logI("Packet type: %d-bit RX Data (0x%02X)",((t == XBEE_64BIT_DATARX)?64:16),t);
         ^~~~~~~~~
api.h:207:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logIc(...)   if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT    ,__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1768:9: note: in expansion of macro 'xbee_logIc'
         xbee_logIc("%d-bit Address: ",((t == XBEE_64BIT_DATARX)?64:16));
         ^~~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1773:9: note: in expansion of macro 'xbee_logI'
         xbee_logI("RSSI: -%ddB",d[offset]);
         ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1774:35: note: in expansion of macro 'xbee_logI'
         if (d[offset + 1] & 0x02) xbee_logI("Options: Address Broadcast");
                                   ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1775:35: note: in expansion of macro 'xbee_logI'
         if (d[offset + 1] & 0x04) xbee_logI("Options: PAN Broadcast");
                                   ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1854:9: note: in expansion of macro 'xbee_logI'
         xbee_logI("Packet type: %d-bit RX I/O Data (0x%02X)",((t == XBEE_64BIT_IO)?64:16),t);
         ^~~~~~~~~
api.h:207:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logIc(...)   if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT    ,__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1855:9: note: in expansion of macro 'xbee_logIc'
         xbee_logIc("%d-bit Address: ",((t == XBEE_64BIT_IO)?64:16));
         ^~~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1860:9: note: in expansion of macro 'xbee_logI'
         xbee_logI("RSSI: -%ddB",d[offset]);
         ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1861:9: note: in expansion of macro 'xbee_logI'
         xbee_logI("Samples: %d",d[offset + 2]);
         ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1884:11: note: in expansion of macro 'xbee_logI'
           xbee_logI("Invalid I/O data! Actually contained %d samples...",o);
           ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1889:9: note: in expansion of macro 'xbee_logI'
         xbee_logI("--- Sample %3d -------------", o);
         ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1894:7: note: in expansion of macro 'xbee_logI'
       xbee_logI("----------------------------");
       ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1900:9: note: in expansion of macro 'xbee_logI'
         xbee_logI("Packet type: Series 2 Transmit Status (0x%02X)", t);
         ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1901:9: note: in expansion of macro 'xbee_logI'
         xbee_logI("FrameID: 0x%02X",d[0]);
         ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1902:9: note: in expansion of macro 'xbee_logI'
         xbee_logI("16-bit Delivery Address: %02X:%02X",d[1],d[2]);
         ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1903:9: note: in expansion of macro 'xbee_logI'
         xbee_logI("Transmit Retry Count: %02X",d[3]);
         ^~~~~~~~~
api.h:207:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logIc(...)   if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT    ,__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1904:9: note: in expansion of macro 'xbee_logIc'
         xbee_logIc("Delivery Status: ");
         ^~~~~~~~~~
api.h:207:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logIc(...)   if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT    ,__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1917:9: note: in expansion of macro 'xbee_logIc'
         xbee_logIc("Discovery Status: ");
         ^~~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1948:9: note: in expansion of macro 'xbee_logI'
         xbee_logI("Packet type: Series 2 Data Rx (0x%02X)", t);
         ^~~~~~~~~
api.h:207:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logIc(...)   if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT    ,__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1950:9: note: in expansion of macro 'xbee_logIc'
         xbee_logIc("64-bit Address: ");
         ^~~~~~~~~~
api.h:207:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logIc(...)   if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT    ,__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1956:9: note: in expansion of macro 'xbee_logIc'
         xbee_logIc("16-bit Address: ");
         ^~~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1962:31: note: in expansion of macro 'xbee_logI'
         if (d[offset] & 0x01) xbee_logI("Options: Packet Acknowledged");
                               ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1963:31: note: in expansion of macro 'xbee_logI'
         if (d[offset] & 0x02) xbee_logI("Options: Packet was a broadcast packet");
                               ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1964:31: note: in expansion of macro 'xbee_logI'
         if (d[offset] & 0x20) xbee_logI("Options: Packet Encrypted");                /* ??? */
                               ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:1965:31: note: in expansion of macro 'xbee_logI'
         if (d[offset] & 0x40) xbee_logI("Options: Packet from end device");          /* ??? */
                               ^~~~~~~~~
api.h:209:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logE(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:1998:7: note: in expansion of macro 'xbee_logE'
       xbee_logE("Packet type: Unknown (0x%02X)",t);
       ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:2017:11: note: in expansion of macro 'xbee_logI'
           xbee_logI("Found broadcasting connection @ 0x%08X",con);
           ^~~~~~~~~
api.h:209:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logE(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:2039:7: note: in expansion of macro 'xbee_logE'
       xbee_logE("Connectionless packet... discarding!");
       ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:2064:7: note: in expansion of macro 'xbee_logI'
       xbee_logI("Using callback function!");
       ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:2065:7: note: in expansion of macro 'xbee_logI'
       xbee_logI("  info block @ 0x%08X",l);
       ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:2066:7: note: in expansion of macro 'xbee_logI'
       xbee_logI("  function   @ 0x%08X",con->callback);
       ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:2067:7: note: in expansion of macro 'xbee_logI'
       xbee_logI("  connection @ 0x%08X",con);
       ^~~~~~~~~
api.h:209:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logE(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:2068:7: note: in expansion of macro 'xbee_logE'
       xbee_logE("  packet     @ 0x%08X",p);
       ^~~~~~~~~
In file included from api.c:23:0:
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:2078:9: note: in expansion of macro 'xbee_log'
         xbee_log("Starting new callback thread!");
         ^~~~~~~~
In file included from api.c:23:0:
api.h:205:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logS(...)    if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:2083:11: note: in expansion of macro 'xbee_logS'
           xbee_logS("An error occured while starting thread (%d)... Out of resources?", ret);
           ^~~~~~~~~
api.h:209:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logE(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:2084:11: note: in expansion of macro 'xbee_logE'
           xbee_logE("This packet has been lost!");
           ^~~~~~~~~
In file included from api.c:23:0:
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:2087:9: note: in expansion of macro 'xbee_log'
         xbee_log("Started thread 0x%08X!", t);
         ^~~~~~~~
In file included from api.c:23:0:
api.h:209:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logE(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:2105:9: note: in expansion of macro 'xbee_logE'
         xbee_logE("Using existing callback thread... callback has been scheduled.");
         ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:2139:5: note: in expansion of macro 'xbee_logI'
     xbee_logI("--========================--");
     ^~~~~~~~~
api.h:209:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logE(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:2140:5: note: in expansion of macro 'xbee_logE'
     xbee_logE("Packets: %d",xbee->pktcount);
     ^~~~~~~~~
api.c: In function 'xbee_callbackWrapper':
api.h:205:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logS(...)    if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:2164:5: note: in expansion of macro 'xbee_logS'
     xbee_logS("Starting callback function...");
     ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:2165:5: note: in expansion of macro 'xbee_logI'
     xbee_logI("  info block @ 0x%08X",temp);
     ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:2166:5: note: in expansion of macro 'xbee_logI'
     xbee_logI("  function   @ 0x%08X",con->callback);
     ^~~~~~~~~
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:2167:5: note: in expansion of macro 'xbee_logI'
     xbee_logI("  connection @ 0x%08X",con);
     ^~~~~~~~~
api.h:209:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logE(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:2168:5: note: in expansion of macro 'xbee_logE'
     xbee_logE("  packet     @ 0x%08X",pkt);
     ^~~~~~~~~
In file included from api.c:23:0:
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:2172:7: note: in expansion of macro 'xbee_log'
       xbee_log("Callback complete!");
       ^~~~~~~~
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:2177:7: note: in expansion of macro 'xbee_log'
       xbee_log("Callback function was removed! Appending packet to main list...");
       ^~~~~~~~
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:2210:3: note: in expansion of macro 'xbee_log'
   xbee_log("Callback thread ending...");
   ^~~~~~~~
api.c: In function 'xbee_thread_watch':
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:2243:9: note: in expansion of macro 'xbee_log'
         xbee_log("Joined with thread 0x%08X...",t->thread);
         ^~~~~~~~
In file included from api.c:23:0:
api.c: In function 'xbee_getrawbyte':
api.h:206:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logI(...)    if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.h:212:18: note: in expansion of macro 'xbee_logI'
   if (xbee->log) xbee_logI("%s:%s",str,strerror(errno)); \
                  ^~~~~~~~~
api.c:2290:7: note: in expansion of macro 'xbee_perror'
       xbee_perror("libxbee:xbee_getrawbyte()");
       ^~~~~~~~~~~
In file included from api.c:23:0:
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:2300:9: note: in expansion of macro 'xbee_log'
         xbee_log("Error or EOF detected");
         ^~~~~~~~
In file included from api.c:23:0:
api.c: In function '_xbee_send_pkt':
api.h:207:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_logIc(...)   if (xbee->log) {               xbee_logf(xbee,LOG_FORMAT    ,__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__);               }
                                                                                                          ^
api.c:2334:5: note: in expansion of macro 'xbee_logIc'
     xbee_logIc("TX Packet:");
     ^~~~~~~~~~
In file included from api.c:23:0:
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:2354:5: note: in expansion of macro 'xbee_log'
     xbee_log("Waiting for ACK/NAK response...");
     ^~~~~~~~
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:2357:15: note: in expansion of macro 'xbee_log'
       case 0: xbee_log("ACK recieved!"); break;
               ^~~~~~~~
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:2358:15: note: in expansion of macro 'xbee_log'
       case 1: xbee_log("NAK recieved..."); break;
               ^~~~~~~~
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:2359:15: note: in expansion of macro 'xbee_log'
       case 2: xbee_log("CCA failure..."); break;
               ^~~~~~~~
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:2360:15: note: in expansion of macro 'xbee_log'
       case 3: xbee_log("Purged..."); break;
               ^~~~~~~~
api.h:201:106: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
 #define xbee_log(...)     if (xbee->log) { xbee_logSf(); xbee_logf(xbee,LOG_FORMAT"\n",__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__); xbee_logEf(); }
                                                                                                          ^
api.c:2361:26: note: in expansion of macro 'xbee_log'
       case 255: default: xbee_log("Timeout...");
                          ^~~~~~~~
gcc -shared -Wl,-soname,libxbee.so.1 -lpthread -lrt  -o ./lib/libxbee.so.1.4.1 ./obj/*.o
ln ./libxbee.so.1.4.1 ./lib/libxbee.so.1 -sf
ln ./libxbee.so.1.4.1 ./lib/libxbee.so -sf
*** Done! ***
Project ERROR: You must use shadow build (e.g. mkdir build; cd build; qmake ../qgroundcontrol.pro).
==> ERROR: A failure occurred in build().
    Aborting...
==> Removing installed dependencies...
checking dependencies...
:: gettext optionally requires git: for autopoint infrastructure updates
:: glib2 optionally requires python: for gdbus-codegen and gtester-report
:: glib2 optionally requires libelf: gresource inspection tool
:: util-linux optionally requires python: python bindings to libmount
warning: dependency cycle detected:
warning: harfbuzz will be removed after its freetype2 dependency

Packages (140) alsa-lib-1.1.2-1  cairo-1.14.6-2  cdparanoia-10.2-5  damageproto-1.2.1-3  dbus-1.10.10-3  desktop-file-utils-0.23-1  elfutils-0.167-1  ffmpeg-1:3.1.3-2  fixesproto-5.0-3  flac-1.3.1-3  flite-full-1.4-3  fontconfig-2.12.1-3  freetype2-2.7-2  fribidi-0.19.7-1  gdk-pixbuf2-2.34.0-2  giflib-5.1.4-1  git-2.10.0-1  graphite-1:1.3.8-1  gsm-1.0.14-1  gst-plugins-base-1.8.3-1  gst-plugins-base-libs-1.8.3-1  gstreamer-1.8.3-1  harfbuzz-1.3.1-1  hdf5-1.10.0_patch1-1  hicolor-icon-theme-0.15-1  hwids-20160801-1  inputproto-2.3.2-1  iptables-1.6.0-1  jack-0.124.1-6  jasper-1.900.1-15  json-c-0.12.1-1  kbd-2.0.3-1  kbproto-1.0.7-1  kmod-23-1  lame-3.99.5-3  lcms2-2.8-1  libass-0.13.3-1  libasyncns-0.8+3+g68cd5af-1  libavc1394-0.5.4-2  libbluray-0.9.2-2  libcroco-0.6.11-1  libdatrie-0.2.10-1  libdrm-2.4.70-1  libedit-20160618_3.1-1  libelf-0.167-1  libice-1.0.9-1  libiec61883-1.2.0-4  libjpeg-turbo-1.5.1-1  libmng-2.0.3-1  libmnl-1.0.4-1  libmodplug-0.8.8.5-2  libnftnl-1.0.6-1  libogg-1.3.2-1  libomxil-bellagio-0.9.3-1  libpciaccess-0.13.4-1  libpng-1.6.25-1  libpulse-9.0-1  libqzeitgeist-0.8.0-6  libraw1394-2.1.2-1  librsvg-2:2.40.16-1  libsamplerate-0.1.8-3  libseccomp-2.3.1-1  libsm-1.2.2-2  libsndfile-1.0.27-1  libsoxr-0.1.2-1  libssh-0.7.3-1  libthai-0.1.24-1  libtheora-1.1.1-3  libtiff-4.0.6-2  libtxc_dxtn-1.0.1-6  libva-1.7.2-1  libvdpau-1.1.1-2  libvisual-0.4.0-6  libvorbis-1.3.5-1  libvpx-1.6.0-2  libwebp-0.5.1-1  libx11-1.6.3-1  libx264-2:148.20160613-2  libxau-1.0.8-2  libxcb-1.12-1  libxdamage-1.1.4-2  libxdmcp-1.1.2-1  libxext-1.3.3-1  libxfixes-5.0.2-1  libxft-2.3.2-1  libxi-1.7.6-1  libxinerama-1.1.3-2  libxml2-2.9.4+4+g3169602-1  libxmu-1.1.2-1  libxrandr-1.5.0-1  libxrender-0.9.9-1  libxshmfence-1.2-1  libxt-1.1.5-1  libxtst-1.2.2-1  libxv-1.0.10-1  libxvmc-1.0.9-1  libxxf86vm-1.1.4-1  llvm-libs-3.8.1-1  mesa-12.0.3-1  mesa-libgl-12.0.3-1  netcdf-4.4.1rc1-1  opencore-amr-0.1.3-2  openjpeg-1.5.2-1  openscenegraph-3.4.0-2  opus-1.1.3-2  orc-0.4.26-1  pango-1.40.3-1  perl-error-0.17024-1  phonon-qt4-4.9.0-1  phonon-qt4-gstreamer-4.9.0-1  pixman-0.34.0-1  python-3.5.2-1  python-pyserial-3.1.1-1  python-xbee-2.2.3-2  qt4-4.8.7-9  randrproto-1.5.0-1  recordproto-1.14.2-2  renderproto-0.11.1-3  schroedinger-1.0.11-3  sdl-1.2.15-7  speex-1.2rc2-1  speexdsp-1.2rc3-2  sysfsutils-2.1.0-9  systemd-231-1  v4l-utils-1.10.1-1  vid.stab-1.1-1  videoproto-2.3.3-1  wayland-1.12.0-1  x265-2.0-1  xcb-proto-1.12-2  xdg-utils-1.1.1-4  xextproto-7.3.0-1  xf86vidmodeproto-2.3.1-3  xine-lib-1.2.6-10  xineramaproto-1.2.1-3  xorg-xset-1.2.3-1  xproto-7.0.31-1  xvidcore-1.3.4-1  zita-alsa-pcmi-0.2.0-3  zita-resampler-1.3.0-5

Total Removed Size:  579.60 MiB

:: Do you want to remove these packages? [Y/n] 
:: Processing package changes...
removing python-xbee...
removing python-pyserial...
removing python...
removing phonon-qt4...
removing phonon-qt4-gstreamer...
removing openscenegraph...
removing xine-lib...
removing libxvmc...
removing libxinerama...
removing xineramaproto...
removing librsvg...
removing libqzeitgeist...
removing qt4...
removing xdg-utils...
removing xorg-xset...
removing libxmu...
removing libxt...
removing libxrandr...
removing randrproto...
removing libmng...
removing libcroco...
removing lcms2...
removing hicolor-icon-theme...
removing gst-plugins-base...
removing pango...
removing libxft...
removing libthai...
removing libdatrie...
removing libvisual...
removing gst-plugins-base-libs...
removing libxv...
removing videoproto...
removing gstreamer...
removing git...
removing perl-error...
removing gdk-pixbuf2...
removing jasper...
removing flite-full...
removing ffmpeg...
removing xvidcore...
removing x265...
removing vid.stab...
removing v4l-utils...
removing sysfsutils...
removing speex...
removing speexdsp...
removing sdl...
removing schroedinger...
removing orc...
removing opus...
removing openjpeg...
removing opencore-amr...
removing netcdf...
removing hdf5...
removing libx264...
removing libwebp...
removing libtiff...
removing libjpeg-turbo...
removing giflib...
removing libvpx...
removing libvdpau...
removing libva...
removing libtheora...
removing libssh...
removing libsoxr...
removing libpulse...
removing libxtst...
removing recordproto...
removing libxi...
removing inputproto...
removing libsm...
removing libice...
removing libasyncns...
removing json-c...
removing libmodplug...
removing libiec61883...
removing libbluray...
removing libavc1394...
removing libraw1394...
removing libass...
removing lame...
removing jack...
removing zita-resampler...
removing zita-alsa-pcmi...
removing libsamplerate...
removing libsndfile...
removing libvorbis...
removing flac...
removing libogg...
removing gsm...
removing fribidi...
removing desktop-file-utils...
removing cdparanoia...
removing cairo...
removing pixman...
removing mesa-libgl...
removing mesa...
removing wayland...
removing libxml2...
removing systemd...
removing libseccomp...
removing kmod...
removing kbd...
removing iptables...
removing libnftnl...
removing libmnl...
removing hwids...
removing dbus...
removing llvm-libs...
removing libedit...
removing libxxf86vm...
removing xf86vidmodeproto...
removing libxshmfence...
removing libxdamage...
removing libxfixes...
removing damageproto...
removing fixesproto...
removing libtxc_dxtn...
removing libomxil-bellagio...
removing libdrm...
removing libpciaccess...
removing elfutils...
removing libelf...
removing libxrender...
removing renderproto...
removing libxext...
removing xextproto...
removing libx11...
removing libxcb...
removing xcb-proto...
removing libxdmcp...
removing libxau...
removing xproto...
removing kbproto...
removing fontconfig...

  Check for dead symlinks and leftover files 
  in /etc/fonts/conf.d/
  
removing freetype2...
removing libpng...
removing harfbuzz...
removing graphite...
removing alsa-lib...
==> ERROR: Build failed, check /chroot/x86_64/build/build