Solved gnupg complaining about libintl.so.8 symbols: Bad value

  • Thread starter Thread starter Hanky-panky
  • Start date Start date
H

Hanky-panky

Guest
Like in the title: security/gnupg build fail with this error message:

Code:
/usr/bin/ld: //usr/local/lib/libintl.so.8: invalid DSO for symbol `gettext' definition
//usr/local/lib/libintl.so.8: could not read symbols: Bad value

The above libintl.so.8 is part of devel/gettext-runtime. Deleting it and rebuilding it do not solve the problem.

Ideas?
 
What version of FreeBSD are you using this on?

I just tried myself and I cannot reproduce any problems.
Actually it happen on two systems, both are:

Code:
FreeBSD freebsd101 10.1-RELEASE-p10 FreeBSD 10.1-RELEASE-p10 #0: Tue May 12 19:33:13 UTC 2015     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
 
I'd first start by making sure that your ports tree is fully up to date and that you're also using the current versions. Which is respectively gnupg-2.1.6 (security/gnupg) and gettext-runtime-0.19.4 (devel/gettext-runtime).

Although gettext-runtime also has dependencies on its own I can only find related issues which are caused by specific build flags. So the next thing I'm wondering: what does # make showconfig show (when used in security/gnupg)?

Although not fully related, but it might shed a little more info, what happens if you try to build security/gnupg1, so running # make build in the port directory?
 
You can try to compile it with NLS=off. But it's by default on. (I think it will not solve the "real" problem).
Solved, first deleting the installed package, and then rebuilding the related port after a clean of the old configuration and work directory with this command:

make clean config install clean

Now it is not very clear to me why cleaning everything fixed the problem (the build, even if work directory cleaned, still have to link with the library it complained before and the library, cleaning or not cleaning, it is still the same), then it is fixed. If someone have any explanation on this it could improve my learning curve.


PS: it worked on both the failing system.
 
You told us not which gnupg-version, actual it is 2.1.6.0 (last number is the PORTREVISION).

It's longer time ago, but I don't know if it could related to the last /usr/ports/UPDATING entry:

20141130:
AFFECTS: users of devel/gettext (close to everyone)
AUTHOR: tijl@FreeBSD.org

The devel/gettext port has been split up in devel/gettext-runtime, a
lightweight package containing runtime libraries, and devel/gettext-tools,
a package containing developer tools. The devel/gettext port still exists
as a metaport.

You must first delete the existing installation of gettext and then
reinstall it. This will break sudo, so you *must* do this in a root
shell (sudo -i) if you use sudo.

# pkg delete -f gettext
# portmaster devel/gettext

Or for portupgrade users:

# pkg delete -f gettext
# portinstall devel/gettext

Or for binary users:

# pkg delete -f gettext
# pkg upgrade
 
Back
Top