Subject: |
Re: Building 3.14 on solaris Was: Building 3.13Extensions with 3.14 base Problem. |
From: |
Peter Kurpis <[email protected]> |
To: |
[email protected] |
Date: |
Thu, 5 Dec 2002 12:25:23 -1000 (HST) |
> Date: Thu, 05 Dec 2002 14:42:14 -0600
> From: Andrew Johnson <[email protected]>
> The easy answer is to set your LD_LIBRARY_PATH environment variable to a
[snip]
> Personally I think that on Linux at least we should be embedding the paths
> to the shared libraries into those binaries that use them. I have this
> working, and will see if I can persuade Janet to accept it for R3.14.1
A little off the original topic, but for what it's worth, below is how to
avoid LD_LIBRARY_PATH in a solaris build of 3.14 (beta 2), in a fairly
generic environment. (Note that GNU recommends using Solaris as and ld
with gcc/g++.)
First, make configuration file mods as shown below. Note I am not doing
the vxworks builds for now.
$ cd /usr/local/epics/r3.14.0beta2/base/configure
$ diff CONFIG_SITE.original CONFIG_SITE
60,61c60
< #CROSS_COMPILER_TARGET_ARCHS=
< CROSS_COMPILER_TARGET_ARCHS=vxWorks-68040 vxWorks-ppc604
---
> CROSS_COMPILER_TARGET_ARCHS=
95c94
< SHARED_LIBRARIES=NO
---
> SHARED_LIBRARIES=YES
$ cd /usr/local/epics/r3.14.0beta2/base/configure/os
$ cat CONFIG_SITE.solaris-sparc-gnu.solaris-sparc-gnu
GNU_DIR = /usr/local
LD = /usr/ccs/bin/ld -r
DEPLIB_DIRS += /usr/local/lib /usr/local/epics/r3.14.0beta2/base/lib/solaris-sparc-gnu
SHRLIB_LDFLAGS_YES = -Wl,-G -Wl,-dy
SYS_SHRLIB_LIBS = posix4 pthread
Then, the procedure, simply:
setenv EPICS_HOST_ARCH solaris-sparc-gnu
cd /usr/local/epics/r3.14.0beta2/base
gmake >& make.log
Note that the SYS_SHRLIB_LIBS redefinition was, if I recall correctly, to
remove the Crun from its definition in CONFIG.Common.solaris-sparc .
The libCrun, however, might be needed to allow R3.13 build extentions to
load R3.14 shared libs, per a comment in that file. Its inclusion, however,
broke my build on Solaris 8. Perhaps the build has changed since then, as
this was in flux (e.g. changed from beta1).
Hope this helps.
- Navigate by Date:
- Prev:
Fwd: Xwindow print from Linux Pete R Jemian
- Next:
MEDM - alarm status not propagated for vis.calc Brian McAllister
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
<2002>
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Fwd: Xwindow print from Linux Pete R Jemian
- Next:
MEDM - alarm status not propagated for vis.calc Brian McAllister
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
<2002>
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|