Michael Haubenwallner | 27 May 2011 15:05
Picon
Favicon

[PATCH] fix 'checking for GTK - version >= 0.99.7'

Hello!

Having gtk-2.22.1 here, and a wrapper script 'gtk-config' to emulate the gtk-1 script:
  #!/bin/sh
  exec pkg-config gtk+-2.0 $(printf "%s" "$*" | sed s:--version:--modversion:)

This basically allows to build mico with gtk support even with gtk-2.

However, "checking for GTK version >= 0.99.7" fails here with recent gcc due to bugs in the check:

> checking for gtk-config... /var/tmp/portage/net-misc/mico-9999/work/helpers/gtk-config
> checking for GTK - version >= 0.99.7... 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
> ***
> *** If you have a RedHat 5.0 system, you should remove the GTK package that
> *** came with the system with the command
> ***
> ***    rpm --erase --nodeps gtk gtk-devel
> configure: WARNING: cannot find gtk-config. GTK parts disabled

And in config.log:
(Continue reading)

Karel Gardas | 2 Jun 2011 21:09
Favicon

Re: [PATCH] fix 'checking for GTK - version >= 0.99.7'


Hi Michael,

thanks for the patch I've merged it now to my tree.

Karel

On 05/27/11 03:05 PM, Michael Haubenwallner wrote:
> Hello!
>
> Having gtk-2.22.1 here, and a wrapper script 'gtk-config' to emulate the gtk-1 script:
>    #!/bin/sh
>    exec pkg-config gtk+-2.0 $(printf "%s" "$*" | sed s:--version:--modversion:)
>
> This basically allows to build mico with gtk support even with gtk-2.
>
> However, "checking for GTK version>= 0.99.7" fails here with recent gcc due to bugs in the check:
>
>> checking for gtk-config... /var/tmp/portage/net-misc/mico-9999/work/helpers/gtk-config
>> checking for GTK - version>= 0.99.7... 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
(Continue reading)


Gmane