Page 1 of 1

[SVN] Connot compile on Arch Linux

PostPosted: Thu May 27, 2010 12:12 pm
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?

Re: [SVN] Connot compile on Arch Linux

PostPosted: Thu May 27, 2010 3:15 pm
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

Re: [SVN] Connot compile on Arch Linux

PostPosted: Sat May 29, 2010 5:38 pm
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

Re: [SVN] Connot compile on Arch Linux

PostPosted: Sat May 29, 2010 6:11 pm
by CLoneWolf
What does the src/cmd/basecomputer.cpp.rej file say?

Re: [SVN] Connot compile on Arch Linux

PostPosted: Sat May 29, 2010 6:28 pm
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 );

Re: [SVN] Connot compile on Arch Linux

PostPosted: Sat May 29, 2010 7:29 pm
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:

Re: [SVN] Connot compile on Arch Linux

PostPosted: Sat May 29, 2010 9:55 pm
by Majki-Fajki
If this is some help
http://aur.archlinux.org/packages.php?ID=16927

There you will find pkgbulid and so on.

Re: [SVN] Connot compile on Arch Linux

PostPosted: Mon May 31, 2010 2:32 pm
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.

Re: [SVN] Connot compile on Arch Linux

PostPosted: Mon May 31, 2010 7:45 pm
by Majki-Fajki
Which file should I post?

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

Re: [SVN] Connot compile on Arch Linux

PostPosted: Mon May 31, 2010 8:16 pm
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

Re: [SVN] Connot compile on Arch Linux

PostPosted: Tue Jun 01, 2010 11:15 am
by Majki-Fajki
I posted it already in this thread :)

Re: [SVN] Connot compile on Arch Linux

PostPosted: Tue Jun 01, 2010 4:40 pm
by klauss
Majki-Fajki wrote:I posted it already in this thread :)


Hm... I seem to have missed it...