Compiling libdivecomputer-subsurface-branch-4.5.4

Dirk Hohndel dirk at hohndel.org
Tue Mar 22 10:34:06 PDT 2016


That's my fault. Since we really build libdivecomputer only to get the library, I didn't bother
to change the sample app to deal with our changes to the API.

The simple fix is to pass "--disable-examples" to the configure call

I'll add a change to our branch that makes that the default (so you'd have to manually
enable the examples to build them and subsequently run into this problem.

I'm planning to do a 4.5.5 shortly which will also contain this fix in the corresponding
libdivecomputer version - this will include the latest libdivecomputer changes with
support for a few more dive computers as well.

Sorry for the complications - I ran into this in my own builds and just changed
the call to configure instead of changing the default behavior which would have 
been a much better solution.

/D

> On Mar 22, 2016, at 10:29 AM, Gaetan Bisson <bisson at archlinux.org> wrote:
> 
> Hi,
> 
> I'm trying to build libdivecomputer-subsurface-branch-4.5.4 from the
> tarball. Running `autoreconf --install` and `./configure` gives a fairly
> normal output. Then, `make` spits:
> 
> 
> Making all in examples
>  CC       common.o
>  CC       dctool.o
>  CC       dctool_help.o
>  CC       dctool_version.o
>  CC       dctool_list.o
>  CC       dctool_download.o
>  CC       dctool_dump.o
>  CC       dctool_parse.o
> dctool_parse.c: In function ‘parse’:
> dctool_parse.c:85:8: error: too few arguments to function ‘suunto_d9_parser_create’
>   rc = suunto_d9_parser_create (&parser, context, model);
>        ^
> In file included from ../include/libdivecomputer/suunto.h:29:0,
>                 from dctool_parse.c:37:
> ../include/libdivecomputer/suunto_d9.h:45:1: note: declared here
> suunto_d9_parser_create (dc_parser_t **parser, dc_context_t *context, unsigned int model, unsigned int serial);
> ^
> dctool_parse.c:117:9: error: too few arguments to function ‘oceanic_atom2_parser_create’
>    rc = oceanic_atom2_parser_create (&parser, context, model);
>         ^
> In file included from ../include/libdivecomputer/oceanic.h:25:0,
>                 from dctool_parse.c:40:
> ../include/libdivecomputer/oceanic_atom2.h:46:1: note: declared here
> oceanic_atom2_parser_create (dc_parser_t **parser, dc_context_t *context, unsigned int model, unsigned int serial);
> ^
> dctool_parse.c:130:8: error: too few arguments to function ‘hw_ostc_parser_create’
>   rc = hw_ostc_parser_create (&parser, context, 0);
>        ^
> In file included from ../include/libdivecomputer/hw.h:25:0,
>                 from dctool_parse.c:42:
> ../include/libdivecomputer/hw_ostc.h:68:1: note: declared here
> hw_ostc_parser_create (dc_parser_t **parser, dc_context_t *context, unsigned int serial, unsigned int frog);
> ^
> dctool_parse.c:134:8: error: too few arguments to function ‘hw_ostc_parser_create’
>   rc = hw_ostc_parser_create (&parser, context, 1);
>        ^
> In file included from ../include/libdivecomputer/hw.h:25:0,
>                 from dctool_parse.c:42:
> ../include/libdivecomputer/hw_ostc.h:68:1: note: declared here
> hw_ostc_parser_create (dc_parser_t **parser, dc_context_t *context, unsigned int serial, unsigned int frog);
> ^
> dctool_parse.c:147:8: error: too few arguments to function ‘shearwater_predator_parser_create’
>   rc = shearwater_predator_parser_create (&parser, context);
>        ^
> In file included from ../include/libdivecomputer/shearwater.h:25:0,
>                 from dctool_parse.c:46:
> ../include/libdivecomputer/shearwater_predator.h:44:1: note: declared here
> shearwater_predator_parser_create (dc_parser_t **parser, dc_context_t *context, unsigned int serial);
> ^
> dctool_parse.c:150:8: error: too few arguments to function ‘shearwater_petrel_parser_create’
>   rc = shearwater_petrel_parser_create (&parser, context);
>        ^
> In file included from ../include/libdivecomputer/shearwater.h:26:0,
>                 from dctool_parse.c:46:
> ../include/libdivecomputer/shearwater_petrel.h:41:1: note: declared here
> shearwater_petrel_parser_create (dc_parser_t **parser, dc_context_t *context, unsigned int serial);
> ^
> Makefile:447: recipe for target 'dctool_parse.o' failed
> make[2]: *** [dctool_parse.o] Error 1
> Makefile:470: recipe for target 'all-recursive' failed
> make[1]: *** [all-recursive] Error 1
> Makefile:379: recipe for target 'all' failed
> make: *** [all] Error 2
> 
> 
> Is this a bug or a feature? :)
> 
> -- 
> Gaetan
> _______________________________________________
> subsurface mailing list
> subsurface at subsurface-divelog.org
> http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface



More information about the subsurface mailing list