From: "b. f." on
Alexander Leidinger wrote:
>Quoting Doug Barton <dougb at FreeBSD.org> (from Thu, 03 Jun 2010
11:29:01 -0700):
>
>> On 06/03/10 05:39, Matthias Andree wrote:
>>> Am 03.06.2010 13:30, schrieb Andrey Chernov:
>>>
>>>> security/libksba
>>>> security/libgcrypt
>>>> (they use libgpg-error)
>>
>> So libgpg-error needs to be bumped, but why do things that don't
>> like directly with gettext need it? One of the major benefits of
>> shared libraries is to avoid pointless recompiling.
>
>The reason (for those interested) is explained here:
http://www.leidinger.net/blog/2010/06/03/direct-indirect-and-explicit-dependencies-in-progamsports/

Just for the record, the useful
ports/Tools/scripts/explicit_lib_depends.sh, described and used in
your link above, may _not_ find libraries that:

-- are needed, but were intended to be statically linked;

-- are needed, but loaded via dlopen(3) and friends (this is noted in
a comment in ports/Tools/scripts/neededlibs.sh );

-- are needed, and dynamically linked in the usual way, but are not
referenced in any ELF DT_NEEDED tags. These tags are optional, not
mandatory, in the System V ABI, and they can be missing for a number
of reasons. They may not be present in a pre-compiled binary. Or,
for example. because some ports make shared libraries by converting
static archives into shared libraries with the linker, the tags can
sometimes be missing for those libraries. Also, some ports use a
version of gcc4* wired to devel/binutils, but then directly invoke
some portion of the older base system binutils. I've seen this lead
to missing tags in the past.

b.
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Paul Macdonald on

After portupgrade -rf gettext which seemed to go fine i noticed an issue
with logrotate.

/usr/local/sbin/logrotate
/libexec/ld-elf.so.1: Shared object "libintl.so.8" not found, required
by "libpopt.so.0"

on a clean rebuild:

/usr/bin/ld: warning: libintl.so.8, needed by /usr/local/lib/libpopt.so,
not found (try using -rpath or -rpath-link)
/usr/local/lib/libpopt.so: undefined reference to `libintl_dgettext'
/usr/local/lib/libpopt.so: undefined reference to
`libintl_bind_textdomain_codeset'
/usr/local/lib/libpopt.so: undefined reference to `libintl_textdomain'

(i have /usr/local/lib/libintl.so.8)

What do i do here?

thanks
Paul.


On 03/06/2010 12:30, Andrey Chernov wrote:
> On Thu, Jun 03, 2010 at 02:44:42AM -0700, Ade Lovett wrote:
>
>> FYI, devel/gettext, by the time you read this, assuming mirrors are up to date, will have jumped from 0.18 to 0.18_1.
>>
>> Fear not, there is no need to do a massive rebuild, merely update (or forcibly update), and a whole bunch of issues with the port in an upgrading environment will go away.
>>
> BTW, just found more ports needs to be bumped due to gettext:
>
> mail/mutt-devel
>
> security/libksba
> security/libgcrypt
> (they use libgpg-error)
>
>


--
-------------------------
Paul Macdonald
IFDNRG Ltd
Web and video hosting
-------------------------
t: 0131 5548070
m: 07534206249
e: paul(a)ifdnrg.com
w: http://www.ifdnrg.com
-------------------------
IFDNRG
40 Maritime Street
Edinburgh
EH6 6SA
-------------------------

_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: "b. f." on
>After portupgrade -rf gettext which seemed to go fine i noticed an issue
>with logrotate.
>
>/usr/local/sbin/logrotate
>/libexec/ld-elf.so.1: Shared object "libintl.so.8" not found, required
>by "libpopt.so.0"
>
>on a clean rebuild:
>
>/usr/bin/ld: warning: libintl.so.8, needed by /usr/local/lib/libpopt.so,
>not found (try using -rpath or -rpath-link)
>/usr/local/lib/libpopt.so: undefined reference to `libintl_dgettext'
>/usr/local/lib/libpopt.so: undefined reference to
>`libintl_bind_textdomain_codeset'
>/usr/local/lib/libpopt.so: undefined reference to `libintl_textdomain'
>
>(i have /usr/local/lib/libintl.so.8)
>
>What do i do here?

The problem is actually with the dependency devel/popt. The new
devel/gettext uses libintl.so.9, so it looks like something was not
properly updated. Update your ports tree, to make sure you have the
latest gettext-related fixes, and try again. And if I were you, I
would use 'portupgrade -fuvr gettext' to clean out the old shared
libraries and force rebuilds. It may take a little longer, though.
Assuming that at least part of your first update attempt was
successful, you could avoid another sweeping update by just looking at
ports that are still mistakenly linked to the old gettext libraries,
like libintl.so.8, and then just update those ports and their direct
dependencies, but that could also take time, and requires a little
knowledge. It is probably just safer to to perform the whole update
again.

b.
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Paul Macdonald on
On 04/06/2010 12:23, b. f. wrote:
>> After portupgrade -rf gettext which seemed to go fine i noticed an issue
>> with logrotate.
>>
>> /usr/local/sbin/logrotate
>> /libexec/ld-elf.so.1: Shared object "libintl.so.8" not found, required
>> by "libpopt.so.0"
>>
>> on a clean rebuild:
>>
>> /usr/bin/ld: warning: libintl.so.8, needed by /usr/local/lib/libpopt.so,
>> not found (try using -rpath or -rpath-link)
>> /usr/local/lib/libpopt.so: undefined reference to `libintl_dgettext'
>> /usr/local/lib/libpopt.so: undefined reference to
>> `libintl_bind_textdomain_codeset'
>> /usr/local/lib/libpopt.so: undefined reference to `libintl_textdomain'
>>
>> (i have /usr/local/lib/libintl.so.8)
>>
>> What do i do here?
>>
> The problem is actually with the dependency devel/popt. The new
> devel/gettext uses libintl.so.9, so it looks like something was not
> properly updated. Update your ports tree, to make sure you have the
> latest gettext-related fixes, and try again. And if I were you, I
> would use 'portupgrade -fuvr gettext' to clean out the old shared
> libraries and force rebuilds. It may take a little longer, though.
> Assuming that at least part of your first update attempt was
> successful, you could avoid another sweeping update by just looking at
> ports that are still mistakenly linked to the old gettext libraries,
> like libintl.so.8, and then just update those ports and their direct
> dependencies, but that could also take time, and requires a little
> knowledge. It is probably just safer to to perform the whole update
> again.
>
> b.
> _______________________________________________
> freebsd-ports(a)freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"
>


thanks for your response,

rebuilding devel/popt and then rebuilding sysutils/logrotate worked

I'd forgotten that i use portmaster not portupgrade on that box so had done
portmaster -w -r gettext

before the above rebuilds
thanks!

--
-------------------------
Paul Macdonald
IFDNRG Ltd
Web and video hosting
-------------------------
t: 0131 5548070
m: 07534206249
e: paul(a)ifdnrg.com
w: http://www.ifdnrg.com
-------------------------
IFDNRG
40 Maritime Street
Edinburgh
EH6 6SA
-------------------------

_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Matthias Andree on
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 04.06.2010 12:44, schrieb Paul Macdonald:
>
> After portupgrade -rf gettext which seemed to go fine i noticed an issue
> with logrotate.
>
> /usr/local/sbin/logrotate
> /libexec/ld-elf.so.1: Shared object "libintl.so.8" not found, required
> by "libpopt.so.0"
>
> on a clean rebuild:
>
> /usr/bin/ld: warning: libintl.so.8, needed by /usr/local/lib/libpopt.so,
> not found (try using -rpath or -rpath-link)
> /usr/local/lib/libpopt.so: undefined reference to `libintl_dgettext'
> /usr/local/lib/libpopt.so: undefined reference to
> `libintl_bind_textdomain_codeset'
> /usr/local/lib/libpopt.so: undefined reference to `libintl_textdomain'
>
> (i have /usr/local/lib/libintl.so.8)
>
> What do i do here?

It would seem you may have to rebuild the popt port, too.

HTH
Matthias
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iEYEARECAAYFAkwI3AYACgkQvmGDOQUufZXEIwCfd7n6wCtodccbRgIp7hyHA+9V
zoIAoJ3ldMYl5pc4R27p0xJCNE89GGOx
=ramC
-----END PGP SIGNATURE-----
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"