Opened 2 years ago

Closed 2 years ago

#5868 closed defect (fixed)

Cygwin64 build fails for ffserver.o

Reported by: MDavis Owned by:
Priority: normal Component: build system
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

See http://fate.ffmpeg.org/history.cgi?slot=x86_64-win10-cygwin-gcc-5.4.0
Failing since revision N-81748-g47ea6f5, last checked on N-81780-g4a05d2e

% git reset --hard "origin/N-81748-g47ea6f5"
HEAD is now at 47ea6f5 lavd: drop SDL1 device and SDL1 support
% cd ../build
% ../src/configure --enable-gpl --enable-avresample
.....
% make
.....
src/ffserver.c: In function ‘main’:
src/ffserver.c:4003:5: error: implicit declaration of function ‘sigaction’ [-Werror=implicit-function-declaration]
     sigaction(SIGCHLD, &sigact, 0);
     ^
cc1: some warnings being treated as errors
make: *** [/tmp/fate/build/src/common.mak:60: ffserver.o] Error 1

Fixed by using

% make CFLAGS="-Wno-error=implicit-function-declaration"
(build finishes normally)

Change History (6)

comment:1 Changed 2 years ago by MDavis

Actually, disabling the error breaks other parts of the build, so it's not a fix.

comment:2 Changed 2 years ago by cehoyos

Building does not work with --extra-cflags=-Wno-error=implicit-function-declaration?

comment:3 Changed 2 years ago by oromit

Defining _XOPEN_SOURCE or _GNU_SOURCE makes it work for me.

comment:4 Changed 2 years ago by cehoyos

How does CPPFLAGS (in config.mak) look like?

comment:5 Changed 2 years ago by MDavis

CPPFLAGS= -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -U__STRICT_ANSI__ -DPIC -DZLIB_CONST

I'm not really that experienced in C development, so I'm kinda just poking around.

comment:6 Changed 2 years ago by oromit

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.