View Full Version : Fink - compiling gtk+2-2.2.1-5 failed
bluehz
05-06-2003, 07:38 PM
Last week and this week when I did my fink selfupdate then fink updateall it has been crapping out on gtk+. I believe that is Gnome stuff if I am not mistaken. I have never installed Gnome though. So...
1. Do I need the gtk stuff?
2. If so - how do I fix the compile?
BTW - tried looking for solution in Fink-Users mailing list - but those damn sourceforge mailing list archives are CRAP! There is no way that I have found to search them for a term. Whats the use of an archive??? Maybe I am just missing it. Anyway - any help or advice appreciated.
---
Writing a gdk-pixbuf.loader file to use when running examples before installing gdk-pixbuf.
dyld: gdk-pixbuf-query-loaders version mismatch for library: /sw/lib/libiconv.2.dylib (compatibility version of user: 4.0.0 greater than library's version: 3.0.0)
make[3]: *** [gdk-pixbuf.loaders] Error 133
make[3]: *** Waiting for unfinished jobs....
gcc -O3 -funroll-loops -fstrict-aliasing -pipe -Wall -o .libs/test-gdk-pixbuf test-gdk-pixbuf.o -L./.libs -lgdk_pixbuf-2.0 -L/sw/lib -lgmodule-2.0 -lgobject-2.0 -lglib-2.0 -L/usr/local/lib -lm -lintl -liconv
ld: warning multiple definitions of symbol _locale_charset
/sw/lib/libiconv.dylib(localcharset.lo) definition of _locale_charset
/sw/lib/libintl.dylib(localcharset.lo) definition of _locale_charset
ld: warning suggest use of -bind_at_load, as lazy binding may result in errors or different symbols being used
symbol _locale_charset used from dynamic library /sw/lib/libiconv.dylib(localcharset.lo) not from earlier dynamic library /sw/lib/libintl.1.dylib(localcharset.lo)
creating test-gdk-pixbuf
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2
### execution of ./configure failed, exit code 2
Failed: compiling gtk+2-2.2.1-5 failed
dyld: gdk-pixbuf-query-loaders version mismatch for library:
/sw/lib/libiconv.2.
dylib (compatibility version of user: 4.0.0 greater than library's
version: 3.0.0)
bluehz, this is the error. The binary gdk-pixbuf-query-loaders was built with a different version of libiconv.2.dylib than the one found in /sw/lib.
1- You may have another libiconv.2.dylib sitting in /usr/local/lib. If this is true, move it away.
2- Or perhaps your /sw/lib/libiconv.dylib, which is a symlink, does not point to the same file as /sw/lib/libiconv.2.dylib?
Run:
'll /sw/lib/libiconv*'
it should show the following links:
libiconv.2.0.4.dylib
libiconv.2.dylib -> libiconv.2.0.4.dylib
libiconv.dylib -> libiconv.2.0.4.dylib
Let me know.
bluehz
05-07-2003, 04:06 AM
hey sao - thx for the help.
here's what I got:ll /sw/lib/libiconv*
-rw-r--r-- 1 root admin 904372 Jun 28 2002 /sw/lib/libiconv.2.0.4.dylib
lrwxr-xr-x 1 root admin 20 May 3 05:23 /sw/lib/libiconv.2.dylib -> libiconv.2.0.4.dylib
lrwxr-xr-x 1 root admin 20 May 3 05:23 /sw/lib/libiconv.dylib -> libiconv.2.0.4.dylib
-rw-r--r-- 1 root admin 710 Jun 28 2002 /sw/lib/libiconv.la
Looks pretty good except for that .la file...
bluehz wrote:
Looks pretty good except for that .la file...
That's fine. Check what you have in /usr/local/lib
Let me know.
bluehz
05-07-2003, 06:47 AM
BINGO!
Should I just delete all of these?ll /usr/local/lib/libiconv*
-rw-r--r-- 1 root wheel 1106928 Nov 15 01:38 /usr/local/lib/libiconv.2.1.0.dylib
lrwxr-xr-x 1 root wheel 20 May 2 19:10 /usr/local/lib/libiconv.2.dylib -> libiconv.2.1.0.dylib
lrwxr-xr-x 1 root wheel 20 May 2 19:10 /usr/local/lib/libiconv.dylib -> libiconv.2.1.0.dylib
-rw-r--r-- 1 root wheel 714 Nov 15 01:38 /usr/local/lib/libiconv.la
Whats the purpose of GTK if I don't have Gnome anyway?
bluehz wrote:
Should I just delete all of these?
No, don't do that. Move them away and try to install again gtk+2.
If still doesn't work, be sure to post here the gtk+2 errors. Especially if you get a GLIB error, like I suspect you will.
Don't worry, if that's the case, there is another way to solve it.
PS: Sorry, I will go out for dinner now, will be back in a couple of hours.
bluehz
05-07-2003, 07:29 AM
What is the equivalent of /etc/ld.so.conf in OS X? I am used to using that on my Linux Server - I have always wondered about that.
configure: WARNING: Could not determine POSIX flag. (-posix didn't work.)
checking for pkg-config... (cached) /sw/bin/pkg-config
checking for GLIB - version >= 2.1.4... no
*** Could not run GLIB test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding GLIB or finding the wrong
*** version of GLIB. If it is not finding GLIB, 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:
*** GLIB 2.1.4 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/.
make: *** No targets specified and no makefile found. Stop.
### execution of ./configure failed, exit code 2
Failed: compiling gtk+2-2.2.1-5 failed
bluehz wrote:
Could not run GLIB test program, checking why
Ok, there you have it. It seems your Glib is configured to look for /usr/local/lib instead of /sw/lib/.
Try by removing /usr/local/ temporary:
sudo mv /usr/local /usr/local_away
You can move it back afterwards.
Now 'rebuild glib2'.
If finished succesfully, restore /usr/local/.
And finally run again install gtk+2.
Let me know.
bluehz
05-07-2003, 11:36 AM
Ok - I moved the /usr/local out of the way, and rebuilt glib. Seemed to complete ok, but I did see this msg:*** Warning: linker path does not have real file for library -liconv.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libiconv but no candidates were found. (...for file magic test)
*** Warning: linker path does not have real file for library -lintl.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libintl but no candidates were found. (...for file magic test)
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
then i made the mistake of trying to install gtk without moving the /usr/local back and it failed of course. Need to do that again. One question though - the gtk build gave this error:grep: /usr/local/lib/libiconv.la: No such file or directory
/sw/bin/sed: can't read /usr/local/lib/libiconv.la: No such file or directory
libtool: link: `/usr/local/lib/libiconv.la' is not a valid libtool archive
make[3]: *** [libgdk-x11-2.0.la] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2
### execution of ./configure failed, exit code 2
shouldn't it be looking for the correct libiconv stuff in /sw/lib instead of /usr/local/lib? All that stuff was older than what was in /sw/lib.
then i made the mistake of trying to install gtk without moving the /usr/local back and it failed of course. Need to do that again.
bluehz, try by restoring /usr/local and then, install gtk2 again.
bluehz
05-07-2003, 10:43 PM
I think that did it - I actually ran a Fink update-all - which before was crapping out on GTK stuff. Thnx for your help. Still don't understand why I even have GTK stuff, also why is it still using the libraries in my /usr/local/lib... hmmm... oh well - it works..
- thx again
bluehz wrote:
also why is it still using the libraries in my /usr/local/lib... hmmm... oh well - it works..
Strange indeed, I have no idea, maybe some config script in /usr/local/bin is producing the magic. Well, glad it worked!
GTK+ is a multi-platform toolkit for creating graphical user interfaces. Besides being the toolkit for all the Gnome desktop stuff, GTK+ has dependencies or is used by a large number of applications:
gimp, abiword, dia, glade, gnucash, gnumeric, xchat-2, xchat-ssl, libpng3-shlibs, pygtk2, gkrellm2, gkrellkam2, jpilot-ssl, bluefish, gedit-2, gtetrinet2, xliquid, gail17, gtkglarea2, metacity-2, freetype2, glib2-dev, pango1-dev, libpng3, libtiff, dlcompat-dev, atk1, eel2, pkgconfig, etc.
bluehz
05-08-2003, 08:25 AM
thx - that would explain it - I have Gimp, among others in the list...
as usual... your advice always saves the day. thx
bluehz,
You mentioned in your first post about searching the archives and I understand your frustration. I use all the following, but I like best the archives at gmame.org (3):
1- At sourceforge:
http://sourceforge.net/mailarchive/forum.php?forum=fink-beginners
http://sourceforge.net/mailarchive/forum.php?forum=fink-users
Small search field on the left hand side of the page.(poor)
2- At http://www.mail-archive.com
http://www.mail-archive.com/fink-users@lists.sourceforge.net/
http://www.mail-archive.com/fink-beginners@lists.sourceforge.net/
It works, but the archives are always a couple of days (a week) behind.
3- This one is the best for me: http://gmane.org
http://news.gmane.org/thread.php?group=gmane.os.apple.fink.beginners
http://news.gmane.org/thread.php?group=gmane.os.apple.fink.general
http://news.gmane.org/thread.php?group=gmane.os.apple.fink.devel
bluehz
05-08-2003, 12:52 PM
thx - I use gmane (and the other one too - it has my qmail and djbdns lists on it) for other lists... I didn't even realize that fink was on their. As a matter of fact if you like using newsreaders (RSS) I can show you a little trick that will turn new gmane posting into an RSS feed that will show up in your newsreader.
I never have understood why such a fine facility as sourceforge has such poor support of user forums.
bluehz wrote:
I can show you a little trick that will turn new gmane posting into an RSS feed that will show up in your newsreader
Thanks, please share with us.
bluehz
05-08-2003, 01:52 PM
Ooops - I was mistaken - its not Gmane, but Mail Archive... they have the same stuff though. Here is Mail archive home page:
http://www.mail-archive.com/index.php
They have all the fink stuff, enter 'fink' as search term... use the link to the group as the rss feed url.
For example:
Let say I want to subscribe to "mailman-users".
1. Search for 'mailman'
2. Right-click on "mailman-users" in the list that appears below. Copy url - http://www.mail-archive.com/mailman-users@python.org/ and append "maillist.rdf" to it. So it is:
http://www.mail-archive.com/mailman-users@python.org/maillist.rdf
and thats what you put in your RSS Newsreader as the RSS source.
Fink-users would be:
http://www.mail-archive.com/fink-users@lists.sourceforge.net/maillist.rdf
This process actually works for any mailing list that uses Mailman as their mailing list agent.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.