Cannot build Samba 4.0.4 on Solaris 11

Andrew Bartlett abartlet at samba.org
Thu Mar 21 20:12:41 MDT 2013


On Fri, 2013-03-22 at 02:05 +0900, TAKAHASHI Motonobu wrote:
> From: Andrew Bartlett <abartlet at samba.org>
> Date: Thu, 21 Mar 2013 08:58:49 +1100
> 
> > On Wed, 2013-03-20 at 22:47 +0900, TAKAHASHI Motonobu wrote:
> >> I currently try to build Samba 4.0.4 on Solaris 11 x86 and cannot.
> >> Does Samba 4.0.4 support Solaris 11?
> > Can you run make V=1 for me?
> > 
> > In general, Solaris and derivatives are supported.  In general, we know
> > it builds on:
> (snip)
> > 
> > So, I'm suspecting a local issue, or some unusual quoting issue in the
> > way we invoke the shell.  Hopefully 'make V=1' will show up what we need
> > to sort out for you. 
> 
> The following is the output (/bin/sh is linked to the i86/ksh93): 
> I tried with both make and gmake.

> 
> $ gmake V=1
> (snip)
> [ 124/3763] Compiling IDL librpc/idl/atsvc.idl
> 02:00:39 runner  cd .. && CPP="" CC="/usr/bin/gcc" /usr/bin/perl
> "/home/monyo/Work/Samba/sol-x64/samba-4.0.4/pidl/pidl" --quiet --header
> --ndr-parser --samba3-ndr-server --server --client --python --outputdir
> bin/default/librpc/gen_ndr --
> "/home/monyo/Work/Samba/sol-x64/samba-4.0.4/librpc/idl/atsvc.idl"
> sh: -_: unknown option
> sh: -_: unknown option
> sh: -P: unknown option
> sh: -I: unknown option
> sh: -L: unknown option
> sh: -_: unknown option
> sh: -_: unknown option
> sh: - : unknown option
> sh: - : unknown option
> sh: -": unknown option
> sh: -/: unknown option
> sh: me/monyo/Work/Samba/sol-x64/samba-4.0.4/librpc/idl/atsvc.idl": bad
> option(s)
> Usage: sh [-cilrsDEabefhkmnprtuvxBCGH] [-R file] [-o[option]] [arg ...]
> Failed to parse
> /home/monyo/Work/Samba/sol-x64/samba-4.0.4/librpc/idl/atsvc.idl at
> /home/monyo/Work/Samba/sol-x64/samba-4.0.4/pidl/pidl line 608.
> Waf: Leaving directory `/home/monyo/Work/Samba/sol-x64/samba-4.0.4/bin'
> Build failed:  -> task failed (err #2):
>         {task: PIDL_ATSVC
> 	atsvc.idl,CUtil.pm,Compat.pm,Dump.pm,Expr.pm,IDL.pm,NDR.pm,ODL.pm,ClientNDR.pm,ServerNDR.pm,Header.pm,Proxy.pm,Stub.pm,Header.pm,Client.pm,Parser.pm,Server.pm,Python.pm,TDR.pm,Template.pm,Samba4.pm,Typelist.pm,Util.pm,Conformance.pm,NDR.pm,Pidl.pm,Driver.pm
> 	->
> 	atsvc.h,ndr_atsvc.c,ndr_atsvc.h,srv_atsvc.c,srv_atsvc.h,ndr_atsvc_s.c,ndr_atsvc_c.c,ndr_atsvc_c.h,py_atsvc.c}
> gmake: *** [all] Error 1

The issue is clearly that CPP="" has been set somehow.  Have you forced
this in some way in your environment?  If not, can you share you
config.log so we can work out how this has been set?

PIDL then attempts to compile the idl files with this substituted in,
and of course sh doesn't make a very good compiler :-)

Thanks,

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org




More information about the samba-technical mailing list