Package Details: alex4 1.2.1-2

Git Clone URL: https://aur.archlinux.org/alex4.git (read-only, click to copy)
Package Base: alex4
Description: Help Alex the Allegator rescue Lola before the humans make a pair of shoes out of her!
Upstream URL: http://allegator.sourceforge.net
Keywords: game platformer
Licenses: GPL2
Submitter: None
Maintainer: carstene1ns
Last Packager: carstene1ns
Votes: 9
Popularity: 0.000000
First Submitted: 2011-05-26 12:00 (UTC)
Last Updated: 2021-05-24 11:58 (UTC)

Dependencies (2)

Required by (0)

Sources (2)

Latest Comments

gameslayer commented on 2022-02-06 06:46 (UTC)

Please add aarch64 to the pkgbuild file :)

carstene1ns commented on 2021-05-24 11:59 (UTC)

@tototoro: Looks like you have missing data files.

New version should work with gcc 10.

tototoro commented on 2021-05-23 07:34 (UTC)

It built when I added -fcommon option to CFLAGS in Makefile. It segfaults when I run it:

Warning: Missing charsets in String to FontSet conversion
Warning: Missing charsets in String to FontSet conversion
Shutting down Allegro due to signal #11
Segmentation fault (core dumped)

gameslayer commented on 2021-03-20 13:24 (UTC) (edited on 2021-03-20 13:25 (UTC) by gameslayer)

Building alex4...
==> Making package: alex4 1.2.1-1 (Sat 20 Mar 2021 23:24:25)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found alex4-1.2.1.tar.gz
==> Validating source files with sha256sums...
    alex4-1.2.1.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting alex4-1.2.1.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
make: Entering directory '/var/tmp/pamac-build-corey/alex4/src/alex4-1.2.1'
cc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt `allegro-config --cflags` -DDATADIR=\"/usr/share/alex4/\" -o src/main.o -c src/main.c
cc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt `allegro-config --cflags` -DDATADIR=\"/usr/share/alex4/\" -o src/actor.o -c src/actor.c
cc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt `allegro-config --cflags` -DDATADIR=\"/usr/share/alex4/\" -o src/bullet.o -c src/bullet.c
cc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt `allegro-config --cflags` -DDATADIR=\"/usr/share/alex4/\" -o src/control.o -c src/control.c
cc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt `allegro-config --cflags` -DDATADIR=\"/usr/share/alex4/\" -o src/edit.o -c src/edit.c
cc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt `allegro-config --cflags` -DDATADIR=\"/usr/share/alex4/\" -o src/hisc.o -c src/hisc.c
cc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt `allegro-config --cflags` -DDATADIR=\"/usr/share/alex4/\" -o src/map.o -c src/map.c
cc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt `allegro-config --cflags` -DDATADIR=\"/usr/share/alex4/\" -o src/options.o -c src/options.c
cc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt `allegro-config --cflags` -DDATADIR=\"/usr/share/alex4/\" -o src/particle.o -c src/particle.c
cc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt `allegro-config --cflags` -DDATADIR=\"/usr/share/alex4/\" -o src/player.o -c src/player.c
cc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt `allegro-config --cflags` -DDATADIR=\"/usr/share/alex4/\" -o src/script.o -c src/script.c
cc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt `allegro-config --cflags` -DDATADIR=\"/usr/share/alex4/\" -o src/scroller.o -c src/scroller.c
cc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt `allegro-config --cflags` -DDATADIR=\"/usr/share/alex4/\" -o src/shooter.o -c src/shooter.c
cc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt `allegro-config --cflags` -DDATADIR=\"/usr/share/alex4/\" -o src/timer.o -c src/timer.c
cc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt `allegro-config --cflags` -DDATADIR=\"/usr/share/alex4/\" -o src/token.o -c src/token.c
cc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt `allegro-config --cflags` -DDATADIR=\"/usr/share/alex4/\" -o src/unix.o -c src/unix.c
cc -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o alex4 src/main.o src/actor.o src/bullet.o src/control.o src/edit.o src/hisc.o src/map.o src/options.o src/particle.o src/player.o src/script.o src/scroller.o src/shooter.o src/timer.o src/token.o src/unix.o -laldmb -ldumb `allegro-config --libs` -lm
/usr/bin/ld: src/actor.o:(.bss+0x1400): multiple definition of `particle'; src/main.o:(.bss+0x6260): first defined here
/usr/bin/ld: src/actor.o:(.bss+0x4448): multiple definition of `game_count'; src/main.o:(.bss+0x92a8): first defined here
/usr/bin/ld: src/actor.o:(.bss+0x0): multiple definition of `bullet'; src/main.o:(.bss+0x4e60): first defined here
/usr/bin/ld: src/actor.o:(.bss+0x4400): multiple definition of `player'; src/main.o:(.bss+0x9260): first defined here
/usr/bin/ld: src/actor.o:(.bss+0x444c): multiple definition of `cycle_count'; src/main.o:(.bss+0x92ac): first defined here
/usr/bin/ld: src/actor.o:(.bss+0x4450): multiple definition of `lps'; src/main.o:(.bss+0x92b0): first defined here
/usr/bin/ld: src/actor.o:(.bss+0x4454): multiple definition of `logic_count'; src/main.o:(.bss+0x92b4): first defined here
/usr/bin/ld: src/actor.o:(.bss+0x4458): multiple definition of `fps'; src/main.o:(.bss+0x92b8): first defined here
/usr/bin/ld: src/actor.o:(.bss+0x445c): multiple definition of `frame_count'; src/main.o:(.bss+0x92bc): first defined here
/usr/bin/ld: src/bullet.o:(.bss+0xc): multiple definition of `logic_count'; src/main.o:(.bss+0x92b4): first defined here
/usr/bin/ld: src/bullet.o:(.bss+0x1420): multiple definition of `particle'; src/main.o:(.bss+0x6260): first defined here
/usr/bin/ld: src/bullet.o:(.bss+0x0): multiple definition of `game_count'; src/main.o:(.bss+0x92a8): first defined here
/usr/bin/ld: src/bullet.o:(.bss+0x4): multiple definition of `cycle_count'; src/main.o:(.bss+0x92ac): first defined here
/usr/bin/ld: src/bullet.o:(.bss+0x8): multiple definition of `lps'; src/main.o:(.bss+0x92b0): first defined here
/usr/bin/ld: src/bullet.o:(.bss+0x10): multiple definition of `fps'; src/main.o:(.bss+0x92b8): first defined here
/usr/bin/ld: src/bullet.o:(.bss+0x14): multiple definition of `frame_count'; src/main.o:(.bss+0x92bc): first defined here
/usr/bin/ld: src/bullet.o:(.bss+0x20): multiple definition of `bullet'; src/main.o:(.bss+0x4e60): first defined here
/usr/bin/ld: src/edit.o:(.bss+0x8): multiple definition of `data'; src/main.o:(.bss+0x4df8): first defined here
/usr/bin/ld: src/edit.o:(.bss+0x430): multiple definition of `logic_count'; src/main.o:(.bss+0x92b4): first defined here
/usr/bin/ld: src/edit.o:(.bss+0x424): multiple definition of `game_count'; src/main.o:(.bss+0x92a8): first defined here
/usr/bin/ld: src/edit.o:(.bss+0x428): multiple definition of `cycle_count'; src/main.o:(.bss+0x92ac): first defined here
/usr/bin/ld: src/edit.o:(.bss+0x42c): multiple definition of `lps'; src/main.o:(.bss+0x92b0): first defined here
/usr/bin/ld: src/edit.o:(.bss+0x434): multiple definition of `fps'; src/main.o:(.bss+0x92b8): first defined here
/usr/bin/ld: src/edit.o:(.bss+0x438): multiple definition of `frame_count'; src/main.o:(.bss+0x92bc): first defined here
/usr/bin/ld: src/map.o:(.bss+0x0): multiple definition of `game_count'; src/main.o:(.bss+0x92a8): first defined here
/usr/bin/ld: src/map.o:(.bss+0x4): multiple definition of `cycle_count'; src/main.o:(.bss+0x92ac): first defined here
/usr/bin/ld: src/map.o:(.bss+0x8): multiple definition of `lps'; src/main.o:(.bss+0x92b0): first defined here
/usr/bin/ld: src/map.o:(.bss+0xc): multiple definition of `logic_count'; src/main.o:(.bss+0x92b4): first defined here
/usr/bin/ld: src/map.o:(.bss+0x10): multiple definition of `fps'; src/main.o:(.bss+0x92b8): first defined here
/usr/bin/ld: src/map.o:(.bss+0x14): multiple definition of `frame_count'; src/main.o:(.bss+0x92bc): first defined here
/usr/bin/ld: src/particle.o:(.bss+0x0): multiple definition of `data'; src/main.o:(.bss+0x4df8): first defined here
/usr/bin/ld: src/particle.o:(.bss+0x20): multiple definition of `particle'; src/main.o:(.bss+0x6260): first defined here
/usr/bin/ld: src/player.o:(.bss+0x0): multiple definition of `game_count'; src/main.o:(.bss+0x92a8): first defined here
/usr/bin/ld: src/player.o:(.bss+0x4): multiple definition of `cycle_count'; src/main.o:(.bss+0x92ac): first defined here
/usr/bin/ld: src/player.o:(.bss+0x8): multiple definition of `lps'; src/main.o:(.bss+0x92b0): first defined here
/usr/bin/ld: src/player.o:(.bss+0xc): multiple definition of `logic_count'; src/main.o:(.bss+0x92b4): first defined here
/usr/bin/ld: src/player.o:(.bss+0x10): multiple definition of `fps'; src/main.o:(.bss+0x92b8): first defined here
/usr/bin/ld: src/player.o:(.bss+0x14): multiple definition of `frame_count'; src/main.o:(.bss+0x92bc): first defined here
/usr/bin/ld: src/player.o:(.bss+0x20): multiple definition of `player'; src/main.o:(.bss+0x9260): first defined here
/usr/bin/ld: src/script.o:(.bss+0x2c): multiple definition of `cycle_count'; src/main.o:(.bss+0x92ac): first defined here
/usr/bin/ld: src/script.o:(.bss+0x20): multiple definition of `data'; src/main.o:(.bss+0x4df8): first defined here
/usr/bin/ld: src/script.o:(.bss+0x40): multiple definition of `active_sounds'; src/main.o:(.bss+0x4e20): first defined here
/usr/bin/ld: src/script.o:(.bss+0x34): multiple definition of `logic_count'; src/main.o:(.bss+0x92b4): first defined here
/usr/bin/ld: src/script.o:(.bss+0x28): multiple definition of `game_count'; src/main.o:(.bss+0x92a8): first defined here
/usr/bin/ld: src/script.o:(.bss+0x30): multiple definition of `lps'; src/main.o:(.bss+0x92b0): first defined here
/usr/bin/ld: src/script.o:(.bss+0x38): multiple definition of `fps'; src/main.o:(.bss+0x92b8): first defined here
/usr/bin/ld: src/script.o:(.bss+0x3c): multiple definition of `frame_count'; src/main.o:(.bss+0x92bc): first defined here
/usr/bin/ld: src/shooter.o:(.bss+0x14c70): multiple definition of `game_count'; src/main.o:(.bss+0x92a8): first defined here
/usr/bin/ld: src/shooter.o:(.bss+0x14c74): multiple definition of `cycle_count'; src/main.o:(.bss+0x92ac): first defined here
/usr/bin/ld: src/shooter.o:(.bss+0x14c7c): multiple definition of `logic_count'; src/main.o:(.bss+0x92b4): first defined here
/usr/bin/ld: src/shooter.o:(.bss+0x14c84): multiple definition of `frame_count'; src/main.o:(.bss+0x92bc): first defined here
/usr/bin/ld: src/shooter.o:(.bss+0x14c78): multiple definition of `lps'; src/main.o:(.bss+0x92b0): first defined here
/usr/bin/ld: src/shooter.o:(.bss+0x14c80): multiple definition of `fps'; src/main.o:(.bss+0x92b8): first defined here
/usr/bin/ld: src/timer.o:(.bss+0x14): multiple definition of `frame_count'; src/main.o:(.bss+0x92bc): first defined here
/usr/bin/ld: src/timer.o:(.bss+0x10): multiple definition of `fps'; src/main.o:(.bss+0x92b8): first defined here
/usr/bin/ld: src/timer.o:(.bss+0xc): multiple definition of `logic_count'; src/main.o:(.bss+0x92b4): first defined here
/usr/bin/ld: src/timer.o:(.bss+0x8): multiple definition of `lps'; src/main.o:(.bss+0x92b0): first defined here
/usr/bin/ld: src/timer.o:(.bss+0x4): multiple definition of `cycle_count'; src/main.o:(.bss+0x92ac): first defined here
/usr/bin/ld: src/timer.o:(.bss+0x0): multiple definition of `game_count'; src/main.o:(.bss+0x92a8): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:28: alex4] Error 1
make: Leaving directory '/var/tmp/pamac-build-corey/alex4/src/alex4-1.2.1'
==> ERROR: A failure occurred in build().
    Aborting...

carstene1ns commented on 2019-06-02 16:44 (UTC)

@archius: Sorry for the late reply. This should be fixed in the new version.

archius commented on 2019-04-28 08:02 (UTC)

This package fails to build, as the functions fmul, fsin and fcos have been renamed to fixmul, fixsin und fixcos in order to avoid conflicts with libc, see https://liballeg.org/stabledocs/en/api.html -> "Deprecated materials".

I suggest to replace them in the affected files via changed build-section:

build() { cd $pkgname-${pkgver%.*}-alpha/src sed -i 's/fmul/fixmul/g' shooter.c main.c sed -i 's/fsin/fixsin/g' shooter.c main.c sed -i 's/fcos/fixcos/g' shooter.c main.c make PREFIX=/usr }

carstene1ns commented on 2017-11-01 00:45 (UTC)

This now works again using the `aldumb` glue package. I have switched the source now to my personal fork, where I applied all compatibility patches I found.

NoSuck commented on 2017-10-26 05:23 (UTC)

This package fails to build, as Community's dumb package no longer provides support for Allegro 4. Discussion is taking place here: https://github.com/kode54/dumb/issues/75#issuecomment-339353093

carstene1ns commented on 2014-01-08 15:20 (UTC)

Updated for proper pacman 4.1 support: - patching inside prepare()

commented on 2012-06-22 12:28 (UTC)

I've successfully migrated from Arch to Funtoo, so I'm orphaning all my AUR packages. Please treat them well, for I might return :) To the prospective adopter: As I've already said below, the source code of this game hasn't changed since 2003 (!), and I doubt it will ever do. Fortunately, it's still maintained and patched by both Fedora and Debian developers. More of their patches might be needed in the future, though...

commented on 2012-02-15 11:33 (UTC)

Updated, and changed the description as requested. Thanks!

commented on 2012-02-15 11:28 (UTC)

Hmmm... For some reason, the change suggested works now, even with the "defective" dumb from [extra]. That's weird. It didn't worked yesterday. Oh well. Updated. No need to wait for a fixed dumb now.

commented on 2012-02-14 21:12 (UTC)

While waiting for the fixed version of dumb, I changed the description as requested :)

commented on 2012-02-14 21:10 (UTC)

While waiting for the fixed version of dumb, I changed the description as requested :)

commented on 2012-02-14 21:00 (UTC)

The problem comes from dumb in [community]. It needs to be rebuilt taking into account the new behaviour of ld in binutils 2.22. Here's an explanation: https://bbs.archlinux.org/viewtopic.php?id=135319 I've filed a bug report: https://bugs.archlinux.org/task/28430

commented on 2012-02-14 16:12 (UTC)

Linker error: /usr/bin/ld: /usr/lib/libdumb.a(resample.o): undefined reference to symbol 'floor@@GLIBC_2.0' /usr/bin/ld: note: 'floor@@GLIBC_2.0' is defined in DSO /lib/libm.so.6 so try adding it to the linker command line You need to replace 'make' line in the PKGBUILD on: LDFLAGS=-lm make PREFIX=/usr Also, could you please change the description to: "Help Alex the Allegator <...>" It would be easier for users to find this game by keyword 'allegator'.

commented on 2011-05-29 09:14 (UTC)

On the other hand, all that unnecessary patching is The Debian Way, not The Arch Way! Here's a more Arch-like PKGBUILD. Only unix-port.patch and allegro-4.2.patch are applied. The readme.txt wasn't really necessary, either, so I removed it. I also moved alex4.ini from /usr/share/doc/alex4 to /usr/share/alex4 (and got rid of /usr/share/doc/alex4).

commented on 2011-05-28 08:53 (UTC)

Good news, everyone! With the new Allegro (4.4.2) from extra, the snd-pcm-oss workaround is no longer needed!

commented on 2011-05-28 08:51 (UTC)

Good news, everyone! With the new allegro (4.4.2) from extra, snd-pcm-oss is no longer needed for sound to work!

commented on 2011-05-27 10:39 (UTC)

Decided to include the readme.txt file, too. I've realized that, strictly speaking, only unix-port.patch and allegro-4.2.patch are _really_ needed. But the others patches are also nice to have (best practices, etc.), IMHO, so they stay.

commented on 2011-05-26 15:55 (UTC)

By the way, if you find the game has no sound, and you're running testing (kernel 2.6.39, udev 170), make sure to include snd-pcm-oss in the MODULES array of rc.conf. If you don't want to reboot, just modprobe it. Many Allegro-based games seem to need this module for sound to work, actually...

commented on 2011-05-26 15:52 (UTC)

By the way, if you find the game has no sound, and you're running testing (kernel 2.6.39, udev 170), make sure to include snd-pcm-oss in the MODULES array of rc.conf. If you don't want to reboot, just modprobe it. This works for other Allegro-based games, too!

commented on 2011-05-26 15:51 (UTC)

By the way, if you find the game has no sound, and you're running testing (kernel 2.6.39, udev 170), make sure to include snd-pcm-oss in the MODULES array of rc.conf. If you don't want to reboot just yet, just modprobe it. This works for other Allegro-based games, too!

commented on 2011-05-26 12:04 (UTC)

Many thanks to the Fedora and Debian developers for the (many!) patches needed to make this compile in a modern Linux distro... I mean, the source code is from 2003, and it doesn't even come with a Makefile... Anyway, enjoy this oldschool Gameboy-style platformer!