Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#866 closed defect (fixed)

MPlayer build fails complaining errors in vo_png.c (make -C libvo libvo.a)

Reported by: gaveen.skyeye@… Owned by: diego@…
Priority: important Component: build system
Version: unspecified Severity: blocker
Keywords: Cc: gaveen.skyeye@…
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:

Description

Distro: Debian 4.0 (Etch - x86)

Kernel Version: 2.6.18-4-686

libc Version: 2.3.6

gcc Version: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

ld Version: 2.17 Debian GNU/Linux

binutils Version: 2.17 Debian GNU/Linux

MPlayer Version: mplayer-export-2007-07-16

CPU: Intel Core 2 Duo T7200 @ 2.00GHz

Video card manufacturer and model: ATI (M56P) Mobility Radeon X1600

Video driver type & version: fglrx 8.28.8-4

Output from Error:
make -C libvo libvo.a
make[1]: Entering directory `/home/xxxxxx/Setups/MPlayer/mplayer-export-2007-07-16/libvo'
cc -I../libavcodec -I../libavformat -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -I.. -I../libavutil -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=pentium-m -mtune=pentium-m -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I/usr/include -I/usr/include/SDL -D_REENTRANT -I/usr/include/freetype2 -c -o vo_png.o vo_png.c
vo_png.c:35: error: 'Z_NO_COMPRESSION' undeclared here (not in a function)
vo_png.c:40: error: expected specifier-qualifier-list before 'png_structp'
vo_png.c: In function 'create_png':
vo_png.c:70: error: 'struct pngdata' has no member named 'png_ptr'
vo_png.c:71: warning: implicit declaration of function 'png_create_write_struct'
vo_png.c:71: error: 'PNG_LIBPNG_VER_STRING' undeclared (first use in this function)
vo_png.c:71: error: (Each undeclared identifier is reported only once
vo_png.c:71: error: for each function it appears in.)
vo_png.c:73: error: 'struct pngdata' has no member named 'info_ptr'
vo_png.c:73: warning: implicit declaration of function 'png_create_info_struct'
vo_png.c:73: error: 'struct pngdata' has no member named 'png_ptr'
vo_png.c:75: error: 'struct pngdata' has no member named 'png_ptr'
vo_png.c:78: error: 'struct pngdata' has no member named 'status'
vo_png.c:78: error: 'ERROR' undeclared (first use in this function)
vo_png.c:82: error: 'struct pngdata' has no member named 'info_ptr'
vo_png.c:85: warning: implicit declaration of function 'png_destroy_write_struct'
vo_png.c:85: error: 'struct pngdata' has no member named 'png_ptr'
vo_png.c:86: error: 'png_infopp' undeclared (first use in this function)
vo_png.c:87: error: 'struct pngdata' has no member named 'status'
vo_png.c:91: warning: implicit declaration of function 'setjmp'
vo_png.c:91: error: 'struct pngdata' has no member named 'png_ptr'
vo_png.c:94: error: 'struct pngdata' has no member named 'png_ptr'
vo_png.c:94: error: 'struct pngdata' has no member named 'info_ptr'
vo_png.c:96: error: 'struct pngdata' has no member named 'status'
vo_png.c:103: error: 'struct pngdata' has no member named 'status'
vo_png.c:109: warning: implicit declaration of function 'png_init_io'
vo_png.c:109: error: 'struct pngdata' has no member named 'png_ptr'
vo_png.c:112: warning: implicit declaration of function 'png_set_compression_level'
vo_png.c:112: error: 'struct pngdata' has no member named 'png_ptr'
vo_png.c:118: warning: implicit declaration of function 'png_set_IHDR'
vo_png.c:118: error: 'struct pngdata' has no member named 'png_ptr'
vo_png.c:118: error: 'struct pngdata' has no member named 'info_ptr'
vo_png.c:119: error: 'PNG_INTERLACE_NONE' undeclared (first use in this function)
vo_png.c:120: error: 'PNG_COMPRESSION_TYPE_DEFAULT' undeclared (first use in this function)
vo_png.c:120: error: 'PNG_FILTER_TYPE_DEFAULT' undeclared (first use in this function)
vo_png.c:124: warning: implicit declaration of function 'png_write_info'
vo_png.c:124: error: 'struct pngdata' has no member named 'png_ptr'
vo_png.c:124: error: 'struct pngdata' has no member named 'info_ptr'
vo_png.c:129: warning: implicit declaration of function 'png_set_bgr'
vo_png.c:129: error: 'struct pngdata' has no member named 'png_ptr'
vo_png.c:132: error: 'struct pngdata' has no member named 'status'
vo_png.c:132: error: 'OK' undeclared (first use in this function)
vo_png.c: In function 'destroy_png':
vo_png.c:140: warning: implicit declaration of function 'png_write_end'
vo_png.c:140: error: 'struct pngdata' has no member named 'png_ptr'
vo_png.c:140: error: 'struct pngdata' has no member named 'info_ptr'
vo_png.c:144: error: 'struct pngdata' has no member named 'png_ptr'
vo_png.c:144: error: 'struct pngdata' has no member named 'info_ptr'
vo_png.c: In function 'draw_image':
vo_png.c:155: error: 'png_byte' undeclared (first use in this function)
vo_png.c:155: error: 'row_pointers' undeclared (first use in this function)
vo_png.c:164: error: 'struct pngdata' has no member named 'status'
vo_png.c:179: warning: implicit declaration of function 'png_write_image'
vo_png.c:179: error: 'struct pngdata' has no member named 'png_ptr'
make[1]: * [vo_png.o] Error 1
make[1]: Leaving directory `/home/xxxxxx/Setups/MPlayer/mplayer-export-2007-07-16/libvo'
make:
* [libvo/libvo.a] Error 2

Change History (5)

comment:1 Changed 12 years ago by gaveen.skyeye@…

  • Cc gaveen.skyeye@… added

configure options used were --enable-gui, and none

comment:2 Changed 12 years ago by gaveen.skyeye@…

When configured with,
$ ./configure --enable-gui --disable-png
it gives the following error message

Error Output:
make -C osdep
make[1]: Entering directory `/home/xxxxxx/Setups/MPlayer/mplayer-export-2007-07-16/osdep'
make[1]: Nothing to be done for `libs'.
make[1]: Leaving directory `/home/xxxxxx/Setups/MPlayer/mplayer-export-2007-07-16/osdep'
cc -o mplayer mplayer.o m_property.o mp_fifo.o mp_msg.o mixer.o parser-mpcmd.o subopt-helper.o command.o asxparser.o codec-cfg.o cpudetect.o edl.o find_sub.o m_config.o m_option.o m_struct.o mpcommon.o parser-cfg.o playtree.o playtreeparser.o spudec.o sub_cc.o subreader.o vobsub.o unrarlib.o libvo/libvo.a libao2/libao2.a input/libinput.a vidix/libvidix.a gui/libgui.a libmpcodecs/libmpcodecs.a libaf/libaf.a libmpdemux/libmpdemux.a stream/stream.a libswscale/libswscale.a libvo/libosd.a libavformat/libavformat.a libavcodec/libavcodec.a libavutil/libavutil.a libpostproc/libpostproc.a loader/libloader.a mp3lib/libmp3.a liba52/liba52.a libmpeg2/libmpeg2.a libfaad2/libfaad2.a tremor/libvorbisidec.a dvdread/libdvdread.a libdvdcss/libdvdcss.a libass/libass.a osdep/libosdep.a -lXext -lX11 -lpthread -lXinerama -lGL -ldl -lSDL -lx264 -lpthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lglib-2.0 -L/usr/lib -Wl,-z,noexecstack -ljpeg -lfreetype -lz -lfontconfig -lz -llzo2 -lmad -lspeex -ltheora -logg -lmpcdec -lliveMedia -lgroupsock -lUsageEnvironment -lBasicUsageEnvironment -lstdc++ -lamrnb -lamrwb -ldv -lxvidcore -lm -lpthread -ldl -rdynamic -lm
libvo/libvo.a(video_out.o):(.data+0x48): undefined reference to `video_out_png'
gui/libgui.a(interface.o): In function `guiInit':
interface.c:(.text+0xb52): undefined reference to `vo_setwindow'
collect2: ld returned 1 exit status
make: * [mplayer] Error 1

I know there's no --disable-png in 'configure --help' output, but it's in the configure script.

comment:3 Changed 12 years ago by gaveen.skyeye@…

I built MPlayer from an earlier export (2007-06-19) to compare with this build.

As I expected 'make' completed without problem.

(However I had problems running mplayer, which I will *not* relate to this bug. I guess it was a conflict with libamr_nb)

comment:4 Changed 12 years ago by diego@…

  • op_sys changed from Linux to All
  • rep_platform changed from PC (x86) to All
  • Resolution set to fixed
  • Status changed from new to closed

Fixed.

comment:5 Changed 12 years ago by gaveen.skyeye@…

Confirmed.

Note: See TracTickets for help on using tickets.