Author Topic: gentoo - ebuild problem  (Read 879 times)

dustfinger

  • Wayfarer
  • *
  • Posts: 5
    • View Profile
gentoo - ebuild problem
« on: October 24, 2004, 06:44:07 pm »
When I emerge planeshift all dependencies install no problem.  Except planeshift itself.  Here is where things fail.

Quote

In file included from src/updater/httpclient/updater.cpp:32:
src/updater/httpclient/download.h:55: error: syntax error before `*\' token

g++ -c -o ./out/linuxx86/updater.o -I/opt/crystal/include -D__CRYSTAL_SPACE__ -Wall -Wno-unknown-pragmas -fno-exceptions -mcpu=pentiumpro -march=i686  -O3 -fomit-frame-pointer -ffast-math  -I/opt/crystal/include -fexceptions   -Isrc/updater/httpclient -I. -I./include -I./src/common -I./src/client -I./src/server src/updater/httpclient/updater.cpp

...failed C++ ./out/linuxx86/updater.o ...
C++ ./out/linuxx86/updaterconfig.o
...skipped updater for lack of updater.o...
...failed updating 1 target(s)...
...skipped 1 target(s)...
...updated 159 target(s)...

!!! ERROR: games-rpg/planeshift-0.2.010-r1 failed.
!!! Function src_compile, Line 41, Exitcode 1
!!! (no error message)


How do I fix this so that I can play this exciting new game ;-)

dustfinger.

theRealGorbulas

  • Hydlaa Resident
  • *
  • Posts: 140
    • View Profile
(No subject)
« Reply #1 on: October 25, 2004, 09:23:20 am »
What version of GCC do you have(it works fine for me)? Are you using a modified client? I might look at it, but updater isn\'t important. Remove the \"-q\" option from the \"jam\" in your ebuild and it should work fine.

dustfinger

  • Wayfarer
  • *
  • Posts: 5
    • View Profile
(No subject)
« Reply #2 on: October 25, 2004, 08:15:10 pm »
I am using gcc (GCC) 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)

I will try to remove the -q option and see if that fixes things.

Thanks for your input.

-- EDIT --
The following is my ebuild for planeshift
Code: [Select]

inherit eutils games

DESCRIPTION=\"virtual fantasy world MMORPG\"
HOMEPAGE=\"http://www.planeshift.it/\"
SRC_URI=\"mirror://gentoo/distfiles/${P}.tar.bz2\"

LICENSE=\"GPL-2 | Planeshift\"
SLOT=\"0\"
KEYWORDS=\"x86 ppc\"
IUSE=\"\"

# Doesn\'t like the new cs-config (bug #54659)
RDEPEND=\"net-misc/curl
                dev-games/cel\"
DEPEND=\"${RDEPEND}
        >=sys-apps/sed-4\"

S=\"${WORKDIR}/${PN}\"

export PLANESHIFT_PREFIX=${PLANESHIFT_PREFIX:-${GAMES_PREFIX_OPT}/${PN}}
export CRYSTAL_PREFIX=${CRYSTAL_PREFIX:-${GAMES_PREFIX_OPT}/crystal}
export CEL_PREFIX=${CEL_PREFIX:-${CRYSTAL_PREFIX}}

src_unpack() {
        unpack ${A}
        epatch \"${FILESDIR}/${P}-fix-cast.diff\"
}

src_compile() {
        env \\
                -uCEL \\
                -uCSCONFPATH \\
                CEL=${CEL_PREFIX} \\
                CSCONFPATH=${CEL_PREFIX} \\
                ./configure --prefix=${PLANESHIFT_PREFIX} --with-cs-prefix=${CRYSTA$
        jam || die
}

src_install() {
        rm -rf src mk config* ac* Jam* install-sh mkinstalldirs \\
                missing autogen.sh depcomp Makefile.* ltmain.sh \\
                out support include

        dodir ${PLANESHIFT_PREFIX}
        mv * ${D}/${PLANESHIFT_PREFIX}

        dogamesbin ${FILESDIR}/planeshift
        sed -i \\
                -e \"s:GENTOO_CRYSTAL_DIR:${CRYSTAL_PREFIX}:\" \\
                -e \"s:GENTOO_CEL_DIR:${CRYSTAL_PREFIX}:\" \\
                -e \"s:GENTOO_PLANESHIFT_DIR:${PLANESHIFT_PREFIX}:\" \\
                \"${D}${GAMES_BINDIR}/planeshift\" \\
                || die \"sed ${D}${GAMES_BINDIR}/planeshift failed\"

        prepgamesdirs
}


I don\'t see a -q option for jam?  Actually I don\'t see a -q option at all.
------------

dustfinger.
« Last Edit: October 25, 2004, 08:21:56 pm by dustfinger »

Wampas

  • Wayfarer
  • *
  • Posts: 2
    • View Profile
(No subject)
« Reply #3 on: October 25, 2004, 09:47:14 pm »
I have the same issue, with last version of GCC (new install+updated all gentoo packages).

I get same errors as you do, with

#emerge planeshift.

I looked on google for anything looking like the errors i get and found nothing. Arrrhg

Prolly need to try with the .tar.gz

EDIT : and of course, like you all dependencies = no problem. Did the etc-update too etc.. works fine, appart emerge planeshift that spams me with something saying csCLList.h is deprecated or something. Then i get same errors than you at end.
« Last Edit: October 25, 2004, 09:49:13 pm by Wampas »

theRealGorbulas

  • Hydlaa Resident
  • *
  • Posts: 140
    • View Profile
(No subject)
« Reply #4 on: October 26, 2004, 12:27:20 am »
oops
Not -q remove the \"|| die\" part. That was what I was doing.

dustfinger

  • Wayfarer
  • *
  • Posts: 5
    • View Profile
(No subject)
« Reply #5 on: October 26, 2004, 01:29:56 am »
Thanks theRealGorbulas,

That worked perfectly.

So all that means is that I won\'t be able to use the automatic updater correct?

dustfinger.

theRealGorbulas

  • Hydlaa Resident
  • *
  • Posts: 140
    • View Profile
(No subject)
« Reply #6 on: October 26, 2004, 02:03:09 am »
The automatic updater is useless for Linux clients(I think). There haven\'t been any upgrades that I have gotten through the updater under Linux(I can spawn OK and everything).

Uyaem

  • Hydlaa Notable
  • *
  • Posts: 747
    • View Profile
(No subject)
« Reply #7 on: October 26, 2004, 02:30:04 pm »
Quote
Originally posted by theRealGorbulas
The automatic updater is useless for Linux clients(I think).


You are correct. It will work fine, but merely clog your hard-drive with DLLs that you have no use for under linux. ;)
The internet is "the terrorists'" most important weapon, they say.
Wrong.
Fear is their most important weapon.
Ours is our freedom.