Closed kloczek closed 2 years ago
No - that symbol should be defined in tomcrypt library. What linux & configure switches are you using?
So in my case there is no that symnbol
[tkloczko@devel-g2v firebird-4.0.2]$ objdump -T /lib64/libtomcrypt.so.1 | grep ltm_desc
[tkloczko@devel-g2v firebird-4.0.2]$
What linux & configure switches are you using?
My own distro and firebird si configured only with set of options passing some paths.
%configure \
--disable-rpath \
--with-fbbin=%{_bindir} \
--with-fbconf=%{_sysconfdir}/%{name} \
--with-fbdoc=%{_defaultdocdir}/%{name} \
--with-fbglock=%{_rundir}/%{name} \
--with-fbhelp=%{_localstatedir}/lib/%{name}/system \
--with-fbinclude=%{_includedir} \
--with-fbintl=%{_libdir}/%{name}/intl \
--with-fblib=%{_libdir} \
--with-fblog=%{_localstatedir}/log/%{name} \
--with-fbmisc=%{_datadir}/%{name}/misc \
--with-fbmsg=%{_localstatedir}/lib/%{name}/system \
--with-fbplugins=%{_libdir}/%{name}/plugins \
--with-fbsample-db=%{_localstatedir}/lib/%{name}/data \
--with-fbsample=%{_defaultdocdir}/%{name}/sample \
--with-fbsbin=%{_sbindir} \
--with-fbsecure-db=%{_localstatedir}/lib/%{name}/secdb \
--with-fbtzdata=%{_localstatedir}/lib/%{name}/tzdata \
--with-system-editline \
%{nil}
On 9/20/22 15:43, Tomasz Kłoczko wrote:
So in my case there is no that symnbol
@. firebird-4.0.2]$objdump -T /lib64/libtomcrypt.so.1 | grep ltm_desc @. firebird-4.0.2]$
What linux & configure switches are you using?
My own distro
That explains a failure reason. To build tomcrypt working with firebird you should use some non-default options (though present in most of distros).
and firebird si configured only with set of options passing some paths.
%configure \ --disable-rpath \ --with-fbbin=%{_bindir} \ --with-fbconf=%{_sysconfdir}/%{name} \ --with-fbdoc=%{_defaultdocdir}/%{name} \ --with-fbglock=%{_rundir}/%{name} \ --with-fbhelp=%{_localstatedir}/lib/%{name}/system \ --with-fbinclude=%{_includedir} \ --with-fbintl=%{_libdir}/%{name}/intl \ --with-fblib=%{_libdir} \ --with-fblog=%{_localstatedir}/log/%{name} \ --with-fbmisc=%{_datadir}/%{name}/misc \ --with-fbmsg=%{_localstatedir}/lib/%{name}/system \ --with-fbplugins=%{_libdir}/%{name}/plugins \ --with-fbsample-db=%{_localstatedir}/lib/%{name}/data \ --with-fbsample=%{_defaultdocdir}/%{name}/sample \ --with-fbsbin=%{_sbindir} \ --with-fbsecure-db=%{_localstatedir}/lib/%{name}/secdb \ --with-fbtzdata=%{_localstatedir}/lib/%{name}/tzdata \ --with-system-editline \ %{nil}
— Reply to this email directly, view it on GitHub https://github.com/FirebirdSQL/firebird/issues/7308#issuecomment-1252300093, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA44OUIZMQTNFR3NSAPCY53V7GWOPANCNFSM6AAAAAAQQ6HROQ. You are receiving this because you commented.Message ID: @.***>
Just found the issue
%build
%{set_build_flags} \
%make_build -f makefile.shared library \
CFLAGS="$CFLAGS -DLTM_DESC -DUSE_LTM" \
EXTRALIBS="-ltommath" \
INCPATH="%{_includedir}" \
LDFLAGS="$LDFLAGS" \
LIBPATH="%{_libdir}" \
PREFIX="%{_prefix}"
%install
%{set_build_flags} \
%make_install -f makefile.shared \
CFLAGS="$CFLAGS -DLTM_DESC -DUSE_LTM" \ <<<=== this line was missing
INCPATH="%{_includedir}" \
INSTALL_OPTS="-m755" \
LIBPATH="%{_libdir}" \
PREFIX="%{_prefix}"
Relinking on install caused rebuild DSO without that symbol. After rebuild and reinstall it looks like it should ..
[tkloczko@devel-g2v rpmbuild]$ objdump -T /lib64/libtomcrypt.so.1 | grep ltm_desc
00000000000d5e40 g DO .data.rel.ro 00000000000001a0 Base ltm_desc
Strange because in Feodra spec file the same line is missing 🤔
BTW. Why firebird is not using libcrypto from libxcrypt? 🤔
Thank you very much for your help. (kicking me in right direction 😋 )
After fixing this issue I've stumped on another one
make gpre
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen'
rm -f metadata.fdb
/home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/bin/isql -q -i /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/src/dbs/metadata.sql
make[3]: *** [Makefile:441: metadata.fdb] Segmentation fault (core dumped)
coreadm shows me
Tue 2022-09-20 14:04:08 BST 1134642 1000 1000 SIGSEGV present /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/bin/isql >
Tue 2022-09-20 14:04:08 BST 1134658 1000 1000 SIGSEGV present /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/bin/isql >
Tue 2022-09-20 14:04:08 BST 1134682 1000 1000 SIGSEGV present /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/bin/isql >
Tue 2022-09-20 14:04:08 BST 1134660 1000 1000 SIGSEGV present /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/bin/gbak >
Tue 2022-09-20 14:08:17 BST 1139474 1000 1000 SIGSEGV present /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/bin/isql
first core shows:
Looks like something is wrong with build procedure. Probably some library needs to be added on linking libEngine13.so