Hi,

I'm trying to compile the CVS version of Dia.
I got some errors that lmooks like some I saw in the archive of this
mailing-list. Unfortunately, I couldnt found what to do to solve the
problem in this archive.

Full output message:
<<<<
$ ./autogen.sh --prefix=/usr/local
Running gettextize...  Ignore non-fatal messages.
intl/ subdirectory exists: use option -f if you really want to delete
it.
Running libtoolize
You should add the contents of `/usr/share/aclocal/libtool.m4' to
`aclocal.m4'.
aclocal: configure.in: 0: macro `AM_PATH_PYTHON' not found in library
aclocal: configure.in: 0: macro `AM_PATH_PYTHON' not found in library
aclocal: macro `AM_PATH_PYTHON' required but not defined
aclocal: macro `AM_PATH_PYTHON' required but not defined
aclocal: macro `AM_PATH_PYTHON' required but not defined
error: AC_CONFIG_HEADER not found in configure.in
configure.in: 7: required file `./config.h.in' not found
app/Makefile.am:143: variable `GTK_LIBS' not defined
app/Makefile.am:143: variable `INTLLIBS' not defined
app/Makefile.am:143: variable `LIBART_LIBS' not defined
app/Makefile.am:143: variable `GDK_PIXBUF_LIBS' not defined
app/Makefile.am:156: variable `LIBART_LIBS' not defined
app/Makefile.am:156: variable `GDK_PIXBUF_LIBS' not defined
app/Makefile.am:156: variable `INTLLIBS' not defined
plug-ins/python/Makefile.am:16: variable `PYTHON_LIBS' not defined
autoconf: Undefined macros:
configure.in:127:    AC_DEFINE(HAVE_UNICODE,, Unicode support library
available)
configure.in:13:AC_DISABLE_STATIC
configure.in:146:AC_CHECK_LIB(popt, poptSetOtherOptionHelp,
[AC_DEFINE(HAVE_LIBPOPT)
configure.in:14:AC_PROG_LIBTOOL
configure.in:156:  AC_DEFINE(HAVE_LIBART)],
configure.in:163:AM_PATH_GDK_PIXBUF(0.7.0,,AC_MSG_ERROR([gdk-pixbuf >=
0.7.0 is required]))
configure.in:181:    AC_DEFINE(HAVE_LIBPNG)
configure.in:229:    AC_MSG_ERROR(you need libxml >= 1.8.5 for this
version of dia)
configure.in:234:  AC_MSG_ERROR(Can't find libxml library.)
configure.in:286:  AM_CHECK_PYMOD(gtk,,,[AC_MSG_ERROR(could not find
pygtk module)])
configure.in:291:    AC_MSG_ERROR([could not find files required to
build python plugin])
configure.in:34:  AC_DEFINE(USE_XIM)
configure.in:62:  AC_DEFINE(GNOME)
configure.in:67:    AC_DEFINE(GNOME_PRINT)
loading cache ./config.cache
./configure: line 539: syntax error near unexpected token
`AM_INIT_AUTOMAKE(dia,'
./configure: line 539: `AM_INIT_AUTOMAKE(dia, 0.88)'

Now type 'make' to compile dia.
>>>>

I have:
automake (GNU automake) 1.4a
Autoconf version 2.14.1
gettext (GNU gettext) 0.10.35

Is there anything someone more experienced could see ?

The reason I want to do this is beacuse I created and saved a diagramm
using dia-0.86 (from ximian). When I tried to read it again, I got a
crash.

I downloaded the tar.gz version and installed it fine.
The error I got is:
<<<
(gdb) backtrace
#0  beziershape_load (bezier=0x403df333, obj_node=0x33333333)
    at beziershape.c:907
#1  0x4047e2ac in ?? () from /usr/local/lib/dia/libstandard_objects.so
#2  0x0 in ?? ()
>>>

I can read in file beziershape.c something that look strange, around
line 910:
<<<<
  for (i = 0; i < bezier->numpoints - 1; i++) {
    obj->handles[3*i-2] = g_new(Handle, 1);
    setup_handle(obj->handles[3*i],   HANDLE_BEZMAJOR);
    obj->handles[3*i-1] = g_new(Handle, 1);
    setup_handle(obj->handles[3*i+1], HANDLE_RIGHTCTRL);
    obj->handles[3*i]   = g_new(Handle, 1);
    setup_handle(obj->handles[3*i+2], HANDLE_LEFTCTRL);
  }
>>>>

I'm quite surprised that obj->handles[-2] can be addressed (when i==0),
and wanted to see if the CVS version was reading my file without
crashing.

BTW, I'm quite surprised that such a project uses C and not C++, even
more than the code seems to try to mimic (more or less easily) C++
basics functionalities... But well, I'm not here to start a flamewar
neither to reprogram the whole thing... I just wish to know how I can
compile the CVS version so that I could try to read my file again and
issue a more precise bug report in case it still cant...

        Yannick

-- 
 _/ Yannick Patois _________________ Address (home) __________________
| irc(undernet): Garp on #france25+  | La Villa des Sciences           |
| email : [EMAIL PROTECTED]          | 12, avenue de Cambridge         |
| http://garp.feelingsurfer.net/     | 14200 Herouville-Saint-Clair    |
| Tel/Fax-home:+33 (0)2 31 94 50 32  | FRANCE                          |
| Petit Portail en Bois, Modeste et Génial : http://www.rezo.net/      |

Reply via email to