Problems compiling DIA on solaris 9 sparc



Hello all, I hope someone can help me.

I have a sunfire with solaris9 with gcc 3.4.2, gmake 3,80, gtk+ 2.2.4,
glib 2.6.2 , atk, pango, pkconfig, libxml, fontconfig, freetype,
libpng, etc, all installed from packages from sunfreeware. I also
compiled intltool as it said in the requirements for DIA. I set
the variable LD_LIBRARY_PATH to include /usr/local/lib.

I am trying to compile dia 0.9.4 and the configure says:
=====================
checking for GLIB - version >= 2.0.0... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log
for the
*** exact error that occured. This usually means GLIB is incorrectly
installed.
checking for pkg-config... (cached) /usr/local/bin/pkg-config
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log
for the
*** exact error that occured. This usually means GTK+ is incorrectly
installed.
=====================
and it ends without error. The make fails with a lot of errors.

I guessed that the configure is not detecting glib. So I looked at the
config.log file and it said that "glibconfig.h" was not found.

Previous versions of glib put it in /usr/local/lib/glib/include but now
it is not there. So I got the glib2.6.2 sources and copied the
glibconfig.h to /usr/local/lib/glib-2.0/include, and tried again. I
don't know if that was correct but i was guessing.

Now the errors were like:
=====================
configure:20534: checking for GLIB - version >= 2.0.0
configure:20653: gcc -o conftest -g -O2 -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include     conftest.c -L/usr/local/lib
-lglib-2.0 -liconv    >&5
In file included from
/usr/local/include/glib-2.0/glib/gasyncqueue.h:30,
                from /usr/local/include/glib-2.0/glib.h:32,
                from conftest.c:36:
/usr/local/include/glib-2.0/glib/gthread.h: In function `__declspec':
/usr/local/include/glib-2.0/glib/gthread.h:112: error: storage class
specified for parameter `__declspec'
/usr/local/include/glib-2.0/glib/gthread.h:112: warning: parameter
names (without types) in function declaration
/usr/local/include/glib-2.0/glib/gthread.h:112: error: parse error
before "gboolean"
/usr/local/include/glib-2.0/glib/gthread.h:111: error: declaration for
parameter "g_thread_functions_for_glib_use" but no such parameter
=====================
etc.etc.

I also tried setting PKG_CONFIG_PATH, GTK_FLAGS, GTK_LIBS but no luck.

What am I doing wrong? what am I missing? Is this a glib problem, or a
configure problem? Any help will be appreciated.

Thanks

A.H.

PS. Some time ago I successfully compiled DIA, same version, but in
Solaris 8, with gcc, gtk, etc packages from sunfreeware.



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