Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian User (http://www.linux-archive.org/debian-user/)
-   -   Strange error message when compiling svn package (http://www.linux-archive.org/debian-user/468390-strange-error-message-when-compiling-svn-package.html)

Rodolfo Medina 12-22-2010 02:20 PM

Strange error message when compiling svn package
 
Hi to all Debian users.

When compiling Mplayer svn with `make', I got the following:


[...]
file.c:23:5: warning: "HAVE_MMAP" is not defined
file.c: In function 'av_file_map':
file.c:47: error: 'HAVE_MMAP' undeclared (first use in this function)
file.c:47: error: (Each undeclared identifier is reported only once
file.c:47: error: for each function it appears in.)
file.c:74:5: warning: "HAVE_MMAP" is not defined
file.c:100:5: warning: "HAVE_MMAP" is not defined
make[1]: *** [file.o] Error 1
make[1]: Leaving directory `/home/rodolfo/tmp/mplayer/ffmpeg/libavutil'
make: *** [ffmpeg/libavutil/libavutil.a] Error 2


I have no idea of what this means, and googling around didn't help me. Any
idea of how I can work this out?

Thanks for any help
Rodolfo


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87sjxpomum.fsf@gmail.com">http://lists.debian.org/87sjxpomum.fsf@gmail.com

Hugo Vanwoerkom 12-22-2010 03:42 PM

Strange error message when compiling svn package
 
Rodolfo Medina wrote:

Hi to all Debian users.

When compiling Mplayer svn with `make', I got the following:


[...]
file.c:23:5: warning: "HAVE_MMAP" is not defined
file.c: In function 'av_file_map':
file.c:47: error: 'HAVE_MMAP' undeclared (first use in this function)
file.c:47: error: (Each undeclared identifier is reported only once
file.c:47: error: for each function it appears in.)
file.c:74:5: warning: "HAVE_MMAP" is not defined
file.c:100:5: warning: "HAVE_MMAP" is not defined
make[1]: *** [file.o] Error 1
make[1]: Leaving directory `/home/rodolfo/tmp/mplayer/ffmpeg/libavutil'
make: *** [ffmpeg/libavutil/libavutil.a] Error 2


I have no idea of what this means, and googling around didn't help me. Any
idea of how I can work this out?



You are missing a -dev package to compile Mplayer, I think.
The one that is missing has the definiton of HAVE_MMAP.

Hugo


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: iet9qb$vfc$1@dough.gmane.org">http://lists.debian.org/iet9qb$vfc$1@dough.gmane.org

Rodolfo Medina 12-22-2010 05:10 PM

Strange error message when compiling svn package
 
Hugo Vanwoerkom <hvw59601@care2.com> writes:

> Rodolfo Medina wrote:
>> When compiling Mplayer svn with `make', I got the following:
>>
>>
>> [...]
>> file.c:23:5: warning: "HAVE_MMAP" is not defined
>> file.c: In function 'av_file_map':
>> file.c:47: error: 'HAVE_MMAP' undeclared (first use in this function)
>> file.c:47: error: (Each undeclared identifier is reported only once
>> file.c:47: error: for each function it appears in.)
>> file.c:74:5: warning: "HAVE_MMAP" is not defined
>> file.c:100:5: warning: "HAVE_MMAP" is not defined
>> make[1]: *** [file.o] Error 1
>> make[1]: Leaving directory `/home/rodolfo/tmp/mplayer/ffmpeg/libavutil'
>> make: *** [ffmpeg/libavutil/libavutil.a] Error 2
>>
>>
>> I have no idea of what this means, and googling around didn't help me. Any
>> idea of how I can work this out?
>>
>
> You are missing a -dev package to compile Mplayer, I think.
> The one that is missing has the definiton of HAVE_MMAP.


But how can I work out what this -dev package is, so that I can install it and
then terminate compiling Mplayer?

Rodolfo


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 877hf1oezo.fsf@gmail.com">http://lists.debian.org/877hf1oezo.fsf@gmail.com

Hugo Vanwoerkom 12-22-2010 07:48 PM

Strange error message when compiling svn package
 
Rodolfo Medina wrote:

Hugo Vanwoerkom <hvw59601@care2.com> writes:


Rodolfo Medina wrote:

When compiling Mplayer svn with `make', I got the following:


[...]


<snip>


The one that is missing has the definiton of HAVE_MMAP.



But how can I work out what this -dev package is, so that I can install it and
then terminate compiling Mplayer?


I just install mplayer with apt-get. But you are compiling it. Why?
"Normally" that involves a ./configure script that makes sure you have
all the -devs.
Also running 'apt-get build-dep' ensures that you have those -devs. That
are 2 ways of making sure thhe -devs are there.


Hugo


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: ieto7d$7h1$1@dough.gmane.org">http://lists.debian.org/ieto7d$7h1$1@dough.gmane.org

Darac Marjal 12-22-2010 08:10 PM

Strange error message when compiling svn package
 
On 22/12/10 15:20, Rodolfo Medina wrote:
> Hi to all Debian users.
>
> When compiling Mplayer svn with `make', I got the following:
>
>
> [...]
> file.c:23:5: warning: "HAVE_MMAP" is not defined
> file.c: In function 'av_file_map':
> file.c:47: error: 'HAVE_MMAP' undeclared (first use in this function)
> file.c:47: error: (Each undeclared identifier is reported only once
> file.c:47: error: for each function it appears in.)
> file.c:74:5: warning: "HAVE_MMAP" is not defined
> file.c:100:5: warning: "HAVE_MMAP" is not defined
> make[1]: *** [file.o] Error 1
> make[1]: Leaving directory `/home/rodolfo/tmp/mplayer/ffmpeg/libavutil'
> make: *** [ffmpeg/libavutil/libavutil.a] Error 2
>
>
> I have no idea of what this means, and googling around didn't help me. Any
> idea of how I can work this out?
>
> Thanks for any help
> Rodolfo
>
>
HAVE_* strikes me as something configure would define. As in "This
system has MMAP capabilities, so use them". You might want to check your
configure log and see if it failed to detect something. Alternatively,
if you don't have MMAP capabilities (probably Memory Mapping) are you
sure MPlayer works on your system?


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4D126944.9020007@Darac.org.uk">http://lists.debian.org/4D126944.9020007@Darac.org.uk

Bob Proulx 12-22-2010 11:22 PM

Strange error message when compiling svn package
 
Rodolfo Medina wrote:
> When compiling Mplayer svn with `make', I got the following:
> file.c:23:5: warning: "HAVE_MMAP" is not defined
> ...

This is a C macro. If you were a C programmer this error would be
relatively easy to sort out. Since you are having difficulty I
suggest that you shouldn't start trying to become a C programmer on
the mplayer program. It is quite a bit more complicated than most.

Why not install mplayer directly? No need to compile it. This will
get you a working mplayer without needing to learn C programming.

$ sudo apt-get install mplayer

Depending upon your needs you may desire the non-free components.
Because they are not free they cannot be part of Debian but they have
been kindly and excellently provided for years by Christian Marillat.
Please use a mirror to reduce the bandwidth.

http://www.debian-multimedia.org/

If you must compile from scratch for whatever reason you can still
make use of the Debian package system. Have it install the build
dependencies for you.

$ sudo apt-get build-dep mplayer

That will pull in quite a few dependencies and should get you going
further than you are now. (But installing the precompiled package is
easier.)

Bob

Chris Bannister 12-23-2010 11:33 AM

Strange error message when compiling svn package
 
On Wed, Dec 22, 2010 at 02:48:43PM -0600, Hugo Vanwoerkom wrote:
> >>Rodolfo Medina wrote:
> >>>When compiling Mplayer svn with `make', I got the following:
>
> >>The one that is missing has the definiton of HAVE_MMAP.
>
> I just install mplayer with apt-get. But you are compiling it. Why?

If you want help on the mplayer-user list, they expect you to have tried
the latest version from svn to see if that fixes it.

--
"Religion is excellent stuff for keeping common people quiet."
-- Napoleon Bonaparte


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20101223123321.GE18924@fischer">http://lists.debian.org/20101223123321.GE18924@fischer

Rodolfo Medina 12-23-2010 12:50 PM

Strange error message when compiling svn package
 
Rodolfo Medina wrote:

> When compiling Mplayer svn with `make', I got the following:
>
>
> [...]
> file.c:23:5: warning: "HAVE_MMAP" is not defined
> file.c: In function 'av_file_map':
> file.c:47: error: 'HAVE_MMAP' undeclared (first use in this function)
> file.c:47: error: (Each undeclared identifier is reported only once
> file.c:47: error: for each function it appears in.)
> file.c:74:5: warning: "HAVE_MMAP" is not defined
> file.c:100:5: warning: "HAVE_MMAP" is not defined
> make[1]: *** [file.o] Error 1
> make[1]: Leaving directory `/home/rodolfo/tmp/mplayer/ffmpeg/libavutil'
> make: *** [ffmpeg/libavutil/libavutil.a] Error 2
>
>
> I have no idea of what this means, and googling around didn't help me. Any
> idea of how I can work this out?



On Wed, Dec 22, 2010 at 02:48:43PM -0600, Hugo Vanwoerkom wrote:

>> I just install mplayer with apt-get. But you are compiling it. Why?


Bob Proulx <bob@proulx.com> writes:

> Why not install mplayer directly? No need to compile it. This will
> get you a working mplayer without needing to learn C programming.


Chris Bannister <mockingbird@earthlight.co.nz> writes:

> If you want help on the mplayer-user list, they expect you to have tried
> the latest version from svn to see if that fixes it.


Yes, it recommended to use the svn version.


> If you must compile from scratch for whatever reason you can still
> make use of the Debian package system. Have it install the build
> dependencies for you.
>
> $ sudo apt-get build-dep mplayer
>
> That will pull in quite a few dependencies and should get you going
> further than you are now.


`apt-get build-dep' did not help: the error was still there. The solution was
suggested by Juan Jose Padilla: after the `./configure' step, in the file
mplayer/config.h, at line 483, after the line `#define HAVE_VIRTUALALLOC 0' , I
added the line `#define HAVE_MMAP 1', then ran `make' and `make install'. It
must be a bug. I suppose it would be all right to add that line anywhere else
in the file.

Thanks to all who replied
Rodolfo


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87k4j0zjgf.fsf@gmail.com">http://lists.debian.org/87k4j0zjgf.fsf@gmail.com

Hugo Vanwoerkom 12-23-2010 06:09 PM

Strange error message when compiling svn package
 
Chris Bannister wrote:

On Wed, Dec 22, 2010 at 02:48:43PM -0600, Hugo Vanwoerkom wrote:

Rodolfo Medina wrote:

When compiling Mplayer svn with `make', I got the following:

The one that is missing has the definiton of HAVE_MMAP.

I just install mplayer with apt-get. But you are compiling it. Why?


If you want help on the mplayer-user list, they expect you to have tried
the latest version from svn to see if that fixes it.



But I thought the OP started out compiling instead of first installing
the binary.


Hugo


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: if06oi$7qr$1@dough.gmane.org">http://lists.debian.org/if06oi$7qr$1@dough.gmane.org


All times are GMT. The time now is 01:31 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.