Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mpglen does not emerge
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
TheJabberwokk
Apprentice
Apprentice


Joined: 13 Aug 2002
Posts: 196
Location: Gloucester

PostPosted: Sun Apr 01, 2007 6:40 pm    Post subject: mpglen does not emerge Reply with quote

Quote:
emerge mpglen
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) media-video/mpglen-0.1 to /
* mpglen.tar.gz RMD160 ;-) ... [ ok ]
* mpglen.tar.gz SHA1 ;-) ... [ ok ]
* mpglen.tar.gz SHA256 ;-) ... [ ok ]
* mpglen.tar.gz size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking mpglen.tar.gz ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking mpglen.tar.gz to /var/tmp/portage/media-video/mpglen-0.1/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/media-video/mpglen-0.1/work/mpglen ...
i686-pc-linux-gnu-gcc -O2 -march=prescott -pipe -fomit-frame-pointer -o mpglen mpglen.c
mpglen.c: In function 'main':
mpglen.c:63: error: 'off64_t' undeclared (first use in this function)
mpglen.c:63: error: (Each undeclared identifier is reported only once
mpglen.c:63: error: for each function it appears in.)
mpglen.c:63: error: expected ';' before 'flen'
mpglen.c:139: error: 'O_LARGEFILE' undeclared (first use in this function)
mpglen.c:146: error: 'flen' undeclared (first use in this function)
mpglen.c:152: warning: assignment makes pointer from integer without a cast
mpglen.c:155: error: 'fpos' undeclared (first use in this function)
mpglen.c:161: error: 'fmemend' undeclared (first use in this function)
mpglen.c:163: error: 'cpos' undeclared (first use in this function)
mpglen.c:178: warning: assignment makes pointer from integer without a cast
make: *** [mpglen] Error 1

!!! ERROR: media-video/mpglen-0.1 failed.
Call stack:
ebuild.sh, line 1614: Called dyn_compile
ebuild.sh, line 971: Called qa_call 'src_compile'
ebuild.sh, line 44: Called src_compile
mpglen-0.1.ebuild, line 27: Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/media-video/mpglen-0.1/temp/build.log'.
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Sun Apr 01, 2007 8:18 pm    Post subject: Reply with quote

It looks like it needs to include a header or two. Offhand, I don't know where those identifiers are defined.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
plughead
n00b
n00b


Joined: 11 Mar 2005
Posts: 21

PostPosted: Mon Apr 02, 2007 4:08 am    Post subject: Reply with quote

This worked for me:
Code:
CFLAGS="${CFLAGS} -D_GNU_SOURCE" ACCEPT_KEYWORDS=~x86 emerge mpglen


(You may want to omit the ACCEPT_KEYWORDS=~x86, depending on your package.keywords.)

The problem appears to be that mpglen.c should #define _GNU_SOURCE before including unistd.h -- patch anyone? :)

(EDIT: I should point out that the ${CFLAGS} bit probably won't do anything because CFLAGS probably isn't set at that point. It probably won't harm anything but, if you worry about such things, just manually replace ${CFLAGS} with the actual settings from your make.conf)
_________________
Q: What's tiny and yellow and very, very, dangerous?
A: A canary with the super-user password.


Last edited by plughead on Tue Apr 03, 2007 1:50 am; edited 1 time in total
Back to top
View user's profile Send private message
ryker
Guru
Guru


Joined: 28 May 2003
Posts: 412
Location: Portage, IN

PostPosted: Tue Apr 03, 2007 12:23 am    Post subject: Reply with quote

plughead wrote:
This worked for me:
Code:
CFLAGS="${CFLAGS} -D_GNU_SOURCE" ACCEPT_KEYWORDS=~x86 emerge mpglen


(You may want to omit the ACCEPT_KEYWORDS=~x86, depending on your package.keywords.)

The problem appears to be that mpglen.c should #define _GNU_SOURCE before including unistd.h -- patch anyone? :)


Thank you, this worked for me too.
_________________
Athlon 64 3200+, 80G WD sata hd + 200G IDE, 1G Geil DDR400, MSI K8T Neo
IntelCore2Duo 2.0Ghz MSI laptop,100G SATA hd, 2G RAM
Back to top
View user's profile Send private message
zurd
Apprentice
Apprentice


Joined: 17 Dec 2003
Posts: 228
Location: Canada, Montreal

PostPosted: Wed Jul 18, 2007 9:04 pm    Post subject: Reply with quote

Thank you, you just saved my day!

Since this bug is still not resolved after more than 3 months, I posted
a bug on it at : http://bugs.gentoo.org/show_bug.cgi?id=185807
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum