Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gtk-- not working?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
bofighter
n00b
n00b


Joined: 20 Jun 2002
Posts: 9

PostPosted: Thu Jul 11, 2002 1:02 am    Post subject: gtk-- not working? Reply with quote

I'm trying to install gtkmm and gtkmm-addons. gtkmm installs fine (v. 1.2.9-r2), but gtkmm-addons fails configure with the following:

checking for gtkmm-config... /usr/bin/gtkmm-config
checking for GTK-- - version >= 1.2.0... no
*** Could not run GTK-- test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding GTK-- or finding the wrong
*** version of GTK--. If it is not finding GTK--, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location Also, make sure you have run ldconfig if that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
configure: error: Gtk-- 1.2.0 or newer not found or broken - see config.log for details.

I've heard of similar reports stating that its actually autoconf thats broken, but I haven't been able to get those fixes to work with gtkmm-addons (0.5.3).

I've also tried downloading xtunes-0.31 (xtunes.sourceforge.net), but the configure script fails at the same place...

Any help would be appreciated :(

-bof
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Thu Jul 11, 2002 1:09 am    Post subject: Reply with quote

Moving to Desktop Environments forum.
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Jul 11, 2002 1:11 am    Post subject: Reply with quote

Could you post anything that looks helpful in config.log? It should be in the work directory under the /var/tmp/portage subdirectory of whatever package you're trying to compile. Also, the output of
Code:
qpkg -v -i gtk+
might be helpful.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
bofighter
n00b
n00b


Joined: 20 Jun 2002
Posts: 9

PostPosted: Thu Jul 11, 2002 5:04 am    Post subject: config.log Reply with quote

qpkg -v -i gtk+

The GIMP Toolkit [ http://www.gtk.org/ ]
GTK+ interface for Licq, the KDE/QT ICQ client [ http://gtk.licq.org ]
net-im/gtk+licq-0.51-r2
Useful set of widgets for creating GUI's for the Xwindows system using GTK+. [ http://gtkextra.sourceforge.net/ ]
Gimp ToolKit + [ http://www.gtk.org/ ]
x11-libs/gtk+-1.2.10-r8 *
x11-libs/gtk+-2.0.3-r1
x11-libs/gtk+-2.0.5
x11-libs/gtk+-2.0.5-r1 *
x11-libs/gtk+extra-0.99.17

qpkg -v -i gtkmm

Gtk--Addons - a set of extensions to gtk[--]. [ http://home.wtal.de/petig/Gtk/ ]
C++ interface for GTK+ [ http://gtkmm.sourceforge.net/ ]
x11-libs/gtkmm-1.2.8
x11-libs/gtkmm-1.2.9
x11-libs/gtkmm-1.2.9-r1
x11-libs/gtkmm-1.2.9-r2 *
x11-libs/gtkmm-1.3.14
x11-libs/gtkmm-1.3.15
x11-libs/gtkmm-addons-0.5.3

Output of config.log:

configure:1992: c++ -o conftest -mcpu=athlon-tbird -O3 -pipe -I/usr/lib/gtkmm/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/lib/sigc++-1.0/include -I/usr/include/sigc++-1.0 conftest.C -rdynamic -L/usr/lib -L/usr/X11R6/lib -lgtkmm -lgdkmm -lgtk -lgdk -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm -lsigc -lpthread 1>&5
In file included from /usr/include/g++-v31/cstdlib:52,
from /usr/include/g++-v31/bits/stl_algobase.h:67,
from /usr/include/g++-v31/memory:54,
from /usr/include/g++-v31/string:48,
from /usr/include/gtk--/base.h:28,
from /usr/include/gtk--.h:70,
from configure:1915:
/usr/include/stdlib.h:577: declaration of `void exit(int) throw ()' throws different exceptions
configure:1912: than previous declaration `void exit(int)'

hmm... it seems to fail on an exception...

-bof
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Jul 11, 2002 5:51 am    Post subject: Re: config.log Reply with quote

bofighter wrote:
x11-libs/gtk+-1.2.10-r8 *
x11-libs/gtk+-2.0.3-r1
x11-libs/gtk+-2.0.5
x11-libs/gtk+-2.0.5-r1 *

Both 1.2 and 2.0 installed - they might be fighting, but I'm not sure.
Quote:

from /usr/include/gtk--/base.h:28,
from /usr/include/gtk--.h:70,
from configure:1915:
/usr/include/stdlib.h:577: declaration of `void exit(int) throw ()' throws different exceptions
configure:1912: than previous declaration `void exit(int)'

This almost looks like it's not happy with GCC3's more restrictive interpretation of C++ syntax - do those lines really say
Code:
/usr/include/gtk--/base.h
/usr/include/gtk--.h

? It looks like something got erased in the post, and I wish I could figure out which lines of which headers are getting processed here.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
bofighter
n00b
n00b


Joined: 20 Jun 2002
Posts: 9

PostPosted: Thu Jul 11, 2002 2:10 pm    Post subject: Re: config.log Reply with quote

rac wrote:

Code:
/usr/include/gtk--/base.h
/usr/include/gtk--.h

? It looks like something got erased in the post, and I wish I could figure out which lines of which headers are getting processed here.


There are more lines:

configure: failed program was:
#line 1910 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit(int);
#endif

#include <gtk--.h>
#include <stdio.h>
#include <stdlib.h>

int
main ()
{
int major, minor, micro;
char *tmp_version;

system ("touch conf.gtkmmtest");

/* HP/UX 0 (%@#!) writes to sscanf strings */
tmp_version = g_strdup("1.2.0");
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
printf("%s, bad version string\n", "1.2.0");
exit(1);
}

if ((gtkmm_major_version != 1) ||
(gtkmm_minor_version != 2) ||
(gtkmm_micro_version != 9))
{
printf("\n*** 'gtkmm-config --version' returned %d.%d.%d, but GTK-- (%d.%d.%d)\n",
1, 2, 9,
gtkmm_major_version, gtkmm_minor_version, gtkmm_micro_version);
printf ("*** was found! If gtkmm-config was correct, then it is best\n");
printf ("*** to remove the old version of GTK--. You may also be able to fix the error\n");
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
printf("*** required on your system.\n");
printf("*** If gtkmm-config was wrong, set the environment variable GTKMM_CONFIG\n");
printf("*** to point to the correct copy of gtkmm-config, and remove the file config.cache\n");
printf("*** before re-running configure\n");
}
/* GTK-- does not have the GTKMM_*_VERSION constants */
/*
else if ((gtkmm_major_version != GTKMM_MAJOR_VERSION) ||
(gtkmm_minor_version != GTKMM_MINOR_VERSION) ||
(gtkmm_micro_version != GTKMM_MICRO_VERSION))
{
printf("*** GTK-- header files (version %d.%d.%d) do not match\n",
GTKMM_MAJOR_VERSION, GTKMM_MINOR_VERSION, GTKMM_MICRO_VERSION);
printf("*** library (version %d.%d.%d)\n",
gtkmm_major_version, gtkmm_minor_version, gtkmm_micro_version);
}
*/
else
{
if ((gtkmm_major_version > major) ||
((gtkmm_major_version == major) && (gtkmm_minor_version > minor)) ||
((gtkmm_major_version == major) && (gtkmm_minor_version == minor) && (gtkmm_micro_version >= micro)))
{
return 0;
}
else
{
printf("\n*** An old version of GTK-- (%d.%d.%d) was found.\n",
gtkmm_major_version, gtkmm_minor_version, gtkmm_micro_version);
printf("*** You need a version of GTK-- newer than %d.%d.%d. The latest version of\n",
major, minor, micro);
printf("*** GTK-- is always available from ftp://ftp.gtk.org.\n");
printf("***\n");
printf("*** If you have already installed a sufficiently new version, this error\n");
printf("*** probably means that the wrong copy of the gtkmm-config shell script is\n");
printf("*** being found. The easiest way to fix this is to remove the old version\n");
printf("*** of GTK--, but you can also set the GTKMM_CONFIG environment to point to the\n");
printf("*** correct copy of gtkmm-config. (In this case, you will have to\n");
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
printf("*** so that the correct libraries are found at run-time))\n");
}
}
return 1;
}

configure:2039: c++ -o conftest -mcpu=athlon-tbird -O3 -pipe -I/usr/lib/gtkmm/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/lib/sigc++-1.0/include -I/usr/include/sigc++-1.0 conftest.C -rdynamic -L/usr/lib -L/usr/X11R6/lib -lgtkmm -lgdkmm -lgtk -lgdk -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm -lsigc -lpthread 1>&5

-bof
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Jul 11, 2002 5:11 pm    Post subject: Re: config.log Reply with quote

bofighter wrote:
rac wrote:

Code:
/usr/include/gtk--/base.h
/usr/include/gtk--.h

? It looks like something got erased in the post, and I wish I could figure out which lines of which headers are getting processed here.


There are more lines:

Oh, I see - the 'mm' in "gtkmm" is "minus-minus", and those really are the header names. I don't have that library installed on any of my systems yet.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Jul 11, 2002 7:18 pm    Post subject: Reply with quote

OK, I think I see what is happening, but I can only give vague suggestions because I don't have these libraries installed anywhere. The configure script for the mmaddons is generated by autoconf 2.13, which has a loose definition of exit that is not compatible with GCC3.

If you have autoconf 2.53a installed, you can try the following. I have no idea whether this will work, but you might at least get a different error message out of it :)

Code:
# ebuild /usr/portage/x11-libs/gtkmm-addons/gtkmm-addons-0.5.3.ebuild unpack
# cd /var/tmp/portage/gtkmm-addons-0.5.3/work/GtkmmAddons-0.5.3
# WANT_AUTOCONF_2_5=1 autoconf -f

... and then try to manually run configure and make by hand, following as closely as possible how the ebuild would do it. Have a look at the FAQ answer entitled "I want to perform the ./configure step myself. Can I?", if you're not already familiar with it.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum