[ 
https://issues.apache.org/jira/browse/DISPATCH-893?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robbie Gemmell updated DISPATCH-893:
------------------------------------
    Affects Version/s: 1.0.1

> Compile fails using libwebsockets 7
> -----------------------------------
>
>                 Key: DISPATCH-893
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-893
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Routing Engine
>    Affects Versions: 1.0.0, 1.0.1
>         Environment: Ubuntu 16.04 LTS
> gcc (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0
>            Reporter: AWETTT
>            Assignee: Alan Conway
>            Priority: Minor
>             Fix For: 1.1.0
>
>
> andreas:/home/andreas/brokers/qpid-dispatch-1.0.0/build >cmake ..
> -- The C compiler identification is GNU 5.4.0
> -- Check for working C compiler: /usr/bin/cc
> -- Check for working C compiler: /usr/bin/cc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- Found PythonInterp: /usr/bin/python (found version "2.7.12") 
> -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found version 
> "2.7.12") 
> -- Found LIBWEBSOCKETS: /usr/lib/x86_64-linux-gnu/libwebsockets.so  
> -- Found VALGRIND: /usr/bin/valgrind  
> -- Performing Test HAS_PEDANTIC_FLAG
> -- Performing Test HAS_PEDANTIC_FLAG - Success
> -- Configuring done
> -- Generating done
> -- Build files have been written to: 
> /home/andreas/brokers/qpid-dispatch-1.0.0/build
> -----------------------------------------------------
> andreas:/home/andreas/brokers/qpid-dispatch-1.0.0/build >make all
> [  1%] Generating schema_enum.h, schema_enum.c
> Scanning dependencies of target qpid-dispatch
> [  2%] Building C object src/CMakeFiles/qpid-dispatch.dir/amqp.c.o
> [  4%] Building C object src/CMakeFiles/qpid-dispatch.dir/bitmask.c.o
> [  5%] Building C object src/CMakeFiles/qpid-dispatch.dir/buffer.c.o
> [  6%] Building C object src/CMakeFiles/qpid-dispatch.dir/error.c.o
> [  8%] Building C object src/CMakeFiles/qpid-dispatch.dir/compose.c.o
> [  9%] Building C object 
> src/CMakeFiles/qpid-dispatch.dir/connection_manager.c.o
> [ 10%] Building C object src/CMakeFiles/qpid-dispatch.dir/container.c.o
> [ 12%] Building C object src/CMakeFiles/qpid-dispatch.dir/dispatch.c.o
> [ 13%] Building C object src/CMakeFiles/qpid-dispatch.dir/entity.c.o
> [ 14%] Building C object src/CMakeFiles/qpid-dispatch.dir/entity_cache.c.o
> [ 16%] Building C object src/CMakeFiles/qpid-dispatch.dir/failoverlist.c.o
> [ 17%] Building C object src/CMakeFiles/qpid-dispatch.dir/hash.c.o
> [ 18%] Building C object src/CMakeFiles/qpid-dispatch.dir/iovec.c.o
> [ 20%] Building C object src/CMakeFiles/qpid-dispatch.dir/iterator.c.o
> [ 21%] Building C object src/CMakeFiles/qpid-dispatch.dir/log.c.o
> [ 22%] Building C object src/CMakeFiles/qpid-dispatch.dir/message.c.o
> [ 24%] Building C object src/CMakeFiles/qpid-dispatch.dir/parse.c.o
> [ 25%] Building C object src/CMakeFiles/qpid-dispatch.dir/parse_tree.c.o
> [ 27%] Building C object src/CMakeFiles/qpid-dispatch.dir/policy.c.o
> [ 28%] Building C object src/CMakeFiles/qpid-dispatch.dir/remote_sasl.c.o
> [ 29%] Building C object src/CMakeFiles/qpid-dispatch.dir/posix/threading.c.o
> [ 31%] Building C object src/CMakeFiles/qpid-dispatch.dir/python_embedded.c.o
> [ 32%] Building C object src/CMakeFiles/qpid-dispatch.dir/router_agent.c.o
> [ 33%] Building C object src/CMakeFiles/qpid-dispatch.dir/router_config.c.o
> [ 35%] Building C object 
> src/CMakeFiles/qpid-dispatch.dir/router_core/agent.c.o
> [ 36%] Building C object 
> src/CMakeFiles/qpid-dispatch.dir/router_core/agent_address.c.o
> [ 37%] Building C object 
> src/CMakeFiles/qpid-dispatch.dir/router_core/agent_config_address.c.o
> [ 39%] Building C object 
> src/CMakeFiles/qpid-dispatch.dir/router_core/agent_config_auto_link.c.o
> [ 40%] Building C object 
> src/CMakeFiles/qpid-dispatch.dir/router_core/agent_connection.c.o
> [ 41%] Building C object 
> src/CMakeFiles/qpid-dispatch.dir/router_core/agent_config_link_route.c.o
> [ 43%] Building C object 
> src/CMakeFiles/qpid-dispatch.dir/router_core/agent_link.c.o
> [ 44%] Building C object 
> src/CMakeFiles/qpid-dispatch.dir/router_core/agent_router.c.o
> [ 45%] Building C object 
> src/CMakeFiles/qpid-dispatch.dir/router_core/connections.c.o
> [ 47%] Building C object 
> src/CMakeFiles/qpid-dispatch.dir/router_core/error.c.o
> [ 48%] Building C object 
> src/CMakeFiles/qpid-dispatch.dir/router_core/forwarder.c.o
> [ 50%] Building C object 
> src/CMakeFiles/qpid-dispatch.dir/router_core/route_control.c.o
> [ 51%] Building C object 
> src/CMakeFiles/qpid-dispatch.dir/router_core/router_core.c.o
> [ 52%] Building C object 
> src/CMakeFiles/qpid-dispatch.dir/router_core/router_core_thread.c.o
> [ 54%] Building C object 
> src/CMakeFiles/qpid-dispatch.dir/router_core/route_tables.c.o
> [ 55%] Building C object 
> src/CMakeFiles/qpid-dispatch.dir/router_core/management_agent.c.o
> [ 56%] Building C object 
> src/CMakeFiles/qpid-dispatch.dir/router_core/terminus.c.o
> [ 58%] Building C object 
> src/CMakeFiles/qpid-dispatch.dir/router_core/transfer.c.o
> [ 59%] Building C object src/CMakeFiles/qpid-dispatch.dir/router_node.c.o
> [ 60%] Building C object src/CMakeFiles/qpid-dispatch.dir/router_pynode.c.o
> [ 62%] Building C object src/CMakeFiles/qpid-dispatch.dir/schema_enum.c.o
> [ 63%] Building C object src/CMakeFiles/qpid-dispatch.dir/server.c.o
> [ 64%] Building C object src/CMakeFiles/qpid-dispatch.dir/timer.c.o
> [ 66%] Building C object src/CMakeFiles/qpid-dispatch.dir/trace_mask.c.o
> [ 67%] Building C object 
> src/CMakeFiles/qpid-dispatch.dir/http-libwebsockets.c.o
> /home/andreas/brokers/qpid-dispatch-1.0.0/src/http-libwebsockets.c: In 
> function ‘unexpected_close’:
> /home/andreas/brokers/qpid-dispatch-1.0.0/src/http-libwebsockets.c:139:5: 
> warning: implicit declaration of function ‘lws_get_peer_simple’ 
> [-Wimplicit-function-declaration]
>      lws_get_peer_simple(wsi, peer, sizeof(peer));
>      ^
> /home/andreas/brokers/qpid-dispatch-1.0.0/src/http-libwebsockets.c: At top 
> level:
> /home/andreas/brokers/qpid-dispatch-1.0.0/src/http-libwebsockets.c:232:27: 
> error: field ‘mount’ has incomplete type
>      struct lws_http_mount mount;
>                            ^
> /home/andreas/brokers/qpid-dispatch-1.0.0/src/http-libwebsockets.c: In 
> function ‘listener_start’:
> /home/andreas/brokers/qpid-dispatch-1.0.0/src/http-libwebsockets.c:270:6: 
> error: dereferencing pointer to incomplete type ‘struct lws_http_mount’
>      m->mountpoint = "/";    /* URL mount point */
>       ^
> /home/andreas/brokers/qpid-dispatch-1.0.0/src/http-libwebsockets.c:275:26: 
> error: ‘LWSMPRO_FILE’ undeclared (first use in this function)
>      m->origin_protocol = LWSMPRO_FILE; /* mount type is a directory in a 
> filesystem */
>                           ^
> /home/andreas/brokers/qpid-dispatch-1.0.0/src/http-libwebsockets.c:275:26: 
> note: each undeclared identifier is reported only once for each function it 
> appears in
> /home/andreas/brokers/qpid-dispatch-1.0.0/src/http-libwebsockets.c:278:9: 
> error: ‘struct lws_context_creation_info’ has no member named ‘mounts’
>      info.mounts = m;
>          ^
> /home/andreas/brokers/qpid-dispatch-1.0.0/src/http-libwebsockets.c:281:9: 
> error: ‘struct lws_context_creation_info’ has no member named 
> ‘keepalive_timeout’
>      info.keepalive_timeout = 1;
>          ^
> /home/andreas/brokers/qpid-dispatch-1.0.0/src/http-libwebsockets.c:292:13: 
> error: ‘LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT’ undeclared (first use in this 
> function)
>              LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT |
>              ^
> /home/andreas/brokers/qpid-dispatch-1.0.0/src/http-libwebsockets.c:296:9: 
> error: ‘struct lws_context_creation_info’ has no member named ‘vhost_name’
>      info.vhost_name = hl->listener->config.host_port;
>          ^
> /home/andreas/brokers/qpid-dispatch-1.0.0/src/http-libwebsockets.c:297:17: 
> warning: implicit declaration of function ‘lws_create_vhost’ 
> [-Wimplicit-function-declaration]
>      hl->vhost = lws_create_vhost(hs->context, &info);
>                  ^
> /home/andreas/brokers/qpid-dispatch-1.0.0/src/http-libwebsockets.c:297:15: 
> warning: assignment makes pointer from integer without a cast 
> [-Wint-conversion]
>      hl->vhost = lws_create_vhost(hs->context, &info);
>                ^
> /home/andreas/brokers/qpid-dispatch-1.0.0/src/http-libwebsockets.c:300:20: 
> warning: implicit declaration of function ‘lws_protocol_vh_priv_zalloc’ 
> [-Wimplicit-function-declaration]
>          void *vp = lws_protocol_vh_priv_zalloc(hl->vhost, &protocols[0], 
> sizeof(hl));
>                     ^
> /home/andreas/brokers/qpid-dispatch-1.0.0/src/http-libwebsockets.c:300:20: 
> warning: initialization makes pointer from integer without a cast 
> [-Wint-conversion]
> /home/andreas/brokers/qpid-dispatch-1.0.0/src/http-libwebsockets.c: In 
> function ‘qd_http_server’:
> /home/andreas/brokers/qpid-dispatch-1.0.0/src/http-libwebsockets.c:530:13: 
> error: ‘struct lws_context_creation_info’ has no member named ‘server_string’
>          info.server_string = QD_CONNECTION_PROPERTY_PRODUCT_VALUE;
>              ^
> /home/andreas/brokers/qpid-dispatch-1.0.0/src/http-libwebsockets.c:531:24: 
> error: ‘LWS_SERVER_OPTION_EXPLICIT_VHOSTS’ undeclared (first use in this 
> function)
>          info.options = LWS_SERVER_OPTION_EXPLICIT_VHOSTS |
>                         ^
> /home/andreas/brokers/qpid-dispatch-1.0.0/src/http-libwebsockets.c:533:13: 
> error: ‘LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT’ undeclared (first use in this 
> function)
>              LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT;
>              ^
> /home/andreas/brokers/qpid-dispatch-1.0.0/src/http-libwebsockets.c: In 
> function ‘wsi_listener’:
> /home/andreas/brokers/qpid-dispatch-1.0.0/src/http-libwebsockets.c:581:31: 
> warning: implicit declaration of function ‘lws_get_vhost’ 
> [-Wimplicit-function-declaration]
>      struct lws_vhost *vhost = lws_get_vhost(wsi);
>                                ^
> /home/andreas/brokers/qpid-dispatch-1.0.0/src/http-libwebsockets.c:581:31: 
> warning: initialization makes pointer from integer without a cast 
> [-Wint-conversion]
> /home/andreas/brokers/qpid-dispatch-1.0.0/src/http-libwebsockets.c:583:20: 
> warning: implicit declaration of function ‘lws_protocol_vh_priv_get’ 
> [-Wimplicit-function-declaration]
>          void *vp = lws_protocol_vh_priv_get(vhost, &protocols[0]);
>                     ^
> /home/andreas/brokers/qpid-dispatch-1.0.0/src/http-libwebsockets.c:583:20: 
> warning: initialization makes pointer from integer without a cast 
> [-Wint-conversion]
> src/CMakeFiles/qpid-dispatch.dir/build.make:1232: recipe for target 
> 'src/CMakeFiles/qpid-dispatch.dir/http-libwebsockets.c.o' failed
> make[2]: *** [src/CMakeFiles/qpid-dispatch.dir/http-libwebsockets.c.o] Error 1
> CMakeFiles/Makefile2:981: recipe for target 
> 'src/CMakeFiles/qpid-dispatch.dir/all' failed
> make[1]: *** [src/CMakeFiles/qpid-dispatch.dir/all] Error 2
> Makefile:138: recipe for target 'all' failed
> make: *** [all] Error 2



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to