GNOME Bugzilla – Bug 444630
Compilation error with fsseko (from gstqueue2.c) -- unable to compile
Last modified: 2007-06-06 09:23:10 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
We have configure checks in core for filesrc/filesink to check for fseeko etc.
Adding #define _LARGEFILE_SOURCE before includes allow compilation ( queu2 not tested but compiled )
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.