Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 69928 - emerge: games-rpg/planeshift-0.2.010-r1 failed
Summary: emerge: games-rpg/planeshift-0.2.010-r1 failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-03 03:20 UTC by chrimea
Modified: 2011-09-14 20:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to solve the wrong header inclusion in src/updater/httpclient/download.h, line 22 (planeshift-0.2.010-fix-curl.diff,348 bytes, patch)
2004-12-10 15:53 UTC, Anthony Le Mansec
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description chrimea 2004-11-03 03:20:47 UTC
when I try to emerge planeshift It compiles a while and then it gives the following error:

C++ ./out/linuxx86/updater.o 
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 <src!updater!httpclient>updater.o...
...failed updating 1 target(s)...
...skipped 1 target(s)...
...updated 157 target(s)...

!!! ERROR: games-rpg/planeshift-0.2.010-r1 failed.
!!! Function src_compile, Line 41, Exitcode 1
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


Reproducible: Always
Steps to Reproduce:
1. emerge -k planeshift

Actual Results:  
It starts to compile the game and after a while I get the errrors described above

Expected Results:  
It should have compiled without an error and build the game successfully

I looked into the problem myself and it seems that the directory "curl" is
missing from the source tree. Some files from the curl directory get included
but they are not found. At least this is what I could make of it.
Comment 1 Martin Holzhauer 2004-11-10 01:41:22 UTC
i have this problem too

any new informations about this bug?
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2004-11-10 02:18:24 UTC
reopen with output from emerge --info please.
Comment 3 Carsten Milkau 2004-12-08 04:31:23 UTC
This is caused by a code error in src/updater/httpclient/download.h, line 22:

#include <curl/types.h>

This is wrong because type CURL is defined in curl/curl.h but not in curl/types.h. A simple patch sholud solve the problem.

If you are the bug owner, please reopen it, as I am neither permitted to reopen nor to mark the bug as verified.
Comment 4 Anthony Le Mansec 2004-12-10 15:53:29 UTC
Created attachment 45706 [details, diff]
Patch to solve the wrong header inclusion in src/updater/httpclient/download.h, line 22

Small patch as suggested by Carsten Milkau here, in bugzilla, and
Ginsu_Squirrel on #gentoo @irc.freenode.net.

To use this patch :

1) copy the attached patch to
/usr/portage/games-rpg/planeshift/files/planeshift-0.2.010-fix-curl.diff

2) edit
/usr/portage/games-rpg/planeshift/planeshift-0.2.010-r1.ebuild
and add 
  epatch "${FILESDIR}/${P}-fix-curl.diff"
on line 32.

Re-emerge planeshift, and this time it will work.
(Sorry for the way i posted this patch : not yet familiar with gentoo, i still
don't know the way to post patches...)
Comment 5 Anthony Le Mansec 2004-12-10 16:01:04 UTC
Comment on attachment 45706 [details, diff]
Patch to solve the wrong header inclusion in src/updater/httpclient/download.h, line 22

--- planeshift/src/updater/httpclient/download.h	2004-12-11
01:04:51.728622224 +0100
+++ planeshift/src/updater/httpclient/download.h	2004-12-11
01:05:02.994909488 +0100
@@ -19,7 +19,7 @@
 #ifndef __UPDATER_DOWNLOAD_H__
 #define __UPDATER_DOWNLOAD_H__

-#include <curl/types.h>
+#include <curl/curl.h>
 #include "error.h"

 namespace updater
Comment 6 chrimea 2004-12-16 02:28:31 UTC
thanx for your help
Comment 7 Mr. Bones. (RETIRED) gentoo-dev 2011-09-14 20:40:10 UTC
clean up bug list after bugzilla update