LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-16-2004, 06:47 PM   #1
axlotl
LQ Newbie
 
Registered: Sep 2003
Location: NYC
Distribution: mandrake 9.2
Posts: 29

Rep: Reputation: 15
mplayer compile problem


Hi,
Here we are with mandrake 10, so kernel 2.6.3, and mplayer 1.0-pre3. Configure runs fine, no probs, but when I do 'make', compiling spits out this error:
Code:
vd_lcl.c: In function `init':
vd_lcl.c:222: error: `Z_NO_COMPRESSION' undeclared (first use in this function)
vd_lcl.c:222: error: (Each undeclared identifier is reported only once
vd_lcl.c:222: error: for each function it appears in.)
vd_lcl.c:222: error: `Z_BEST_COMPRESSION' undeclared (first use in this function)
make[1]: *** [vd_lcl.o] Error 1
make[1]: Leaving directory `/usr/local/src/MPlayer-1.0pre3/libmpcodecs'
make: *** [libmpcodecs/libmpcodecs.a] Error 2
[root@MPlayer-1.0pre3]$
I dunno, I was thinking of going into the source and finding this codec's section and commenting it out, though I'd be mucking about in the dark. I have "fixed" a program or two this way. Has anyone else encountered this, any suggestions, etc?

axlotl
 
Old 03-16-2004, 06:52 PM   #2
snacky
Member
 
Registered: Feb 2004
Distribution: Debian
Posts: 286

Rep: Reputation: 30
You need zlibc.
 
Old 03-16-2004, 07:09 PM   #3
axlotl
LQ Newbie
 
Registered: Sep 2003
Location: NYC
Distribution: mandrake 9.2
Posts: 29

Original Poster
Rep: Reputation: 15
Figured this was leading down this road. Now we compile zlibc. File under: Why people bitch about installing software under linux:
Code:
In file included from zlibc.h:205,
                 from sysincludes.h:142,
                 from open.c:10:
kernel_stat.h:21: warning: no semicolon at end of struct or union
kernel_stat.h:21: error: parse error before '.' token
kernel_stat.h:24: error: parse error before '.' token
kernel_stat.h:27: error: parse error before '.' token
kernel_stat.h:34: error: parse error before '}' token
In file included from sysincludes.h:142,
                 from open.c:10:
zlibc.h:219:13: warning: extra tokens at end of #undef directive
zlibc.h:241:13: warning: extra tokens at end of #undef directive
make: *** [open.o] Error 1
[root@zlibc-0.9j]$
Thanks for the quick reply.

axlotl
 
Old 03-16-2004, 07:19 PM   #4
snacky
Member
 
Registered: Feb 2004
Distribution: Debian
Posts: 286

Rep: Reputation: 30
I'm not sure exactly what it's including there and I'm not about to check, but I do not suggest you compile zlib yourself. I believe this will work for you:
 
Old 03-16-2004, 07:53 PM   #5
axlotl
LQ Newbie
 
Registered: Sep 2003
Location: NYC
Distribution: mandrake 9.2
Posts: 29

Original Poster
Rep: Reputation: 15
Snacky,
You're too much. Johnny on the spot. But actually, I had checked zlib when I first hit that snag and it's already installed. Maybe just not in the path? lemme check real quick...
ok:
Code:
[root@dwnld]$ which zlib
which: no zlib in (/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin)
So a locate zlib turns up a bunch, but no .so files. Maybe one of these?
Code:
/usr/include/linux/zlib.h
/lib/modules/2.6.3-4mdk/kernel/lib/zlib_deflate
/lib/modules/2.6.3-4mdk/kernel/lib/zlib_deflate/zlib_deflate.ko.gz
/lib/modules/2.6.3-4mdk/kernel/lib/zlib_inflate
/lib/modules/2.6.3-4mdk/kernel/lib/zlib_inflate/zlib_inflate.ko.gz
The rest are all part of packages (python, etc.). So what's the difference between zlib and zlibc? If zlib's already installed, why not in /usr/lib or /usr/local/lib? So what am I looking for to symlink to?

You say I shouldn't compile it myself, but why not (*besides* the fact that I don't know what I'm doing: if I let that stop me I'd still be using windows!). I actually usually use rpm's for small things like libraries and, say, gkrellm, but I can't imagine using it for php or mplayer or something larger, where I want some more control. Does this seem like a good (if fuzzy) rule?

axlotl
 
Old 03-16-2004, 07:57 PM   #6
snacky
Member
 
Registered: Feb 2004
Distribution: Debian
Posts: 286

Rep: Reputation: 30
You do not have the runtime libraries, which is what you need.

You shouldn't compile zlib for yourself because it's too hard, it looks like you don't have many header files, and I don't have enough experience with mandrake to suggest the quick-and-easy way to get them all. (Some day you might return to "installing huge amounts of header files, some of which I just might need once some day" as a side-project, but doing it right now could well end up as an exercise in frustration.)

The stuff you found with that locate command is not what you need. I think the rpm I linked to has what you need.
 
Old 03-16-2004, 09:10 PM   #7
axlotl
LQ Newbie
 
Registered: Sep 2003
Location: NYC
Distribution: mandrake 9.2
Posts: 29

Original Poster
Rep: Reputation: 15
Hmm. Exercises in frustration I do not like, but then again I am a non-C-programmer who has used linux for years, so I'm kind of used to them.
But, like I said, I already have zlib. :
Code:
[root@dwnld]$ urpmi zlib
Everything already installed
[root@dwnld]$ ls
And, just to be sure, the file you linked to:
Code:
[root@dwnld]$ rpm -i zlib1-1.2.1-2mdk.i586.rpm
        package zlib1-1.2.1-2mdk is already installed
[root@dwnld]$
So either that's not it, or the needed libraries aren't in my path? This is kind of where I was at first when I was going to try to comment out that codec. I mean, I don't know how to tell *exactly* which file make is looking for.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mplayer compile problem in SUSE 9.1 perfect_circle SUSE / openSUSE 2 02-19-2005 08:40 AM
Suse 9.2 mplayer compile problem Phyrexicaid SUSE / openSUSE 8 01-20-2005 08:17 PM
[SuSE] Mplayer won't compile Harkov Linux - Software 14 01-16-2005 05:23 AM
mplayer compile problem hkl8324 Fedora 7 08-11-2004 02:42 PM
How do I compile(install) Mplayer natesch Linux - Newbie 14 05-08-2002 01:53 AM


All times are GMT -5. The time now is 07:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration