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

(mgp-users 00284) Re: MagicPoint 1.07a



Kazu Yamamoto ($B;3K\OBI'(B) writes:
 > Sorry for keeping you waiting for a long time. But we are pleased to
 > inform you the release of MagicPoint 1.07a.

Great.

We tried to compile it on several UNIXes and got various problems, the
main one being that MagicPoint now requires a more recent version of
libpng. We'll upgrade soon.

However, there is a big problem with configure. Running
	./configure
we get mgp working but no GIF support. Maybe you should document the
new --enable-gif option...

Running
	./configure --enable-gif
the compilation fails badly (for instance on Red Hat Linux 6.1):

gcc -c -O2 -fno-strength-reduce     -I/usr/X11R6/include   -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE=500L -D_BSD_SOURCE -D_SVID_SOURCE   -DFUNCPROTO=15 -DNARROWPROTO   -I. -DHAVE_LIBTTF=1 -DFREETYPE=1 -DHAVE_TT_FACE_PROPERTIES_CHARMAPS=1 -DUSE_PNG=1 -DUSE_GIF=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_STDARG_H=1 -DHAVE_VARARGS_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_LOCALE_H=1 -DTIME_WITH_SYS_TIME=1 -DRETSIGTYPE=void  -DMGPLIBDIR=\"/usr/X11R6/lib/X11/mgp\" -I/usr/local/include  -DUUDECODE=\"/usr/bin/uudecode\" -DGUNZIP=\"/usr/bin/gunzip\" -I/usr/local/include -I/usr/local/include                 ./missing/strdup.c
./missing/strdup.c:37: parse error before `__extension__'
./missing/strdup.c:37: `__len' undeclared here (not in a function)
./missing/strdup.c:37: initializer element is not constant
./missing/strdup.c:37: parse error before `if'
./missing/strdup.c:37: conflicting types for `__retval'
./missing/strdup.c:37: previous declaration of `__retval'
./missing/strdup.c:37: warning: data definition has no type or storage class
./missing/strdup.c:37: parse error before `}'
./missing/strdup.c:42: `str' undeclared here (not in a function)
./missing/strdup.c:42: warning: initialization makes integer from pointer without a cast
./missing/strdup.c:42: initializer element is not constant
./missing/strdup.c:42: warning: data definition has no type or storage class
./missing/strdup.c:43: parse error before `if'
make: *** [strdup.o] Error 1

After investigation, it appears that configure fails to detect the
functions (such as strdup) because of the GIF support. The config.log
contains:

configure:2574: checking for strdup
configure:2602: cc -o conftest -I/usr/local/include    conftest.c -lttf -L/usr/local/lib -L/usr/local/lib -lm  -L/usr/local/lib -lpng -lz -lungif 1>&5
/usr/local/lib/libungif.so: undefined reference to `XDestroyImage'
/usr/local/lib/libungif.so: undefined reference to `XGetWindowAttributes'
/usr/local/lib/libungif.so: undefined reference to `XGetImage'
/usr/local/lib/libungif.so: undefined reference to `XGetPixel'
/usr/local/lib/libungif.so: undefined reference to `XQueryColors'
collect2: ld returned 1 exit status
configure: failed program was:
#line 2579 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strdup(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char strdup();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strdup) || defined (__stub___strdup)
choke me
#else
strdup();
#endif

; return 0; }

Could this be fixed please?
________________________________________________________
Lionel Cons        http://home.cern.ch/~cons
CERN               http://www.cern.ch
 
Murphy Law of Combat:
	Never forget that your weapon is made by the lowest bidder.