EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: solved: seq 2-2-1 cannot build static libraries
From: Benjamin Franksen <[email protected]>
To: <[email protected]>
Date: Wed, 4 Mar 2015 21:48:31 +0100
My mistake. The error actually is in src/snc. With the following in the
Makefile I get it to build:

snc_LIBS += seq pv ca Com

This is what was previously in the Makefile:

snc_LIBS += $(EPICS_BASE_IOC_LIBS)
snc_LIBS += pv seq

It is of course completely obvious that the libraries are listed in the
wrong order here, right? Have I mentioned before that I hate ld?

Anyway, will make a patch and a new release.

Cheers
Ben

On Wednesday 04 March 2015 21:04:22 Benjamin Franksen wrote:
> I received two bug reports about this problem and can also reproduce
> it myself, setting (in base-3.15.1) SHARED_LIBRARIES=NO and
> STATIC_BUILD=YES. This is the first error I get:
>
> /usr/bin/g++ -o snc -Wl,-Bstatic -
> L/net/csr/srv/projects/ctl/franksen/epics/support/seq/branch-2-2/lib/l
> inux- x86 -
> L/net/csr/srv/projects/ctl/franksen/epics/base/base-3.15.1/lib/linux-x
> 86 -Wl,-
> rpath,/net/csr/srv/projects/ctl/franksen/epics/support/seq/branch-2-2/
> lib/linux- x86 -Wl,-
> rpath,/net/csr/srv/projects/ctl/franksen/epics/base/base-3.15.1/lib/li
> nux- x86          -rdynamic -m32            lexer.o snl.o main.o
> node.o var_types.o analysis.o gen_code.o gen_ss_code.o gen_tables.o
> sym_table.o builtin.o type_check.o    -ldbRecStd -ldbCore -lca -lCom
> -lCom -lseq - Wl,-Bdynamic  -lpthread   -lreadline -lm -lrt -ldl
> -lgcc
> /net/csr/srv/projects/ctl/franksen/epics/support/seq/branch-2-2/lib/li
> nux- x86/libseq.a(seq_main.o): In function `init_sprog':
> /net/csr/srv/projects/ctl/franksen/epics/support/seq/branch-2-2/src/se
> q/O.linux- x86/../seq_main.c:228: undefined reference to
> `freeListInitPvt'
>
>
> I am stupefied by this. This is the relevant part of the Makefile:
>
> #  seq library
> LIBRARY = seq
> seq_LIBS = pv Com
>
> seq_SRCS += seq_main.c
> seq_SRCS += ... etc etc ...
>
> Nothing special here! Why does this work for shared but not for static
> libraries?
>
> Any kind of hint as to what I might be missing would be appreciated.
>
> Cheers
> Ben
> --
> "Make it so they have to reboot after every typo." ― Scott Adams
>
> ________________________________
>
> Helmholtz-Zentrum Berlin für Materialien und Energie GmbH
>
> Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher
> Forschungszentren e.V.
>
> Aufsichtsrat: Vorsitzender Prof. Dr. Dr. h.c. mult. Joachim Treusch,
> stv. Vorsitzende Dr. Beatrix Vierkorn-Rudolph Geschäftsführung: Prof.
> Dr. Anke Rita Kaysser-Pyzalla, Thomas Frederking
>
> Sitz Berlin, AG Charlottenburg, 89 HRB 5583
>
> Postadresse:
> Hahn-Meitner-Platz 1
> D-14109 Berlin
>
> http://www.helmholtz-berlin.de

--
"Make it so they have to reboot after every typo." ― Scott Adams

________________________________

Helmholtz-Zentrum Berlin für Materialien und Energie GmbH

Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.

Aufsichtsrat: Vorsitzender Prof. Dr. Dr. h.c. mult. Joachim Treusch, stv. Vorsitzende Dr. Beatrix Vierkorn-Rudolph
Geschäftsführung: Prof. Dr. Anke Rita Kaysser-Pyzalla, Thomas Frederking

Sitz Berlin, AG Charlottenburg, 89 HRB 5583

Postadresse:
Hahn-Meitner-Platz 1
D-14109 Berlin

http://www.helmholtz-berlin.de


References:
Re: sseq 2-2-1 issue/bug Matthew D. Moore
seq 2-2-1 cannot build static libraries Benjamin Franksen

Navigate by Date:
Prev: seq 2-2-1 cannot build static libraries Benjamin Franksen
Next: Problem with HDF5 plugin for areaDetector Wilkins, Stuart
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: seq 2-2-1 cannot build static libraries Benjamin Franksen
Next: EPICS Meeting, May 18-22, FRIB: Experiment control / data acquisition Kasemir, Kay
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·