<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
hello maintainers,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I am trying to build cairo 1.6.4 on a
solaris -10 machine. It is failing in the build stage due to<br>
ctime_r error [ details below ] i have already apllied the patch given
in ..<br>
<br>
<br>
&nbsp;<a class="moz-txt-link-freetext" href="http://gitweb.freedesktop.org/?p=cairo;a=commit;h=6135ee716b4f2567f578fd023ba2d85c86cb7fda">http://gitweb.freedesktop.org/?p=cairo;a=commit;h=6135ee716b4f2567f578fd023ba2d85c86cb7fda</a><br>
<br>
but still it is failing for the same reason...please help me how to
resolve.<br>
<br>
<b>build details:-</b><br>
nested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute
-Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations
-Wdeclaration-after-statement -Wold-style-definition
-Wno-missing-field-initializers -Wno-unused-parameter -Wno-attributes
-Wno-long-long -Winline -fno-strict-aliasing
-I/tools/openbin/zlib/1.2.3/sparc-sun-solaris8/include
-I/tools/openbin/libpng/1.2.12/sparc-sun-solaris8/include
-I/tools/openbin/freetype/2.1.10/sparc-sun-solaris8/include
-I/tools/openbin/xrender/0.8.3/sparc-sun-solaris8/include
-I/tools/openbin/fontconfig/2.3.2/sparc-sun-solaris8/include
-I/tools/openbin/expat/2.0.1/sparc-sun-solaris8/include
-I/tools/openbin/pixman/0.10.0/sparc-sun-solaris10/include
-I/tools/openbin/gcc/4.2.2/sparc-sun-solaris10/include
-I/tools/openbin/binutils/2.16.1/sparc-sun-solaris10/include -MT
libcairo_la-cairo-ps-surface.lo -MD -MP -MF
.deps/libcairo_la-cairo-ps-surface.Tpo -c
/users/toolsrd/ws/si_ctoolrd/gtk/production/sources/cairo-1.6.4/src/cairo-ps-surface.c&nbsp;
-fPIC -DPIC -o .libs/libcairo_la-cairo-ps-surface.o<br>
/users/toolsrd/ws/si_ctoolrd/gtk/production/sources/cairo-1.6.4/src/cairo-ps-surface.c:
<b>In function '_cairo_ps_surface_emit_header':</b><br>
/users/toolsrd/ws/si_ctoolrd/gtk/production/sources/cairo-1.6.4/src/cairo-ps-surface.c:110:
<b>error: too few arguments to function 'ctime_r'<br>
gmake[3]: *** [libcairo_la-cairo-ps-surface.lo] Error 1</b><br>
gmake[3]: Leaving directory
`/users/toolsrd/ws/si_ctoolrd/gtk/production/objects/cairo-1.6.4/src'<br>
gmake[2]: *** [all-recursive] Error 1<br>
gmake[2]: Leaving directory
`/users/toolsrd/ws/si_ctoolrd/gtk/production/objects/cairo-1.6.4'<br>
gmake[1]: *** [all] Error 2<br>
gmake[1]: Leaving directory
`/users/toolsrd/ws/si_ctoolrd/gtk/production/objects/cairo-1.6.4'<br>
*** Error code 2<br>
dmake: Fatal error: Command failed for target `build-cairo'<br>
<br>
************<br>
<br>
<b>my machine info :-</b><br>
<br>
System = SunOS<br>
Node = csbu061<br>
Release = 5.10<br>
KernelID = Generic_118833-24<br>
Machine = sun4u<br>
BusType = &lt;unknown&gt;<br>
Serial = &lt;unknown&gt;<br>
Users = &lt;unknown&gt;<br>
OEM# = 0<br>
Origin# = 1<br>
NumCPU = 1<br>
<br>
**************<br>
<b>configure and build options:-<br>
</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
PKG_CONFIG_PATH="/tools/openbin/gcc/4.2.2/sparc-sun-solaris10/lib/pkgconfig:/tools/openbin/pixman/0.10.0/sparc-sun-solaris10/lib/pkgconfig:/tools/openbin/libpng/1.2.12/sparc-sun-solaris8/lib/pkgconfig:/tools/openbin/freetype/2.1.10/sparc-sun-solaris8/lib/pkgconfig:/tools/openbin/xrender/0.8.3/sparc-sun-solaris8/lib/pkgconfig:/tools/openbin/fontconfig/2.3.2/sparc-sun-solaris8/lib/pkgconfig";
export PKG_CONFIG_PATH; \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
PATH=/tools/openbin/gcc/4.2.2/sparc-sun-solaris10/bin:/tools/openbin/binutils/2.16.1/sparc-sun-solaris10/bin:/tools/openbin/pkgconfig/0.15.0/sparc-sun-solaris8/bin:/tools/openbin/freetype/2.1.10/sparc-sun-solaris8/bin:/users/mramacha/work/php/bin:/users/rdlogche/chebin:/tools/rdp:/usr/include:/users/toolsrd/bin:/users/rdlogche/col_solaris:/usr/sbin:/usr/dt/bin:/usr/include:/usr/openwin/bin:/usr/bin:/opt/AnswerBook:/users/ddts/bin:/users/dhs3too/dhs/sco/bin:/usr/ccs/bin:/users/dhs3too/dhs/vrb:/users/dhs3too/dhs/bin:/users/dhs3too/dhs/make:/tools/workshop6.2/bin:/users/dhs3too/dhs/java/java/bin:/users/dhs3too/dhs/xalan/bin;
export PATH &amp;&amp; \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CC=/tools/openbin/gcc/4.2.2/sparc-sun-solaris10/bin/gcc
CXX=/tools/openbin/gcc/4.2.2/sparc-sun-solaris10/bin/g++
MAKE=/tools/openbin/make/3.80/sparc-sun-solaris8/bin/gmake \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CFLAGS="&nbsp;
-I/tools/openbin/zlib/1.2.3/sparc-sun-solaris8/include&nbsp;
-I/tools/openbin/libpng/1.2.12/sparc-sun-solaris8/include&nbsp;
-I/tools/openbin/freetype/2.1.10/sparc-sun-solaris8/include&nbsp;
-I/tools/openbin/xrender/0.8.3/sparc-sun-solaris8/include&nbsp;
-I/tools/openbin/fontconfig/2.3.2/sparc-sun-solaris8/include&nbsp;
-I/tools/openbin/expat/2.0.1/sparc-sun-solaris8/include&nbsp;
-I/tools/openbin/pixman/0.10.0/sparc-sun-solaris10/include&nbsp;
-I/tools/openbin/gcc/4.2.2/sparc-sun-solaris10/include&nbsp;
-I/tools/openbin/binutils/2.16.1/sparc-sun-solaris10/include" \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CPPFLAGS="&nbsp;
-I/tools/openbin/zlib/1.2.3/sparc-sun-solaris8/include&nbsp;
-I/tools/openbin/libpng/1.2.12/sparc-sun-solaris8/include&nbsp;
-I/tools/openbin/freetype/2.1.10/sparc-sun-solaris8/include&nbsp;
-I/tools/openbin/xrender/0.8.3/sparc-sun-solaris8/include&nbsp;
-I/tools/openbin/fontconfig/2.3.2/sparc-sun-solaris8/include&nbsp;
-I/tools/openbin/expat/2.0.1/sparc-sun-solaris8/include&nbsp;
-I/tools/openbin/pixman/0.10.0/sparc-sun-solaris10/include&nbsp;
-I/tools/openbin/gcc/4.2.2/sparc-sun-solaris10/include&nbsp;
-I/tools/openbin/binutils/2.16.1/sparc-sun-solaris10/include" \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LDFLAGS="&nbsp; -L/tools/openbin/zlib/1.2.3/sparc-sun-solaris8/lib&nbsp;
-L/tools/openbin/libpng/1.2.12/sparc-sun-solaris8/lib&nbsp;
-L/tools/openbin/freetype/2.1.10/sparc-sun-solaris8/lib&nbsp;
-L/tools/openbin/xrender/0.8.3/sparc-sun-solaris8/lib&nbsp;
-L/tools/openbin/fontconfig/2.3.2/sparc-sun-solaris8/lib&nbsp;
-L/tools/openbin/expat/2.0.1/sparc-sun-solaris8/lib&nbsp;
-L/tools/openbin/pixman/0.10.0/sparc-sun-solaris10/lib&nbsp;
-L/tools/openbin/gcc/4.2.2/sparc-sun-solaris10/lib&nbsp;
-L/tools/openbin/binutils/2.16.1/sparc-sun-solaris10/lib&nbsp;&nbsp;
-R/tools/openbin/zlib/1.2.3/sparc-sun-solaris8/lib&nbsp;
-R/tools/openbin/libpng/1.2.12/sparc-sun-solaris8/lib&nbsp;
-R/tools/openbin/freetype/2.1.10/sparc-sun-solaris8/lib&nbsp;
-R/tools/openbin/xrender/0.8.3/sparc-sun-solaris8/lib&nbsp;
-R/tools/openbin/fontconfig/2.3.2/sparc-sun-solaris8/lib&nbsp;
-R/tools/openbin/expat/2.0.1/sparc-sun-solaris8/lib&nbsp;
-R/tools/openbin/pixman/0.10.0/sparc-sun-solaris10/lib&nbsp;
-R/tools/openbin/gcc/4.2.2/sparc-sun-solaris10/lib&nbsp;
-R/tools/openbin/binutils/2.16.1/sparc-sun-solaris10/lib" \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
/users/toolsrd/ws/si_ctoolrd/gtk/production/sources/cairo-1.6.4/configure
\<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --prefix=/tools/openbin/cairo/1.6.4/sparc-sun-solaris10
\<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --enable-png \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --enable-ps \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --enable-pdf \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --enable-freetype<br>
touch configured-cairo<br>
cd /users/toolsrd/ws/si_ctoolrd/gtk/production/objects/cairo-1.6.4
&amp;&amp; /tools/openbin/make/3.80/sparc-sun-solaris8/bin/gmake
CC=/tools/openbin/gcc/4.2.2/sparc-sun-solaris10/bin/gcc
CXX=/tools/openbin/gcc/4.2.2/sparc-sun-solaris10/bin/g++ LDFLAGS="&nbsp;
-L/tools/openbin/zlib/1.2.3/sparc-sun-solaris8/lib&nbsp;
-L/tools/openbin/libpng/1.2.12/sparc-sun-solaris8/lib&nbsp;
-L/tools/openbin/freetype/2.1.10/sparc-sun-solaris8/lib&nbsp;
-L/tools/openbin/xrender/0.8.3/sparc-sun-solaris8/lib&nbsp;
-L/tools/openbin/fontconfig/2.3.2/sparc-sun-solaris8/lib&nbsp;
-L/tools/openbin/expat/2.0.1/sparc-sun-solaris8/lib&nbsp;
-L/tools/openbin/pixman/0.10.0/sparc-sun-solaris10/lib&nbsp;
-L/tools/openbin/gcc/4.2.2/sparc-sun-solaris10/lib&nbsp;
-L/tools/openbin/binutils/2.16.1/sparc-sun-solaris10/lib&nbsp;&nbsp;
-R/tools/openbin/zlib/1.2.3/sparc-sun-solaris8/lib&nbsp;
-R/tools/openbin/libpng/1.2.12/sparc-sun-solaris8/lib&nbsp;
-R/tools/openbin/freetype/2.1.10/sparc-sun-solaris8/lib&nbsp;
-R/tools/openbin/xrender/0.8.3/sparc-sun-solaris8/lib&nbsp;
-R/tools/openbin/fontconfig/2.3.2/sparc-sun-solaris8/lib&nbsp;
-R/tools/openbin/expat/2.0.1/sparc-sun-solaris8/lib&nbsp;
-R/tools/openbin/pixman/0.10.0/sparc-sun-solaris10/lib&nbsp;
-R/tools/openbin/gcc/4.2.2/sparc-sun-solaris10/lib&nbsp;
-R/tools/openbin/binutils/2.16.1/sparc-sun-solaris10/lib
-R/tools/openbin/gcc/4.2.2/sparc-sun-solaris10/lib"<br>
****************<br>
<br>
<b>Compiler Gcc -4.2.2 build on the same machine..</b><br>
Configured with:
/users/toolsrd/ws/si_ctoolrd/gcc/production/sources/gcc-4.2.2/configure
--prefix=/tools/openbin/gcc/4.2.2/sparc-sun-solaris10/V3 --disable-nls
--enable-shared --enable-threads=posix
--with-ld=/tools/openbin/binutils/2.16.1/sparc-sun-solaris10/bin/ld
--with-gnu-ld
--with-as=/tools/openbin/binutils/2.16.1/sparc-sun-solaris10/bin/as
--with-gnu-as --enable-languages=c,c++<br>
Thread model: posix<br>
gcc version 4.2.2<br>
*****************<br>
<b></b><br>
<br>
<br>
<br>
<br>
regards<br>
<br>
Malay halder<br>
</body>
</html>