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 
 
Synology DS411

 
Post new topic   Reply to topic    MLDonkey Forum Index -> Alternative platforms
View previous topic :: View next topic  
Author Message
easter
neophyte


Joined: 11 Oct 2011
Posts: 12

PostPosted: Tue Oct 11, 2011 7:56 am    Post subject: Synology DS411 Reply with quote

I would like to install MLDonkey on DS 411+ II (Intel Atom)
./configure goes well, but after 'make' i'll get next
Code:

DiskStation> make
/volume1/public/mldonkey-3.1.0/patches/local/bin/ocamlc -linkall -o ocamlpp.byte \
     -custom bigarray.cma unix.cma str.cma nums.cma -ccopt " " -cclib "-lz  " -cclib -lbz2 -ccopt "-pthread" \
  \
  \
  \
  \
  \
  \
-I build         tools/ocamlpp.cmo
File "_none_", line 1, characters 0-1:
Error: Cannot find file nums.cma
make: *** [ocamlpp.byte] Error 2

I spent alot of time with that and now have no clue Sad Please help!
[/code]
Back to top
View user's profile Send private message
ygrek
professional


Joined: 20 Mar 2010
Posts: 610

PostPosted: Tue Oct 11, 2011 8:48 am    Post subject: Reply with quote

Show
Code:
/volume1/public/mldonkey-3.1.0/patches/local/bin/ocamlc -config
.
Start from scratch and show the full configure and make output.
_________________
Download | Report bugs | git mirror
Back to top
View user's profile Send private message Visit poster's website
easter
neophyte


Joined: 11 Oct 2011
Posts: 12

PostPosted: Tue Oct 11, 2011 10:28 pm    Post subject: Reply with quote

Here what i have
Code:
DiskStation> patches/local/bin/ocamlc -config
version: 3.12.0
standard_library_default: /volume1/public/mldonkey-3.1.0/patches/local/lib/ocaml
standard_library: /volume1/public/mldonkey-3.1.0/patches/local/lib/ocaml
standard_runtime: /volume1/public/mldonkey-3.1.0/patches/local/bin/ocamlrun
ccomp_type: cc
bytecomp_c_compiler: gcc -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -fPIC
bytecomp_c_libraries: -lm  -ldl -ltermcap -lpthread
native_c_compiler: gcc -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT
native_c_libraries: -lm  -ldl
native_pack_linker: ld -r  -o
ranlib: ranlib
cc_profile: -pg
architecture: amd64
model: default
system: linux
asm: as
ext_obj: .o
ext_asm: .s
ext_lib: .a
ext_dll: .so
os_type: Unix
default_executable_name: a.out
systhread_supported: true

What should i do now?

I have made clean and reconfig used next ./configure
Code:
./configure --disable-multinet --enable-directconnect --disable-don
keysui --enable-batch --enable-force-ocaml


Now i have
Code:
DiskStation> make
/volume1/public/mldonkey-3.1.0/patches/local/bin/ocamlc   -I src/utils/extlib  -I src/utils/cdk  -I src/utils/bitstring  -I src/utils/lib  -I src/utils/ocamlrss  -I src/utils/xml-light  -I src/utils/net  -I tools  -I src/daemon/common  -I src/daemon/driver  -I src/utils/mp3tagui  -I src/config/unix  -I src/networks/direct_connect  -I src/networks/donkey -I +camlp4 -c tools/ocamlpp.ml
/volume1/public/mldonkey-3.1.0/patches/local/bin/ocamlc -linkall -o ocamlpp.byte \
     -custom bigarray.cma unix.cma str cma nums.cma -ccopt " " -cclib "-lz  " -cclib -lbz2 -ccopt "-pthread" \
  \
  \
  \
  \
  \
  \
-I build         tools/ocamlpp.cmo
/volume1/public/mldonkey-3.1.0/patches/local/bin/ocamlc: don't know what to do with str.
Usage: ocamlc <options> <files>
Options are:
  -a  Build a library
  -annot  Save information in <filename>.annot
  -c  Compile only (do not link)
  -cc <command>  Use <command> as the C compiler and linker
  -cclib <opt>  Pass option <opt> to the C linker
  -ccopt <opt>  Pass option <opt> to the C compiler and linker
  -config  Print configuration values and exit
  -custom  Link in custom mode
  -dllib <lib>  Use the dynamically-loaded library <lib>
  -dllpath <dir>  Add <dir> to the run-time search path for shared libraries
  -dtypes  (deprecated) same as -annot
  -for-pack <ident>  Ignored (for compatibility with ocamlopt)
  -g  Save debugging information
  -i  Print inferred interface
  -I <dir>  Add <dir> to the list of include directories
  -impl <file>  Compile <file> as a .ml file
  -intf <file>  Compile <file> as a .mli file
  -intf-suffix <string>  Suffix for interface files (default: .mli)
  -intf_suffix <string>  (deprecated) same as -intf-suffix
  -labels  Use commuting label mode
  -linkall  Link all modules, even unused ones
  -make-runtime  Build a runtime system with given C objects and libraries
  -make_runtime  (deprecated) same as -make-runtime
  -modern  (deprecated) same as -labels
  -no-app-funct  Deactivate applicative functors
  -noassert  Do not compile assertion checks
  -noautolink  Do not automatically link C libraries specified in .cma files
  -nolabels  Ignore non-optional labels in types
  -nostdlib  Do not add default directory to the list of include directories
  -o <file>  Set output file name to <file>
  -output-obj  Output a C object file instead of an executable
  -pack  Package the given .cmo files into one .cmo
  -pp <command>  Pipe sources through preprocessor <command>
  -principal  Check principality of type inference
  -rectypes  Allow arbitrary recursive types
  -strict-sequence  Left-hand part of a sequence must have type unit
  -thread  Generate code that supports the system threads library
  -unsafe  Do not compile bounds checking on array and string access
  -use-runtime <file>  Generate bytecode for the given runtime system
  -use_runtime <file>  (deprecated) same as -use-runtime
  -v  Print compiler version and location of standard library and exit
  -version  Print version and exit
  -vnum  Print version number and exit
  -verbose  Print calls to external commands
  -vmthread  Generate code that supports the threads library with VM-level
     scheduling
  -w <list>  Enable or disable warnings according to <list>:
        +<spec>   enable warnings in <spec>
        -<spec>   disable warnings in <spec>
        @<spec>   enable warnings in <spec> and treat them as errors
     <spec> can be:
        <num>             a single warning number
        <num1>..<num2>    a range of consecutive warning numbers
        <letter>          a predefined set
     default setting is "+a-4-6-7-9-27..29"
  -warn-error <list>  Enable or disable error status for warnings according
     to <list>.  See option -w for the syntax of <list>.
     Default setting is "-a"
  -warn-help   Show description of warning numbers
  -where  Print location of standard library and exit
  -nopervasives  (undocumented)
  -use-prims <file>  (undocumented)
  -dparsetree  (undocumented)
  -drawlambda  (undocumented)
  -dlambda  (undocumented)
  -dinstr  (undocumented)
  - <file>  Treat <file> as a file name (even if it starts with `-')
  -help  Display this list of options
  --help  Display this list of options
make: *** [ocamlpp.byte] Error 2
DiskStation>
Back to top
View user's profile Send private message
easter
neophyte


Joined: 11 Oct 2011
Posts: 12

PostPosted: Tue Oct 11, 2011 11:06 pm    Post subject: Reply with quote

Also libgd not available. Is it critical?
Back to top
View user's profile Send private message
ygrek
professional


Joined: 20 Mar 2010
Posts: 610

PostPosted: Wed Oct 12, 2011 8:17 am    Post subject: Reply with quote

Missing libgd is not critical, but you didn't show configure output.
Also at the first run there was another error, this is very very strange. You'd better not make clean but remove old directory entirely and compile from the freshly unpacked sources - to be sure that no leftover pieces from previous attempts influence the build.
_________________
Download | Report bugs | git mirror
Back to top
View user's profile Send private message Visit poster's website
easter
neophyte


Joined: 11 Oct 2011
Posts: 12

PostPosted: Wed Oct 12, 2011 6:18 pm    Post subject: Reply with quote

I did. Unpack to new dir
config.log is large so please take it from here http://easterism.com/config.log
Back to top
View user's profile Send private message
easter
neophyte


Joined: 11 Oct 2011
Posts: 12

PostPosted: Wed Oct 12, 2011 9:41 pm    Post subject: Reply with quote

At last! I made it!
Many answers i've got here http://shin3.blogbus.com/logs/50892203.html
If anybody can translate, please do this. I beleive it might be helpful

Thanks to all.
Back to top
View user's profile Send private message
ygrek
professional


Joined: 20 Mar 2010
Posts: 610

PostPosted: Thu Oct 13, 2011 9:03 am    Post subject: Reply with quote

Glad that it compiled finally, but what was the actual error and how did you solve it?
_________________
Download | Report bugs | git mirror
Back to top
View user's profile Send private message Visit poster's website
easter
neophyte


Joined: 11 Oct 2011
Posts: 12

PostPosted: Thu Oct 13, 2011 3:01 pm    Post subject: Reply with quote

I'm not sure. As u told me i have created new folder and start new ./configure. I used same options, but for some reason, the error was something like "libbz2" missed (Exactly like here http://shin3.blogbus.com/logs/50892203.html). So i made symlink
Code:
ln -s /opt/lib/libbz2.so.1.0.6 /lib/libbz2.so.1.0

The next error was about printf2, and nobody knows why but i made maintainerclean and ./configura again with same options. Now printf2 error gone!
Now 'make' goes well.
One more command i execute
Code:

ln -s /opt/lib/libmagic.so.1.0.0 /lib/libmagic.so.1


As result i've got mlnet.byte executable file, so just run it!!!
Back to top
View user's profile Send private message
ygrek
professional


Joined: 20 Mar 2010
Posts: 610

PostPosted: Fri Oct 14, 2011 7:29 am    Post subject: Reply with quote

Yes, I wondered where that printf2 error in the blogpost came from. Have no idea, really, it doesn't happen here..
_________________
Download | Report bugs | git mirror
Back to top
View user's profile Send private message Visit poster's website
spiralvoice
Sage


Joined: 06 Jan 2003
Posts: 4001
Location: Germany

PostPosted: Tue Oct 25, 2011 6:51 pm    Post subject: Reply with quote

easter wrote:
The next error was about printf2

Sounds like "make depend" problem during ./configure failed. this can
happen due to a broken install of system libs.
_________________
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 -> Alternative platforms 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