On Sun, Oct 16, 2005 at 02:03:13PM +0200, Kurt Roeckx wrote:
> Package: gbib
> Version: 0.1.2-7
> Severity: serious
> 
> Hi,
> 
> Your package is failing to build on 64 bit arches.  During
> configure we see:
> checking for gettext in libc... no
> 
> Which later results in:
> c++ -o gbib -g bibentry.o bibfiles.o bibrc.o gui.o lyxsup.o entrydialog.o 
> lyxco
> nnect.o entrydef.o entrylist.o recent.o command_dlg.o   -rdynamic -L/usr/lib 
> -L
> /usr/X11R6/lib -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk 
> -lgmodul
> e -ldl -lXi -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb-3 
> -l
> glib /intl/libintl.a
> c++: /intl/libintl.a: No such file or directory
> make[1]: *** [gbib] Error 1

Hello Philipp,

The attached patch fix this problem by patching aclocal.m4 and configure
to not cast a char * to an int.

It also fix po/Makefile.in.in so that 'debian/rules' clean work.
(Else you cannot build the package twice in a row).

Your package is actually not using automake, only autoconf. 
This means two things:
1) The Makefile.in is hand-written and there is no Makefile.am or need
for one.
2) There is no risk of timestanp skew when patching configure.

Cheers,
-- 
Bill. <[EMAIL PROTECTED]>

Imagine a large red swirl here. 
diff -u gbib-0.1.2/po/Makefile.in.in gbib-0.1.2/po/Makefile.in.in
--- gbib-0.1.2/po/Makefile.in.in
+++ gbib-0.1.2/po/Makefile.in.in
@@ -191,7 +191,7 @@
 clean: mostlyclean
 
 distclean: clean
-       rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m
+       rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m *.gmo
 
 maintainer-clean: distclean
        @echo "This command is intended for maintainers to use;"
diff -u gbib-0.1.2/configure gbib-0.1.2/configure
--- gbib-0.1.2/configure
+++ gbib-0.1.2/configure
@@ -2118,7 +2118,7 @@
 #include "confdefs.h"
 #include <libintl.h>
 int main() {
-return (int) gettext ("")
+char * foo = gettext ("")
 ; return 0; }
 EOF
 if { (eval echo configure:2125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && 
test -s conftest${ac_exeext}; then
--- gbib-0.1.2.orig/aclocal.m4
+++ gbib-0.1.2/aclocal.m4
@@ -53,7 +53,7 @@
 
        AC_CHECK_HEADER(libintl.h,
          [AC_CACHE_CHECK([for gettext in libc], gt_cv_func_gettext_libc,
-           [AC_TRY_LINK([#include <libintl.h>], [return (int) gettext ("")],
+           [AC_TRY_LINK([#include <libintl.h>], [char * foo = gettext ("")],
               gt_cv_func_gettext_libc=yes, gt_cv_func_gettext_libc=no)])
 
           if test "$gt_cv_func_gettext_libc" != "yes"; then

Reply via email to