Trying to build static library only

257 views
Skip to first unread message

Adrian Swain

unread,
Jun 8, 2016, 5:36:52 PM6/8/16
to fix8-s...@googlegroups.com

I tried the following

 

./bootstrap

./configure --disable-shared --enable-static

make

 

I get this error

 

make[2]: Entering directory '/home/adrian/fix8-1.3.4/compiler'

/bin/bash ../libtool  --tag=CXX   --mode=link g++  -g -O2 -std=c++11 -Wall -lfix8 -lPocoFoundation -lPocoNet -lPocoUtil  -L../runtime -rdynamic -lrt     -lz  -o f8c f8c.o f8cutils.o f8precomp.o precomp.o 

libtool:   error: cannot find name of link library for '/home/adrian/fix8-1.3.4/runtime/libfix8.la'

Makefile:485: recipe for target 'f8c' failed

make[2]: *** [f8c] Error 1

make[2]: Leaving directory '/home/adrian/fix8-1.3.4/compiler'

Makefile:567: recipe for target 'all-recursive' failed

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory '/home/adrian/fix8-1.3.4'

Makefile:472: recipe for target 'all' failed

make: *** [all] Error 2

 

 

Patrick Luck

unread,
Jul 6, 2020, 5:17:25 PM7/6/20
to fix8 support
Hello,

Did you manage to solve this problem? I am receiving the same errors when using Ubuntu 18.04.2 with fix8-1.4.1.

Thanks,

Patrick

Eric Pederson

unread,
Aug 4, 2020, 7:26:16 PM8/4/20
to fix8 support
I am unable to build a static library as well using fix8 1.4.1 or 1.4.0.

I ran configure with 

./configure --enable-static --disable-shared --prefix=/userhome/epederson/fix8-1.4.1-install --with-poco=/userhome/epederson/.conan/data/Poco/1.9.1/pocoproject/stable/package/fb8a293822960b7ae0f998ffc0680701bdfed328

And the build fails with:

/bin/sh ../libtool  --tag=CXX   --mode=link g++  -g -O2 -std=c++11 -Wall -version-info 1:4:0 -ggdb -shared -lpthread -rdynamic -lz -lz -lcrypt -lPocoFoundation -lPocoNet -lPocoUtil     -L/userhome/epederson/.conan/data/Poco/1.9.1/pocoproject/stable/package/fb8a293822960b7ae0f998ffc0680701bdfed328/lib -o libfix8.la -rpath /userhome/epederson/fix8-1.4.1-install/lib xml.lo f8utils.lo message.lo traits.lo session.lo logger.lo persist.lo connection.lo configuration.lo consolemenu.lo filepersist.lo modp_numtoa.lo precomp.lo gzstream.lo
../libtool: line 2639: func__fatal_error: command not found

Fixing that typo in libtool (should be func_fatal_error) the build fails with:

/bin/sh ../libtool  --tag=CXX   --mode=link g++  -g -O2 -std=c++11 -Wall -version-info 1:4:0 -ggdb -shared -lpthread -rdynamic -lz -lz -lcrypt -lPocoFoundation -lPocoNet -lPocoUtil     -L/userhome/epederson/.conan/data/Poco/1.9.1/pocoproject/stable/package/fb8a293822960b7ae0f998ffc0680701bdfed328/lib -o libfix8.la -rpath /userhome/epederson/fix8-1.4.1-install/lib xml.lo f8utils.lo message.lo traits.lo session.lo logger.lo persist.lo connection.lo configuration.lo consolemenu.lo filepersist.lo modp_numtoa.lo precomp.lo f8measure.lo gzstream.lo
libtool:   error: cannot build a shared library See the libtool documentation for more information. Fatal configuration error.

Has anyone been able to build a static lib?

Ian McKane

unread,
Aug 4, 2020, 7:31:07 PM8/4/20
to fix8 support
Why do you need a static library? Just build it with the default shared libraries. There is no penalty in using these. I doubt you'll get the static working.
/Ian

Reply all
Reply to author
Forward
0 new messages