Errror building libdivecomputer

Lubomir I. Ivanov neolit123 at gmail.com
Mon Sep 10 07:14:28 PDT 2012


On 10 September 2012 17:11, Jef Driesen <jefdriesen at telenet.be> wrote:

> The ASYNC_SPD_MASK error is probably because you are not using autotools to
> build the library. Normally, the <linux/serial.h> header is autodetected and
> the HAVE_LINUX_SERIAL_H gets defined (or not).
>
> For the implicit declarations, I suspect that is because you are using the
> -std=c99 option, while autotools defaults to -std=gnu99. Thus the required
> GNU, BSD and/or posix extensions are automatically enabled with autotools,
> but not with your custom build script.
>
> BTW, the __USE_XXX macros are definitely the wrong choice. You should be
> using the _XXX_SOURCE feature test macros. See "man feature_test_macros" for
> more details.
>
> I think that if you use -std=gnu99 and -DHAVE_LINUX_SERIAL_H it will work
> fine without any changes to source code. Of course the preferred way is
> still to build with autotools. There might be more changes in the future
> that will break your custom script.
>
> Jef

thanks, will give it a shot later on.

lubomir
--


More information about the subsurface mailing list