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: seq 2-2-1 cannot build static libraries
From: Benjamin Franksen <[email protected]>
To: "[email protected]" <[email protected]>
Date: Wed, 4 Mar 2015 21:04:22 +0100
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/linux-
x86 -
L/net/csr/srv/projects/ctl/franksen/epics/base/base-3.15.1/lib/linux-x86
-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/linux-
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/linux-
x86/libseq.a(seq_main.o): In function `init_sprog':
/net/csr/srv/projects/ctl/franksen/epics/support/seq/branch-2-2/src/seq/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


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

Navigate by Date:
Prev: EDM: seeking larger menus and text editing widgets jon
Next: solved: seq 2-2-1 cannot build static libraries Benjamin Franksen
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: Re: sseq 2-2-1 issue/bug Matthew D. Moore
Next: solved: seq 2-2-1 cannot build static libraries Benjamin Franksen
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 ·