EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: EPICS R.314.4 for solaris-sparc-gnu build problem
From: Kevin Tsubota <[email protected]>
To: "tech-talk (E-mail)" <[email protected]>
Date: Tue, 23 Dec 2003 14:23:01 -1000

Hi All,

I'm attempting to build EPICS R3.14.4 for solaris-sparc-gnu on a Solaris-8
host with the following versions of gcc, g++, and gmake:

kamaole{epics}187: gcc --version
2.95.2
kamaole{epics}188: g++ --version
2.95.2
kamaole{epics}189: gmake -version
GNU Make version 3.78.1, by Richard Stallman and Roland McGrath.
Built for sparc-sun-solaris2.7
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99
        Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

My build is failing in the gmake of the base/src/toolsComm/flex directory
because of the following error:

ld.so.1: ../../../../bin/solaris-sparc-gnu/antelope: fatal:
libstdc++.so.2.10.0: open failed: No such file or directory
gmake[4]: *** [parse.c] Killed
gmake[4]: Target `install' not remade because of errors.

When I look at the make of antelope it is all good:

gmake[3]: Entering directory
`/local/epics/r3.14.4/base/src/toolsComm/antelope'
perl ../../../configure/tools/makeMakefile.pl O.solaris-sparc-gnu
.../../../..
mkdir O.Common
gmake -C O.solaris-sparc-gnu -f ../Makefile TOP=../../../..
T_A=solaris-sparc-gnu install
gmake[4]: Entering directory
`/local/epics/r3.14.4/base/src/toolsComm/antelope/O.solaris-sparc-gnu'
gmake[4]: Leaving directory
`/local/epics/r3.14.4/base/src/toolsComm/antelope/O.solaris-sparc-gnu'
gmake[4]: Entering directory
`/local/epics/r3.14.4/base/src/toolsComm/antelope/O.solaris-sparc-gnu'
/usr/local//bin/gcc -c   -D_POSIX_C_SOURCE=199506L  -D_XOPEN_SOURCE=500
-DOSITHREAD_USE_DEFAULT_STACK       -DUNIX  -DSOLARIS=8  -D__EXTENSIONS__
-ansi  -O3  -w    -D_NO_PROTO       -I. -I..
-I../../../../include/os/solaris -I../../../../include         ../closure.c
/usr/local//bin/gcc -c   -D_POSIX_C_SOURCE=199506L  -D_XOPEN_SOURCE=500
-DOSITHREAD_USE_DEFAULT_STACK       -DUNIX  -DSOLARIS=8  -D__EXTENSIONS__
-ansi  -O3  -w    -D_NO_PROTO       -I. -I..
-I../../../../include/os/solaris -I../../../../include         ../error.c
/usr/local//bin/gcc -c   -D_POSIX_C_SOURCE=199506L  -D_XOPEN_SOURCE=500
-DOSITHREAD_USE_DEFAULT_STACK       -DUNIX  -DSOLARIS=8  -D__EXTENSIONS__
-ansi  -O3  -w    -D_NO_PROTO       -I. -I..
-I../../../../include/os/solaris -I../../../../include         ../lalr.c
/usr/local//bin/gcc -c   -D_POSIX_C_SOURCE=199506L  -D_XOPEN_SOURCE=500
-DOSITHREAD_USE_DEFAULT_STACK       -DUNIX  -DSOLARIS=8  -D__EXTENSIONS__
-ansi  -O3  -w    -D_NO_PROTO       -I. -I..
-I../../../../include/os/solaris -I../../../../include         ../lr0.c
/usr/local//bin/gcc -c   -D_POSIX_C_SOURCE=199506L  -D_XOPEN_SOURCE=500
-DOSITHREAD_USE_DEFAULT_STACK       -DUNIX  -DSOLARIS=8  -D__EXTENSIONS__
-ansi  -O3  -w    -D_NO_PROTO       -I. -I..
-I../../../../include/os/solaris -I../../../../include         ../main.c
/usr/local//bin/gcc -c   -D_POSIX_C_SOURCE=199506L  -D_XOPEN_SOURCE=500
-DOSITHREAD_USE_DEFAULT_STACK       -DUNIX  -DSOLARIS=8  -D__EXTENSIONS__
-ansi  -O3  -w    -D_NO_PROTO       -I. -I..
-I../../../../include/os/solaris -I../../../../include         ../mkpar.c
/usr/local//bin/gcc -c   -D_POSIX_C_SOURCE=199506L  -D_XOPEN_SOURCE=500
-DOSITHREAD_USE_DEFAULT_STACK       -DUNIX  -DSOLARIS=8  -D__EXTENSIONS__
-ansi  -O3  -w    -D_NO_PROTO       -I. -I..
-I../../../../include/os/solaris -I../../../../include         ../output.c
/usr/local//bin/gcc -c   -D_POSIX_C_SOURCE=199506L  -D_XOPEN_SOURCE=500
-DOSITHREAD_USE_DEFAULT_STACK       -DUNIX  -DSOLARIS=8  -D__EXTENSIONS__
-ansi  -O3  -w    -D_NO_PROTO       -I. -I..
-I../../../../include/os/solaris -I../../../../include         ../reader.c
/usr/local//bin/gcc -c   -D_POSIX_C_SOURCE=199506L  -D_XOPEN_SOURCE=500
-DOSITHREAD_USE_DEFAULT_STACK       -DUNIX  -DSOLARIS=8  -D__EXTENSIONS__
-ansi  -O3  -w    -D_NO_PROTO       -I. -I..
-I../../../../include/os/solaris -I../../../../include         ../skeleton.c
/usr/local//bin/gcc -c   -D_POSIX_C_SOURCE=199506L  -D_XOPEN_SOURCE=500
-DOSITHREAD_USE_DEFAULT_STACK       -DUNIX  -DSOLARIS=8  -D__EXTENSIONS__
-ansi  -O3  -w    -D_NO_PROTO       -I. -I..
-I../../../../include/os/solaris -I../../../../include         ../symtab.c
/usr/local//bin/gcc -c   -D_POSIX_C_SOURCE=199506L  -D_XOPEN_SOURCE=500
-DOSITHREAD_USE_DEFAULT_STACK       -DUNIX  -DSOLARIS=8  -D__EXTENSIONS__
-ansi  -O3  -w    -D_NO_PROTO       -I. -I..
-I../../../../include/os/solaris -I../../../../include         ../verbose.c
/usr/local//bin/gcc -c   -D_POSIX_C_SOURCE=199506L  -D_XOPEN_SOURCE=500
-DOSITHREAD_USE_DEFAULT_STACK       -DUNIX  -DSOLARIS=8  -D__EXTENSIONS__
-ansi  -O3  -w    -D_NO_PROTO       -I. -I..
-I../../../../include/os/solaris -I../../../../include         ../warshall.c
/usr/local//bin/g++ -o antelope
-L/local/epics/r3.14.4/base/lib/solaris-sparc-gnu/
-R/local/epics/r3.14.4/base/lib/solaris-sparc-gnu         closure.o error.o
lalr.o lr0.o main.o mkpar.o output.o reader.o skeleton.o symtab.o verbose.o
warshall.o   -lCom 
Installing binary ../../../../bin/solaris-sparc-gnu/antelope
gmake[4]: Leaving directory
`/local/epics/r3.14.4/base/src/toolsComm/antelope/O.solaris-sparc-gnu'
gmake[3]: Leaving directory
`/local/epics/r3.14.4/base/src/toolsComm/antelope'


However a ldd shows that I'm missind libstdc++.so.2.10.0:

kamaole{epics}183: ldd antelope
        libCom.so.3.14 =>
/local/epics/r3.14.4/base/lib/solaris-sparc-gnu/libCom.so.3.14
        libstdc++.so.2.10.0 =>   (file not found)
        libm.so.1 =>     /usr/lib/libm.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        librt.so.1 =>    /usr/lib/librt.so.1
        libpthread.so.1 =>       /usr/lib/libpthread.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libstdc++.so.2.10.0 =>   (file not found)
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libaio.so.1 =>   /usr/lib/libaio.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
        libthread.so.1 =>        /usr/lib/libthread.so.1

Other applications suffer from this problem as well, i.e. casw,
caRepeater... I could add it to my LD_LIBARY_PATH but I thought the default
config was to build things statically so the only thing that I changed in
the configuration was:

diff CONFIG.solaris-sparc-gnu.solaris-sparc-gnu
CONFIG.solaris-sparc-gnu.solaris-sparc-gnu.original
13c13
< GNU_DIR = /usr/local
---
> GNU_DIR = /opt/gnu


A seperate problem which I encountered was ipAddrToAsciiAsynchronous.cpp was
failing to compile due to: UNIT_MAX undefined error so I added the
following:

diff src/libCom/misc/ipAddrToAsciiAsynchronous.cpp
src/libCom/misc/ipAddrToAsciiAsynchronous.cpp.original 
29,30d28
< #include <limits.h>
< 

What have I missed in my build?

Mahalo!
Kevin Tsubota
W.M. Keck Observatory



Navigate by Date:
Prev: RE:swRecord.dbd for TDS Kiman Ha
Next: Help with simple ioc response test app David Kelly
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: EPICS time Mark Rivers
Next: Help with simple ioc response test app David Kelly
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·