On 2010-05-24 21:37, rupert.thurner wrote: > when trying to make a package for http://opencsw.org
Thanks! > compiling ccache fails with: > > 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 > > "util.c", line 72: undefined struct/union member: tv_sec > "util.c", line 72: warning: argument #1 is incompatible with > prototype: > prototype: pointer to const long : "/usr/include/iso/ > time_iso.h", line 89 > argument : pointer to int > [...] I don't have access to a Solaris machine so I can't investigate this myself, but the Solaris man pages I find on the net say that sys/time.h should be included to get a declaration of gettimeofday() and struct timeval. Does your config.h define HAVE_SYS_TIME_H? If not, please check config.log for hints. If HAVE_SYS_TIME_H is defined in config.h, maybe it could be an ordering problem -- does it make any difference if you move the "#include <sys/time.h>" row further up in the file? > "util.c", line 206: warning: implicit function declaration: mkstemp > "util.c", line 274: warning: implicit function declaration: fchmod > "util.c", line 383: warning: implicit function declaration: > gethostname > "util.c", line 478: warning: implicit function declaration: strdup > [...] > "util.c", line 585: warning: implicit function declaration: lstat > "util.c", line 772: warning: implicit function declaration: realpath > [...] > "util.c", line 943: warning: implicit function declaration: utimes Header files for the above functions are included according to the Solaris man pages I find on the net, so don't see what to do. Anyone else got a clue? -- Joel _______________________________________________ ccache mailing list [email protected] https://lists.samba.org/mailman/listinfo/ccache
