mount.h problem with samba 3.4.8/autoconf 2.67 on FreeBSD 6.4

Ryan Buterbaugh ryan at buterbaugh.org
Thu Sep 16 19:08:47 MDT 2010


Hi,

I received the following warning while updating my FreeBSD Samba port.
During configuration, the mount.h check reported the following:

	checking sys/mount.h usability... no
	checking sys/mount.h presence... yes
	configure: WARNING: sys/mount.h: present but cannot be compiled
	configure: WARNING: sys/mount.h:     check for missing prerequisite
headers?
	configure: WARNING: sys/mount.h: see the Autoconf documentation
	configure: WARNING: sys/mount.h:     section "Present But Cannot Be
Compiled"
	configure: WARNING: sys/mount.h: proceeding with the compiler's
result
	configure: WARNING:     ## ----------------------------------------
##
	configure: WARNING:     ## Report this to samba-technical at samba.org
##
	configure: WARNING:     ## ----------------------------------------
##
	checking for sys/mount.h... no

Compilation eventually halts on the following error:

	Compiling smbd/statvfs.c
	smbd/statvfs.c: In function `bsd_statvfs':
	smbd/statvfs.c:54: error: storage size of 'statfs_buf' isn't known
	smbd/statvfs.c:76: error: `MNT_ACLS' undeclared (first use in this
function)
	smbd/statvfs.c:76: error: (Each undeclared identifier is reported
only once
	smbd/statvfs.c:76: error: for each function it appears in.)
	smbd/statvfs.c:78: error: `MNT_QUOTA' undeclared (first use in this
function)
	smbd/statvfs.c:80: error: `MNT_RDONLY' undeclared (first use in this
function)
	The following command failed:
	cc -O2 -fno-strict-aliasing -pipe -DLDAP_DEPRECATED -I.
-I/usr/ports/net/samba34/work/samba-3.4.8/source3 -
I/usr/ports/net/samba34/work/samba-3.4.8/source3/iniparser/src -Iinclude
-I./include  -I. -I. -I./../lib/replace 	-I/usr/local/include
-I./../lib/tevent -I./../lib/tdb/include -I./libaddns -I./librpc -I./..
-DHAVE_CONFIG_H  	-I/usr/local/include -Iinclude -I./include -I. -I.
-I./../lib/replace -I/usr/local/include -I./../lib/tevent -
I./../lib/tdb/include -I./libaddns -I./librpc -I./.. -I./../lib/popt
-I/usr/local/include -I/usr/local/include -	DLDAP_DEPRECATED
-I/usr/ports/net/samba34/work/samba-3.4.8/source3/lib -I.. -I../source4
-D_SAMBA_BUILD_=3 -	D_SAMBA_BUILD_=3 -fPIC -DPIC -c smbd/statvfs.c -o
smbd/statvfs.o
	gmake: *** [smbd/statvfs.o] Error 1
	*** Error code 1

	Stop in /usr/ports/net/samba34.
	*** Error code 1

	Stop in /usr/ports/net/samba34.


System information:

[root at condor.butterz.com ~]# uname -a
FreeBSD condor.butterz.com 6.4-RELEASE-p7 FreeBSD 6.4-RELEASE-p7 #0: Fri Oct
2 02:29:33 UTC 2009
root at i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386

[root at condor.butterz.com ~]# autoconf --version
autoconf (GNU Autoconf) 2.67

[root at condor.butterz.com ~]# gcc -v
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.4.6 [FreeBSD] 20060305

[root at condor.butterz.com ~]# ls -la /usr/include/sys/mount.h
-r--r--r--  1 root  wheel  27501 Oct  6  2009 /usr/include/sys/mount.h 

If you need further information, access to the machine in question or if I
can be of any other assistance, let me know. If this is a problem with my
system and not Samba, I regret the inconvenience and would appreciate any
direction while I continue to attempt to resolve the issue.

Thanks,
Ryan




More information about the samba-technical mailing list