Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Problem compiling Mplayer with file pngdec.c Post 302984610 by colt on Friday 28th of October 2016 05:09:16 AM
Old 10-28-2016
Linux Problem compiling Mplayer with file pngdec.c

Hello, I was trying to compile Mplayer 1.3 using gcc 4.4, but I am getting LOTS of error messages when make reaches the pngdec.c file. These are the error messages.
Code:
 libavcodec/pngdec.c:37:18: warning: zlib.h: No such file or directory
libavcodec/pngdec.c:82: error: expected specifier-qualifier-list before 'z_stream'
libavcodec/pngdec.c: In function 'png_decode_idat':
libavcodec/pngdec.c:395: error: 'PNGDecContext' has no member named 'zstream'
libavcodec/pngdec.c:396: error: 'PNGDecContext' has no member named 'zstream'
libavcodec/pngdec.c:400: error: 'PNGDecContext' has no member named 'zstream'
libavcodec/pngdec.c:401: error: implicit declaration of function 'inflate'
libavcodec/pngdec.c:401: error: 'PNGDecContext' has no member named 'zstream'
libavcodec/pngdec.c:401: error: 'Z_PARTIAL_FLUSH' undeclared (first use in this function)
libavcodec/pngdec.c:401: error: (Each undeclared identifier is reported only once
libavcodec/pngdec.c:401: error: for each function it appears in.)
libavcodec/pngdec.c:402: error: 'Z_OK' undeclared (first use in this function)
libavcodec/pngdec.c:402: error: 'Z_STREAM_END' undeclared (first use in this function)
libavcodec/pngdec.c:406: error: 'PNGDecContext' has no member named 'zstream'
libavcodec/pngdec.c:410: error: 'PNGDecContext' has no member named 'zstream'
libavcodec/pngdec.c:411: error: 'PNGDecContext' has no member named 'zstream'
libavcodec/pngdec.c:413: error: 'PNGDecContext' has no member named 'zstream'
libavcodec/pngdec.c:415: error: 'PNGDecContext' has no member named 'zstream'
libavcodec/pngdec.c: In function 'decode_zbuf':
libavcodec/pngdec.c:425: error: 'z_stream' undeclared (first use in this function)
libavcodec/pngdec.c:425: error: expected ';' before 'zstream'
libavcodec/pngdec.c:426: warning: ISO C90 forbids mixed declarations and code
libavcodec/pngdec.c:430: error: 'zstream' undeclared (first use in this function)
libavcodec/pngdec.c:433: error: implicit declaration of function 'inflateInit'
libavcodec/pngdec.c:433: error: 'Z_OK' undeclared (first use in this function)
libavcodec/pngdec.c:447: error: 'Z_PARTIAL_FLUSH' undeclared (first use in this function)
libavcodec/pngdec.c:448: error: 'Z_STREAM_END' undeclared (first use in this function)
libavcodec/pngdec.c:456: error: implicit declaration of function 'inflateEnd'
libavcodec/pngdec.c: In function 'decode_idat_chunk':
libavcodec/pngdec.c:724: error: 'PNGDecContext' has no member named 'zstream'
libavcodec/pngdec.c:725: error: 'PNGDecContext' has no member named 'zstream'
libavcodec/pngdec.c: In function 'decode_frame_apng':
libavcodec/pngdec.c:1367: error: 'PNGDecContext' has no member named 'zstream'
libavcodec/pngdec.c:1368: error: 'PNGDecContext' has no member named 'zstream'
libavcodec/pngdec.c:1376: error: 'PNGDecContext' has no member named 'zstream'
libavcodec/pngdec.c:1376: error: 'Z_OK' undeclared (first use in this function)
libavcodec/pngdec.c:1400: error: 'PNGDecContext' has no member named 'zstream'
make[1]: *** [libavcodec/pngdec.o] Error 1

The only thing I know is that I have zlib.h in /usr/src/linux-headers-2.6.31-14/include/linux/zlib.h

No idea about what to do, would appreciate any suggestions.

Last edited by Don Cragun; 11-01-2016 at 09:50 PM.. Reason: Change QUOTE tags to CODE and ICODE tags.
 

10 More Discussions You Might Find Interesting

1. Programming

Problem compiling metamail

Hi Guys. I have downloaded metamail from internet e Iīm trying to compile it at a SCO 5.0.5. In this server itīs working fine (letīs name it as mission1) iīm using the developer package in this server (mission1) and when I use mailto, i got the e-mail fine. Itīs forwarding to a exchange server... (2 Replies)
Discussion started by: ahnishimi
2 Replies

2. Solaris

Compiling problem

I'm trying to install the jed text editor on a SunOS 5.10 box. It depends on the s-lang library, which I installed to ~/lib. I'm trying to install jed to ~/jed (it's a box @ my university, so I don't have rights to install globally), but when I run make I get this error: It looks like it... (1 Reply)
Discussion started by: iandunn
1 Replies

3. Programming

Problem compiling program

hi i am having a problem that when ever i use cc program_name.c to compile a program. an error occurs, showing cc not found. please help. (28 Replies)
Discussion started by: rochitsharma
28 Replies

4. Solaris

Problem's compiling Glib

Hello, I am trying to install glib on my development box - with little/no luck. Below are some details of the box: SunOS 5.8 Generic_117350-38 sun4u sparc SUNW,Ultra-Enterprise gcc version 2.95.2 19991024 (release) GNU Make version 3.78.1, by Richard Stallman and Roland McGrath. Glib version:... (2 Replies)
Discussion started by: tetley
2 Replies

5. UNIX for Dummies Questions & Answers

Problem with mplayer

Can someone help with following problem? I'm trying to watch the stream video. mplayer SRTV - Main Air MPlayer SVN-r24130 (C) 2000-2007 MPlayer Team CPU: AMD Sempron(tm) Processor 2800+ (Family: 15, Model: 44, Stepping: 2) CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1... (1 Reply)
Discussion started by: mirusnet
1 Replies

6. HP-UX

Problem in HP-UX compiling

Hi When im trying to do make --version and make --help in HP-UX it throws error Make: Unknown flag argument -. Stop. a soft link is present in this directory /usr/bin/make and hard link is in /usr/ccs/bin/make what could be the reason can any1 ..please tell me how to solve this... (1 Reply)
Discussion started by: vasanthan
1 Replies

7. Programming

problem with playing a song using mplayer

Hi all, I have an application program which keeps reading an audio file from a directory one after the other , once a file is chosen it keeps sending data in terms of 60000 bytes to a specified socket. This is written into another file "x.mp3" and mplayer is called. Again next 60000... (1 Reply)
Discussion started by: shashi
1 Replies

8. Programming

Problem compiling c file on unix

HI, I have a proc installation. On running the following 3 commands, I successfully get 3 C files. proc char_map=string util.pc proc char_map=string FDRFeedMain.pc proc char_map=string NonMons.pc This gives me util.c FDRFeedMain.c NonMons.c Now when i try to compile the... (6 Replies)
Discussion started by: allah_waris45
6 Replies

9. UNIX for Dummies Questions & Answers

Compiling samba problem

People i download the lastest version of samba i`am tryng to compile it in a solaris 9 i'm reading the how to of samba, i am in the first step making the autogen.sh but show me this when i do ./autogen.sh ./autogen.sh: running script/mkversion.sh ./script/mkversion.sh: 'include/version.h'... (0 Replies)
Discussion started by: enkei17
0 Replies

10. Shell Programming and Scripting

mplayer problem

I have this problem using a script that uses mplayer. This is the error messages. INFO: Mplayer Log LOG: MPlayer SVN-r1.0~rc3+svn20090426-4.4.3 (C) 2000-2009 MPlayer Team LOG: mplayer: could not connect to socket LOG: mplayer: No such file or directory LOG: Failed to open LIRC support. You... (1 Reply)
Discussion started by: locoroco
1 Replies
HARDENED-CC(1)							 Debian GNU/Linux						    HARDENED-CC(1)

NAME
hardened-cc - gcc wrapper to enforce hardening toolchain improvements SYNOPSIS
export DEB_BUILD_HARDENING=1 gcc ... DESCRIPTION
The hardened-cc wrapper is normally used by calling gcc as usual when DEB_BUILD_HARDENING is set to 1. It will configure the necessary toolchain hardening features. By default, all features are enabled. If a given feature does not work correctly and needs to be disabled, the corresponding environment variables mentioned below can be set to 0. ENVIRONMENT
DEB_BUILD_HARDENING=1 Enable hardening features. DEB_BUILD_HARDENING_DEBUG=1 Print the full resulting gcc command line to STDERR before calling gcc. DEB_BUILD_HARDENING_STACKPROTECTOR=0 Disable stack overflow protection. See README.Debian for details. DEB_BUILD_HARDENING_RELRO=0 Disable read-only linker sections. See README.Debian for details. DEB_BUILD_HARDENING_FORTIFY=0 Don't fortify several standard functions. See README.Debian for details. DEB_BUILD_HARDENING_PIE=0 Don't build position independent executables. See README.Debian for details. DEB_BUILD_HARDENING_FORMAT=0 Disable unsafe format string usage errors. See README.Debian for details. NOTES
System-wide settings can be added to /etc/hardening-wrapper.conf, one per line. The real gcc symlinks are renamed gcc.real, and a diversion is registered with dpkg-divert(1). Thus hardened-cc's idea of the default gcc is dictated by whatever package installed /usr/bin/gcc. SEE ALSO
hardened-ld(1) gcc(1) Debian Project 2008-01-08 HARDENED-CC(1)
All times are GMT -4. The time now is 11:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy