bitlair/siahsd

Build issues

Opened this issue · 6 comments

I'm trying to build your package on Debian Jessie and I am getting some compilation problems.
This is the same irrespective of using waf configure build or normal ./configure then a make.

I have installed the following dependencies (before finding most in the wscript file)
apt-get install build-essential libgtk2.0-dev libperl-dev libtalloc-dev libtevent-dev samba-dev mariadb-server mariadb-client libgmp-dev nettle-dev

$ bin/waf configure
Setting top to : ..../siahsd
Setting out to : ..../siahsd/build
Checking for program gcc,cc : gcc
....
Checking for library hogweed : yes
Checking for library nettle : yes
'configure' finished successfully (0.948s)

So this is OK, however a build then fails

$ bin/waf build
Waf: Entering directory ...../siahsd/build' [ 6/27] c: build/ndr_chiron.c -> build/ndr_chiron.c.10.o ndr_chiron.c: In function ‘ndr_pull_chiron_msg_union’: ndr_chiron.c:478:4: error: implicit declaration of function ‘ndr_pull_steal_switch_value’ [-Werror=implicit-function-declaration] level = ndr_pull_steal_switch_value(ndr, r); ^ cc1: some warnings being treated as errors Waf: Leaving directory ..../siahsd/build'
Build failed
-> task in 'chirond' failed (exit status 1):
{task 139918030688464: c ndr_chiron.c -> ndr_chiron.c.10.o}
['gcc', '-O0', '-g', '-ggdb', '-std=gnu99', '-Wall', '-Wextra', '-Winit-self', '-Wformat-security', '-Wshadow', '-pedantic', '-Wpointer-arith', '-Wcast-align', '-Wwrite-strings', '-Wno-unused-parameter', '-Werror-implicit-function-declaration', '-Wstrict-prototypes', '-fPIC', '-pie', '-fstack-protector', '-D_FORTIFY_SOURCE=2', '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', '-I/usr/include/samba-4.0', '-DHAVE_GLIB_2_0=1', '-DHAVE_TALLOC=1', '-DHAVE_SAMBA=1', '-DHAVE_STDIO_H=1', '-DHAVE_STDLIB_H=1', '-DHAVE_STDINT_H=1', '-DHAVE_STDBOOL_H=1', '-DHAVE_SYS_TIME_H=1', '-DHAVE_SYS_TYPES_H=1', '-DHAVE_SYS_STAT_H=1', '-DHAVE_NETINET_IN_H=1', '-DHAVE_ARPA_INET_H=1', '-DHAVE_UNISTD_H=1', '-DHAVE_STRING_H=1', '-DHAVE_FCNTL_H=1', '-DHAVE_ERRNO_H=1', '-DHAVE_TALLOC_H=1', '-DHAVE_GLIB_H=1', '-DHAVE_DBI_DBI_H=1', '-DHAVE_UTIL_DATA_BLOB_H=1', '-DHAVE_IMMEDIATE_STRUCTURES=1', '-DHAVE_IMMEDIATE_STRUCTURES=1', '-D_GNU_SOURCE=1', '-DHAVE_IMMEDIATE_STRUCTURES=1', 'ndr_chiron.c', '-c', '-o', 'ndr_chiron.c.10.o']

Any ideas ?

Hi
I have the same problem ...how do You resolve this ?

Hi
I never got a response from the author, so I'm assuming this is a dead project - which is a shame as it has some promise

thx for answer... Do You have alternative solution for SIA-IP server on Linux?
Best regards

vxel commented

You need a recent version of samba. The missing function exists at least in samba-4.6.3.
Btw, if you use only the SIA HS protocol, you don't need to build for the SECIP or CHIRON variant. You can simply disable these two builds in wscript (comment out the corresponding blp.program lines at the end of the file). The SIA HS protocol does not need the latest samba lib.

With current Ubuntu LTS it fails on dbi.h and not sure how to fix that yet :(
Some requirements documentation would be nice but guess it's gonna be trial and error at this point to find which packages it needs.

~/apps/siahsd ‹master*› » ./configure
Setting top to                           : /home/rick/apps/siahsd
Setting out to                           : /home/rick/apps/siahsd/build
Checking for program gcc,cc              : gcc
Checking for program ar                  : /usr/bin/ar
Checking for program pkg-config          : /usr/bin/pkg-config
Checking for 'glib-2.0'                  : yes
Checking for 'talloc'                    : yes
Checking for 'tevent'                    : yes
Checking for 'samba-util'                : yes
Checking for 'ndr'                       : yes
Checking for header stdio.h              : yes
Checking for header stdlib.h             : yes
Checking for header stdint.h             : yes
Checking for header stdbool.h            : yes
Checking for header sys/time.h           : yes
Checking for header sys/types.h          : yes
Checking for header sys/stat.h           : yes
Checking for header netinet/in.h         : yes
Checking for header arpa/inet.h          : yes
Checking for header unistd.h             : yes
Checking for header string.h             : yes
Checking for header fcntl.h              : yes
Checking for header errno.h              : yes
Checking for header talloc.h             : yes
Checking for header glib.h               : yes
Checking for header dbi/dbi.h            : not found

Hi RickDB,

You need to install libdbi-dev as well