Build failure with musl libc

201 views
Skip to first unread message

ojab

unread,
Dec 16, 2012, 1:34:57 PM12/16/12
to googletes...@googlegroups.com
Oh hai!

build of googletest from svn/trunk fails using musl libc [1] with

> libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./build-aux -I. -I./include -DGTEST_HAS_PTHREAD=1 -g -O2 -MT src/gtest-all.lo -MD -MP -MF src/.deps/gtest-all.Tpo -c src/gtest-all.cc -fPIC -DPIC -o src/.libs/gtest-all.o
> In file included from src/gtest-all.cc:42:0:
> ./src/gtest.cc: In member function 'void testing::internal::StreamingListener::MakeConnection()':
> ./src/gtest.cc:3399:21: error: 'AF_UNSPEC' was not declared in this scope
> ./src/gtest.cc:3400:23: error: 'SOCK_STREAM' was not declared in this scope
> ./src/gtest.cc:3416:74: error: 'socket' was not declared in this scope
> ./src/gtest.cc:3419:67: error: 'connect' was not declared in this scope
> make: *** [src/gtest-all.lo] Error 1


patch can be found in the attached file (see [2]).

[1] http://www.musl-libc.org/
[2]
http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/socket.h.html

//wbr ojab

gtest-musl.patch

ojab

unread,
Jan 9, 2013, 10:59:08 AM1/9/13
to googletes...@googlegroups.com
On 16.12.2012 22:34, ojab wrote:
> Oh hai!
>
> build of googletest from svn/trunk fails using musl libc [1] with
>
> patch can be found in the attached file (see [2]).
>
> [1] http://www.musl-libc.org/
> [2]
> http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/socket.h.html
>
> //wbr ojab
>

Bump?

//wbr ojab
gtest-musl.patch
Reply all
Reply to author
Forward
0 new messages