Compiling ../lib/tsocket/tsocket_bsd.c ../lib/tsocket/tsocket_bsd.c: In function `tdgram_bsd_dgram_socket': ../lib/tsocket/tsocket_bsd.c:1249: `IPV6_V6ONLY' undeclared (first use in this function) ../lib/tsocket/tsocket_bsd.c:1249: (Each undeclared identifier is reported only once ../lib/tsocket/tsocket_bsd.c:1249: for each function it appears in.) ../lib/tsocket/tsocket_bsd.c: In function `tstream_bsd_connect_send': ../lib/tsocket/tsocket_bsd.c:2090: `IPV6_V6ONLY' undeclared (first use in this function) The following command failed: gcc -I../lib/zlib -I/usr/src/packages/BUILD/heimdal-0.7.2-inst/include -O1 -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -I/usr/src/packages/BUILD/heimdal-0.7.2-inst/include -I. -I/usr/src/packages/BUILD/samba-3.5. 0/source3 -I/usr/src/packages/BUILD/samba-3.5.0/source3/iniparser/src -Iinclude -I./include -I. -I. -I./../lib/replace -I./../lib/tevent -I./libaddns -I./librpc -I./.. -I./../lib/talloc -I../lib/tdb/include -DHAVE_CONFIG_H -I/usr/src/packages/BUILD/heimdal-0.7.2-inst/include -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Iinclude -I./include -I. -I. -I./../lib/replace -I./../lib/tevent -I./libadd ns -I./librpc -I./.. -I./../lib/popt -DLDAP_DEPRECATED -I/usr/src/packages/BUILD/samba-3.5.0/source3/lib -I.. -I../source4 -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3 -fPIC -c ../lib/tsocket/tsocket_bsd.c -o ../li b/tsocket/tsocket_bsd.o make: *** [../lib/tsocket/tsocket_bsd.o] Error 1
We rely on IPV6_V6ONLY being support, because some system already have this as default. It's easier to behave the same way on all systems and handle ipv6 and ipv4 sockets separate.
This is also related to bug 7140
Created attachment 5657 [details] Patch for v3-5
Comment on attachment 5657 [details] Patch for v3-5 Jeremy, can you please review this, so that we can include it in the next release?
Comment on attachment 5657 [details] Patch for v3-5 Fix looks all right but I cannot really test it here.
Karolin, please pick for the release
Pushed to v3-5-test. Closing out bug report. Thanks!