patch for samba-2.2.4 on Solaris

Richard Sharpe rsharpe at ns.aus.com
Wed May 8 09:17:02 GMT 2002


On Wed, 8 May 2002, Harald Koenig wrote:

> Hi again,
> 
> 
> first: I'm not (yet?) subscribed to samba-technical,
> so please send me a Cc: of your replies.  thanks!
> 
> 
> 
> samba-2.2.4 doesn't build anymore on Solaris when using gcc.
> this problem was inserted after samba-2.2.3a-cvs-20020423.
> 
> the problem is caused in source/configure in
> 
> 		*solaris*) cat >>confdefs.h <<\EOF
> #define SUNOS5 1
> EOF
> 
> 			BLDSHARED="true"
> 			LDSHFLAGS="-G"
> 			SONAMEFLAG="-h "
> 			if test "${ac_cv_prog_CC}" = "gcc"; then
> 				PICFLAG="-fPIC"
> 			else
> 				PICFLAG="-KPIC"
> 				POBAD_CC=""
> 				PICSUFFIX="po.o"
> 			fi
> 
> because ac_cv_prog_CC is not set at all, so PICFLAG="-KPIC" will be 
> used for gcc.
> 
> and ac_cv_prog_CC doesn't get set because ac_tool_prefix is empty...

OK, but this means there is a problem in configure.in ... 

> my ugly workaround patch for Solaris right now is:
> 
> 
> -------------------------------------------------------------------------------
> --- samba-2.2.4/source/configure~	Fri May  3 03:02:45 2002
> +++ samba-2.2.4/source/configure	Wed May  8 11:47:45 2002
> @@ -1187,7 +1187,7 @@
>  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
>  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
>  ac_compiler_gnu=$ac_cv_c_compiler_gnu
> -if test -n "$ac_tool_prefix"; then
> +# if test -n "$ac_tool_prefix"; then
>    # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
>  set dummy ${ac_tool_prefix}gcc; ac_word=$2
>  echo "$as_me:1193: checking for $ac_word" >&5
> @@ -1220,7 +1220,7 @@
>  echo "${ECHO_T}no" >&6
>  fi
>  
> -fi
> +# fi
>  if test -z "$ac_cv_prog_CC"; then
>    ac_ct_CC=$CC
>    # Extract the first word of "gcc", so it can be a program name with args.
> -------------------------------------------------------------------------------
> 
> 
> Harald Koenig
> 

-- 
Regards
-----
Richard Sharpe, rsharpe at ns.aus.com, rsharpe at samba.org, 
sharpe at ethereal.com





More information about the samba-technical mailing list