[SVN] Connot compile on Arch Linux

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).
Post Reply
Majki-Fajki
Explorer
Explorer
Posts: 10
Joined: Sun May 23, 2010 11:00 am

[SVN] Connot compile on Arch Linux

Post by Majki-Fajki »

Hello

I'm on Arch Linux, trying to compile SVN (using AUR)

Code: Select all

==> Setting up build environment...
==> Starting make...
patching file boost/1_35/boost/mpl/apply.hpp
patching file boost/1_35/boost/mpl/apply_wrap.hpp
patching file boost/1_35/boost/mpl/aux_/full_lambda.hpp
patching file boost/1_35/boost/mpl/aux_/numeric_op.hpp
patching file boost/1_35/boost/mpl/bind.hpp
patching file src/cmd/basecomputer.cpp
Hunk #1 FAILED at 3142.
1 out of 1 hunk FAILED -- saving rejects to file src/cmd/basecomputer.cpp.rej
==> BŁĄD: Budowanie nie powiodło się.
Anybody encoutered this?
CLoneWolf
ISO Party Member
ISO Party Member
Posts: 443
Joined: Thu May 01, 2008 5:14 pm

Re: [SVN] Connot compile on Arch Linux

Post by CLoneWolf »

It looks like the boost it's trying to use is the one shipped with VS, which is outdated.
Check this for the current best practice under Linux; before applying those steps, install the newest boost available for your distro.

HTH
Majki-Fajki
Explorer
Explorer
Posts: 10
Joined: Sun May 23, 2010 11:00 am

Re: [SVN] Connot compile on Arch Linux

Post by Majki-Fajki »

Didn't help.


I have boost 1.41.0 and I have used
./configure --enable-release --disable-debug --enable-cubemap --with-boost=system
CLoneWolf
ISO Party Member
ISO Party Member
Posts: 443
Joined: Thu May 01, 2008 5:14 pm

Re: [SVN] Connot compile on Arch Linux

Post by CLoneWolf »

What does the src/cmd/basecomputer.cpp.rej file say?
Majki-Fajki
Explorer
Explorer
Posts: 10
Joined: Sun May 23, 2010 11:00 am

Re: [SVN] Connot compile on Arch Linux

Post by Majki-Fajki »

Code: Select all

--- src/cmd/basecomputer.cpp	2009-07-17 20:59:40.166058029 +0200
+++ src/cmd/basecomputer.cpp	2009-07-17 21:06:02.696008744 +0200
@@ -3142,7 +3142,7 @@
 	return s1.st_mtime - s2.st_mtime;
 }
 
-#if defined(_WIN32) && !defined(__CYGWIN__)
+#if (__GLIBC__>2 || __GLIBC_MINOR__>=10) || (defined(_WIN32) && !defined(CYGWIN)) 
 typedef int (*scancompare) ( const struct dirent **v1, const struct dirent **v2 );
 #else
 typedef int (*scancompare) ( const void *v1, const void *v2 );
CLoneWolf
ISO Party Member
ISO Party Member
Posts: 443
Joined: Thu May 01, 2008 5:14 pm

Re: [SVN] Connot compile on Arch Linux

Post by CLoneWolf »

Hmm... searching the forum for dirent shows 2 relevant threads, but they're about its usage once in the code; your error is very weird, as the patching process refuses to update the code; does the patching process make further checks that may fail for some reason? Klauss, you there? :roll:
Majki-Fajki
Explorer
Explorer
Posts: 10
Joined: Sun May 23, 2010 11:00 am

Re: [SVN] Connot compile on Arch Linux

Post by Majki-Fajki »

If this is some help
http://aur.archlinux.org/packages.php?ID=16927

There you will find pkgbulid and so on.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: [SVN] Connot compile on Arch Linux

Post by klauss »

You could post here the contests of the .rej file patch generates, which says exactly what went wrong with the patching process.

In any case, you could try cmake. It may have better luck.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
Majki-Fajki
Explorer
Explorer
Posts: 10
Joined: Sun May 23, 2010 11:00 am

Re: [SVN] Connot compile on Arch Linux

Post by Majki-Fajki »

Which file should I post?

I'm not a programmer, it's difficult to me to find right file:)
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: [SVN] Connot compile on Arch Linux

Post by klauss »

Majki-Fajki wrote:Which file should I post?

I'm not a programmer, it's difficult to me to find right file:)

Code: Select all

Hunk #1 FAILED at 3142.
1 out of 1 hunk FAILED -- saving rejects to file src/cmd/basecomputer.cpp.rej
So...
src/cmd/basecomputer.cpp.rej
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
Majki-Fajki
Explorer
Explorer
Posts: 10
Joined: Sun May 23, 2010 11:00 am

Re: [SVN] Connot compile on Arch Linux

Post by Majki-Fajki »

I posted it already in this thread :)
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: [SVN] Connot compile on Arch Linux

Post by klauss »

Majki-Fajki wrote:I posted it already in this thread :)
Hm... I seem to have missed it...
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
Post Reply