MLDonkey Forum Index
Homepage •  Bugs •  Tasks •  Patches •  SF.net Project Page •  ChangeLog •  German forum •  Links •  Wiki •  Downloads
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
error compile 3.1.1 and 3.1.2

 
Post new topic   Reply to topic    MLDonkey Forum Index -> Mac OS X
View previous topic :: View next topic  
Author Message
keseven
neophyte


Joined: 30 May 2012
Posts: 3

PostPosted: Thu May 31, 2012 10:45 am    Post subject: error compile 3.1.1 and 3.1.2 Reply with quote

hello.

i tried to compile version 3.1.1 on a intel mac pro, os x 10.5.8 using mldonkey-3.1.1.tar.bz2 but after the command "make" i get this error:

sed: -o: No such file or directory
sed: src/utils/cdk/tar.ml: No such file or directory
make: *** [src/utils/cdk/tar.ml] Error 1

was hoping it works with the new version 3.1.2 but i keep getting this error.

3.1.0 i compiled successfull

thx for help
Back to top
View user's profile Send private message
ygrek
professional


Joined: 20 Mar 2010
Posts: 521

PostPosted: Fri Jun 01, 2012 9:53 am    Post subject: Reply with quote

Looks like you are using FIX_BROKEN_CPP ? Show configure and build logs.
_________________
Download | Report bugs | git mirror
Back to top
View user's profile Send private message Visit poster's website
ygrek
professional


Joined: 20 Mar 2010
Posts: 521

PostPosted: Thu Jun 07, 2012 2:47 pm    Post subject: Reply with quote

Here is the patch, sorry for the breakage. (please test)
Code:

--- a/config/Makefile.in
+++ b/config/Makefile.in
@@ -1847,7 +1847,7 @@ rpm: sourcedist
        $(OCAMLC) $(DEVFLAGS) $(INCLUDES) -c $<
 
 .mlcpp.ml:
-       @$(CPP) -x c -P $< $(FIX_BROKEN_CPP) -o $@
+       @$(CPP) -x c -P $< $(FIX_BROKEN_CPP) > $@
 
 %.ml: %.mlp $(BITSTRING)/pa_bitstring.cmo
        $(CAMLP4OF) build/bitstring.cma $(BITSTRING)/bitstring_persistent.cmo $(BITSTRING)/pa_bitstring.cmo -impl $< -o $@

_________________
Download | Report bugs | git mirror
Back to top
View user's profile Send private message Visit poster's website
keseven
neophyte


Joined: 30 May 2012
Posts: 3

PostPosted: Thu Jun 21, 2012 7:27 am    Post subject: Reply with quote

ok, i applied the patch (not sure if i did it right) then i get this...

missing header for unified diff at line 10 of patch
patching file config/Makefile.in
patch: **** malformed patch at line 11: \'a0 \'a0 \'a0 \'a0 $(OCAMLC) $(DEVFLAGS) $(INCLUDES) -c $< \


knowing that something must be wrong i compiled it anyway to get this again..

sed: -o: No such file or directory
sed: src/utils/cdk/tar.ml: No such file or directory
make: *** [src/utils/cdk/tar.ml] Error 1


not sure if its my fault or its the patch

thx for help
Back to top
View user's profile Send private message
ygrek
professional


Joined: 20 Mar 2010
Posts: 521

PostPosted: Thu Jun 21, 2012 9:21 am    Post subject: Reply with quote

Looks like somethign went wrong. Try this way :
Code:

curl http://repo.or.cz/w/mldonkey.git/patch/5ba13dd547e65c93845a6cff9653fc739bd28704 | patch -p1

It shouldn't show any errors.[/code]
_________________
Download | Report bugs | git mirror
Back to top
View user's profile Send private message Visit poster's website
keseven
neophyte


Joined: 30 May 2012
Posts: 3

PostPosted: Thu Jun 21, 2012 11:35 am    Post subject: Reply with quote

looks like that did the job. version 3.1.2 up and running.

thx alot ygrek
Back to top
View user's profile Send private message
spiralvoice
Sage


Joined: 06 Jan 2003
Posts: 3982
Location: Germany

PostPosted: Sun Jun 24, 2012 9:41 am    Post subject: Reply with quote

Please try current CVS
_________________
Link overview and precompiled cores here: http://mldonkey.sourceforge.net/DownloadLinks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    MLDonkey Forum Index -> Mac OS X 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


Sourceforge.net Logo