[cairo] Cairo-1.6.0 on solaris10 build failure

Dean Brundage Dean.Brundage at Sun.COM
Fri Apr 11 12:46:25 PDT 2008

Hi Cairo users,

Please provide some pointers on this build failure.  Thanks.

cairo-ps-surface.c: In function `_cairo_ps_surface_emit_header':
cairo-ps-surface.c:110: error: too few arguments to function `ctime_r'

The man page for ctim_r says it takes three arguments:
char *ctime_r(const time_t *clock, char *buf, int buflen);

src/cairo-ps-surface.c calls it with two:
   ctime_r (&now, ctime_buf)

char ctime_buf[26];
now = time (NULL);

Here's the make output, configure script below:

 gcc -DHAVE_CONFIG_H -I. -I.. -I.
-I/usr/dist/share/fontconfig,v2.5.0/5.10-include.sun4 -I/usr/include/libpng12
-I/usr/dist/share/pixman,v0.10.0/5.10-include.sun4/pixman-1 -Wall -Wextra
-Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum
-Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self
-Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter
-Wno-long-long -Winline -fno-strict-aliasing -g -O2 -MT
libcairo_la-cairo-ps-surface.lo -MD -MP -MF
.deps/libcairo_la-cairo-ps-surface.Tpo -c cairo-ps-surface.c  -fPIC -DPIC -o
cairo-ps-surface.c: In function `_cairo_ps_surface_emit_header':
cairo-ps-surface.c:110: error: too few arguments to function `ctime_r'
cairo-ps-surface.c: At top level:
cairo-ps-surface.c:3188: warning: missing initializer
cairo-ps-surface.c:3188: warning: (near initialization for
gmake[2]: *** [libcairo_la-cairo-ps-surface.lo] Error 1
gmake[2]: Leaving directory
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
gmake: *** [all] Error 2

configure_script I am using:

OS=`uname -r`



GNUMAKE=gmake; export GNUMAKE

# sed barfs in configure because it uses , to delimit substitutions
# Change the problematic ones (those that use our PREFIX) to ! instead
patch -N configure < ../../../codebase/cairographics/package/configure.patch

./configure --prefix=${PREFIX} \
            --bindir=${PREFIX}/${OS}-bin.${ARCH} \
            --libdir=${PREFIX}/${OS}-lib.${ARCH} \
            --includedir=${PREFIX}/${OS}-include.${ARCH} \
            --mandir=${PREFIX}/doc/man \

Unscrambler of eggs.
x31613 / (408) 404-6094
What information consumes is rather obvious: it consumes the attention of its
recipients. Hence, a wealth of information creates a poverty of attention and
a need to allocate that attention efficiently among the overabundance of
information sources that might consume it.
--Herbert Simon

NOTICE: This message including any attachments is confidential information of
Sun Microsystems, Inc. Disclosure, copying or distribution is prohibited
without permission of Sun. If you are not the intended recipient, please reply
to the sender and then delete this message.  This is a PRIVATE message. If you
are not the intended recipient, please delete without copying and kindly
advise us by e-mail of the mistake in delivery. NOTE: Regardless of content,
this e-mail shall not operate to bind CSC to any order or other contract
unless pursuant to explicit written agreement or government initiative
expressly permitting the use of e-mail for such purpose.

More information about the cairo mailing list