[MacPorts] #19183: PY25-GTK fails to build because of broken GLIB
#19183: PY25-GTK fails to build because of broken GLIB ----------------------------------+----------------------------------------- Reporter: martijn@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.1 Keywords: | Port: ----------------------------------+----------------------------------------- I am unable to install py25-gtk due to a broken GLIB. Cleaning up and even a complete fresh install of MacPorts did not cure it. sudo port install py25-gtk ---> Configuring atkError: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_atk/work/atk-1.24.0" && ./configure --prefix=/opt/local " returned error 1 Command output: checking if /usr/bin/gcc-4.0 static flag -static works... no checking if /usr/bin/gcc-4.0 supports -c -o file.o... yes checking if /usr/bin/gcc-4.0 supports -c -o file.o... (cached) yes checking whether the /usr/bin/gcc-4.0 linker (/usr/libexec/gcc/powerpc- apple-darwin9/4.0.1/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin9.6.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for some Win32 platform... no checking for native Win32 platform... no checking for aclocal flags... checking for pkg-config... /opt/local/bin/pkg-config checking pkg-config is at least version 0.16... yes checking for GLIB - version >= 2.5.7... 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. checking for pkg-config... (cached) /opt/local/bin/pkg-config checking pkg-config is at least version 0.16... yes checking for GLIB - version >= 2.0.0... 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.0.0 or better is required. The latest version of *** GLIB is always available from ftp://ftp.gtk.org/. If GLIB is installed *** but not in the same location as pkg-config add the location of the file *** glib-2.0.pc to the environment variable PKG_CONFIG_PATH. -- Ticket URL: <http://trac.macports.org/ticket/19183> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19183: atk fails to build because of broken GLIB ----------------------------------+----------------------------------------- Reporter: martijn@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.1 Keywords: | Port: atk ----------------------------------+----------------------------------------- Changes (by ram@…): * port: => atk Old description:
I am unable to install py25-gtk due to a broken GLIB. Cleaning up and even a complete fresh install of MacPorts did not cure it.
sudo port install py25-gtk ---> Configuring atkError: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_atk/work/atk-1.24.0" && ./configure --prefix=/opt/local " returned error 1 Command output: checking if /usr/bin/gcc-4.0 static flag -static works... no checking if /usr/bin/gcc-4.0 supports -c -o file.o... yes checking if /usr/bin/gcc-4.0 supports -c -o file.o... (cached) yes checking whether the /usr/bin/gcc-4.0 linker (/usr/libexec/gcc/powerpc- apple-darwin9/4.0.1/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin9.6.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for some Win32 platform... no checking for native Win32 platform... no checking for aclocal flags... checking for pkg-config... /opt/local/bin/pkg-config checking pkg-config is at least version 0.16... yes checking for GLIB - version >= 2.5.7... 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. checking for pkg-config... (cached) /opt/local/bin/pkg-config checking pkg-config is at least version 0.16... yes checking for GLIB - version >= 2.0.0... 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.0.0 or better is required. The latest version of *** GLIB is always available from ftp://ftp.gtk.org/. If GLIB is installed *** but not in the same location as pkg-config add the location of the file *** glib-2.0.pc to the environment variable PKG_CONFIG_PATH.
New description: I am unable to install py25-gtk due to a broken GLIB. Cleaning up and even a complete fresh install of MacPorts did not cure it. {{{ sudo port install py25-gtk ---> Configuring atkError: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_atk/work/atk-1.24.0" && ./configure --prefix=/opt/local " returned error 1 Command output: checking if /usr/bin/gcc-4.0 static flag -static works... no checking if /usr/bin/gcc-4.0 supports -c -o file.o... yes checking if /usr/bin/gcc-4.0 supports -c -o file.o... (cached) yes checking whether the /usr/bin/gcc-4.0 linker (/usr/libexec/gcc/powerpc- apple-darwin9/4.0.1/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin9.6.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for some Win32 platform... no checking for native Win32 platform... no checking for aclocal flags... checking for pkg-config... /opt/local/bin/pkg-config checking pkg-config is at least version 0.16... yes checking for GLIB - version >= 2.5.7... 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. checking for pkg-config... (cached) /opt/local/bin/pkg-config checking pkg-config is at least version 0.16... yes checking for GLIB - version >= 2.0.0... 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.0.0 or better is required. The latest version of *** GLIB is always available from ftp://ftp.gtk.org/. If GLIB is installed *** but not in the same location as pkg-config add the location of the file *** glib-2.0.pc to the environment variable PKG_CONFIG_PATH. }}} -- Comment: What version of glib2 do you have installed? glib2-2.20.0_0 is the lastest version. According to the error you quoted the error is coming from the `atk` build, have you checked config.log, as the error suggests? (It'll be in `port dir atk`/work/) -- Ticket URL: <http://trac.macports.org/ticket/19183#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19183: atk fails to build because of broken GLIB ----------------------------------+----------------------------------------- Reporter: martijn@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.1 Keywords: | Port: atk ----------------------------------+----------------------------------------- Comment(by martijn@…): $ port installed glib2 The following ports are currently installed: glib2 @2.20.0_0+universal (active) -- Ticket URL: <http://trac.macports.org/ticket/19183#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19183: atk fails to build because of broken GLIB ----------------------------------+----------------------------------------- Reporter: martijn@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.1 Keywords: | Port: atk ----------------------------------+----------------------------------------- Comment(by martijn@…): Sorry but I cannot find the config.log. What would be the full path with a default install? -- Ticket URL: <http://trac.macports.org/ticket/19183#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19183: atk fails to build because of broken GLIB ----------------------------------+----------------------------------------- Reporter: martijn@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.1 Keywords: | Port: glib2 ----------------------------------+----------------------------------------- Changes (by jmr@…): * owner: macports-tickets@… => ryandesign@… * port: atk => glib2 Comment: The config.log indicates a syntax error in glib2's glibconfig.h. What version of Xcode do you have? -- Ticket URL: <http://trac.macports.org/ticket/19183#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19183: atk fails to build because of broken GLIB ----------------------------------+----------------------------------------- Reporter: martijn@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.1 Keywords: | Port: glib2 ----------------------------------+----------------------------------------- Comment(by martijn@…): Replying to [comment:4 jmr@…]:
The config.log indicates a syntax error in glib2's glibconfig.h. What version of Xcode do you have? 3.1.2 which is the latest version.
-- Ticket URL: <http://trac.macports.org/ticket/19183#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19183: atk fails to build because of broken GLIB ----------------------------------+----------------------------------------- Reporter: martijn@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.1 Keywords: | Port: glib2 ----------------------------------+----------------------------------------- Comment(by ryandesign@…): For what combination of universal architectures was your glib2 built? -- Ticket URL: <http://trac.macports.org/ticket/19183#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19183: atk fails to build because of broken GLIB ----------------------------------+----------------------------------------- Reporter: martijn@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.1 Keywords: | Port: glib2 ----------------------------------+----------------------------------------- Comment(by martijn@…): Replying to [comment:6 ryandesign@…]:
For what combination of universal architectures was your glib2 built?
I have absolutely no idea... how can I check this? -- Ticket URL: <http://trac.macports.org/ticket/19183#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19183: atk fails to build because of broken GLIB ----------------------------------+----------------------------------------- Reporter: martijn@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.1 Keywords: | Port: glib2 ----------------------------------+----------------------------------------- Comment(by ryandesign@…): This command should tell you: {{{ $ file /opt/local/lib/libglib-2.0.0.dylib /opt/local/lib/libglib-2.0.0.dylib: Mach-O universal binary with 2 architectures /opt/local/lib/libglib-2.0.0.dylib (for architecture ppc): Mach-O dynamically linked shared library ppc /opt/local/lib/libglib-2.0.0.dylib (for architecture i386): Mach-O dynamically linked shared library i386 }}} -- Ticket URL: <http://trac.macports.org/ticket/19183#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19183: atk fails to build because of broken GLIB ----------------------------------+----------------------------------------- Reporter: martijn@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.1 Keywords: | Port: glib2 ----------------------------------+----------------------------------------- Comment(by martijn@…): Replying to [comment:8 ryandesign@…]:
This command should tell you:
{{{ $ file /opt/local/lib/libglib-2.0.0.dylib /opt/local/lib/libglib-2.0.0.dylib: Mach-O universal binary with 2 architectures /opt/local/lib/libglib-2.0.0.dylib (for architecture ppc): Mach-O dynamically linked shared library ppc /opt/local/lib/libglib-2.0.0.dylib (for architecture i386): Mach-O dynamically linked shared library i386 }}}
{{{ $ file /opt/local/lib/libglib-2.0.0.dylib /opt/local/lib/libglib-2.0.0.dylib: Mach-O universal binary with 2 architectures /opt/local/lib/libglib-2.0.0.dylib (for architecture ppc7400): Mach-O dynamically linked shared library ppc /opt/local/lib/libglib-2.0.0.dylib (for architecture i386): Mach-O dynamically linked shared library i386 }}} -- Ticket URL: <http://trac.macports.org/ticket/19183#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19183: atk fails to build because of broken GLIB ----------------------------------+----------------------------------------- Reporter: martijn@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.1 Keywords: | Port: glib2 ----------------------------------+----------------------------------------- Comment(by ak@…): Same problem here, let me know if I can add any information. -- Ticket URL: <http://trac.macports.org/ticket/19183#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19183: atk fails to build because of broken GLIB ---------------------------------+------------------------------------------ Reporter: martijn@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Component: ports Version: 1.7.1 | Keywords: Port: glib2 | ---------------------------------+------------------------------------------ Comment(by martijn@…): Any news? This bug halts the development of an application completely so I am kind of eager to see it get fixed. Thanks in advance! -- Ticket URL: <http://trac.macports.org/ticket/19183#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19183: atk fails to build because of broken GLIB ---------------------------------+------------------------------------------ Reporter: martijn@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Component: ports Version: 1.7.1 | Keywords: Port: glib2 | ---------------------------------+------------------------------------------ Comment(by martijn@…): After the latest update I get a new error: {{{ ---> Verifying checksum(s) for gtk-doc ---> Extracting gtk-doc ---> Configuring gtk-doc ---> Building gtk-doc Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_ports_gnome_gtk-doc/work/gtk-doc-1.11" && make all " returned error 2 Command output: xsltproc -o gtk-doc-manual-C.omf --stringparam db2omf.basename gtk-doc-manual --stringparam db2omf.format 'docbook' --stringparam db2omf.dtd "-//OASIS//DTD DocBook XML V4.1.2//EN" --stringparam db2omf.lang C --stringparam db2omf.omf_dir "/opt/local/share/omf" --stringparam db2omf.help_dir "/opt/local/share/gnome/help" --stringparam db2omf.omf_in "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_ports_gnome_gtk-doc/work/gtk-doc-1.11/help/manual/gtk-doc- manual.omf.in" --stringparam db2omf.scrollkeeper_cl "`scrollkeeper-config --pkgdatadir`/Templates/C/scrollkeeper_cl.xml" `/opt/local/bin/pkg-config --variable db2omf gnome-doc-utils` C/gtk-doc-manual.xml || { rm -f "gtk- doc-manual-C.omf"; exit 1; } make[2]: Nothing to be done for `all-am'. Making all in tests Making all in gobject Making all in . make[3]: Nothing to be done for `all-am'. Making all in src /bin/sh ../../../libtool --tag=CC --mode=compile /usr/bin/gcc-4.0 -DPACKAGE_NAME=\"gtk-doc\" -DPACKAGE_TARNAME=\"gtk-doc\" -DPACKAGE_VERSION=\"1.11\" -DPACKAGE_STRING=\"gtk-doc\ 1.11\" -DPACKAGE_BUGREPORT=\"http://bugzilla.gnome.org/enter_bug.cgi\?product =gtk-doc\" -DPACKAGE=\"gtk-doc\" -DVERSION=\"1.11\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -O2 -Wall -MT gobject.lo -MD -MP -MF .deps/gobject.Tpo -c -o gobject.lo gobject.c mkdir .libs /usr/bin/gcc-4.0 -DPACKAGE_NAME=\"gtk-doc\" -DPACKAGE_TARNAME=\"gtk-doc\" -DPACKAGE_VERSION=\"1.11\" "-DPACKAGE_STRING=\"gtk-doc 1.11\"" "-DPACKAGE_BUGREPORT=\"http://bugzilla.gnome.org/enter_bug.cgi?product =gtk-doc\"" -DPACKAGE=\"gtk-doc\" -DVERSION=\"1.11\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -O2 -Wall -MT gobject.lo -MD -MP -MF .deps/gobject.Tpo -c gobject.c -fno-common -DPIC -o .libs/gobject.o In file included from /opt/local/include/glib-2.0/glib/gtypes.h:34, from /opt/local/include/glib-2.0/glib/galloca.h:34, from /opt/local/include/glib-2.0/glib.h:32, from gobject.c:23: /opt/local/lib/glib-2.0/include/glibconfig.h:174:2: error: '#' is not followed by a macro parameter In file included from /opt/local/include/glib-2.0/glib/gtypes.h:34, from /opt/local/include/glib-2.0/glib/galloca.h:34, from /opt/local/include/glib-2.0/glib.h:32, from gobject.c:23: /opt/local/lib/glib-2.0/include/glibconfig.h:175: error: syntax error before '?' token /opt/local/lib/glib-2.0/include/glibconfig.h:256:2: error: #endif without #if In file included from /opt/local/include/glib-2.0/glib/gasyncqueue.h:34, from /opt/local/include/glib-2.0/glib.h:34, from gobject.c:23: /opt/local/include/glib-2.0/glib/gthread.h:268: error: syntax error before 'GSystemThread' /opt/local/include/glib-2.0/glib/gthread.h:268: warning: no semicolon at end of struct or union make[3]: *** [gobject.lo] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive] Error 1 Error: The following dependencies failed to build: atk gtk-doc cairo fontconfig freetype libpixman libpng xrender xorg-libX11 xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg- xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg- renderproto gtk2 jasper jpeg pango Xft2 shared-mime-info tiff xorg- libXcomposite xorg-compositeproto xorg-libXext xorg-libXfixes xorg- fixesproto xorg-libXcursor xorg-libXdamage xorg-damageproto xorg-libXi xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto libglade2 py25-cairo py25-numpy fftw-3 py25-nose py25-setuptools py25-zlib py25-gobject Error: Status 1 encountered during processing. }}} -- Ticket URL: <http://trac.macports.org/ticket/19183#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19183: atk fails to build because of broken GLIB ----------------------------------+----------------------------------------- Reporter: martijn@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: glib2 ----------------------------------+----------------------------------------- Comment(by ryandesign@…): Could you attach your /opt/local/lib/glib-2.0/include/glibconfig.h to this ticket so I can compare it with mine? -- Ticket URL: <http://trac.macports.org/ticket/19183#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19183: atk fails to build because of broken GLIB ----------------------------------+----------------------------------------- Reporter: martijn@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: glib2 ----------------------------------+----------------------------------------- Comment(by martijn@…): Added requested file. -- Ticket URL: <http://trac.macports.org/ticket/19183#comment:16> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19183: atk fails to build because of broken GLIB ----------------------------------+----------------------------------------- Reporter: martijn@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: glib2 ----------------------------------+----------------------------------------- Comment(by ryandesign@…): Thanks. Now that I've tried on PowerPC Leopard, that's the same thing I get. But it's different than what I get on Intel Leopard. On PowerPC Leopard, the resulting glibconfig.h file has #if directives inserted in the middle of a statement which was continued from the previous line with a backslash, which isn't syntactically valid. Unfortunately the muniversal merger has no way of knowing this. The port already told the muniversal merger not to try to merge that file if there are more than 2 universal architectures. I've now simplified this in r51009 to never try to merge that file. -- Ticket URL: <http://trac.macports.org/ticket/19183#comment:17> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19183: atk fails to build because of broken GLIB ----------------------------------+----------------------------------------- Reporter: martijn@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: glib2 ----------------------------------+----------------------------------------- Comment(by martijn@…): {{{ $ sudo port install py25-gtk ---> Building gtk-doc Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_ports_gnome_gtk-doc/work/gtk-doc-1.11" && make all " returned error 2 Command output: Making all in manual make[2]: Nothing to be done for `all'. make[2]: Nothing to be done for `all-am'. Making all in tests Making all in gobject Making all in . make[3]: Nothing to be done for `all-am'. Making all in src /bin/sh ../../../libtool --tag=CC --mode=compile /usr/bin/gcc-4.0 -DPACKAGE_NAME=\"gtk-doc\" -DPACKAGE_TARNAME=\"gtk-doc\" -DPACKAGE_VERSION=\"1.11\" -DPACKAGE_STRING=\"gtk-doc\ 1.11\" -DPACKAGE_BUGREPORT=\"http://bugzilla.gnome.org/enter_bug.cgi\?product =gtk-doc\" -DPACKAGE=\"gtk-doc\" -DVERSION=\"1.11\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -O2 -Wall -MT gobject.lo -MD -MP -MF .deps/gobject.Tpo -c -o gobject.lo gobject.c /usr/bin/gcc-4.0 -DPACKAGE_NAME=\"gtk-doc\" -DPACKAGE_TARNAME=\"gtk-doc\" -DPACKAGE_VERSION=\"1.11\" "-DPACKAGE_STRING=\"gtk-doc 1.11\"" "-DPACKAGE_BUGREPORT=\"http://bugzilla.gnome.org/enter_bug.cgi?product =gtk-doc\"" -DPACKAGE=\"gtk-doc\" -DVERSION=\"1.11\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -O2 -Wall -MT gobject.lo -MD -MP -MF .deps/gobject.Tpo -c gobject.c -fno-common -DPIC -o .libs/gobject.o In file included from /opt/local/include/glib-2.0/glib/gtypes.h:34, from /opt/local/include/glib-2.0/glib/galloca.h:34, from /opt/local/include/glib-2.0/glib.h:32, from gobject.c:23: /opt/local/lib/glib-2.0/include/glibconfig.h:174:2: error: '#' is not followed by a macro parameter In file included from /opt/local/include/glib-2.0/glib/gtypes.h:34, from /opt/local/include/glib-2.0/glib/galloca.h:34, from /opt/local/include/glib-2.0/glib.h:32, from gobject.c:23: /opt/local/lib/glib-2.0/include/glibconfig.h:175: error: syntax error before '?' token /opt/local/lib/glib-2.0/include/glibconfig.h:256:2: error: #endif without #if In file included from /opt/local/include/glib-2.0/glib/gasyncqueue.h:34, from /opt/local/include/glib-2.0/glib.h:34, from gobject.c:23: /opt/local/include/glib-2.0/glib/gthread.h:268: error: syntax error before 'GSystemThread' /opt/local/include/glib-2.0/glib/gthread.h:268: warning: no semicolon at end of struct or union make[3]: *** [gobject.lo] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive] Error 1 Error: The following dependencies failed to build: atk gtk-doc cairo fontconfig freetype libpixman libpng xrender xorg-libX11 xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg- xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg- renderproto gtk2 jasper jpeg pango Xft2 shared-mime-info tiff xorg- libXcomposite xorg-compositeproto xorg-libXext xorg-libXfixes xorg- fixesproto xorg-libXcursor xorg-libXdamage xorg-damageproto xorg-libXi xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto libglade2 py25-cairo py25-numpy fftw-3 py25-nose py25-setuptools py25-zlib py25-gobject Error: Status 1 encountered during processing. }}} -- Ticket URL: <http://trac.macports.org/ticket/19183#comment:18> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19183: atk fails to build because of broken GLIB ----------------------------------+----------------------------------------- Reporter: martijn@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: glib2 ----------------------------------+----------------------------------------- Comment(by martijn@…): Still get the error. Thanks. -- Ticket URL: <http://trac.macports.org/ticket/19183#comment:19> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19183: atk fails to build because of broken GLIB -----------------------------------+---------------------------------------- Reporter: martijn@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Resolution: fixed | Keywords: Port: glib2 | -----------------------------------+---------------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Old description:
I am unable to install py25-gtk due to a broken GLIB. Cleaning up and even a complete fresh install of MacPorts did not cure it.
{{{ sudo port install py25-gtk ---> Configuring atkError: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_atk/work/atk-1.24.0" && ./configure --prefix=/opt/local " returned error 1 Command output: checking if /usr/bin/gcc-4.0 static flag -static works... no checking if /usr/bin/gcc-4.0 supports -c -o file.o... yes checking if /usr/bin/gcc-4.0 supports -c -o file.o... (cached) yes checking whether the /usr/bin/gcc-4.0 linker (/usr/libexec/gcc/powerpc- apple-darwin9/4.0.1/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin9.6.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for some Win32 platform... no checking for native Win32 platform... no checking for aclocal flags... checking for pkg-config... /opt/local/bin/pkg-config checking pkg-config is at least version 0.16... yes checking for GLIB - version >= 2.5.7... 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. checking for pkg-config... (cached) /opt/local/bin/pkg-config checking pkg-config is at least version 0.16... yes checking for GLIB - version >= 2.0.0... 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.0.0 or better is required. The latest version of *** GLIB is always available from ftp://ftp.gtk.org/. If GLIB is installed *** but not in the same location as pkg-config add the location of the file *** glib-2.0.pc to the environment variable PKG_CONFIG_PATH. }}}
New description: I am unable to install py25-gtk due to a broken GLIB. Cleaning up and even a complete fresh install of MacPorts did not cure it. {{{ sudo port install py25-gtk ---> Configuring atk Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_atk/work/atk-1.24.0" && ./configure --prefix=/opt/local " returned error 1 Command output: checking if /usr/bin/gcc-4.0 static flag -static works... no checking if /usr/bin/gcc-4.0 supports -c -o file.o... yes checking if /usr/bin/gcc-4.0 supports -c -o file.o... (cached) yes checking whether the /usr/bin/gcc-4.0 linker (/usr/libexec/gcc/powerpc- apple-darwin9/4.0.1/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin9.6.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for some Win32 platform... no checking for native Win32 platform... no checking for aclocal flags... checking for pkg-config... /opt/local/bin/pkg-config checking pkg-config is at least version 0.16... yes checking for GLIB - version >= 2.5.7... 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. checking for pkg-config... (cached) /opt/local/bin/pkg-config checking pkg-config is at least version 0.16... yes checking for GLIB - version >= 2.0.0... 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.0.0 or better is required. The latest version of *** GLIB is always available from ftp://ftp.gtk.org/. If GLIB is installed *** but not in the same location as pkg-config add the location of the file *** glib-2.0.pc to the environment variable PKG_CONFIG_PATH. }}} -- Comment: You will need to sync, upgrade glib2 to 2.20.1_1, then clean out any previous attempts to build any of the failing ports (such as atk and gtk- doc) before this will work. So: {{{ sudo port sync sudo port upgrade glib2 sudo port clean atk gtk-doc }}} Then try again. -- Ticket URL: <http://trac.macports.org/ticket/19183#comment:20> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19183: atk fails to build because of broken GLIB -----------------------------------+---------------------------------------- Reporter: martijn@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Resolution: fixed | Keywords: Port: glib2 | -----------------------------------+---------------------------------------- Comment(by martijn@…): Confirmed... Thanks! -- Ticket URL: <http://trac.macports.org/ticket/19183#comment:21> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts