| View previous topic :: View next topic |
| Author |
Message |
TheJabberwokk Apprentice

Joined: 13 Aug 2002 Posts: 196 Location: Gloucester
|
Posted: Sun Apr 01, 2007 6:40 pm Post subject: mpglen does not emerge |
|
|
| 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 |
|
 |
didymos Advocate


Joined: 10 Oct 2005 Posts: 4798 Location: California
|
Posted: Sun Apr 01, 2007 8:18 pm Post subject: |
|
|
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 |
|
 |
plughead n00b

Joined: 11 Mar 2005 Posts: 21
|
Posted: Mon Apr 02, 2007 4:08 am Post subject: |
|
|
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 |
|
 |
ryker Guru


Joined: 28 May 2003 Posts: 412 Location: Portage, IN
|
Posted: Tue Apr 03, 2007 12:23 am Post subject: |
|
|
| 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 |
|
 |
zurd Apprentice


Joined: 17 Dec 2003 Posts: 228 Location: Canada, Montreal
|
|
| Back to top |
|
 |
|