[cairo] cairo build on solaris failing...patch command problem

Malay HALDER malay.halder at alcatel-lucent.com
Wed May 28 03:42:59 PDT 2008


hello maintainers,
                         while building cairo 1.6.4 i was having problem 
regarding regarding ctime_r on solaris-10
someone [adrian johnson]suggested me to apply the below mentioned patch.

*****
--- configure.in    2008-04-24 20:17:09.000000000 -0400
+++ configure.in    2008-04-11 17:33:05.000000000 -0400
@@ -109,19 +109,7 @@ AC_DEFUN([_CHECK_FUNCS_WITH_FLAGS],
 dnl 
===========================================================================
 
 AC_CHECK_FUNCS(vasnprintf ctime_r drand48)
-
+
+AC_MSG_CHECKING([for Sun Solaris (non-POSIX ctime_r)])
+case "$host" in
+  *-*-solaris*)
+    CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS"
+    solaris_posix_pthread=yes
+    ;;
+  *)
+    solaris_posix_pthread=no
+    ;;
+esac
+AC_MSG_RESULT([$solaris_posix_pthread])
+
+
 dnl 
===========================================================================

 dnl

 dnl Test for native atomic operations.   
*****

*while applying the patch i am getting the below error:

patching file configure.in
patch: **** malformed patch at line 12: +    CFLAGS="$CFLAGS 
-D_POSIX_PTHREAD_SEMANTICS"



####can any one help me what is going wrong as i have properly copied 
the patch to file in my source directory and then applying patch utility.

any help from anyone ...most welcome

regards
malay
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cairographics.org/archives/cairo/attachments/20080528/8607ae0d/attachment.htm 


More information about the cairo mailing list