You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2014/05/07 01:28:25 UTC

[jira] [Updated] (TS-2786) Lua plugin does not build on FreeBSD10

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

Leif Hedstrom updated TS-2786:
------------------------------

    Fix Version/s: 5.0.0

> Lua plugin does not build on FreeBSD10
> --------------------------------------
>
>                 Key: TS-2786
>                 URL: https://issues.apache.org/jira/browse/TS-2786
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Build, Lua, Plugins
>            Reporter: Leif Hedstrom
>             Fix For: 5.0.0
>
>
> {code}
> libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../../../lib/ts -D__STDC_LIMIT_MACROS=1 -D__STDC_FORMAT_MACROS=1 -I../../../proxy/api -I../../../proxy/api -I../../../lib/ts -I../../../lib/ts -I../../../lib/luajit/src -I/usr/local/include -Dfreebsd -D_LARGEFILE64_SOURCE=1 -D_COMPILE64BIT_SOURCE=1 -D_GNU_SOURCE -D_REENTRANT -I/usr/local/include/tcl8.6 -g -pipe -Wall -Qunused-arguments -O3 -feliminate-unused-debug-symbols -fno-strict-aliasing -Werror -MT tslua_la-ts_lua_client_response.lo -MD -MP -MF .deps/tslua_la-ts_lua_client_response.Tpo -c ts_lua_client_response.c  -fPIC -DPIC -o .libs/tslua_la-ts_lua_client_response.o
> ts_lua_client_request.c:387:80: error: incomplete definition of type 'struct sockaddr_in'
>             inet_ntop(AF_INET, (const void *)&((struct sockaddr_in *)client_ip)->sin_addr, cip, sizeof(cip));
>                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
> ts_lua_client_request.c:387:56: note: forward declaration of 'struct sockaddr_in'
>             inet_ntop(AF_INET, (const void *)&((struct sockaddr_in *)client_ip)->sin_addr, cip, sizeof(cip));
>                                                        ^
> ts_lua_client_request.c:389:82: error: incomplete definition of type 'struct sockaddr_in6'
>             inet_ntop(AF_INET6, (const void *)&((struct sockaddr_in6 *)client_ip)->sin6_addr, cip, sizeof(cip));
>                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
> ts_lua_client_request.c:389:57: note: forward declaration of 'struct sockaddr_in6'
>             inet_ntop(AF_INET6, (const void *)&((struct sockaddr_in6 *)client_ip)->sin6_addr, cip, sizeof(cip));
>                                                         ^
> ts_lua_client_request.c:415:53: error: incomplete definition of type 'struct sockaddr_in'
>             port = ((struct sockaddr_in *)client_ip)->sin_port;
>                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
> ts_lua_client_request.c:415:29: note: forward declaration of 'struct sockaddr_in'
>             port = ((struct sockaddr_in *)client_ip)->sin_port;
>                             ^
> ts_lua_client_request.c:417:54: error: incomplete definition of type 'struct sockaddr_in6'
>             port = ((struct sockaddr_in6 *)client_ip)->sin6_port;
>                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
> ts_lua_client_request.c:417:29: note: forward declaration of 'struct sockaddr_in6'
>             port = ((struct sockaddr_in6 *)client_ip)->sin6_port;
>                             ^
> ts_lua_client_request.c:447:53: error: incomplete definition of type 'struct sockaddr_in'
>             port = ((struct sockaddr_in *)client_ip)->sin_port;
>                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
> ts_lua_client_request.c:447:29: note: forward declaration of 'struct sockaddr_in'
>             port = ((struct sockaddr_in *)client_ip)->sin_port;
>                             ^
> ts_lua_client_request.c:448:80: error: incomplete definition of type 'struct sockaddr_in'
>             inet_ntop(AF_INET, (const void *)&((struct sockaddr_in *)client_ip)->sin_addr, cip, sizeof(cip));
>                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
> ts_lua_client_request.c:447:29: note: forward declaration of 'struct sockaddr_in'
>             port = ((struct sockaddr_in *)client_ip)->sin_port;
>                             ^
> ts_lua_client_request.c:451:54: error: incomplete definition of type 'struct sockaddr_in6'
>             port = ((struct sockaddr_in6 *)client_ip)->sin6_port;
>                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
> ts_lua_client_request.c:451:29: note: forward declaration of 'struct sockaddr_in6'
>             port = ((struct sockaddr_in6 *)client_ip)->sin6_port;
>                             ^
> ts_lua_client_request.c:452:82: error: incomplete definition of type 'struct sockaddr_in6'
>             inet_ntop(AF_INET6, (const void *)&((struct sockaddr_in6 *)client_ip)->sin6_addr, cip, sizeof(cip));
>                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
> ts_lua_client_request.c:451:29: note: forward declaration of 'struct sockaddr_in6'
>             port = ((struct sockaddr_in6 *)client_ip)->sin6_port;
>                             ^
> 8 errors generated.
> gmake[3]: *** [tslua_la-ts_lua_client_request.lo] Error 1
> gmake[3]: *** Waiting for unfinished jobs....
> mv -f .deps/tslua_la-ts_lua.Tpo .deps/tslua_la-ts_lua.Plo
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)