[csw-maintainers] Fwd: [ccache] solaris compile error

Dagobert Michelsen dam at opencsw.org
Tue May 25 12:56:19 CEST 2010


Hi James,

Am 25.05.2010 um 12:22 schrieb James Lee:
> On 24/05/10, 21:18:07, rupert THURNER <rupert at opencsw.org> wrote  
> regarding
> [csw-maintainers] Fwd: [ccache] solaris compile error:
>
>> ---------- Forwarded message ----------
>> From: Joel Rosdahl <joel at rosdahl.net>
>> Date: Mon, May 24, 2010 at 22:07
>> Subject: Re: [ccache] solaris compile error
>> To: "rupert.thurner" <rupert.thurner at gmail.com>
>> Cc: ccache at lists.samba.org
>
>
>>> gmake[3]: Entering directory `/home/rupert/mgar/pkg/ccache/trunk/ 
>>> work/
>>> solaris9-sparc/build-isa-sparcv8/ccache-3.0pre1'
>>> /opt/studio/SOS12/SUNWspro/bin/cc -xO3 -m32 -xarch=v8 -xnorunpath - 
>>> O -
>>> I/opt/csw/include -I. -c -o util.o util.c
>>> "util.c", line 68: incomplete struct/union/enum timeval: tv
>>> "util.c", line 71: warning: implicit function declaration:
>>> gettimeofday
>
> config.h.in defines _XOPEN_SOURCE which is preventing the use of  
> struct
> timeval tv and gettimeofday().  Try adding "#define __EXTENSIONS__".

Ah, ok. There are several Makefiles in GAR already using this:

> pinentry/trunk/Makefile:EXTRA_CFLAGS = -D__EXTENSIONS__
> pinentry/trunk/Makefile:EXTRA_CXXFLAGS = -D__EXTENSIONS__


There should be no need to patch the source, a define in the Makefile
should suffice.


Best regards

   -- Dago


More information about the maintainers mailing list