After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 113002 - compile error in xsltproc.c line 211
compile error in xsltproc.c line 211
Status: VERIFIED FIXED
Product: libxslt
Classification: Platform
Component: general
unspecified
Other HP-UX
: Normal trivial
: ---
Assigned To: Daniel Veillard
Daniel Veillard
: 113252 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-05-14 16:43 UTC by Nicolas
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Nicolas 2003-05-14 16:43:06 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
Comment 1 Daniel Veillard 2003-05-14 17:05:22 UTC
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 
Comment 2 Nicolas 2003-05-15 07:25:27 UTC
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





Comment 3 Daniel Veillard 2003-05-15 20:29:45 UTC
Okay then the bug is fixed in CVS, I made the suggested change and
commited,

  thanks for the report,

Daniel
Comment 4 Daniel Veillard 2003-05-19 06:54:10 UTC
*** Bug 113252 has been marked as a duplicate of this bug. ***
Comment 5 Daniel Veillard 2003-07-07 14:09:49 UTC
this should be closed by release of libxslt-1.0.31
                                                                     
          
  thanks,
                                                                     
          
Daniel