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

Re: Help with configure failure on ia64 [ogle: misdetect libxml2 version]



On Sat, Jan 12, 2002 at 01:36:19AM +0100, Mikael Hedin wrote:
> ogle doesn't build on ia64, and I don't understand what's causing it.
> See
> http://buildd.debian.org/fetch.php?&pkg=ogle&ver=0.8.2-2&arch=ia64&stamp=1010455931&file=log&as=raw
> for the latest build log.  Also look at
> caballero.d.o:~micce/ogle-0.8.2 for my test configure (e.g. config.log).  The
> configure script stops when testing xml2-config, but the correct version is
> on the system.

The configure script has a bad test program. It is generated from 
aclocal.m4 which is normally generated by the upstream developer. If 
you don't want to rerun aclocal etc. this patch should suffice:

torsten@caballero:~/ogle-0.8.2$ diff -u ~micce/ogle-0.8.2/configure configure
--- /home/micce/ogle-0.8.2/configure    Fri Dec  7 17:45:21 2001
+++ configure   Sat Jan 12 01:25:05 2002
@@ -17410,6 +17410,7 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <xmlversion.h>
+#include <string.h>
 
 int
 main()

Worked for me anyway. Or change aclocal.m4 in the same way... 
Rerunning aclocal and autoconf should suffice but did not work with 
this error:

aclocal: configure.in: 10: macro `AM_PROG_AS' not found in library

So either use the patch above or patch aclocal.m4 and run autoconf.

BTW: The failure is because strdup is expected to return an int 
without string.h which is too short to hold a pointer on ia64.
Kudos to Matthew Wilcox for telling me how big they really are ;)

HTH

	Torsten

Attachment: pgpTxvA449Rnn.pgp
Description: PGP signature


Reply to: