patch for samba-2.2.4 on Solaris

Harald Koenig koenig at science-computing.de
Wed May 8 04:14:02 GMT 2002


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...




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
-- 
"I hope to die                                      ___       _____
before I *have* to use Microsoft Word.",           0--,|    /OOOOOOO\
Donald E. Knuth, 02-Oct-2001 in Tuebingen.        <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
Harald Koenig                                          \/\/\/\/\/\/\/\/\/
science+computing ag                                    //  /     \\  \
koenig at science-computing.de                            ^^^^^       ^^^^^




More information about the samba-technical mailing list