Alexander Wallace <[EMAIL PROTECTED]> writes:

> No, i feel it is very close... It compiled all files, just dislikes
> something after that... here is the output:


> src/ControllerWatcher.o -lpthread -fPIC -shared
> -Wl,-soname,libcarob.so.1 -lgmp -o libcarob.so.1
> ld: warning: option -o appears more than once, first setting taken
> ld: fatal: file libcarob.so.1: unknown file type
> ld: fatal: File processing errors. No output written to libcarob.so.1
> collect2: ld returned 1 exit status
> gmake: *** [libcarob.so.1] Error 1


It's great to have come so far, to the linking step, even at the price
of a couple of temporary and ugly workarounds.

You are probably using Sun's linker, I think that's the usual way gcc
is configured on Solaris. The output of "gcc -dumpspecs" should help
assert that.

As you can guess Sun's ld is not fully compatible with the GNU ld. The
"soname" option is likely to be not supported. You should try to tweak
the LDFLAGS definitions in carob/Makefile following Sun's ld
documentation
<http://docs.sun.com/app/docs/doc/816-5165/6mbb0m9b2?a=expand#L>

A much much simpler alternative is to build carob as a static library
like this: "make static" and use the resulting libcarob.a

By the way thanks a lot for also trying the Sun compiler, it's very
useful for us to know it work just as well (or should I say as bad? 
;-)



_______________________________________________
Carob mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob

Reply via email to