[FFmpeg-user] bug on ubuntu 18.04 with gcc7.3 and g++7.3

NDJORE BORIS ndjoreboris at gmail.com
Thu Jan 3 13:04:38 EET 2019


Hello Mr Mortiz,
I downloaded ffmpeg with this command :


*git clone https://git.ffmpeg.org/ffmpeg.git
<https://git.ffmpeg.org/ffmpeg.git> ffmpeg*

Thhe output of the command : *ffmpeg --version*  is :













*ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg
developers  built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)  configuration:
--prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened
--libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu
--enable-gpl --disable-stripping --enable-avresample --enable-avisynth
--enable-gnutls --enable-ladspa --enable-libass --enable-libbluray
--enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite
--enable-libfontconfig --enable-libfreetype --enable-libfribidi
--enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa
--enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse
--enable-librubberband --enable-librsvg --enable-libshine
--enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh
--enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx
--enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2
--enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx
--enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394
--enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r
--enable-libopencv --enable-libx264 --enable-shared  libavutil      55.
78.100 / 55. 78.100  libavcodec     57.107.100 / 57.107.100  libavformat
57. 83.100 / 57. 83.100  libavdevice    57. 10.100 / 57. 10.100
libavfilter     6.107.100 /  6.107.100  libavresample   3.  7.  0 /  3.
7.  0  libswscale      4.  8.100 /  4.  8.100  libswresample   2.  9.100 /
2.  9.100  libpostproc    54.  7.100 / 54.  7.100*
*The ouput error while running cmake is* : <<

CC    libavdevice/utils.o
In file included from src/libavdevice/fbdev_dec.c:42:0:
src/libavutil/parseutils.h:186:64: warning: ‘struct tm’ declared inside
parameter list will not be visible outside of this definition or declaration
 char *av_small_strptime(const char *p, const char *fmt, struct tm *dt);
                                                                ^~
src/libavutil/parseutils.h:191:25: warning: ‘struct tm’ declared inside
parameter list will not be visible outside of this definition or declaration
 time_t av_timegm(struct tm *tm);
                         ^~
CC    libavdevice/v4l2-common.o


*src/libavdevice/fbdev_dec.c: In function
‘fbdev_read_packet’:src/libavdevice/fbdev_dec.c:155:21: error: storage size
of ‘ts’ isn’t known     struct timespec ts;*
                     ^~

*src/libavdevice/fbdev_dec.c:178:9: error: implicit declaration of function
‘nanosleep’; did you mean ‘av_usleep’?
[-Werror=implicit-function-declaration]  while (nanosleep(&ts, &ts) < 0 &&
errno == EINTR);*
         ^~~~~~~~~
         av_usleep
src/libavdevice/fbdev_dec.c:155:21: warning: unused variable ‘ts’
[-Wunused-variable]
     struct timespec ts;
                     ^~
cc1: some warnings being treated as errors
/home/n_djore/Bureau/stego_Project/build/libs/ffmpeg/ffbuild/common.mak:60:
recipe for target 'libavdevice/fbdev_dec.o' failed
make[3]: *** [libavdevice/fbdev_dec.o] Error 1
make[3]: *** Attente des tâches non terminées....
In file included from src/libavutil/common.h:105:0,
                 from src/libavutil/avutil.h:296,
                 from src/libavutil/imgutils.h:30,
                 from src/libavdevice/sdl2.c:30:
./config.h:189:0: warning: "HAVE_SEM_TIMEDWAIT" redefined
 #define HAVE_SEM_TIMEDWAIT 0

In file included from /usr/include/SDL2/SDL_stdinc.h:31:0,
                 from /usr/include/SDL2/SDL_main.h:25,
                 from /usr/include/SDL2/SDL.h:32,
                 from src/libavdevice/sdl2.c:26:
/usr/include/SDL2/SDL_config.h:188:0: note: this is the location of the
previous definition
 #define HAVE_SEM_TIMEDWAIT 1

In file included from src/libavutil/common.h:105:0,
                 from src/libavutil/avutil.h:296,
                 from src/libavutil/imgutils.h:30,
                 from src/libavdevice/sdl2.c:30:
./config.h:276:0: warning: "HAVE_CLOCK_GETTIME" redefined
 #define HAVE_CLOCK_GETTIME 0

In file included from /usr/include/SDL2/SDL_stdinc.h:31:0,
                 from /usr/include/SDL2/SDL_main.h:25,
                 from /usr/include/SDL2/SDL.h:32,
                 from src/libavdevice/sdl2.c:26:
/usr/include/SDL2/SDL_config.h:182:0: note: this is the location of the
previous definition
 #define HAVE_CLOCK_GETTIME 1

In file included from src/libavutil/common.h:105:0,
                 from src/libavutil/avutil.h:296,
                 from src/libavutil/imgutils.h:30,
                 from src/libavdevice/sdl2.c:30:
./config.h:304:0: warning: "HAVE_NANOSLEEP" redefined
>>

  Thank you for your help

Le jeu. 3 janv. 2019 à 11:09, Moritz Barsnick <barsnick at gmx.net> a écrit :

> On Thu, Jan 03, 2019 at 07:40:15 +0100, NDJORE BORIS wrote:
> > It's impossible for me to build ffmpeg on ubuntu 18.04 with gcc7.3 and
> > g++7.3 compiler. When I run ./configure, I have the errors "implicit
> > declaration of nanosleep" and "size of ts is unknown".
> > Can you help me please?
>
> Can you please be more specific:
> - Which version of ffmpeg's source did you use? (We recommend git
>   master HEAD.)
> - What is the complete error message? Please quote (as copy/pasted
>   text) the complete output when you run "make" for a second time.
>   (Second time so that only the failing compile is repeated.)
>
> Thanks,
> Moritz
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list