* [Buildroot] libwebsockets : missing header
@ 2014-04-29 10:11 Sagaert Johan
2014-04-29 10:46 ` Baruch Siach
0 siblings, 1 reply; 3+ messages in thread
From: Sagaert Johan @ 2014-04-29 10:11 UTC (permalink / raw)
To: buildroot
Hi all
building libwebsockets is broken :
snip..........
-g -rdynamic -fPIC -Werror -c -DINSTALL_DATADIR=\"/usr/share\" -DLWS_OPENSSL_CLIENT_CERTS=\"/etc/pki/tls/certs/\"
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -Os -D_DEBUG -DLWS_LIBRARY_VERSION=\"1.2\"
-DLWS_BUILD_HASH=\"dd06dc8\" -MT libwebsockets_la-output.lo -MD -MP -MF .deps/libwebsockets_la-output.Tpo -c output.c -fPIC -DPIC
-o .libs/libwebsockets_la-output.o
libtool: compile: /home/brcpy/output/host/usr/bin/ccache /home/brcpy/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc
-DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -std=gnu99 -pedantic -O0 -g
-rdynamic -fPIC -Werror -c -DINSTALL_DATADIR=\"/usr/share\" -DLWS_OPENSSL_CLIENT_CERTS=\"/etc/pki/tls/certs/\" -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -Os -D_DEBUG -DLWS_LIBRARY_VERSION=\"1.2\" -DLWS_BUILD_HASH=\"dd06dc8\" -MT
libwebsockets_la-libwebsockets.lo -MD -MP -MF .deps/libwebsockets_la-libwebsockets.Tpo -c libwebsockets.c -fPIC -DPIC -o
.libs/libwebsockets_la-libwebsockets.o
libtool: compile: /home/brcpy/output/host/usr/bin/ccache /home/brcpy/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc
-DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -std=gnu99 -pedantic -O0 -g
-rdynamic -fPIC -Werror -c -DINSTALL_DATADIR=\"/usr/share\" -DLWS_OPENSSL_CLIENT_CERTS=\"/etc/pki/tls/certs/\" -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -Os -D_DEBUG -DLWS_LIBRARY_VERSION=\"1.2\" -DLWS_BUILD_HASH=\"dd06dc8\" -MT
libwebsockets_la-base64-decode.lo -MD -MP -MF .deps/libwebsockets_la-base64-decode.Tpo -c base64-decode.c -fPIC -DPIC -o
.libs/libwebsockets_la-base64-decode.o
libwebsockets.c:32:21: fatal error: ifaddrs.h: No such file or directory
#include <ifaddrs.h>
^
Maybe this has been reported before.
I found that this header file is not present in the staging include directory but is located
in the uclibc-0.9.33.2/include build directory.
Resolving the header file causes a bunch of other build errors:
snip..............
In file included from libwebsockets.c:32:0:
/home/brcpy/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/ifaddrs.h: In function 'libc_hidden_proto':
/home/brcpy/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/ifaddrs.h:71:13: error: storage class specified
for parameter 'freeifaddrs'
extern void freeifaddrs (struct ifaddrs *__ifa) __THROW;
^
/home/brcpy/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/ifaddrs.h:72:1: error: expected declaration
specifiers before 'libc_hidden_proto'
libc_hidden_proto(freeifaddrs)
^
In file included from /home/brcpy/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/syslog.h:1:0,
from libwebsockets.c:34:
/home/brcpy/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/sys/syslog.h:187:13: error: storage class
specified for parameter 'openlog'
extern void openlog (__const char *__ident, int __option, int __facility);
snip...........
libwebsockets.c:69:2: error: (near initialization for 'log_level_names') [-Werror]
libwebsockets.c:70:2: error: excess elements in scalar initializer [-Werror]
"EXTENSION",
^
libwebsockets.c:70:2: error: (near initialization for 'log_level_names') [-Werror]
libwebsockets.c:71:2: error: excess elements in scalar initializer [-Werror]
"CLIENT",
^
libwebsockets.c:71:2: error: (near initialization for 'log_level_names') [-Werror]
libwebsockets.c:72:2: error: excess elements in scalar initializer [-Werror]
"LATENCY",
^
libwebsockets.c:72:2: error: (near initialization for 'log_level_names') [-Werror]
libwebsockets.c:76:13: error: storage class specified for parameter 'lws_client_socket_service'
extern int lws_client_socket_service(
^
libwebsockets.c:81:13: error: storage class specified for parameter 'lws_server_socket_service'
extern int lws_server_socket_service(
^
libwebsockets.c:96:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
libwebsockets.c:103:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
libwebsockets.c:138:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
libwebsockets.c:182:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
Sagaert Johan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140429/d0c0b83f/attachment.html>
^ permalink raw reply [flat|nested] 3+ messages in thread* [Buildroot] libwebsockets : missing header
2014-04-29 10:11 [Buildroot] libwebsockets : missing header Sagaert Johan
@ 2014-04-29 10:46 ` Baruch Siach
2014-04-29 21:38 ` Sagaert Johan
0 siblings, 1 reply; 3+ messages in thread
From: Baruch Siach @ 2014-04-29 10:46 UTC (permalink / raw)
To: buildroot
Hi Sagaert Johan,
On Tue, Apr 29, 2014 at 12:11:39PM +0200, Sagaert Johan wrote:
> building libwebsockets is broken :
>
> snip..........
> -g -rdynamic -fPIC -Werror -c -DINSTALL_DATADIR=\"/usr/share\" -DLWS_OPENSSL_CLIENT_CERTS=\"/etc/pki/tls/certs/\"
> -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -Os -D_DEBUG -DLWS_LIBRARY_VERSION=\"1.2\"
> -DLWS_BUILD_HASH=\"dd06dc8\" -MT libwebsockets_la-output.lo -MD -MP -MF .deps/libwebsockets_la-output.Tpo -c output.c -fPIC -DPIC
> -o .libs/libwebsockets_la-output.o
> libtool: compile: /home/brcpy/output/host/usr/bin/ccache /home/brcpy/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc
> -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -std=gnu99 -pedantic -O0 -g
> -rdynamic -fPIC -Werror -c -DINSTALL_DATADIR=\"/usr/share\" -DLWS_OPENSSL_CLIENT_CERTS=\"/etc/pki/tls/certs/\" -D_LARGEFILE_SOURCE
> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -Os -D_DEBUG -DLWS_LIBRARY_VERSION=\"1.2\" -DLWS_BUILD_HASH=\"dd06dc8\" -MT
> libwebsockets_la-libwebsockets.lo -MD -MP -MF .deps/libwebsockets_la-libwebsockets.Tpo -c libwebsockets.c -fPIC -DPIC -o
> .libs/libwebsockets_la-libwebsockets.o
> libtool: compile: /home/brcpy/output/host/usr/bin/ccache /home/brcpy/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc
> -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -std=gnu99 -pedantic -O0 -g
> -rdynamic -fPIC -Werror -c -DINSTALL_DATADIR=\"/usr/share\" -DLWS_OPENSSL_CLIENT_CERTS=\"/etc/pki/tls/certs/\" -D_LARGEFILE_SOURCE
> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -Os -D_DEBUG -DLWS_LIBRARY_VERSION=\"1.2\" -DLWS_BUILD_HASH=\"dd06dc8\" -MT
> libwebsockets_la-base64-decode.lo -MD -MP -MF .deps/libwebsockets_la-base64-decode.Tpo -c base64-decode.c -fPIC -DPIC -o
> .libs/libwebsockets_la-base64-decode.o
> libwebsockets.c:32:21: fatal error: ifaddrs.h: No such file or directory
> #include <ifaddrs.h>
> ^
> Maybe this has been reported before.
> I found that this header file is not present in the staging include directory but is located
> in the uclibc-0.9.33.2/include build directory.
Please share your .config.
Have you customized the uClibc configuration?
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 3+ messages in thread* [Buildroot] libwebsockets : missing header
2014-04-29 10:46 ` Baruch Siach
@ 2014-04-29 21:38 ` Sagaert Johan
0 siblings, 0 replies; 3+ messages in thread
From: Sagaert Johan @ 2014-04-29 21:38 UTC (permalink / raw)
To: buildroot
Hi Baruch
You pointed me in the right direction, I am using a custom uclibc config file.
UCLIBC_SUPPORT_AI_ADDRCONFIG was not set in my config file.
Best Regards, Johan
-----Oorspronkelijk bericht-----
Van: buildroot-bounces at busybox.net [mailto:buildroot-bounces at busybox.net] Namens Baruch Siach
Verzonden: dinsdag 29 april 2014 12:47
Aan: Sagaert Johan
CC: buildroot at busybox.net
Onderwerp: Re: [Buildroot] libwebsockets : missing header
Hi Sagaert Johan,
On Tue, Apr 29, 2014 at 12:11:39PM +0200, Sagaert Johan wrote:
> building libwebsockets is broken :
>
> snip..........
> -g -rdynamic -fPIC -Werror -c -DINSTALL_DATADIR=\"/usr/share\" -DLWS_OPENSSL_CLIENT_CERTS=\"/etc/pki/tls/certs/\"
> -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -Os -D_DEBUG -DLWS_LIBRARY_VERSION=\"1.2\"
> -DLWS_BUILD_HASH=\"dd06dc8\" -MT libwebsockets_la-output.lo -MD -MP
> -MF .deps/libwebsockets_la-output.Tpo -c output.c -fPIC -DPIC -o
> .libs/libwebsockets_la-output.o
> libtool: compile: /home/brcpy/output/host/usr/bin/ccache
> /home/brcpy/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc
> -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
> -D_FILE_OFFSET_BITS=64 -Wall -std=gnu99 -pedantic -O0 -g -rdynamic
> -fPIC -Werror -c -DINSTALL_DATADIR=\"/usr/share\"
> -DLWS_OPENSSL_CLIENT_CERTS=\"/etc/pki/tls/certs/\" -D_LARGEFILE_SOURCE
> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -Os -D_DEBUG
> -DLWS_LIBRARY_VERSION=\"1.2\" -DLWS_BUILD_HASH=\"dd06dc8\" -MT
> libwebsockets_la-libwebsockets.lo -MD -MP -MF
> .deps/libwebsockets_la-libwebsockets.Tpo -c libwebsockets.c -fPIC
> -DPIC -o .libs/libwebsockets_la-libwebsockets.o
> libtool: compile: /home/brcpy/output/host/usr/bin/ccache
> /home/brcpy/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc
> -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
> -D_FILE_OFFSET_BITS=64 -Wall -std=gnu99 -pedantic -O0 -g -rdynamic
> -fPIC -Werror -c -DINSTALL_DATADIR=\"/usr/share\"
> -DLWS_OPENSSL_CLIENT_CERTS=\"/etc/pki/tls/certs/\" -D_LARGEFILE_SOURCE
> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -Os -D_DEBUG
> -DLWS_LIBRARY_VERSION=\"1.2\" -DLWS_BUILD_HASH=\"dd06dc8\" -MT
> libwebsockets_la-base64-decode.lo -MD -MP -MF
> .deps/libwebsockets_la-base64-decode.Tpo -c base64-decode.c -fPIC
> -DPIC -o .libs/libwebsockets_la-base64-decode.o
> libwebsockets.c:32:21: fatal error: ifaddrs.h: No such file or
> directory #include <ifaddrs.h>
> ^
> Maybe this has been reported before.
> I found that this header file is not present in the staging include
> directory but is located in the uclibc-0.9.33.2/include build directory.
Please share your .config.
Have you customized the uClibc configuration?
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il - _______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-04-29 21:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-29 10:11 [Buildroot] libwebsockets : missing header Sagaert Johan
2014-04-29 10:46 ` Baruch Siach
2014-04-29 21:38 ` Sagaert Johan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox