Opened 13 years ago
Closed 11 years ago
#33994 closed defect (worksforme)
gdk-pixbuf2 2.24.0_1 now needs "GLIB - version >= 2.27.2" on Tiger
Reported by: | ballapete (Peter "Pete" Dyballa) | Owned by: | dbevans (David B. Evans) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.4 |
Keywords: | Cc: | cooljeanius (Eric Gallager) | |
Port: | gdk-pixbuf2 |
Description
Trying to upgrade gdk-pixbuf2 2.24.0_0 < 2.24.0_1 configure finds:
checking for GLIB - version >= 2.27.2... 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. configure: error: *** GLIB 2.27.2 or better is required. The latest version of *** GLIB is always available from ftp://ftp.gtk.org/pub/gtk/.
A final statement of the build process is:
DEBUG: Failed to locate 'xar' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it?
Attachments (1)
Change History (7)
Changed 13 years ago by ballapete (Peter "Pete" Dyballa)
comment:1 Changed 13 years ago by ballapete (Peter "Pete" Dyballa)
There is a chance that I made a mistake: I updated /opt/local/etc/macports/sources.conf that port uses .../release/tarballs/ports.tar. I just found found on Leopard that port needs a new "index" which was produced by running selfupdate. I think I did not do that on Tiger – on the weekend I'll have the chance to do that.
Looking into the left config.log file and at all the PC files on my Tiger volume I cannot see a clear cause for the failure with glib 2.32 installed. /Volumes/Tiger/opt/local/lib/pkgconfig/glib-2.0.pc has this contents:
prefix=/opt/local exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include glib_genmarshal=glib-genmarshal gobject_query=gobject-query glib_mkenums=glib-mkenums Name: GLib Description: C Utility Library Version: 2.32.0 Requires.private: Libs: -L${libdir} -lglib-2.0 -lintl Libs.private: -lintl -liconv Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include -I${includedir}
It's the same as on Leopard. The left on disk config.log file has:
configure:16968: checking for GLIB - version >= 2.27.2 configure:17082: /usr/bin/gcc-4.0 -std=gnu99 -o conftest -pipe -O2 -arch ppc -Wall -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -DG_DISABLE_SINGLE_INCLUDES -L/opt/local/lib -arch ppc conftest.c -L/opt/local/lib -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl >&5 /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols: _g_strdup _glib_major_version _glib_micro_version _glib_minor_version collect2: ld returned 1 exit status configure:17082: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "gdk-pixbuf" | #define PACKAGE_TARNAME "gdk-pixbuf" | #define PACKAGE_VERSION "2.24.0" | #define PACKAGE_STRING "gdk-pixbuf 2.24.0" | #define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=gdk-pixbuf" | #define PACKAGE_URL "" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SIGSETJMP 1 | #define HAVE_CFPREFERENCESCOPYAPPVALUE 1 | #define HAVE_CFLOCALECOPYCURRENT 1 | #define HAVE_ICONV 1 | #define ENABLE_NLS 1 | #define HAVE_GETTEXT 1 | #define HAVE_DCGETTEXT 1 | #define GETTEXT_PACKAGE "gdk-pixbuf" | /* end confdefs.h. */ | | #include <glib.h> | #include <stdio.h> | #include <stdlib.h> | | int | main () | { | unsigned int major, minor, micro; | char *tmp_version; | | fclose (fopen ("conf.glibtest", "w")); | | /* HP/UX 9 (%@#!) writes to sscanf strings */ | tmp_version = g_strdup("2.27.2"); | if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, µ) != 3) { | printf("%s, bad version string\n", "2.27.2"); | exit(1); | } | | if ((glib_major_version != 2) || | (glib_minor_version != 32) || | (glib_micro_version != 0)) | { | printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", | 2, 32, 0, | glib_major_version, glib_minor_version, glib_micro_version); | printf ("*** was found! If pkg-config was correct, then it is best\n"); | printf ("*** to remove the old version of GLib. 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 pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | printf("*** to point to the correct configuration files\n"); | } | else if ((glib_major_version != GLIB_MAJOR_VERSION) || | (glib_minor_version != GLIB_MINOR_VERSION) || | (glib_micro_version != GLIB_MICRO_VERSION)) | { | printf("*** GLIB header files (version %d.%d.%d) do not match\n", | GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); | printf("*** library (version %d.%d.%d)\n", | glib_major_version, glib_minor_version, glib_micro_version); | } | else | { | if ((glib_major_version > major) || | ((glib_major_version == major) && (glib_minor_version > minor)) || | ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) | { | return 0; | } | else | { | printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n", | glib_major_version, glib_minor_version, glib_micro_version); | printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n", | major, minor, micro); | printf("*** GLIB 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 pkg-config shell script is\n"); | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n"); | printf("*** correct copy of pkg-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:17100: result: no configure:17128: /usr/bin/gcc-4.0 -std=gnu99 -o conftest -pipe -O2 -arch ppc -Wall -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -DG_DISABLE_SINGLE_INCLUDES -L/opt/local/lib -arch ppc conftest.c -L/opt/local/lib -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl >&5 /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols: _glib_major_version _glib_micro_version _glib_minor_version collect2: ld returned 1 exit status configure:17128: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "gdk-pixbuf" | #define PACKAGE_TARNAME "gdk-pixbuf" | #define PACKAGE_VERSION "2.24.0" | #define PACKAGE_STRING "gdk-pixbuf 2.24.0" | #define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=gdk-pixbuf" | #define PACKAGE_URL "" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SIGSETJMP 1 | #define HAVE_CFPREFERENCESCOPYAPPVALUE 1 | #define HAVE_CFLOCALECOPYCURRENT 1 | #define HAVE_ICONV 1 | #define ENABLE_NLS 1 | #define HAVE_GETTEXT 1 | #define HAVE_DCGETTEXT 1 | #define GETTEXT_PACKAGE "gdk-pixbuf" | /* end confdefs.h. */ | | #include <glib.h> | #include <stdio.h> | | int | main () | { | return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); | ; | return 0; | } configure:17153: error: *** GLIB 2.27.2 or better is required. The latest version of *** GLIB is always available from ftp://ftp.gtk.org/pub/gtk/. ## ---------------- ##
Use apple-gcc42 as compiler here as well? As with glib2 2.32?
comment:2 Changed 13 years ago by ballapete (Peter "Pete" Dyballa)
Last night MacPorts managed to upgrade many packages after OpenSSL could be upgraded. Meanwhile gdk-pixbuf2 2.24.0_1 is installed and it was obviously found that glib2 2.32.1_0 is >= 2.72.2...
comment:3 Changed 12 years ago by jmroot (Joshua Root)
Cc: | devans@… removed |
---|---|
Owner: | changed from macports-tickets@… to devans@… |
comment:5 Changed 11 years ago by ballapete (Peter "Pete" Dyballa)
This ticket can be closed because gdk-pixbuf2 @2.30.2 builds fine…
comment:6 Changed 11 years ago by dbevans (David B. Evans)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
main.log