Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Armagetronad 0.3.0-r1 compile failure
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
krisse
Guru
Guru


Joined: 15 Mar 2005
Posts: 324
Location: Sweden

PostPosted: Sat Jan 05, 2008 10:16 am    Post subject: Armagetronad 0.3.0-r1 compile failure Reply with quote

Trying to install armagetronad 0.3.0-r1, ebuild from Armagetronad overlay.

Problem one: package needs SDL mixer installed. Solved Added media-libs/sd-mixer to deps in ebuild; it got installed and armagetron config-check could continue.

Problem two: Now I get the following error:
Code:
checking for FT_Free in -lfreetype... no
configure: error: You need the library freetype to compile Armagetron. Read the file doc/install_linux.html.
Thing is, that freetype is installed (2.3.5-r2). Tried reinstalling, but no change. I don't know what, if not media-libs/freetype, that the error might be referring to.

Any ideas?
Back to top
View user's profile Send private message
krisse
Guru
Guru


Joined: 15 Mar 2005
Posts: 324
Location: Sweden

PostPosted: Tue Jan 08, 2008 5:24 pm    Post subject: Reply with quote

*bump* :oops:
Back to top
View user's profile Send private message
tarpman
Veteran
Veteran


Joined: 04 Nov 2004
Posts: 1083
Location: Victoria, BC, Canada

PostPosted: Tue Jan 08, 2008 10:09 pm    Post subject: Reply with quote

I've had this problem with the ~x86 armagetronad ebuilds for as long as I can remember. My solution:
/etc/portage/package.keywords:
games-action/armagetronad -~x86

_________________
Saving the world, one kilobyte at a time.
Back to top
View user's profile Send private message
Pythagoras1
Guru
Guru


Joined: 29 Jul 2002
Posts: 351
Location: trailer park Vienna, Austria

PostPosted: Thu Mar 27, 2008 8:39 pm    Post subject: Reply with quote

current unstable build still complains about missing freetype.
_________________
Gobo, listen to reason. We wouldn't be in the Land of Having Blown Up if we didn't blow up now would we?!? ~Wembley
Back to top
View user's profile Send private message
krisse
Guru
Guru


Joined: 15 Mar 2005
Posts: 324
Location: Sweden

PostPosted: Fri Mar 28, 2008 1:20 pm    Post subject: Reply with quote

Built 0.3 from armagetron overlay a week or so ago; no problems. Figured it just resolved itself. :-S
Back to top
View user's profile Send private message
Pythagoras1
Guru
Guru


Joined: 29 Jul 2002
Posts: 351
Location: trailer park Vienna, Austria

PostPosted: Sun Mar 30, 2008 9:55 pm    Post subject: Reply with quote

checking for FT_Render_Glyph in -lftgl... yes
checking for location of FTGL includes... /usr/include/FTGL
checking for FT_Free in -lfreetype... no
configure: error: You need the library freetype to compile Armagetron. Read the file doc/install_linux.html.

* ERROR: games-action/armagetronad-0.3.0-r1 failed.

Synced right now from the armagetron overlay. It still checks for FT_Free which is not callable anymore in recent Freetype versions.
_________________
Gobo, listen to reason. We wouldn't be in the Land of Having Blown Up if we didn't blow up now would we?!? ~Wembley
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2939
Location: Germany

PostPosted: Fri Apr 11, 2008 4:03 pm    Post subject: Reply with quote

Thanks for the -~x86 keywords workaround.
Back to top
View user's profile Send private message
fkeaz
n00b
n00b


Joined: 02 Jun 2007
Posts: 3

PostPosted: Fri Apr 18, 2008 12:02 am    Post subject: compile failure Reply with quote

Hi i'm getting the same, have tried emerging arma with -~amd64 and same results.

# emerge -av armagetronad
Code:

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] games-action/armagetronad-0.3.0-r1  USE="opengl -debug -dedicated -moviepack -moviesounds" LINGUAS="-de -en -en_GB -en_US -es -fr" 0 kB [1]

Total: 1 package (1 new), Size of downloads: 0 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/portage/local/layman/armagetron

Would you like to merge these packages? [Yes/No]

 * econf: updating armagetronad-0.3.0/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating armagetronad-0.3.0/config.sub with /usr/share/gnuconfig/config.sub
/var/tmp/portage/games-action/armagetronad-0.3.0-r1/work/armagetronad-0.3.0/configure --prefix=/usr --host=x86_64-pc-linux-gnu
 --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --prefix=/u
sr/games --libdir=/usr/games/lib64 --datadir=/usr/share/games --sysconfdir=/etc/games --localstatedir=/var/games --disable-mul
tiver --disable-binreloc --docdir /usr/share/doc/armagetronad-0.3.0-r1/ --disable-master --enable-main --disable-krawall --ena
ble-sysinstall --disable-useradd --enable-etc --disable-restoreold --disable-games --enable-uninstall=emerge --clean =games-ac
tion/armagetronad-0.3.0-r1 --enable-glout --disable-initscripts --enable-desktop --build=x86_64-pc-linux-gnu
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether ln -s works... yes
checking for m4... true
checking for style of include used by make... GNU
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking dependency style of x86_64-pc-linux-gnu-gcc... none
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for x86_64-pc-linux-gnu-g++... x86_64-pc-linux-gnu-g++
checking whether we are using the GNU C++ compiler... yes
checking whether x86_64-pc-linux-gnu-g++ accepts -g... yes
checking dependency style of x86_64-pc-linux-gnu-g++... none
checking how to run the C++ preprocessor... x86_64-pc-linux-gnu-g++ -E
checking for gmake... yes
checking for bash... yes
checking whether make understands sinclude... yes
checking for socklen_t... yes
checking for X... libraries /usr/lib64, headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for xmlParseMemory in -lxml2... yes
checking for xmlParserInputBufferCreateFilenameDefault... yes
checking for exp in -lm... yes
checking whether SDL is installed... yes, 'sdl-config --libs' gave -lSDL -lpthread
checking what name the SDL library is know under... SDL
checking for SDL_Init in -lSDL... yes
checking for Mix_OpenAudio in -lSDL_mixer... yes
checking for glVertex3f in -lGL... yes
checking for gluBuild3DMipmaps in -lGLU... yes
checking for FT_Render_Glyph in -lftgl... yes
checking for location of FTGL includes... /usr/include/FTGL
checking for FT_Free in -lfreetype... no
configure: error: You need the library freetype to compile Armagetron. Read the file doc/install_linux.html.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/games-action/armagetronad-0.3.0-r1/work/build-client/config.log
 *
 * ERROR: games-action/armagetronad-0.3.0-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2641:  Called aabuild 'client' '--enable-glout' '--disable-initscripts' '--enable-desktop'
 *             environment, line  246:  Called egamesconf '--disable-multiver' '--disable-binreloc' '--docdir' '/usr/share/doc
/armagetronad-0.3.0-r1/' '--disable-master' '--enable-main' '--disable-krawall' '--enable-sysinstall' '--disable-useradd' '--e
nable-etc' '--disable-restoreold' '--disable-games' '--enable-uninstall=emerge --clean =games-action/armagetronad-0.3.0-r1' '-
-enable-glout' '--disable-initscripts' '--enable-desktop'
 *             environment, line  754:  Called econf '--prefix=/usr/games' '--libdir=/usr/games/lib64' '--datadir=/usr/share/g
ames' '--sysconfdir=/etc/games' '--localstatedir=/var/games' '--disable-multiver' '--disable-binreloc' '--docdir' '/usr/share/
doc/armagetronad-0.3.0-r1/' '--disable-master' '--enable-main' '--disable-krawall' '--enable-sysinstall' '--disable-useradd' '
--enable-etc' '--disable-restoreold' '--disable-games' '--enable-uninstall=emerge --clean =games-action/armagetronad-0.3.0-r1'
 '--enable-glout' '--disable-initscripts' '--enable-desktop'
 *               ebuild.sh, line  513:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *  The die message:
 *   econf failed
 *
 * 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/games-action/armagetronad-0.3.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-action/armagetronad-0.3.0-r1/temp/environment'.
 *

 * Messages for package games-action/armagetronad-0.3.0-r1:

 * Please note that this is an EXPERIMENTAL RELEASE of Armagetron Advanced.
 * It has known bugs, and is not meant to be well-tested or stable.
 *                     PLAY AT YOUR OWN RISK
 *
 * ERROR: games-action/armagetronad-0.3.0-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2641:  Called aabuild 'client' '--enable-glout' '--disable-initscripts' '--enable-desktop'
 *             environment, line  246:  Called egamesconf '--disable-multiver' '--disable-binreloc' '--docdir' '/usr/share/doc
/armagetronad-0.3.0-r1/' '--disable-master' '--enable-main' '--disable-krawall' '--enable-sysinstall' '--disable-useradd' '--e
nable-etc' '--disable-restoreold' '--disable-games' '--enable-uninstall=emerge --clean =games-action/armagetronad-0.3.0-r1' '-
-enable-glout' '--disable-initscripts' '--enable-desktop'
 *             environment, line  754:  Called econf '--prefix=/usr/games' '--libdir=/usr/games/lib64' '--datadir=/usr/share/g
ames' '--sysconfdir=/etc/games' '--localstatedir=/var/games' '--disable-multiver' '--disable-binreloc' '--docdir' '/usr/share/
doc/armagetronad-0.3.0-r1/' '--disable-master' '--enable-main' '--disable-krawall' '--enable-sysinstall' '--disable-useradd' '
--enable-etc' '--disable-restoreold' '--disable-games' '--enable-uninstall=emerge --clean =games-action/armagetronad-0.3.0-r1'
 '--enable-glout' '--disable-initscripts' '--enable-desktop'
 *               ebuild.sh, line  513:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *  The die message:
 *   econf failed
 *
 * 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/games-action/armagetronad-0.3.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-action/armagetronad-0.3.0-r1/temp/environment'.
 *


/var/tmp/portage/games-action/armagetronad-0.3.0-r1/temp/build.log is the same as above

I HAVE THIS INSTALLED

emerge --info
Code:

Portage 2.1.5_rc4 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.7-r2, 2.6.24-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r5 x86_64 AMD Phenom(tm) 8400 Triple-Core Processor
Timestamp of tree: Thu, 17 Apr 2008 22:45:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r6, 2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.12
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://ftp.gtlib.gatech.edu/pub/gentoo http://www.gtlib.gatech.edu/pub/gentoo ftp://mirror.iawnet.sandia.gov/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://cudlug.cudenver.edu/gentoo/ http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/ http://gentoo.mirrors.tds.net/gentoo ftp://gentoo.mirrors.tds.net/gentoo http://gentoo.netnitco.net ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ http://mirror.espri.arizona.edu/gentoo/ http://open-systems.ufl.edu/mirrors/gentoo http://gentoo.llarian.net/ ftp://gentoo.llarian.net/pub/gentoo http://gentoo.binarycompass.org http://mirror.datapipe.net/gentoo ftp://mirror.datapipe.net/gentoo http://prometheus.cs.wmich.edu/gentoo http://mirror.usu.edu/mirrors/gentoo/ http://mirror.mcs.anl.gov/pub/gentoo/ "
LDFLAGS=""
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/armagetron"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acl alsa amd64 bash-completion berkdb bzip2 chroot cli cracklib crypt css cups dbus dga dri dv dvdr dvdread encode exif fbcon ffmpeg firefox flac fortran fping gdbm gif gpac gpm gstreamer gtk hal iconv ipod ipv6 isdnlog jack jpeg kde kdehiddenvisibility lame libcaca libsamplerate libwww logitech-mouse logrotate md5sum midi mmx mng mp3 mp4 mpeg mplayer mudflap ncurses nls nptl nptlonly nvidia ogg opengl openmp oss pam pcre pdf perl png pppd python qt3 qt4 quicktime readline reflection samba sdl session sndfile sox spell spl sqlite3 sse sse2 ssl subtitles svg syslog tcpd tiff truetype unicode v4l vcd vorbis wavpack wma wmf x264 xcomposite xine xinerama xml xorg xv xvid xvmc yv12 zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x    ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3    trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


and
emerge l freetype
[ Searching for package 'freetype' in all categories among: ]
* installed packages
[I--] [ ] media-libs/freetype-2.3.5-r2 (2)
Back to top
View user's profile Send private message
krisse
Guru
Guru


Joined: 15 Mar 2005
Posts: 324
Location: Sweden

PostPosted: Fri Apr 18, 2008 7:04 am    Post subject: Re: compile failure Reply with quote

fkeaz wrote:
emerge l freetype
[ Searching for package 'freetype' in all categories among: ]
* installed packages
[I--] [ ] media-libs/freetype-2.3.5-r2 (2)
I compiled both live and experimental-live the other day with no problems. One day it magically worked. :) I thought maybe the ebuilds had been changed.

But that doesn't help much, does it...

I seem to also have got freetype 1.3.1-r5 installed. Have you? If not, would it help?
Back to top
View user's profile Send private message
Luke-Jr
n00b
n00b


Joined: 28 Apr 2003
Posts: 22
Location: Jabber: luke@dashjr.org

PostPosted: Sat Apr 19, 2008 8:25 pm    Post subject: Reply with quote

Our configure script was checking for freetype using an unsupported function (FT_Free) that was removed in recent versions. This was fixed in trunk after 0.3.0 was released.

I have added a patch to the 0.3.0-r1 ebuild fixing this problem. Please test and verify.

Thanks,

Luke
Back to top
View user's profile Send private message
tarpman
Veteran
Veteran


Joined: 04 Nov 2004
Posts: 1083
Location: Victoria, BC, Canada

PostPosted: Mon Apr 21, 2008 2:37 am    Post subject: Reply with quote

Luke-Jr wrote:
I have added a patch to the 0.3.0-r1 ebuild fixing this problem. Please test and verify.

A few issues preventing build:
  • Typo in the ebuild - the script is bootstrap.sh, not bootstrap.
  • Missing a DEPEND on media-libs/sdl-mixer.
  • Should use eautoreconf instead of bootstrap.sh.
  • _AC_SRCPATHS has been renamed to _AC_SRCDIRS in recent autotools versions; this can be fixed by a quick sed in the ebuild.

Here is a patch against current 0.3.0-r1 (svn rev 8432) that fixes the above problems:
Code:
--- armagetronad-0.3.0-r1.ebuild.orig   2008-04-20 19:31:47.000000000 -0700
+++ armagetronad-0.3.0-r1.ebuild   2008-04-20 19:35:19.000000000 -0700
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: /cvsroot/armagetronad/armagetronad_build/gentoo/client.ebuild,v 1.24 2006/05/05 13:55:13 luke-jr Exp $
 
-inherit flag-o-matic eutils games
+inherit flag-o-matic eutils games autotools
 
 DESCRIPTION="3D light cycles like in the movie TRON"
 HOMEPAGE="http://armagetronad.net/"
@@ -38,6 +38,7 @@
    virtual/opengl
    media-libs/libsdl
    media-libs/sdl-image
+   media-libs/sdl-mixer
    media-libs/jpeg
    media-libs/libpng
    media-libs/ftgl
@@ -90,7 +91,8 @@
    unpack ${A}
    cd "${S}"
    epatch "${FILESDIR}/030_fix-freetype-check.patch"
-   ./bootstrap || die 'failed to rebootstrap'
+   sed -e 's/_AC_SRCPATHS/_AC_SRCDIRS/g' -i "${S}"/accustomdir.m4
+   eautoreconf
 }
 
 aabuild() {

_________________
Saving the world, one kilobyte at a time.
Back to top
View user's profile Send private message
Luke-Jr
n00b
n00b


Joined: 28 Apr 2003
Posts: 22
Location: Jabber: luke@dashjr.org

PostPosted: Mon Apr 21, 2008 2:50 am    Post subject: Reply with quote

Applied, try now. Did that just break people with older autoconf? Is there a better way to fix it to work either way?
Back to top
View user's profile Send private message
tarpman
Veteran
Veteran


Joined: 04 Nov 2004
Posts: 1083
Location: Victoria, BC, Canada

PostPosted: Mon Apr 21, 2008 4:32 am    Post subject: Reply with quote

It seems the issue has come up before, but that it was fixed 'properly'. The change from _AC_SRCPATHS to _AC_SRCDIRS is in autoconf-2.60, which is stable in Gentoo and Debian. I don't know about other distros.

This diff shows the patch Z-man applied to the 0.2.8 branch. I'm not sure why it's not in the current code. If you were to apply it to the current branch it would fix things properly, I think; you could then remove the sed command from the ebuild.
_________________
Saving the world, one kilobyte at a time.
Back to top
View user's profile Send private message
Luke-Jr
n00b
n00b


Joined: 28 Apr 2003
Posts: 22
Location: Jabber: luke@dashjr.org

PostPosted: Mon Apr 21, 2008 4:58 am    Post subject: Reply with quote

Replaced the sed with the patch.
Back to top
View user's profile Send private message
tarpman
Veteran
Veteran


Joined: 04 Nov 2004
Posts: 1083
Location: Victoria, BC, Canada

PostPosted: Mon Apr 21, 2008 6:24 am    Post subject: Reply with quote

Works here. Thanks for your time.
_________________
Saving the world, one kilobyte at a time.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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