[Samba] samba 4.0.3 compiling fails on freebsd 9.1

Ted Johnson jhnsn.ted at gmail.com
Thu Aug 22 17:23:18 MDT 2013


Timur I. Bakeyev <timur <at> com.bat.ru> writes:

> 
> Use ports for this, please.
> 
> On Mon, Mar 11, 2013 at 6:32 PM, Joeri Vanthienen
> <mail <at> joerivanthienen.be>wrote:
> 
> > Hi,
> >
> > I have a problem compiling samba 4.0.3 on freebsd 9.1.
> >
> > root <at> freebsd-san:/root/samba-4.0.3 # uname -a
> > FreeBSD freebsd-san 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue
> > Dec  4 09:23:10 UTC 2012
> > root <at> farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
> > root <at> freebsd-san:/root/samba-4.0.3 #
> >
> > I've installed the devel/libinotify port and there is a header file
> > located at "/usr/local/include/sys/inotify.h".
> > Am I missing something?
> >
> > ....
> > [3409/3611] Linking default/source4/lib/policy/py-policy.so
> > [3410/3611] Linking
> > default/source4/dsdb/samdb/ldb_modules/libldb-objectclass.so
> > [3411/3611] Linking
> > default/source4/dsdb/samdb/ldb_modules/libldb-descriptor.so
> > [3412/3611] Linking default/source4/ntvfs/libntvfs.so
> > default/source4/ntvfs/sysdep/inotify_1.o: In function `inotify_setup':
> > inotify.c:(.text+0x508): undefined reference to `inotify_init'
> > default/source4/ntvfs/sysdep/inotify_1.o: In function 
`watch_destructor':
> > inotify.c:(.text+0x8d4): undefined reference to `inotify_rm_watch'
> > default/source4/ntvfs/sysdep/inotify_1.o: In function `inotify_watch':
> > inotify.c:(.text+0x9c5): undefined reference to `inotify_add_watch'
> > inotify.c:(.text+0xa21): undefined reference to `inotify_rm_watch'
> > inotify.c:(.text+0xac6): undefined reference to `inotify_rm_watch'
> > Waf: Leaving directory `/root/samba-4.0.3/bin'
> > Build failed:  -> task failed (err #1):
> >         {task: cc_link
> >
> > 
inotify_1.o,vfs_smb2_6.o,vfs_ipc_12.o,ipc_rap_12.o,rap_server_12.o,pvfs_acl_
1.o,pvfs_acl_xattr_3.o,vfs_cifs_5.o,vfs_simple_7.o,svfs_util_7.o,vfs_unixuid
_1.o,sys_lease_3.o,sys_notify_2.o,ntvfs_base_1.o,ntvfs_generic_1.o,ntvfs_int
erface_1.o,ntvfs_util_1.o,pvfs_acl_nfs4_4.o,server_info_1.o,share_info_1.o,v
fs_print_11.o,vfs_cifs_posix_9.o,svfs_util_9.o,vfs_posix_5.o,pvfs_util_5.o,p
vfs_search_5.o,pvfs_dirlist_5.o,pvfs_fileinfo_5.o,pvfs_unlink_5.o,pvfs_mkdir
_5.o,pvfs_open_5.o,pvfs_read_5.o,pvfs_flush_5.o,pvfs_write_5.o,pvfs_fsinfo_5
.o,pvfs_qfileinfo_5.o,pvfs_setfileinfo_5.o,pvfs_rename_5.o,pvfs_resolve_5.o,
pvfs_shortname_5.o,pvfs_lock_5.o,pvfs_oplock_5.o,pvfs_wait_5.o,pvfs_seek_5.o
,pvfs_ioctl_5.o,pvfs_xattr_5.o,pvfs_streams_5.o,pvfs_notify_5.o,pvfs_sys_5.o
,xattr_system_5.o,vfs_nbench_14.o,init
>  _1.o,brlock_1.o,brlock_tdb_1.o,opendb_1.o,opendb_tdb_1.o,notify_1.o
> > -> libntvfs.so}
> > *** [all] Error code 1
> >
> > Stop in /root/samba-4.0.3.
> >
> > Thanks.
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions:  https://lists.samba.org/mailman/options/samba
> >


Hi,

I have exact same build error on FreeBSD 9.1 with fresh git distro of Samba 
4.0.9. What could I be missing here?

Ted




More information about the samba mailing list