[Samba] Samba 4.1.7 Compile on NetBSD/amd64 - 6.1.4

Scott Burns Scott.Burns at SeQent.Com
Thu May 15 18:33:27 MDT 2014


I have a brand new NetBSD machine I am building to replace an existing one
that is retiring. The current server runs an old version of Samba and I
would like to upgrade this machine to something newer. The machine has basic
NetBSD on it and that is about it (ie. very little if any customization to
the out of the box configuration).

I know NetBSD is probably not a mainstream platform for your project but I
can usually get items to build ok.

Environment is:
	HP DL380/G6 - 	NetBSD/amd64 - 6.1.4

	Samba 4.1.7 Source

	Perl-5.18.2nb1
	Python-2.7.6nb3
	Gmake-4.0
	Docbook-xsl 1.77.1nb1
	gcc (NetBSD nb2 20110806) 4.5.3

Building:
	I can complete the ./configure step with success but the make fails.
	     gmake clean
	     ./configure (See configure_err.txt attached for output from
this)
	    gmake (see gmake_err.txt/gmake_out.txt attachment for output
from this)

gmake Error:

     [ 719/3821] Compiling source4/heimdal/lib/gssapi/krb5/copy_ccache.c
     In file included from
../source4/heimdal/lib/gssapi/krb5/gsskrb5_locl.h:41:0,
                 from ../source4/heimdal/lib/gssapi/krb5/copy_ccache.c:34:
     ../source4/heimdal/lib/krb5/krb5_locl.h:121:21: fatal error: com_err.h:
	No such file or directory
     compilation terminated.
     Waf: Leaving directory `/usr/local/samba-4.1.7/bin'
     Build failed:  -> task failed (err #1): 
	{task: cc copy_ccache.c -> copy_ccache_48.o}
     gmake: *** [all] Error 1



Looking on the system for com_err.h I find:

     new103# cd /
     new103# find ./ -name 'com_err.h' -print
     ./usr/include/krb5/com_err.h
     ./usr/src/crypto/external/bsd/heimdal/dist/lib/com_err/com_err.h
     ./usr/src/external/gpl3/gcc/dist/fixincludes/tests/base/com_err.h
     ./usr/src/gnu/dist/gcc4/fixincludes/tests/base/com_err.h
     ./usr/local/samba-4.1.7/source4/heimdal/lib/com_err/com_err.h
     new103#

Can someone point me in the right direction to determining how to get past
this issue?

I have tried ./configure --with-system-mitkrb5 and it results in:

     Checking for system pyldb-util >= 1.1.16
                     : not found
     Checking linker accepts -Wl,-no-undefined
                     : yes
     Checking linker accepts ['-undefined', 'dynamic_lookup']
                     : no
     Looking for kerberos features
     Checking for program krb5-config.heimdal
                     : not found
     Checking for program krb5-config
                     : /usr/bin/krb5-config
     Checking for /usr/bin/krb5-config
                     : yes
     Checking for gssapi
                     : yes
     /usr/local/samba-4.1.7/wscript:113: error: fail

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: configure_err.txt
URL: <http://lists.samba.org/pipermail/samba/attachments/20140516/9b808b9d/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gmake_err.txt
URL: <http://lists.samba.org/pipermail/samba/attachments/20140516/9b808b9d/attachment-0001.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gmake_out.txt
URL: <http://lists.samba.org/pipermail/samba/attachments/20140516/9b808b9d/attachment-0002.txt>


More information about the samba mailing list