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

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

Can't create a package for gettext-0.11


From: Santiago Vila
Subject: Can't create a package for gettext-0.11
Date: Sat, 9 Mar 2002 19:00:10 +0100 (CET)

Hello.

I'm trying to create a Debian package for gettext-0.11.
Since I'm using gcj, the very first thing I do is to apply this patch:

diff -r -u gettext-0.11.orig/configure gettext-0.11/configure
--- gettext-0.11.orig/configure 2002-01-31 14:43:53.000000000 +0100
+++ gettext-0.11/configure      2002-03-09 14:28:53.000000000 +0100
@@ -1770,7 +1770,7 @@
 fi

                 if test -n "$HAVE_GCJ_IN_PATH" \
-       && gcj --version 2>/dev/null | grep '^3-9' >/dev/null; then
+       && gcj --version 2>/dev/null | grep '^[3-9]' >/dev/null; then
       HAVE_GCJ=1
       ac_result="gcj -C"
     else

(According to Bruno Haible this is really a bug in javacomp.m4, so I assume
it's already fixed in CVS).

Then I do "./configure --prefix=/usr" followed by "make", followed by
"make install DESTDIR=`pwd`/debian/tmp" but libgettextsrc.so is not
installed in debian/tmp/usr/lib, only libgettextlib. It does not work
either if I use  prefix=`pwd`/debian/tmp/usr  instead of using DESTDIR.


Looking at the typescript, I see this after the "make install"

make[2]: Entering directory `/tmp/gettext-0.11/src'
/bin/sh ../mkinstalldirs /tmp/gettext-0.11/debian/tmp/usr/lib
 /bin/sh ../libtool --mode=install /usr/bin/install -c  libgettextsrc.la 
/tmp/gettext-0.11/debian/tmp/usr/lib/libgettextsrc.la
libtool: install: warning: relinking `libgettextsrc.la'
cd /tmp/gettext-0.11/src; /bin/sh ../libtool --mode=relink gcc -g -O2 -o 
libgettextsrc.la -rpath /usr/lib -release 0.11 ../lib/libgettextlib.la -lc 
-no-undefined message.lo po.lo po-lex.lo po-gram-gen.lo po-hash-gen.lo 
po-charset.lo open-po.lo dir-list.lo str-list.lo read-po.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 format.lo format-c.lo 
format-java.lo format-lisp.lo format-elisp.lo format-librep.lo format-python.lo 
format-pascal.lo format-ycp.lo
gcc -shared  message.lo po.lo po-lex.lo po-gram-gen.lo po-hash-gen.lo 
po-charset.lo open-po.lo dir-list.lo str-list.lo read-po.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 format.lo format-c.lo 
format-java.lo format-lisp.lo format-elisp.lo format-librep.lo format-python.lo 
format-pascal.lo format-ycp.lo  -L/usr/lib -lgettextlib -lc   -Wl,-soname 
-Wl,libgettextsrc-0.11.so -o .libs/libgettextsrc-0.11.so
/usr/bin/ld: cannot find -lgettextlib
collect2: ld returned 1 exit status
libtool: install: error: relink `libgettextsrc.la' with the above command 
before installing it
libtool: install: warning: remember to run `libtool --finish /usr/lib'

It seems to me that this error should stop the install process, but it
does not. The procedure follows as if nothing bad had happened and
lots of messages like this one are shown:

  /bin/sh ../libtool --mode=install /usr/bin/install -c msgcmp 
/tmp/gettext-0.11/debian/tmp/usr/bin/msgcmp
libtool: install: warning: `libgettextsrc.la' has not been installed in 
`/usr/lib'
libtool: install: warning: `/tmp/gettext-0.11/lib/libgettextlib.la' has not 
been installed in `/usr/lib'
/usr/bin/install -c .libs/msgcmp /tmp/gettext-0.11/debian/tmp/usr/bin/msgcmp
  /bin/sh ../libtool --mode=install /usr/bin/install -c msgfmt /tmp/gettext-0.11

and so on for msgfmt, msgmerge etc. Two libtool warnings each.

Also, as a result, libgettextsrc-0.11.so in src/.libs is renamed to
libgettextsrc-0.11.soU, but no new libgettextsrc-0.11.so is created.

A month ago or so, I managed to compile this, but now it does not work
and I don't know the reason (I think it could be a chicken-and-egg problem,
since now I'm trying to install it completely from scratch, or maybe
my build environment is buggy).

In either case, I think it's a bug that the install process does not stop
when ld fails as above.

Another thing which may be interesting to debug this: Looking at the
typescript I see that the very first time libgettextsrc-0.11.so is
created it does not seem to be created by libtool:

[...]
rm -fr .libs/libgettextsrc.la .libs/libgettextsrc.* .libs/libgettextsrc-0.11.*
gcc -shared  message.lo po.lo po-lex.lo po-gram-gen.lo po-hash-gen.lo 
po-charset.lo open-po.lo dir-list.lo str-list.lo read-po.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 format.lo format-c.lo 
format-java.lo format-lisp.lo format-elisp.lo format-librep.lo format-python.lo 
format-pascal.lo format-ycp.lo  -Wl,--rpath -Wl,/tmp/gettext-0.11/lib/.libs  
../lib/.libs/libgettextlib.so -lc   -Wl,-soname -Wl,libgettextsrc-0.11.so -o 
.libs/libgettextsrc-0.11.so
(cd .libs && rm -f libgettextsrc.so && ln -s libgettextsrc-0.11.so 
libgettextsrc.so)

[ I say this because there is no "/bin/sh ../libtool --mode=" thing,
but perhaps it's just in non-verbose mode. I don't know ].

I've put the complete typescript here, in case it helps:

http://people.debian.org/~sanvila/gettext-0.11/typescript


Does someone has an easy fix for this, or should I better wait for 0.11.1?

Thanks.




reply via email to

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