GNOME Bugzilla – Bug 113002
compile error in xsltproc.c line 211
Last modified: 2009-08-15 18:40:50 UTC
complie problem on HP-UX 11 with libxslt-1.0.30 if I use HP-UX ANSI cc -------------------------------------------------------- ...nclude -w -O -Wp,-H30000 -c xsltproc.c cc: "xsltproc.c", line 211: error 1574: Unknown size for "timebuffer". cc: "xsltproc.c", line 215: error 1530: Undefined struct or union. cc: "xsltproc.c", line 216: error 1530: Undefined struct or union. make[2]: *** [xsltproc.o] Error 1 if I use gcc-2.95.2 -------------------------------------------------------- ...nclude -w -O -Wall -c xsltproc.c xsltproc.c: In function `my_gettimeofday': xsltproc.c:211: storage size of `timebuffer' isn't known make[2]: *** [xsltproc.o] Error 1
The whole definition in line 211 is protected by: ----------------------------- /* * Internal timing routines to remove the necessity to have unix-specific * function calls */ #ifndef HAVE_GETTIMEOFDAY #ifdef HAVE_SYS_TIMEB_H #ifdef HAVE_SYS_TIME_H #ifdef HAVE_FTIME int my_gettimeofday(struct timeval *tvp, void *tzp) { struct timeb timebuffer; ------------------------ So your plateform: - does not gettimeofday() - have <sys/timeb.h> - have <sys/time.h> - have <ftime.h> well it should really have a definition for struct timeb in there The problem is completely specific to your platform, and possibly to your installation on that platform. You will have to investigate and provide a fix if you want it to get fixed, it's too specific to expect me to come with a fix. Try to add #ifdef HAVE_SYS_TIMEB_H #include <sys/timeb.h> #endif around line 75 and see if this work. Daniel
Thanks you so much, I just add 3 lines in line 75, and all works !!! I try many xslt parsers, but procxslt is incredible ! Quelle vitesse ! Quel talent! Merci
Okay then the bug is fixed in CVS, I made the suggested change and commited, thanks for the report, Daniel
*** Bug 113252 has been marked as a duplicate of this bug. ***
this should be closed by release of libxslt-1.0.31 thanks, Daniel