Bug 13403 - vfs_virusfilter_utils.c: fatal error: use of undeclared identifier 'SOCK_NONBLOCK'
Summary: vfs_virusfilter_utils.c: fatal error: use of undeclared identifier 'SOCK_NONB...
Status: RESOLVED DUPLICATE of bug 13343
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build (show other bugs)
Version: 4.8.0
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-24 18:52 UTC by Ruga
Modified: 2018-04-25 07:40 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ruga 2018-04-24 18:52:19 UTC
configuration
-------------

config_options="--enable-fhs\
   --prefix=${prefix} \
   --sysconfdir=${etc} \
   --localstatedir=${prefix}/var \
	--with-configdir=${etc} \
	--with-piddir=${prefix}/var/run \
	--mandir=${man} \
   --docdir=${doc} \
   --with-pie \
   --without-relro \
   --with-libiconv=$libiconv \
   \
   --without-acl-support \
   --without-ad-dc \
   --without-ads \
   --without-ad-dc \
   --disable-avahi \
   --disable-cups --disable-iprint \
   --without-dnsupdate \
   --without-gettext \
   --disable-glusterfs \
   --without-ldap \
   --without-ntvfs-fileserver \
   --without-pam \
   --disable-python \
   --without-quotas \
   --without-systemd \
   --without-winbind \
   \
   --disable-symbol-versions \
   --fatal-errors";

make error
----------

> make "$config_options" >stdout.log 2>stderr.log

[...]

[2306/2913] Compiling source3/modules/vfs_virusfilter_utils.c
../source3/modules/vfs_virusfilter_utils.c:172:11: fatal error: use of undeclared identifier 'SOCK_NONBLOCK'
        flags |= SOCK_NONBLOCK;
                 ^
1 error generated.
Waf: Leaving directory `/opt/src/samba-4.8.0/bin'
Build failed:  -> task failed (err #1): 
        {task: cc vfs_virusfilter_utils.c -> vfs_virusfilter_utils_5.o}
make: *** [all] Error 1

notes
------

>search -cv SOCK_NONBLOCK .

./compiler-stderr.log:6671:../source3/modules/vfs_virusfilter_utils.c:172:11: fatal error: use of undeclared identifier 'SOCK_NONBLOCK'
./compiler-stderr.log:6672:        flags |= SOCK_NONBLOCK;
./source3/modules/vfs_virusfilter_utils.c:172:	flags |= SOCK_NONBLOCK;
./third_party/socket_wrapper/socket_wrapper.c:2801:#ifdef SOCK_NONBLOCK
./third_party/socket_wrapper/socket_wrapper.c:2802:	real_type &= ~SOCK_NONBLOCK;
./third_party/socket_wrapper/socket_wrapper.c:2858:	 * we removed SOCK_CLOEXEC and SOCK_NONBLOCK from


comments
--------

config does not include options to enable/disable the antivirus and the socket wrapper
Comment 1 Stefan Metzmacher 2018-04-25 07:40:16 UTC

*** This bug has been marked as a duplicate of bug 13343 ***