On Sat, 31 Jan 2009, maurilio longo wrote:

Hi Maurilio,

> with a couple of very minor changes harbour builds ok on opensolaris 2008.11, 
> but when I try to install it I get these errors:
> fclose                              0x284             ./libhbrtl.a/errorint.o
> fclose                              0xf90             ./libhbrtl.a/gtchrmap.o
> fclose                              0x1080            ./libhbrtl.a/gtchrmap.o
> fclose                              0x10a5            ./libhbrtl.a/gtchrmap.o
> fclose                              0x679             ./libhbzlib.a/gzio.o
> ld: fatal: relocations remain against allocatable but non-writable sections
> collect2: ld returned 1 exit status
> this is when it tries to build the shared library, after it has copied all
> bin and lib and include files.
> Any idea?

You have to enable compilation with relocatable code, f.e. use -fPIC or -fpic
flag in C_USR. But I do not know it it's enough for OpenSolaris. The last
tests I made with Solaris were done over two years ago.

BTW did you used POSIX thread (pthread) for MT compilation or SunOS
(thr_*() function) threads?
I think it will be good to update OpenSolaris Harbour MT builds to work
on SunOS even without pthread installed.

BTW what exact version of OpenSolaris did you used?

> PS. What is the 'best' place to install on a unix system? I've chosen
> to install inside /opt/harbour/bin,lib,include, but I'm not completely
> sure it is the 'best practice'.

Each distribution may have its own preferred place for 3-rd party packages.
It could be /opt, /usr/opt, /usr/local, /usr/local/opt, ...
You should check in OS documentation about directory structure policy.

best regards,
Przemek
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to