g+
g+ Communities
Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014 
<== Date ==> <== Thread ==>

Subject: Re: EPICS R.314.4 for solaris-sparc-gnu build problem
From: Janet Anderson <jba@aps.anl.gov>
To: Kevin Tsubota <ktsubota@keck.hawaii.edu>
Cc: "tech-talk (E-mail)" <tech-talk@aps.anl.gov>
Date: Mon, 05 Jan 2004 09:19:41 -0600
Looks like the solaris-sparc-gnu build will fail when
COMMANDLINE_LIBRARY is EPICS and the gnu libraries are
not in your LD_LIBRARY_PATH. Try adding the the following
line to configure/os/CONFIG.Common.solaris-sparc-gnu

OP_SYS_LDFLAGS += -R$(GNU_LIB) -L$(GNU_LIB)

to correct this problem.

If it works I will commit the change for the next R3.14 release.

Janet


Kevin Tsubota wrote:

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: EPICS time Marty Kraimer
Next: Re: Help with simple ioc response test app Marty Kraimer
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014 
Navigate by Thread:
Prev: Re: Python MegaWidgets (Pmw) and Blt Noboru Yamamoto
Next: Re: Help with simple ioc response test app Marty Kraimer
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·