Compiling libdivecomputer-subsurface-branch-4.5.4

Gaetan Bisson bisson at archlinux.org
Tue Mar 22 10:29:02 PDT 2016


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


More information about the subsurface mailing list