Opened 5 years ago

Closed 5 years ago

#2203 closed defect (fixed)

Build of Mplayer fails with "implicit declaration of function 'snprintf'"

Reported by: grgoffe@… Owned by: ib
Priority: normal Component: build system
Version: HEAD Severity: blocker
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: yes


Summary of the bug:
How to reproduce: Standard build procedures

./configure --prefix=/usr/lsd/$osname \

--enable-gui \
--enable-menu \

make clean depend
make <----------------- produces error in gui/dialog/about.c:102:3

I have a full build log if that's needed.

Here is a portion of the log showing the error encountered.

cc -MMD -MP -Wundef -W -Wall -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O2 -march=native -mtune=native -pipe -g -fno-tree-vectorize -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -fpie -DPIC -D_REENTRANT -pthread -I/usr/include/kde/artsc -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include -Wno-strict-prototypes -c -o gui/dialog/about.o gui/dialog/about.c
gui/dialog/about.c: In function 'CreateAbout?':
gui/dialog/about.c:102:3: error: implicit declaration of function 'snprintf' [-Werror=implicit-function-declaration]

snprintf(title, sizeof(title), MP_TITLE, MPlayer);

gui/dialog/about.c:102:3: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
cc1: some warnings being treated as errors
make: * [gui/dialog/about.o] Error 1

% mplayer -v  input
MPlayer version (C) ...

Patches should be submitted to the mplayer-dev-eng mailing list and not this bug tracker.

Change History (2)

comment:1 Changed 5 years ago by ib

  • Analyzed by developer set
  • Owner set to ib
  • Status changed from new to open

comment:2 Changed 5 years ago by ib

  • Resolution set to fixed
  • Status changed from open to closed

Fixed in svn r37266.

Note: See TracTickets for help on using tickets.