bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: packaging gettext-runtime-0.14.1 and gettext-tools under NetBSD


From: Bruno Haible
Subject: Re: packaging gettext-runtime-0.14.1 and gettext-tools under NetBSD
Date: Wed, 10 Mar 2004 11:06:14 +0100
User-agent: KMail/1.5

Jeremy C. Reed wrote:
> So I built gettext-runtime and gettext-tools again without changing the
> libtool. (I had been replacing the provided/built libtool.)
>
> gettext-runtime under NetBSD installed:
>  lib/libasprintf.so.0.0
> but under Linux it installed:
>  lib/libasprintf.so.0.0.0

OK, so what?

> (As a package developer, I want this to be consistent -- just two numbers
> instead of three -- and that is one reason for having our own libtool.)

This is naive. Different systems have different ways of doing shared library
versioning. It's just as if you wanted executables to be named "*.exe"
on all systems, or shared libraries to be named "*.dylib" on all systems,
or executables to be built with -fPIC on all systems. "For consistency".

> Also, it seems strange to be all zeros.

It's not strange if you have read the libtool documentation chapter
about library versioning.

> gettext-runtime under NetBSD (again using libtool as configured/provided
> with gettext source) installed:
>
>  lib/libintl.so.7
>  lib/libintl.so.7.0
>
> Are those numbers wrong?

They are right for NetBSD. On Linux, shared library versions work differently,
therefore these numbers would be wrong for Linux.

> Now gettext-tools fails to install under NetBSD using pkgsrc.
>
> Making install in libuniname
> Making install in src
> /usr/bin/make  install-am
> mkdir -p -- . /usr/pkg/lib
>  /bin/sh ../libtool --mode=install /usr/bin/install -c -o root -g wheel 
> libgettextsrc.la /usr/pkg/lib/libgettextsrc.la libtool: install: warning:
> relinking `libgettextsrc.la'
> (cd
> /usr/pkg/tmp/pkgsrc/wip/gettext-tools/work.rainier/gettext-0.14.1/gettext-t
>ools/src; /bin/sh ../libtool --mode=relink gcc -O2 -I/usr/pkg/include
> -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o libgettextsrc.la -rpath /usr/pkg/lib
> -release 0.14.1 ../lib/libgettextlib.la ../intl/libintl.la -L/usr/pkg/lib
> -liconv -R/usr/pkg/lib -L/usr/pkg/lib -liconv -R/usr/pkg/lib -lc
> -no-undefined message.lo read-po-abstract.lo po-lex.lo po-gram-gen.lo
> po-hash-gen.lo po-charset.lo read-properties.lo read-stringtable.lo
> open-po.lo dir-list.lo str-list.lo read-po.lo write-properties.lo
> write-stringtable.lo write-po.lo msgl-ascii.lo msgl-iconv.lo msgl-equal.lo
> msgl-cat.lo msgl-english.lo file-list.lo msgl-charset.lo po-time.lo
> plural.lo plural-table.lo format.lo format-c.lo format-sh.lo
> format-python.lo format-lisp.lo format-elisp.lo format-librep.lo
> format-java.lo format-csharp.lo format-awk.lo format-pascal.lo
> format-ycp.lo format-tcl.lo format-perl.lo format-perl-brace.lo
> format-php.lo format-gcc-internal.lo format-qt.lo ) gcc -shared 
> .libs/message.o .libs/read-po-abstract.o .libs/po-lex.o .libs/po-gram-gen.o
> .libs/po-hash-gen.o .libs/po-charset.o .libs/read-properties.o
> .libs/read-stringtable.o .libs/open-po.o .libs/dir-list.o .libs/str-list.o
> .libs/read-po.o .libs/write-properties.o .libs/write-stringtable.o
> .libs/write-po.o .libs/msgl-ascii.o .libs/msgl-iconv.o .libs/msgl-equal.o
> .libs/msgl-cat.o .libs/msgl-english.o .libs/file-list.o
> .libs/msgl-charset.o .libs/po-time.o .libs/plural.o .libs/plural-table.o
> .libs/format.o .libs/format-c.o .libs/format-sh.o .libs/format-python.o
> .libs/format-lisp.o .libs/format-elisp.o .libs/format-librep.o
> .libs/format-java.o .libs/format-csharp.o .libs/format-awk.o
> .libs/format-pascal.o .libs/format-ycp.o .libs/format-tcl.o
> .libs/format-perl.o .libs/format-perl-brace.o .libs/format-php.o
> .libs/format-gcc-internal.o .libs/format-qt.o  -Wl,--rpath -Wl,/usr/pkg/lib
> -L/usr/pkg/tmp/pkgsrc/wip/gettext-tools/work.rainier/gettext-0.14.1/gettext
>-tools/intl/.libs -L/usr/pkg/lib -lgettextlib -lintl -liconv -lc 
> -Wl,-R/usr/pkg/lib -Wl,-soname -Wl,libgettextsrc-0.14.1.so -o
> .libs/libgettextsrc-0.14.1.so /usr/bin/ld: cannot find -lgettextlib

It's one more bug in pkgsrc: The previous install command should have
installed libgettextlib in /usr/pkg/lib. Then
"gcc ... -L/usr/pkg/lib -lgettextlib" would find it.

To convince yourself, build and install gettext without pkgsrc.

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]