On Sat, Jul 14, 2012 at 01:00:22PM +0200, Christopher Zimmermann wrote: > > Otherwise looks good so when that's tweaked, providing it's been > > built on a non-native arch e.g. sparc64, arm, mips64, hppa, then I'll > > be ok with it. > > Here's a new .tgz with the following DESCR. Unfortunately I gave my > UltraSPARC away several years ago, but Edd has built it on spart64 and > is testing it.
I'll make another small tweak -- install examples. When I regenerated the PLIST, some .so.owner files turned up too. I am not sure if you removed those on purpose? If you did, you should @comment them so as to indicate their deliberate ommision to others. Still having problems linking the http_download.ml example on sparc64: ---8<--- # ocamlfind ocamlc -verbose -linkpkg -package netclient http_download.ml Effective set of compiler predicates: pkg_unix,pkg_bigarray,pkg_netsys,pkg_pcre,pkg_netstring,pkg_equeue,pkg_netclient,autolink,byte + ocamlc -verbose -I /usr/local/lib/ocaml/site-lib/netsys -I /usr/local/lib/ocaml/site-lib/pcre -I /usr/local/lib/ocaml/site-lib/netstring -I /usr/local/lib/ocaml/site-lib/equeue -I /usr/local/lib/ocaml/site-lib/netclient /usr/local/lib/ocaml/unix.cma /usr/local/lib/ocaml/bigarray.cma /usr/local/lib/ocaml/site-lib/netsys/netsys_oothr.cma /usr/local/lib/ocaml/site-lib/netsys/netsys.cma /usr/local/lib/ocaml/site-lib/pcre/pcre.cma /usr/local/lib/ocaml/site-lib/netstring/netstring.cma /usr/local/lib/ocaml/site-lib/netstring/netaccel.cma /usr/local/lib/ocaml/site-lib/netstring/netaccel_link.cmo /usr/local/lib/ocaml/site-lib/equeue/equeue.cma /usr/local/lib/ocaml/site-lib/netclient/netclient.cma http_download.ml + cc -O2 -pipe -o 'a.out' '-L/usr/local/lib/ocaml/site-lib/netsys' '-L/usr/local/lib/ocaml/site-lib/pcre' '-L/usr/local/lib/ocaml/site-lib/netstring' '-L/usr/local/lib/ocaml/site-lib/equeue' '-L/usr/local/lib/ocaml/site-lib/netclient' '-L/usr/local/lib/ocaml' '/tmp/camlprim1024a3.c' '-lnetaccel_c' '-lpcre_stubs' '-L/usr/local/lib' '-Wl,-R/usr/local/lib' '-lpcre' '-lnetsys' '-lbigarray' '-lunix' '-lcamlrun' -I'/usr/local/lib/ocaml' -lm -lcurses -pthread /usr/bin/ld: cannot find -lnetsys collect2: ld returned 1 exit status File "http_download.ml", line 1, characters 0-1: Error: Error while building custom runtime system ocamlc returned with exit code 2 ---8<--- Even adding -dllpath or manually adding the shared lib (/usr/local/lib/ocaml/stublibs/dllnetsys.so) does the same. Was the shared library built properly? Updated tarball attached. -- Best Regards Edd Barrett http://www.theunixzoo.co.uk
ocaml-net-add-examples.tgz
Description: application/tar-gz