Hi Przemyslaw, Przemyslaw Czerpak wrote: > 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.
Ok, tonight I'll try and report. > 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. > I've used pthread since I don't know Solaris ABIs, I'll have a look at them (thr_*) though and see what it takes to use them. BTW, make -jn nearly halves build time on my centrino duo (T5500 1.6GHz) laptop on which I have opensolaris! > BTW what exact version of OpenSolaris did you used? > I'm using 2008.11 and building a 32bit harbour. >> 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. > I went for /opt/harbour since I saw that VirtualBox installs in opt as well :) Maurilio. > best regards, > Przemek > _______________________________________________ > Harbour mailing list > Harbour@harbour-project.org > http://lists.harbour-project.org/mailman/listinfo/harbour > -- __________ | | | |__| Maurilio Longo |_|_|_|____| farmaconsult s.r.l. _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour