Author Topic: [SOLVED] GTK+  (Read 2501 times)

sandman

  • Guest
[SOLVED] GTK+
« on: October 19, 2009, 04:18:00 PM »
I'm trying to compile a program (opencpn-1.3.4 from SourceForge)* and after I run the ./configure command, all goes well until I get this

*** Could not run GTK+ test program, checking why...

The full output is...

++++++++++++++++++++++
[pork@localhost opencpn-1.3.4]$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether gcc needs -traditional... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking for SSP support/disable... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for useable OpenGLU Library
checking for gluNewTess in -lGLU... yes
checking wxWidgets wx-config... wx-config
checking wxWidgets version... 2.8.10
checking for wxWidgets location... /usr
checking for wxWidgets release (major, minor) number... 2.8
checking for wxWidgets setup header... /usr/lib/wx/include/
/usr/lib/wx/include/gtk2-unicode-release-2.8/wx/setup.h
checking for __WXX11__... no
checking for __WXGTK__... yes
checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 2.0.0... yes
checking for libgtk2.0-dev include files... yes
checking for cairo.h in include path... yes
checking for GTK+-2.0 test compile and run...
checking for GTK+ version...
checking for pkg-config... /usr/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.
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
[pork@localhost opencpn-1.3.4]$
++++++++++++++++++++++

Now, about 8 lines up from the bottom, it says "checking for GTK+ - version >= 2.0.0... no"

But, earlier it says "checking for GTK+ - version >= 2.0.0... yes"

The config.log file is singularly uninstructive as to what the root cause is. I've don any amount of googling about and all I seem to see are messages saying to install this or that set of headers, which the trace above seems to say I have already.  All I can think is that maybe, just maybe, there's a config issue on my system where I do have all I need but haven't indicated where these all are to the compiler. Or, I could be completely wrong.

Ideas, anyone? And in your responses assume you're dealing with an idiot who's just smart enough to have ditched Windows about a year or two ago. PCLinuxOS was my first foray into linux-land but not my only one by far, and I'm still here.

*For the curious - opencpn is an opensource chartplotter/navigation tool, great for those who enjoy messing about in boats. V 1.3.2 was packaged as an RPM by some kind soul but the latest version hasn't been, which is why I ended up trying to compile from source as there were enhancements that I needed. That and I though it's be fun to try. I even had the daft idea of learning to package and taking on responsibility for maintaining the package. Another learning curve there doubtless - but **someone** has to do it....


 
« Last Edit: October 21, 2009, 05:31:39 PM by sandman »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: GTK+
« Reply #1 on: October 19, 2009, 05:08:32 PM »
Install glibc-headers-devel.

From the description:
Quote
Linux glibc/kernel header files for program development
Glibc/Kernel-headers includes the C header files from the Linux kernel. The
header files define structures and constants that are needed for
building most standard programs.


sandman

  • Guest
Re: GTK+
« Reply #2 on: October 19, 2009, 05:26:35 PM »
Hmmm... according to synaptic, I already have glibc-headers-devel installed, version 2.6.30-1pclos2010

Any other ideas? I saw a raft of posts saying to install supporting packages when I was researching this and I think I have them all now.

Is there anything else I could post up that would help folk narrow this down?

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6237
Re: GTK+
« Reply #3 on: October 19, 2009, 05:31:40 PM »
when the configure script fails with a missing dependency, go to synaptic and install the development package of the failed dependency(these packages usually ends with "-devel")

you probably need to install gtk2+-devel or something that sounds like that

can you give a link to download package of this program?

« Last Edit: October 19, 2009, 05:34:09 PM by muungwana »
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

sandman

  • Guest
Re: GTK+
« Reply #4 on: October 19, 2009, 05:44:12 PM »
I seem to have that as well - "checking for libgtk2.0-dev include files... yes"

You can grab the files off sourceforge at:-

http://sourceforge.net/projects/opencpn/files/opencpn/1.3.4/opencpn-1.3.4.tar.bz2/download

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6237
Re: GTK+
« Reply #5 on: October 19, 2009, 05:52:23 PM »
passed here, is your system fully up to date?


checking for pkg-config... /usr/bin//pkg-config
checking for GTK+ - version >= 2.0.0... yes
checking for libgtk2.0-dev include files... yes
checking for cairo.h in include path... yes
checking for GTK+-2.0 test compile and run...
checking for GTK+ version...
checking for pkg-config... /usr/bin//pkg-config
checking for GTK+ - version >= 2.0.0... yes (version 2.18.1)
configure: creating ./config.status
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

sandman

  • Guest
Re: GTK+
« Reply #6 on: October 19, 2009, 06:08:22 PM »
Well, that's progress, now at least I know it can work.  :)  I knew from other users (allegedly) that the package compiled on other distros so I figured it was probably my setup rather than the package or PCLOS. I have to admit to being a bit leery of running upgrades on an ad-hoc basis, preferring to have a concrete reason for specific upgrades.

I'm forcing an upgrade now and, fingers crossed, stuff will still work afterwards and I'll try compiling again. I'll let you know shortly.  Pretty much everything that appeared to be associated with GTK appeared to be at latest version but obviously something is wrong. It'll probably take a half hour or so, my internet connection seems a bit iffy tonight.

Thanks for your help.


Offline muungwana

  • Hero Member
  • *****
  • Posts: 6237
Re: GTK+
« Reply #8 on: October 19, 2009, 07:06:06 PM »

try to switch repositories or try again later on .. the repositories are a bit unstable at the moment as things are being updated ..trying again tomorrow will be a better option if you are not in a hurry
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5331
  • Location: Lebanon, OR., USA
    • Spreading the word.......
Re: GTK+
« Reply #9 on: October 19, 2009, 07:11:41 PM »
I just ran rsync again for the pclosusers repository and there were no new packages to get. I am thinking the problems lies with the ibibilo server. That is the server that all the repositories sync to.  Cindy are you out there????? Can you check to see if indeed the files that are listed are missing on the main repository server?  This is the ending stats that I seen when running rsync.

Number of files: 19764
Number of files transferred: 0
Total file size: 36729975460 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 908421
File list generation time: 17.795 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 36
Total bytes received: 909018

sent 36 bytes  received 909018 bytes  42281.58 bytes/sec
total size is 36729975460  speedup is 40404.61

All of the files in question are in the RPMS.main folder. I have went on the pclosusers server and had a look around and these files are indeed missing.

FWIW the next schedule repository update for pclosusers.com is at 10:00pm PST

« Last Edit: October 19, 2009, 07:14:33 PM by YouCanToo »




Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11581
  • ----IOFLU----
Re: GTK+
« Reply #10 on: October 19, 2009, 07:35:44 PM »
I just ran rsync again for the pclosusers repository and there were no new packages to get. I am thinking the problems lies with the ibibilo server. That is the server that all the repositories sync to.  Cindy are you out there????? Can you check to see if indeed the files that are listed are missing on the main repository server?  This is the ending stats that I seen when running rsync.

Number of files: 19764
Number of files transferred: 0
Total file size: 36729975460 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 908421
File list generation time: 17.795 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 36
Total bytes received: 909018

sent 36 bytes  received 909018 bytes  42281.58 bytes/sec
total size is 36729975460  speedup is 40404.61

All of the files in question are in the RPMS.main folder. I have went on the pclosusers server and had a look around and these files are indeed missing.

FWIW the next schedule repository update for pclosusers.com is at 10:00pm PST



I just checked ibiblio, and indeed those files weren't there. There were however updated versions present. Would seem someone didn't click Reload first.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

sandman

  • Guest
Re: GTK+
« Reply #11 on: October 19, 2009, 08:05:17 PM »
I switched repos (to HEANET, I think), reloaded and then synaptic threw a hissy-fit and closed. I tried to restart it and it whinged about a malformed service and quit again. Terminally. As in absolutely vanished from the system. Rebooted, tried login as root, you name it. From a terminal, invoking synaptic gets 'command not found'. apt still works, mind you.

LiveCD time, I think.... good job I back everything up regular...  ;D


Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: GTK+
« Reply #12 on: October 19, 2009, 08:08:16 PM »
Hmm, apparently people are not reading the forum.

sandman:  This sort of thing is not the norm.  As YouCanToo told you, his repo will sync again in two hours and should be good.

I hope you will visit the packager section, and consider it.   :)
« Last Edit: October 19, 2009, 08:10:24 PM by Joble »
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

sandman

  • Guest
Re: GTK+
« Reply #13 on: October 20, 2009, 05:03:06 PM »
Sorted again. Clean install of 2009.2 and mucho adding and updating of packages.  I can now get ./configure to exit cleanly.

Now I get another error when I run make install.  Fortunately, Google has plenty to offer on it.

In file included from /usr/include/wx-2.8/wx/sckaddr.h:20,
                 from /usr/include/wx-2.8/wx/socket.h:24,
                 from ././include/nmea.h:94,
                 from src/chart1.cpp:221:
/usr/include/wx-2.8/wx/gsocket.h:40: error: using typedef-name ‘GSocket’ after ‘class’
/usr/include/glib-2.0/gio/giotypes.h:120: error: ‘GSocket’ has a previous declaration here
In file included from /usr/include/wx-2.8/wx/gsocket.h:179,
                 from /usr/include/wx-2.8/wx/sckaddr.h:20,
                 from /usr/include/wx-2.8/wx/socket.h:24,
                 from ././include/nmea.h:94,
                 from src/chart1.cpp:221:
/usr/include/wx-2.8/wx/unix/gsockunx.h:40: error: using typedef-name ‘GSocket’ after ‘class’
/usr/include/glib-2.0/gio/giotypes.h:120: error: ‘GSocket’ has a previous declaration here
In file included from ././include/nmea.h:94,
                 from src/chart1.cpp:221:
/usr/include/wx-2.8/wx/socket.h: In member function ‘wxSocketError wxSocketBase::LastError() const’:
/usr/include/wx-2.8/wx/socket.h:118: error: ‘struct _GSocket’ has no member named ‘GetError’
make: *** [chart1.o] Error 1

 

Turns out there's a bug (or was) in

See http://trac.wxwidgets.org/ticket/10883 - but the gist of it is:-

"glib starting in version 2.21 introduces support for network addresses and sockets in its I/O library (e.g. it has its own GSocket type) and that creates a symbol conflict with GSocket from src/unix/gsocket.cpp."

I see the defect is marked as fixed, so I'll see what was done and what I have to do to get past this. Forcing an older version of glib than 2.21 might do it, but I'll have to see what else that would impact....

Only way to learn, I suppose...  ::)
« Last Edit: October 20, 2009, 05:11:03 PM by sandman »

sandman

  • Guest
Re: GTK+
« Reply #14 on: October 21, 2009, 12:08:05 PM »
Looking at this, since glibc in it's latest incarnation (>2.21) has caused a conflict with wxWigits2.8 and wxWidgets have resolved this conflict in the 2.9 version, would the wisest course of action be to ask for a package update to wxWidgets2.9? I haven't checked yet to see if someone else has requested this, btw, but I will later. If so, it'll get my vote.

Here's my thinking on this in no particular order.

1. I'd have to learn how to do this package update myself.
2. I don't want to be running 'personal' custom packages.
3. This conflict is going to bite other folk sooner or later.

Or, since I'm not in a rush, just wait until wxWidgets2.9 gets packaged anyway in due course. I'm sure those who package are busy enough now as it is.

Any thoughts on best course of action (or other than I've listed above) from those with more experience?