Skip to content

wsman-curl-client-transport.c:225:18: error: dereferencing pointer to incomplete type #1

@JustKilian

Description

@JustKilian

when executing the make command on a Ubuntu 18.04 the above mentioned error appears.

Making all in libs
make[1]: Entering directory '/home/username/dash-sdk/libs'
Making all in openwsman
make[2]: Entering directory '/home/username/dash-sdk/libs/openwsman'
make  all-recursive
make[3]: Entering directory '/home/username/dash-sdk/libs/openwsman'
Making all in include
make[4]: Entering directory '/home/username/dash-sdk/libs/openwsman/include'
Makefile:423: target 'pdf-recursive' given more than once in the same rule
Making all in u
make[5]: Entering directory '/home/username/dash-sdk/libs/openwsman/include/u'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/username/dash-sdk/libs/openwsman/include/u'
Making all in cim
make[5]: Entering directory '/home/username/dash-sdk/libs/openwsman/include/cim'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/username/dash-sdk/libs/openwsman/include/cim'
make[5]: Entering directory '/home/username/dash-sdk/libs/openwsman/include'
Makefile:423: target 'pdf-recursive' given more than once in the same rule
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/home/username/dash-sdk/libs/openwsman/include'
make[4]: Leaving directory '/home/username/dash-sdk/libs/openwsman/include'
Making all in src
make[4]: Entering directory '/home/username/dash-sdk/libs/openwsman/src'
Making all in lib
make[5]: Entering directory '/home/username/dash-sdk/libs/openwsman/src/lib'
Making all in .
make[6]: Entering directory '/home/username/dash-sdk/libs/openwsman/src/lib'
if /bin/bash libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../include -I/usr/include/libxml2    -g -O2 		-Wall -Wstrict-prototypes -Wmissing-declarations 		-Wmissing-prototypes -Wnested-externs -Wpointer-arith                 -Wunused -Werror -DPACKAGE_PLUGIN_DIR="\"/home/username/dash-sdk/lib/openwsman/plugins\"" -g -O2 		-Wall -Wstrict-prototypes -Wmissing-declarations 		-Wmissing-prototypes -Wnested-externs -Wpointer-arith                 -Wunused -Werror -MT wsman-curl-client-transport.lo -MD -MP -MF ".deps/wsman-curl-client-transport.Tpo" -c -o wsman-curl-client-transport.lo wsman-curl-client-transport.c; \
then mv -f ".deps/wsman-curl-client-transport.Tpo" ".deps/wsman-curl-client-transport.Plo"; else rm -f ".deps/wsman-curl-client-transport.Tpo"; exit 1; fi
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../include -I/usr/include/libxml2 -g -O2 -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wunused -Werror -DPACKAGE_PLUGIN_DIR=\"/home/username/dash-sdk/lib/openwsman/plugins\" -g -O2 -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wunused -Werror -MT wsman-curl-client-transport.lo -MD -MP -MF .deps/wsman-curl-client-transport.Tpo -c wsman-curl-client-transport.c  -fPIC -DPIC -o .libs/wsman-curl-client-transport.o
wsman-curl-client-transport.c: In function ‘ssl_certificate_thumbprint_verify_callback’:
wsman-curl-client-transport.c:225:18: error: dereferencing pointer to incomplete type
  X509 *cert = ctx->cert;
                  ^
Makefile:581: recipe for target 'wsman-curl-client-transport.lo' failed
make[6]: *** [wsman-curl-client-transport.lo] Error 1
make[6]: Leaving directory '/home/username/dash-sdk/libs/openwsman/src/lib'
Makefile:744: recipe for target 'all-recursive' failed
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory '/home/username/dash-sdk/libs/openwsman/src/lib'
Makefile:348: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory '/home/username/dash-sdk/libs/openwsman/src'
Makefile:421: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/username/dash-sdk/libs/openwsman'
Makefile:340: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/username/dash-sdk/libs/openwsman'
Makefile:257: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/username/dash-sdk/libs'
Makefile:330: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

`

Am i doing something wrong or is there a bug in the program?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions