Fixed -lnetwork issue by checking for network lib.
Patch, then:
In file included from /boot/home/cvs-1.12.13-haiku-test/lib/getaddrinfo.c:23:
/boot/home/cvs-1.12.13-haiku-test/lib/getaddrinfo.h:44: warning: `AI_PASSIVE' redefined
/boot/develop/headers/posix/netdb.h:196: warning: this is the location of the previous definition
/boot/home/cvs-1.12.13-haiku-test/lib/getaddrinfo.h:45: warning: `AI_CANONNAME' redefined
/boot/develop/headers/posix/netdb.h:197: warning: this is the location of the previous definition
/boot/home/cvs-1.12.13-haiku-test/lib/getaddrinfo.h:46: warning: `AI_NUMERICHOST' redefined
/boot/develop/headers/posix/netdb.h:198: warning: this is the location of the previous definition
/boot/home/cvs-1.12.13-haiku-test/lib/getaddrinfo.h:47: warning: `AI_V4MAPPED' redefined
/boot/develop/headers/posix/netdb.h:204: warning: this is the location of the previous definition
/boot/home/cvs-1.12.13-haiku-test/lib/getaddrinfo.h:48: warning: `AI_ALL' redefined
/boot/develop/headers/posix/netdb.h:205: warning: this is the location of the previous definition
/boot/home/cvs-1.12.13-haiku-test/lib/getaddrinfo.h:50: warning: `AI_ADDRCONFIG' redefined
/boot/develop/headers/posix/netdb.h:206: warning: this is the location of the previous definition
/boot/home/cvs-1.12.13-haiku-test/lib/getaddrinfo.h:53: warning: `EAI_BADFLAGS' redefined
/boot/develop/headers/posix/netdb.h:180: warning: this is the location of the previous definition
/boot/home/cvs-1.12.13-haiku-test/lib/getaddrinfo.h:54: warning: `EAI_NONAME' redefined
/boot/develop/headers/posix/netdb.h:185: warning: this is the location of the previous definition
/boot/home/cvs-1.12.13-haiku-test/lib/getaddrinfo.h:55: warning: `EAI_AGAIN' redefined
/boot/develop/headers/posix/netdb.h:179: warning: this is the location of the previous definition
/boot/home/cvs-1.12.13-haiku-test/lib/getaddrinfo.h:56: warning: `EAI_FAIL' redefined
/boot/develop/headers/posix/netdb.h:181: warning: this is the location of the previous definition
/boot/home/cvs-1.12.13-haiku-test/lib/getaddrinfo.h:57: warning: `EAI_NODATA' redefined
/boot/develop/headers/posix/netdb.h:184: warning: this is the location of the previous definition
/boot/home/cvs-1.12.13-haiku-test/lib/getaddrinfo.h:58: warning: `EAI_FAMILY' redefined
/boot/develop/headers/posix/netdb.h:182: warning: this is the location of the previous definition
/boot/home/cvs-1.12.13-haiku-test/lib/getaddrinfo.h:59: warning: `EAI_SOCKTYPE' redefined
/boot/develop/headers/posix/netdb.h:187: warning: this is the location of the previous definition
/boot/home/cvs-1.12.13-haiku-test/lib/getaddrinfo.h:60: warning: `EAI_SERVICE' redefined
/boot/develop/headers/posix/netdb.h:186: warning: this is the location of the previous definition
/boot/home/cvs-1.12.13-haiku-test/lib/getaddrinfo.h:61: warning: `EAI_ADDRFAMILY' redefined
/boot/develop/headers/posix/netdb.h:178: warning: this is the location of the previous definition
/boot/home/cvs-1.12.13-haiku-test/lib/getaddrinfo.h:62: warning: `EAI_MEMORY' redefined
/boot/develop/headers/posix/netdb.h:183: warning: this is the location of the previous definition
/boot/home/cvs-1.12.13-haiku-test/lib/getaddrinfo.h:63: warning: `EAI_SYSTEM' redefined
/boot/develop/headers/posix/netdb.h:188: warning: this is the location of the previous definition
In file included from /boot/home/cvs-1.12.13-haiku-test/lib/getaddrinfo.c:23:
/boot/home/cvs-1.12.13-haiku-test/lib/getaddrinfo.h:32: redefinition of `struct addrinfo'
/boot/home/cvs-1.12.13-haiku-test/lib/getaddrinfo.c: In function `getaddrinfo':
/boot/home/cvs-1.12.13-haiku-test/lib/getaddrinfo.c:129: warning: initialization from incompatible pointer type
/boot/home/cvs-1.12.13-haiku-test/lib/getaddrinfo.c:148: warning: initialization from incompatible pointer type
make[3]: *** [getaddrinfo.o] Error 1
make[3]: Leaving directory `/boot/home/cvs-1.12.13-haiku-test/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/boot/home/cvs-1.12.13-haiku-test/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/boot/home/cvs-1.12.13-haiku-test'
make: *** [all] Error 2
~/cvs-1.12.13-haiku-test> StyledEdit
BHandler w>Untitled 1: MessageReceived() couldn't understand the message:
BMessage('_RRC') {
src_window = (type = 'PNTR')(size = 4)
click_pt = BPoint(x:31, y:612)
TrackerViewToken = (type = 'MSNG')(size = 24)
refs = entry_ref(device=3, directory=787764, name="configure", path="/boot/home/cvs-1.12.13-haiku-test/configure")
buttons = int32(0x1 or 1)
_drop_point_ = BPoint(x:35, y:332)
_drop_offset_ = BPoint(x:31, y:12)
}
Can use iconv and gettext, so still need to try building with those in place.
Updated patch to fix the getaddrinfo issue, and removed patch that worked around the st_blocks problem as it's now been fixed in haiku.
Make check passes all tests except it can't be run as root.