OK, partially answering my own questions....
sometimes it helps to just send a message into the world and stew over things for a bit ;)
On 06/01/2012 03:13 PM, Robert Schweikert wrote: <snip>
In addition to the gripes above I have a problem that I am stuck on and could also use some help with. I am trying to build ocamlnet which depends on pcre. The build process failes with this error:
ocamlfind ocamlc -g -I ../../src/netstring -package "unix" -custom -o ocamlrpcgen -package unix,netstring \ rpc_generator.cma main.cmo -linkpkg /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -lpcre_stubs collect2: ld returned 1 exit status File "_none_", line 1, characters 0-1: Error: Error while building custom runtime system make: *** [ocamlrpcgen] Error 2
Knowing nothing about OCaml build and link processes I can only infer things. Obviously the process calls ld to link a binary and passes -lpcre_stubs, this would require the presence of libpcre_stubs.so somewhere in the default search directories of ld.
Well, not necessarily, and archive, i.e. would do, and if you look at the .spec file for ocaml-pcre you will find that the -devel package contains just the archive needed. ;)
Just using the archive will lead to link errors as -lpcre is missing on the link line. Other distros do not consider unresolved symbols at link time as errors, thus they do not need a patch to fix the link step, shame on them, good for us :)