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 444630 - Compilation error with fsseko (from gstqueue2.c) -- unable to compile
Compilation error with fsseko (from gstqueue2.c) -- unable to compile
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal critical
: 0.10.14
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-06-06 07:50 UTC by Laurent Glayal
Modified: 2007-06-06 09:23 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Laurent Glayal 2007-06-06 07:50:17 UTC
On my system fseeko request some defines to be used ::

gstqueue2.c: In function `gst_queue_create_read':
gstqueue2.c:797: warning: implicit declaration of function `fseeko'
make[1]: *** [libgstqueue2_la-gstqueue2.lo] Error 1

lines from stdio.h ::

#ifdef __USE_LARGEFILE
# ifndef __USE_FILE_OFFSET64
/* Seek to a certain position on STREAM.

   This function is a possible cancellation point and therefore not
   marked with __THROW.  */
extern int fseeko (FILE *__stream, __off_t __off, int __whence);
/* Return the current position of STREAM.

   This function is a possible cancellation point and therefore not
   marked with __THROW.  */
extern __off_t ftello (FILE *__stream);
# else
#  ifdef __REDIRECT
extern int __REDIRECT (fseeko,
		       (FILE *__stream, __off64_t __off, int __whence),
		       fseeko64);
extern __off64_t __REDIRECT (ftello, (FILE *__stream), ftello64);
#  else
#   define fseeko fseeko64
#   define ftello ftello64
#  endif
# endif
#endif
Comment 1 Tim-Philipp Müller 2007-06-06 08:00:48 UTC
We have configure checks in core for filesrc/filesink to check for fseeko etc.
Comment 2 Laurent Glayal 2007-06-06 08:01:30 UTC
Adding

#define _LARGEFILE_SOURCE

before includes allow compilation ( queu2 not tested but compiled )
Comment 3 Wim Taymans 2007-06-06 09:23:10 UTC
this fix is commited. Based on how we handle the fseeko in filesink.

        * configure.ac:
        * gst/playback/gstqueue2.c: (gst_queue_create_read):
        Some more fseeko checks.