[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:
<snip>
   ctime_r (&now, ctime_buf)
<snip>

where:
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/libfreetype,v2.3.5/5.10-include.sun4/freetype2
-I/usr/dist/share/libfreetype,v2.3.5/5.10-include.sun4
-I/usr/dist/share/fontconfig,v2.5.0/5.10-include.sun4 -I/usr/include/libpng12
-I/usr/openwin/include
-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
.libs/libcairo_la-cairo-ps-surface.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
`cairo_ps_surface_backend.is_similar')
gmake[2]: *** [libcairo_la-cairo-ps-surface.lo] Error 1
gmake[2]: Leaving directory
`/home/brundage/work/csc_sun_work/SR195558/artifacts/build/cairo-1.6.0/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/home/brundage/work/csc_sun_work/SR195558/artifacts/build/cairo-1.6.0'
gmake: *** [all] Error 2

configure_script I am using:
#!/usr/bin/sh

SOFTDIST_DIR=/usr/dist/share
OS=`uname -r`
ARCH="sun4"

PACKAGE=cairographics
VERSION=1.6.0

PREFIX="${SOFTDIST_DIR}/${PACKAGE},v${VERSION}"

GNUMAKE=gmake; export GNUMAKE
PKG_CONFIG_PATH="${SOFTDIST_DIR}/pixman,v0.10.0/${OS}-lib.${ARCH}/pkgconfig:${SOFTDIST_DIR}/libfreetype,v2.3.5/${OS}-lib.${ARCH}/pkgconfig:${SOFTDIST_DIR}/fontconfig,v2.5.0/${OS}-lib.${ARCH}/pkgconfig";
export PKG_CONFIG_PATH

# 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 \
            --enable-freetype=yes


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