You are not logged in.

#1 2012-07-28 23:22:59

pe7er
Member
From: Nijmegen, Netherlands
Registered: 2012-03-15
Posts: 45
Website

[solved] vice-gnomeui 2.3-1 - ERROR: A failure occurred in build().

I hope that this is the right place to ask for help regarding PKGBUILD errors from software downloaded via AUR.

I was trying to compile & install VICE (a Commodore 64 emulator) on my PC from http://aur.archlinux.org/packages.php?ID=13418&detail=1

First I got 2 dependency warnings for "audiofile" & "esound", but I was able to install "audiofile" using pacman, and to compile/install esound from AUR.

However, when I tried makepkg for "vice-gnomeui 2.3-1" I got the following error:

In file included from ffmpegdrv.c:35:0:
ffmpeglib.h:60:55: error: unknown type name ‘AVFormatParameters’
ffmpeglib.h:64:29: error: unknown type name ‘ByteIOContext’
ffmpeglib.h:65:30: error: unknown type name ‘ByteIOContext’
ffmpeglib.h:98:5: error: unknown type name ‘av_set_parameters_t’
ffmpeglib.h:102:5: error: unknown type name ‘url_fopen_t’
ffmpeglib.h:103:5: error: unknown type name ‘url_fclose_t’
ffmpegdrv.c: In function ‘ffmpegmovie_init_audio’:
ffmpegdrv.c:346:21: error: ‘SAMPLE_FMT_S16’ undeclared (first use in this function)
ffmpegdrv.c:346:21: note: each undeclared identifier is reported only once for each function it appears in
ffmpegdrv.c: In function ‘ffmpegdrv_init_file’:
ffmpegdrv.c:616:10: error: invalid type argument of unary ‘*’ (have ‘int’)
ffmpegdrv.c:635:14: error: invalid type argument of unary ‘*’ (have ‘int’)
ffmpegdrv.c:636:29: error: ‘URL_WRONLY’ undeclared (first use in this function)
ffmpegdrv.c: In function ‘ffmpegdrv_close’:
ffmpegdrv.c:727:14: error: invalid type argument of unary ‘*’ (have ‘int’)
make[3]: *** [ffmpegdrv.o] Error 1
make[3]: Leaving directory `/home/pe7er/build/vice/vice-gnomeui/src/vice-2.3/src/gfxoutputdrv'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/pe7er/build/vice/vice-gnomeui/src/vice-2.3/src'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/pe7er/build/vice/vice-gnomeui/src/vice-2.3/src'
make: *** [install-recursive] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

I am not experienced with building from source & solving compiling errors.
How can I solve this problem and compile/install Vice?
Thanks in advance!

Last edited by pe7er (2012-08-01 11:53:14)


Peter Martin - Joomla Open Source CMS specialist www.db8.nl
OS: Arch Linux | Arch Linux ARM | Debian | Ubuntu
Toys;-) Raspberry Pi | SheevaPlug | PogoPlug

Offline

#2 2012-07-29 04:40:27

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [solved] vice-gnomeui 2.3-1 - ERROR: A failure occurred in build().

It needs to be patched to build against the current ffmpeg. Try googling, maybe there's a patch somewhere.

Offline

#3 2012-07-29 05:21:50

grimi
Member
Registered: 2009-12-27
Posts: 27

Re: [solved] vice-gnomeui 2.3-1 - ERROR: A failure occurred in build().

Offline

#4 2012-07-30 11:18:44

pe7er
Member
From: Nijmegen, Netherlands
Registered: 2012-03-15
Posts: 45
Website

Re: [solved] vice-gnomeui 2.3-1 - ERROR: A failure occurred in build().

Thank you both for your help!

I tried to makepkg from https://aur.archlinux.org/packages.php?ID=24545 but I get the following error:

==> ERROR: ffmpeg.patch was not found in the build directory and is not a URL.

The AUR page of vice-gtkglext 2.3-3 lists "ffmpeg.patch" under sources, but it isn't hyperlinked & I couldn't install it with pacman.

Where can I find ffmpeg.patch ?


When I searched in AUR on VICE I found some other VICE packages as well: http://aur.archlinux.org/packages.php?O … h=Go&PP=50
How do you know which version to use?
I think I would try the one with the highest version number, the most votes, and one without "orphan" as maintainer...

Last edited by pe7er (2012-07-30 11:24:54)


Peter Martin - Joomla Open Source CMS specialist www.db8.nl
OS: Arch Linux | Arch Linux ARM | Debian | Ubuntu
Toys;-) Raspberry Pi | SheevaPlug | PogoPlug

Offline

#5 2012-07-30 12:37:07

pe7er
Member
From: Nijmegen, Netherlands
Registered: 2012-03-15
Posts: 45
Website

Re: [solved] vice-gnomeui 2.3-1 - ERROR: A failure occurred in build().

pe7er wrote:

Where can I find ffmpeg.patch ?

I found https://bbs.archlinux.org/viewtopic.php … 7#p1022487
How can I install or apply that patch?


Peter Martin - Joomla Open Source CMS specialist www.db8.nl
OS: Arch Linux | Arch Linux ARM | Debian | Ubuntu
Toys;-) Raspberry Pi | SheevaPlug | PogoPlug

Offline

#6 2012-07-30 20:32:16

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [solved] vice-gnomeui 2.3-1 - ERROR: A failure occurred in build().

pe7er wrote:

Thank you both for your help!

I tried to makepkg from https://aur.archlinux.org/packages.php?ID=24545 but I get the following error:

==> ERROR: ffmpeg.patch was not found in the build directory and is not a URL.

The AUR page of vice-gtkglext 2.3-3 lists "ffmpeg.patch" under sources, but it isn't hyperlinked & I couldn't install it with pacman.

Where can I find ffmpeg.patch ?


When I searched in AUR on VICE I found some other VICE packages as well: http://aur.archlinux.org/packages.php?O … h=Go&PP=50
How do you know which version to use?
I think I would try the one with the highest version number, the most votes, and one without "orphan" as maintainer...

you need to download the tarball: https://aur.archlinux.org/packages/vi/v … ext.tar.gz

Offline

#7 2012-07-30 21:37:34

pe7er
Member
From: Nijmegen, Netherlands
Registered: 2012-03-15
Posts: 45
Website

Re: [solved] vice-gnomeui 2.3-1 - ERROR: A failure occurred in build().

Great, thanks!

The error with the missing ffmpeg.patch has been solved when using the tarball.

Unfortunately I got another error:

In file included from ffmpegdrv.c:35:0:
ffmpeglib.h:60:55: error: unknown type name ‘AVFormatParameters’
ffmpeglib.h:64:29: error: unknown type name ‘ByteIOContext’
ffmpeglib.h:65:30: error: unknown type name ‘ByteIOContext’
ffmpeglib.h:98:5: error: unknown type name ‘av_set_parameters_t’
ffmpeglib.h:102:5: error: unknown type name ‘url_fopen_t’
ffmpeglib.h:103:5: error: unknown type name ‘url_fclose_t’
ffmpegdrv.c: In function ‘ffmpegmovie_init_audio’:
ffmpegdrv.c:346:21: error: ‘SAMPLE_FMT_S16’ undeclared (first use in this function)
ffmpegdrv.c:346:21: note: each undeclared identifier is reported only once for each function it appears in
ffmpegdrv.c: In function ‘ffmpegdrv_init_file’:
ffmpegdrv.c:616:10: error: invalid type argument of unary ‘*’ (have ‘int’)
ffmpegdrv.c:635:14: error: invalid type argument of unary ‘*’ (have ‘int’)
ffmpegdrv.c:636:29: error: ‘URL_WRONLY’ undeclared (first use in this function)
ffmpegdrv.c: In function ‘ffmpegdrv_close’:
ffmpegdrv.c:727:14: error: invalid type argument of unary ‘*’ (have ‘int’)
make[3]: *** [ffmpegdrv.o] Error 1
make[3]: Leaving directory `/home/pe7er/build/vice/vice-gtkglext/src/vice-2.3/src/gfxoutputdrv'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/pe7er/build/vice/vice-gtkglext/src/vice-2.3/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/pe7er/build/vice/vice-gtkglext/src/vice-2.3/src'
make: *** [all-recursive] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

What can I do to solve this problem?


Peter Martin - Joomla Open Source CMS specialist www.db8.nl
OS: Arch Linux | Arch Linux ARM | Debian | Ubuntu
Toys;-) Raspberry Pi | SheevaPlug | PogoPlug

Offline

#8 2012-07-31 04:32:20

grimi
Member
Registered: 2009-12-27
Posts: 27

Re: [solved] vice-gnomeui 2.3-1 - ERROR: A failure occurred in build().

I uploaded new release, with disabled ffmpeg.Try now:
http://downloads.sourceforge.net/projec … 2.3.tar.gz
regards

Offline

#9 2012-07-31 08:21:43

pe7er
Member
From: Nijmegen, Netherlands
Registered: 2012-03-15
Posts: 45
Website

Re: [solved] vice-gnomeui 2.3-1 - ERROR: A failure occurred in build().

Thank you very much!

Compiling the source code seemed to take much longer then before.
Unfortunately I got another error:

Making install in fonts
make[2]: Entering directory `/home/pe7er/build/vice/vice-2.3/src/vice-2.3/data/fonts'
test -z "/usr/lib/vice/fonts" || /bin/mkdir -p "/home/pe7er/build/vice/vice-2.3/pkg/usr/lib/vice/fonts"
 /usr/bin/install -c -m 644 vice-cbm.bdf CBM.ttf '/home/pe7er/build/vice/vice-2.3/pkg/usr/lib/vice/fonts'
Preparing fontdir, please wait...
cp: cannot stat ‘data/fonts/CBM.ttf’: No such file or directory
/home/pe7er/.fonts: failed to write cache
make[2]: *** [install] Error 1
make[2]: Leaving directory `/home/pe7er/build/vice/vice-2.3/src/vice-2.3/data/fonts'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/pe7er/build/vice/vice-2.3/src/vice-2.3/data'
make: *** [install-recursive] Error 1
==> ERROR: A failure occurred in package().

The CBM.ttf  font file exists in /home/pe7er/build/vice/vice-2.3/data/fonts/CBM.ttf
And (as test) I changed the permissions on the ~/.fonts/ folder from 0755 to 0777
But I get the same error as above.

How can I solve the problem?


Peter Martin - Joomla Open Source CMS specialist www.db8.nl
OS: Arch Linux | Arch Linux ARM | Debian | Ubuntu
Toys;-) Raspberry Pi | SheevaPlug | PogoPlug

Offline

#10 2012-07-31 17:44:20

grimi
Member
Registered: 2009-12-27
Posts: 27

Re: [solved] vice-gnomeui 2.3-1 - ERROR: A failure occurred in build().

Hi again. I disabled  buggy part in Makefile. Now CBM.ttf font must be copied manually to ~/.fonts,
but package building process ends without problems.. smile

Offline

#11 2012-07-31 19:35:05

pe7er
Member
From: Nijmegen, Netherlands
Registered: 2012-03-15
Posts: 45
Website

Re: [solved] vice-gnomeui 2.3-1 - ERROR: A failure occurred in build().

Now it works ok! Thanks!
I was able to build the package without any problems...

Your message after installing

==> To use the CBM font in gui, enter: 
==> cp /usr/lib/vice/fonts/CBM.ttf ~/.fonts

is self explanatory.
Then only "x64" to start VICE as c64, attached a disk image (Arkanoid ;-) and heard the wicked intro tune, so the sound was working fine too!

Thanks again!


Peter Martin - Joomla Open Source CMS specialist www.db8.nl
OS: Arch Linux | Arch Linux ARM | Debian | Ubuntu
Toys;-) Raspberry Pi | SheevaPlug | PogoPlug

Offline

Board footer

Powered by FluxBB