<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<div class="moz-text-html" lang="x-western">
I am trying to build CAIRO-1.6.4 on a solaris-10 machine...but its
failing in the build stage<br>
<br>
***********the error mssges<br>
<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
-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 = <unknown><br>
Serial = <unknown><br>
Users = <unknown><br>
OEM# = 0<br>
Origin# = 1<br>
NumCPU = 1<br>
<br>
**************<br>
<b>configure and build options:-<br>
</b>
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>
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 && \<br>
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>
CFLAGS="
-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" \<br>
CPPFLAGS="
-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" \<br>
LDFLAGS=" -L/tools/openbin/zlib/1.2.3/sparc-sun-solaris8/lib
-L/tools/openbin/libpng/1.2.12/sparc-sun-solaris8/lib
-L/tools/openbin/freetype/2.1.10/sparc-sun-solaris8/lib
-L/tools/openbin/xrender/0.8.3/sparc-sun-solaris8/lib
-L/tools/openbin/fontconfig/2.3.2/sparc-sun-solaris8/lib
-L/tools/openbin/expat/2.0.1/sparc-sun-solaris8/lib
-L/tools/openbin/pixman/0.10.0/sparc-sun-solaris10/lib
-L/tools/openbin/gcc/4.2.2/sparc-sun-solaris10/lib
-L/tools/openbin/binutils/2.16.1/sparc-sun-solaris10/lib
-R/tools/openbin/zlib/1.2.3/sparc-sun-solaris8/lib
-R/tools/openbin/libpng/1.2.12/sparc-sun-solaris8/lib
-R/tools/openbin/freetype/2.1.10/sparc-sun-solaris8/lib
-R/tools/openbin/xrender/0.8.3/sparc-sun-solaris8/lib
-R/tools/openbin/fontconfig/2.3.2/sparc-sun-solaris8/lib
-R/tools/openbin/expat/2.0.1/sparc-sun-solaris8/lib
-R/tools/openbin/pixman/0.10.0/sparc-sun-solaris10/lib
-R/tools/openbin/gcc/4.2.2/sparc-sun-solaris10/lib
-R/tools/openbin/binutils/2.16.1/sparc-sun-solaris10/lib" \<br>
/users/toolsrd/ws/si_ctoolrd/gtk/production/sources/cairo-1.6.4/configure
\<br>
--prefix=/tools/openbin/cairo/1.6.4/sparc-sun-solaris10
\<br>
--enable-png \<br>
--enable-ps \<br>
--enable-pdf \<br>
--enable-freetype<br>
touch configured-cairo<br>
cd /users/toolsrd/ws/si_ctoolrd/gtk/production/objects/cairo-1.6.4
&& /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="
-L/tools/openbin/zlib/1.2.3/sparc-sun-solaris8/lib
-L/tools/openbin/libpng/1.2.12/sparc-sun-solaris8/lib
-L/tools/openbin/freetype/2.1.10/sparc-sun-solaris8/lib
-L/tools/openbin/xrender/0.8.3/sparc-sun-solaris8/lib
-L/tools/openbin/fontconfig/2.3.2/sparc-sun-solaris8/lib
-L/tools/openbin/expat/2.0.1/sparc-sun-solaris8/lib
-L/tools/openbin/pixman/0.10.0/sparc-sun-solaris10/lib
-L/tools/openbin/gcc/4.2.2/sparc-sun-solaris10/lib
-L/tools/openbin/binutils/2.16.1/sparc-sun-solaris10/lib
-R/tools/openbin/zlib/1.2.3/sparc-sun-solaris8/lib
-R/tools/openbin/libpng/1.2.12/sparc-sun-solaris8/lib
-R/tools/openbin/freetype/2.1.10/sparc-sun-solaris8/lib
-R/tools/openbin/xrender/0.8.3/sparc-sun-solaris8/lib
-R/tools/openbin/fontconfig/2.3.2/sparc-sun-solaris8/lib
-R/tools/openbin/expat/2.0.1/sparc-sun-solaris8/lib
-R/tools/openbin/pixman/0.10.0/sparc-sun-solaris10/lib
-R/tools/openbin/gcc/4.2.2/sparc-sun-solaris10/lib
-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>what i found after looking into man pages that the ctime_r function
has a prototype of atleast two arguments <br>
and in that particular file the coder has hash defined it to a single
argument prototype ...i think there is a <br>
argument mismatch taking place..but i am not sure</b><br>
<br>
<br>
##please point out if i am doing any thing wrong...any help will be
most appreciated<br>
<br>
regards<br>
<br>
Malay halder<br>
<br>
</div>
</body>
</html>