From worzel@gmx.co.uk Fri Jul 3 15:55:23 2015 From: worzel@gmx.co.uk (Ian Prideaux) Date: Fri, 03 Jul 2015 15:55:23 +0100 Subject: [Port-solaris] Won't Compile on Solaris11 x86 Message-ID: <5596A25B.30601@gmx.co.uk> This is a multi-part message in MIME format. --------------090401040600060109030903 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi All, I'm trying to get it to compile on a fresh build of Solaris11u2, with all the updates from https://pkg.oracle.com/solaris/support/, on a guest inside VirtualBox. I had to remove the flags -KPIC -mt -xarch=amd64 from configure and configure-libafs, because gcc 4.8.2 complained that these were unknown flags. However, it's now failing: ld: fatal: relocations remain against allocatable but non-writable sections Current working directory /exportr/home/ian/openafs-1.6.12/src/shlibafsrpc A google search seemed to think that adding the flag -fpic or -fPIC would fix it, but it doesn't. I'm running SOLARISCC=/usr/bin/gcc ./configure --with-afs-sysname=sunx86_511 Any ideas? Thanks for your help. --------------090401040600060109030903 Content-Type: text/x-vcard; charset=utf-8; name="worzel.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="worzel.vcf" begin:vcard fn:Ian Prideaux n:Prideaux;Ian email;internet:worzel@gmx.co.uk version:2.1 end:vcard --------------090401040600060109030903-- From shadow@gmail.com Thu Jul 9 14:44:05 2015 From: shadow@gmail.com (Daria Brashear) Date: Thu, 9 Jul 2015 09:44:05 -0400 Subject: [Port-solaris] Won't Compile on Solaris11 x86 In-Reply-To: <5596A25B.30601@gmx.co.uk> References: <5596A25B.30601@gmx.co.uk> Message-ID: --001a113ff13ced0670051a7172ed Content-Type: text/plain; charset=UTF-8 Yup. SOLARISCC is for the Sunpro compiler. gcc isn't it. So, it uses sunpro flags. -KPIC, -mt, -xarch. That could probably be changed now, but at the time, gcc miscompiled kernel modules. On Fri, Jul 3, 2015 at 10:55 AM, Ian Prideaux wrote: > Hi All, > > I'm trying to get it to compile on a fresh build of Solaris11u2, with all > the updates from https://pkg.oracle.com/solaris/support/, on a guest > inside VirtualBox. > > I had to remove the flags -KPIC -mt -xarch=amd64 from configure and > configure-libafs, because gcc 4.8.2 complained that these were unknown > flags. > > However, it's now failing: > > ld: fatal: relocations remain against allocatable but non-writable sections > Current working directory /exportr/home/ian/openafs-1.6.12/src/shlibafsrpc > > A google search seemed to think that adding the flag -fpic or -fPIC would > fix it, but it doesn't. > > I'm running > SOLARISCC=/usr/bin/gcc ./configure --with-afs-sysname=sunx86_511 > > Any ideas? > Thanks for your help. > > -- D --001a113ff13ced0670051a7172ed Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Yup. SOLARISCC is for the Sunpro compiler. gcc isn= 9;t it. So, it uses sunpro flags. -KPIC, -mt, -xarch.

That cou= ld probably be changed now, but at the time, gcc miscompiled kernel modules= .
--001a113ff13ced0670051a7172ed-- From milek@task.gda.pl Fri Jul 10 11:32:13 2015 From: milek@task.gda.pl (milek@task.gda.pl) Date: Fri, 10 Jul 2015 11:32:13 +0100 Subject: [Port-solaris] Won't Compile on Solaris11 x86 In-Reply-To: <5596A25B.30601@gmx.co.uk> References: <5596A25B.30601@gmx.co.uk> Message-ID: <017c01d0bafb$b02e0cf0$108a26d0$@task.gda.pl> If you want to use Solaris Studio it is freely available. You need to add Solaris Studio repository and then install it. It will be in /opt. > -----Original Message----- > From: port-solaris-admin@openafs.org [mailto:port-solaris- > admin@openafs.org] On Behalf Of Ian Prideaux > Sent: 03 July 2015 15:55 > To: port-solaris@openafs.org > Subject: [Port-solaris] Won't Compile on Solaris11 x86 > > Hi All, > > I'm trying to get it to compile on a fresh build of Solaris11u2, with > all the updates from https://pkg.oracle.com/solaris/support/, on a > guest inside VirtualBox. > > I had to remove the flags -KPIC -mt -xarch=amd64 from configure and > configure-libafs, because gcc 4.8.2 complained that these were unknown > flags. > > However, it's now failing: > > ld: fatal: relocations remain against allocatable but non-writable > sections Current working directory /exportr/home/ian/openafs- > 1.6.12/src/shlibafsrpc > > A google search seemed to think that adding the flag -fpic or -fPIC > would fix it, but it doesn't. > > I'm running > SOLARISCC=/usr/bin/gcc ./configure --with-afs-sysname=sunx86_511 > > Any ideas? > Thanks for your help. From mmeffie@sinenomine.net Fri Jul 10 14:39:34 2015 From: mmeffie@sinenomine.net (Michael Meffie) Date: Fri, 10 Jul 2015 09:39:34 -0400 Subject: [Port-solaris] Won't Compile on Solaris11 x86 In-Reply-To: <017c01d0bafb$b02e0cf0$108a26d0$@task.gda.pl> References: <5596A25B.30601@gmx.co.uk> <017c01d0bafb$b02e0cf0$108a26d0$@task.gda.pl> Message-ID: <20150710093934.a2b0e6f290cc759a0293b639@sinenomine.net> On Fri, 10 Jul 2015 11:32:13 +0100 wrote: > If you want to use Solaris Studio it is freely available. > You need to add Solaris Studio repository and then install it. > It will be in /opt. http://www.oracle.com/technetwork/server-storage/solarisstudio A no-cost registration with OTN (Oracle Technology Network) is required. Follow the instructions on the download page to use the package installer. -- Michael Meffie From worzel@gmx.co.uk Fri Jul 10 15:59:20 2015 From: worzel@gmx.co.uk (Ian Prideaux) Date: Fri, 10 Jul 2015 15:59:20 +0100 Subject: [Port-solaris] Won't Compile on Solaris11 x86 In-Reply-To: <20150710093934.a2b0e6f290cc759a0293b639@sinenomine.net> References: <5596A25B.30601@gmx.co.uk> <017c01d0bafb$b02e0cf0$108a26d0$@task.gda.pl> <20150710093934.a2b0e6f290cc759a0293b639@sinenomine.net> Message-ID: <559FDDC8.8090402@gmx.co.uk> Thanks chaps, I've done it, and it's compiled. Solaris Studio installed in /opt/solarisstudio12.4, I had to add it's bin to PATH, and I had to install text/locale because configure required gencat, and then make just ran. Now I need to go and read the OpenAFS docs to find out how to configure it. On 10/07/15 14:39, Michael Meffie wrote: > On Fri, 10 Jul 2015 11:32:13 +0100 > wrote: > >> If you want to use Solaris Studio it is freely available. >> You need to add Solaris Studio repository and then install it. >> It will be in /opt. > > http://www.oracle.com/technetwork/server-storage/solarisstudio > > A no-cost registration with OTN (Oracle Technology Network) is required. > Follow the instructions on the download page to use the package installer. >