Opened 15 years ago

Closed 14 years ago

#19705 closed defect (fixed)

libcanberra build failure when gtk2 +no_x11 +quartz installed

Reported by: JDLH (Jim DeLaHunt) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc: smibrahim@…, toreador@…, bgrupe27, james.r.haigh@…
Port: libcanberra

Description

libcanberra 0.12 fails on build.

Here is the error text. Note that I verify first that libcanberra is not installed, and clean it, before attempting the install.

% sudo port -v uninstall libcanberra
Error: port uninstall failed: Registry error: libcanberra not registered as installed.

% sudo port selfupdate

MacPorts base version 1.710 installed
Downloaded MacPorts base version 1.710

The MacPorts installation is not outdated so it was not updated

% sudo port -d clean libcanberra
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/audio/libcanberra
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/audio/libcanberra
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: adding the default universal variant
DEBUG: Requested variant no_static is not provided by port libcanberra.
DEBUG: Requested variant darwin is not provided by port libcanberra.
DEBUG: Requested variant i386 is not provided by port libcanberra.
DEBUG: Requested variant x11 is not provided by port libcanberra.
DEBUG: Requested variant no_x11 is not provided by port libcanberra.
DEBUG: Requested variant macosx is not provided by port libcanberra.
DEBUG: Requested variant quartz is not provided by port libcanberra.
DEBUG: Executing org.macports.main (libcanberra)
--->  Cleaning libcanberra
DEBUG: Executing org.macports.clean (libcanberra)
--->  Removing build directory for libcanberra
DEBUG: Removing directory: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libcanberra
DEBUG: delete: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libcanberra
DEBUG: Removing symlink: /opt/local/var/macports/sources/rsync.macports.org/release/ports/audio/libcanberra/work
DEBUG: delete: /opt/local/var/macports/sources/rsync.macports.org/release/ports/audio/libcanberra/work
[Macintosh-4:~] jdlh% sudo port -d install libcanberra
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/audio/libcanberra
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/audio/libcanberra
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: adding the default universal variant
DEBUG: Requested variant no_static is not provided by port libcanberra.
DEBUG: Requested variant darwin is not provided by port libcanberra.
DEBUG: Requested variant i386 is not provided by port libcanberra.
DEBUG: Requested variant x11 is not provided by port libcanberra.
DEBUG: Requested variant no_x11 is not provided by port libcanberra.
DEBUG: Requested variant macosx is not provided by port libcanberra.
DEBUG: Requested variant quartz is not provided by port libcanberra.
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/gnome/gstreamer
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/gnome/gstreamer
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: adding the default universal variant
DEBUG: Requested variant no_static is not provided by port gstreamer.
DEBUG: Requested variant darwin is not provided by port gstreamer.
DEBUG: Requested variant i386 is not provided by port gstreamer.
DEBUG: Requested variant x11 is not provided by port gstreamer.
DEBUG: Requested variant no_x11 is not provided by port gstreamer.
DEBUG: Requested variant macosx is not provided by port gstreamer.
DEBUG: Requested variant quartz is not provided by port gstreamer.
DEBUG: Searching for dependency: gstreamer
DEBUG: Found Dependency: receipt exists for gstreamer
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/gtk2
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/gtk2
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant no_static is not provided by port gtk2.
DEBUG: Requested variant darwin is not provided by port gtk2.
DEBUG: Requested variant i386 is not provided by port gtk2.
DEBUG: Requested variant macosx is not provided by port gtk2.
DEBUG: Executing variant no_x11 provides no_x11
DEBUG: Executing variant quartz provides quartz
DEBUG: Searching for dependency: gtk2
DEBUG: Found Dependency: receipt exists for gtk2
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/audio/libvorbis
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/audio/libvorbis
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: adding the default universal variant
DEBUG: Requested variant no_static is not provided by port libvorbis.
DEBUG: Requested variant darwin is not provided by port libvorbis.
DEBUG: Requested variant i386 is not provided by port libvorbis.
DEBUG: Requested variant x11 is not provided by port libvorbis.
DEBUG: Requested variant no_x11 is not provided by port libvorbis.
DEBUG: Requested variant macosx is not provided by port libvorbis.
DEBUG: Requested variant quartz is not provided by port libvorbis.
DEBUG: Searching for dependency: libvorbis
DEBUG: Found Dependency: receipt exists for libvorbis
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/pkgconfig
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/pkgconfig
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: adding the default universal variant
DEBUG: Requested variant no_static is not provided by port pkgconfig.
DEBUG: Requested variant darwin is not provided by port pkgconfig.
DEBUG: Requested variant i386 is not provided by port pkgconfig.
DEBUG: Requested variant x11 is not provided by port pkgconfig.
DEBUG: Requested variant no_x11 is not provided by port pkgconfig.
DEBUG: Requested variant macosx is not provided by port pkgconfig.
DEBUG: Requested variant quartz is not provided by port pkgconfig.
DEBUG: Searching for dependency: pkgconfig
DEBUG: Found Dependency: receipt exists for pkgconfig
DEBUG: Executing org.macports.main (libcanberra)
--->  Fetching libcanberra
DEBUG: Executing org.macports.fetch (libcanberra)
--->  Verifying checksum(s) for libcanberra
DEBUG: Executing org.macports.checksum (libcanberra)
--->  Checksumming libcanberra-0.12.tar.gz
DEBUG: Correct (md5) checksum for libcanberra-0.12.tar.gz
DEBUG: Correct (sha1) checksum for libcanberra-0.12.tar.gz
DEBUG: Correct (rmd160) checksum for libcanberra-0.12.tar.gz
--->  Extracting libcanberra
DEBUG: Executing org.macports.extract (libcanberra)
--->  Extracting libcanberra-0.12.tar.gz
DEBUG: setting option extract.args to /opt/local/var/macports/distfiles/libcanberra/libcanberra-0.12.tar.gz
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libcanberra/work" && gzip -dc /opt/local/var/macports/distfiles/libcanberra/libcanberra-0.12.tar.gz | /usr/bin/gnutar --no-same-owner -xf -'
DEBUG: Executing org.macports.patch (libcanberra)
--->  Configuring libcanberra
DEBUG: Using compiler 'Mac OS X gcc 4.0'
DEBUG: Executing org.macports.configure (libcanberra)
DEBUG: Environment: CFLAGS='-O2' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-O2' MACOSX_DEPLOYMENT_TARGET='10.5' CPP='/usr/bin/cpp-4.0' CXX='/usr/bin/g++-4.0' F90FLAGS='-O2' LDFLAGS='-L/opt/local/lib' FCFLAGS='-O2' OBJC='/usr/bin/gcc-4.0' INSTALL='/usr/bin/install -c' OBJCFLAGS='-O2' FFLAGS='-O2' CC='/usr/bin/gcc-4.0'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libcanberra/work/libcanberra-0.12" && ./configure --prefix=/opt/local --enable-gtk'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking build system type... i386-apple-darwin9.7.0
checking host system type... i386-apple-darwin9.7.0
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gcc... /usr/bin/gcc-4.0
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 /usr/bin/gcc-4.0 accepts -g... yes
checking for /usr/bin/gcc-4.0 option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of /usr/bin/gcc-4.0... gcc3
checking for /usr/bin/gcc-4.0 option to accept ISO C99... -std=gnu99
checking whether /usr/bin/gcc-4.0 -std=gnu99 and cc understand -c and -o together... yes
checking how to run the C preprocessor... /usr/bin/cpp-4.0
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking whether /usr/bin/gcc-4.0 -std=gnu99 needs -traditional... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/bin/g++-4.0 accepts -g... yes
checking dependency style of /usr/bin/g++-4.0... gcc3
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Wall flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -W flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Wextra flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -pedantic flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -pipe flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Wno-long-long flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Winline flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Wvla flag... no
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Wno-overlength-strings flag... no
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Wunsafe-loop-optimizations flag... no
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Wundef flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Wformat=2 flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Wlogical-op flag... no
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Wsign-compare flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Wpacked flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Wformat-security flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Wmissing-include-dirs flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Wformat-nonliteral flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Wold-style-definition flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Wpointer-arith flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Winit-self flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Wdeclaration-after-statement flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Wfloat-equal flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Wmissing-declarations flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Wmissing-prototypes flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Wstrict-prototypes flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Wredundant-decls flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Wmissing-noreturn flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Wshadow flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Wendif-labels flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Wstrict-aliasing=2 flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Wcast-align flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Wwrite-strings flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Winline flag... (cached) yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Wno-unused-parameter flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -ffast-math flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Wp,-D_FORTIFY_SOURCE=2 flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -fno-common flag... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -fdiagnostics-show-option flag... no
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by /usr/bin/gcc-4.0 -std=gnu99... /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -p
checking the name lister (/usr/bin/nm -p) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -p output from /usr/bin/gcc-4.0 -std=gnu99 object... ok
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... no
checking for -exported_symbols_list linker flag... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether /usr/bin/g++-4.0 accepts -g... (cached) yes
checking dependency style of /usr/bin/g++-4.0... (cached) gcc3
checking how to run the C++ preprocessor... /usr/bin/g++-4.0 -E
checking for objdir... .libs
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -fno-rtti -fno-exceptions... no
checking for /usr/bin/gcc-4.0 -std=gnu99 option to produce PIC... -fno-common -DPIC
checking if /usr/bin/gcc-4.0 -std=gnu99 PIC flag -fno-common -DPIC works... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 static flag -static works... no
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -c -o file.o... yes
checking if /usr/bin/gcc-4.0 -std=gnu99 supports -c -o file.o... (cached) yes
checking whether the /usr/bin/gcc-4.0 -std=gnu99 linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin9.7.0 dyld
checking how to hardcode library paths into programs... immediate
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
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 ld used by /usr/bin/g++-4.0... /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) is GNU ld... no
checking whether the /usr/bin/g++-4.0 linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared libraries... yes
checking for /usr/bin/g++-4.0 option to produce PIC... -fno-common -DPIC
checking if /usr/bin/g++-4.0 PIC flag -fno-common -DPIC works... yes
checking if /usr/bin/g++-4.0 static flag -static works... no
checking if /usr/bin/g++-4.0 supports -c -o file.o... yes
checking if /usr/bin/g++-4.0 supports -c -o file.o... (cached) yes
checking whether the /usr/bin/g++-4.0 linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin9.7.0 dyld
checking how to hardcode library paths into programs... immediate
checking ltdl.h usability... yes
checking ltdl.h presence... yes
checking for ltdl.h... yes
checking for lt_dladvise_init in -lltdl... yes
checking for ANSI C header files... (cached) yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking byteswap.h usability... no
checking byteswap.h presence... no
checking for byteswap.h... no
checking for an ANSI C-conforming const... yes
checking whether byte ordering is bigendian... no
checking for pid_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for off_t... yes
checking for uid_t in sys/types.h... yes
checking for library containing pow... none required
checking for library containing sched_setscheduler... no
checking for lrintf... yes
checking for strtof... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking for gettimeofday... yes
checking for nanosleep... yes
checking for posix_memalign... no
checking for sigaction... yes
checking for sleep... yes
checking for sysconf... yes
checking for pthread_yield... no
checking for strerror_r... yes
checking for lstat... yes
checking for strndup... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -D_THREAD_SAFE
checking whether to check for GCC pthread/shared inconsistencies... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for ld used by GCC... /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) is GNU ld... no
checking for shared library run path origin... done
checking for iconv... yes
checking for working iconv... yes
checking how to link with libiconv... -liconv
checking for iconv declaration... 
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for ALSA... no
checking soundcard.h usability... no
checking soundcard.h presence... no
checking for soundcard.h... no
checking sys/soundcard.h usability... no
checking sys/soundcard.h presence... no
checking for sys/soundcard.h... no
checking machine/soundcard.h usability... no
checking machine/soundcard.h presence... no
checking for machine/soundcard.h... no
checking for PULSE... no
checking for GST... yes
checking for GTK... yes
checking for gconftool-2... /opt/local/bin/gconftool-2
Using config source xml:merged:/opt/local/etc/gconf/gconf.xml.defaults for schema installation
Using $(sysconfdir)/gconf/schemas as install directory for schema files
checking for TDB... no
checking for lynx... no
configure: WARNING: *** lynx not found, plain text README will not be built ***
checking for VORBIS... yes
checking whether to build gtk-doc documentation... no
checking for gtkdoc-check... /opt/local/bin/gtkdoc-check
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating libcanberra.pc
config.status: creating libcanberra-gtk.pc
config.status: creating gtkdoc/Makefile
config.status: creating doc/Makefile
config.status: creating doc/README.html
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands

 ---{ libcanberra 0.12 }---

    prefix:                 /opt/local
    sysconfdir:             ${prefix}/etc
    localstatedir:          ${prefix}/var
    Compiler:               /usr/bin/gcc-4.0 -std=gnu99
    CFLAGS:                 -O2 -Wall -W -Wextra -pedantic -pipe -Wno-long-long -Winline -Wundef -Wformat=2 -Wsign-compare -Wpacked -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wcast-align -Wwrite-strings -Winline -Wno-unused-parameter -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common
    C++-Compiler:           /usr/bin/g++-4.0
    CXXFLAGS:               -O2
    Builtin DSO:            yes
    Enable PulseAudio:      no
    Builtin PulseAudio:     no
    Enable ALSA:            no
    Builtin ALSA:           no
    Enable OSS:             no
    Builtin OSS:            no
    Enable GStreamer:       yes
    Builtin GStreamer:      no
    Enable Null Output:     yes
    Builtin Null Output:    no
    Enable tdb:             no
    Enable lookup cache:    no
    Enable GTK+:            yes
    GTK Modules Directory:  ${exec_prefix}/lib/gtk-2.0/modules

--->  Building libcanberra
DEBUG: Executing org.macports.build (libcanberra)
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libcanberra/work/libcanberra-0.12" && make all'
make  all-recursive
Making all in src
/bin/sh ../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.0 -std=gnu99 -DHAVE_CONFIG_H -I. -I..   -I/opt/local/include -D_REENTRANT -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng12   -O2 -Wall -W -Wextra -pedantic -pipe -Wno-long-long -Winline -Wundef -Wformat=2 -Wsign-compare -Wpacked -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wcast-align -Wwrite-strings -Winline -Wno-unused-parameter -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -MT libcanberra_gtk_module_la-canberra-gtk-module.lo -MD -MP -MF .deps/libcanberra_gtk_module_la-canberra-gtk-module.Tpo -c -o libcanberra_gtk_module_la-canberra-gtk-module.lo `test -f 'canberra-gtk-module.c' || echo './'`canberra-gtk-module.c
libtool: compile:  /usr/bin/gcc-4.0 -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -D_REENTRANT -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -O2 -Wall -W -Wextra -pedantic -pipe -Wno-long-long -Winline -Wundef -Wformat=2 -Wsign-compare -Wpacked -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wcast-align -Wwrite-strings -Winline -Wno-unused-parameter -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -MT libcanberra_gtk_module_la-canberra-gtk-module.lo -MD -MP -MF .deps/libcanberra_gtk_module_la-canberra-gtk-module.Tpo -c canberra-gtk-module.c  -fno-common -DPIC -o .libs/libcanberra_gtk_module_la-canberra-gtk-module.o
In file included from /opt/local/include/gtk-2.0/gtk/gtk.h:226,
                 from canberra-gtk-module.c:25:
/opt/local/include/gtk-2.0/gtk/gtkitemfactory.h:47: warning: function declaration isn't a prototype
canberra-gtk-module.c:26:22: error: gdk/gdkx.h: No such file or directory
canberra-gtk-module.c: In function 'is_hidden':
canberra-gtk-module.c:296: error: 'Atom' undeclared (first use in this function)
canberra-gtk-module.c:296: error: (Each undeclared identifier is reported only once
canberra-gtk-module.c:296: error: for each function it appears in.)
canberra-gtk-module.c:296: error: syntax error before 'type_return'
canberra-gtk-module.c:303: warning: implicit declaration of function 'XGetWindowProperty'
canberra-gtk-module.c:303: warning: implicit declaration of function 'GDK_DISPLAY_XDISPLAY'
canberra-gtk-module.c:303: warning: implicit declaration of function 'GDK_WINDOW_XID'
canberra-gtk-module.c:304: warning: implicit declaration of function 'gdk_x11_get_xatom_by_name_for_display'
canberra-gtk-module.c:305: error: 'False' undeclared (first use in this function)
canberra-gtk-module.c:305: error: syntax error before numeric constant
canberra-gtk-module.c:305: error: 'type_return' undeclared (first use in this function)
canberra-gtk-module.c:307: error: 'Success' undeclared (first use in this function)
canberra-gtk-module.c:310: error: syntax error before numeric constant
canberra-gtk-module.c:314: error: syntax error before 'atom'
canberra-gtk-module.c:316: error: 'atom' undeclared (first use in this function)
canberra-gtk-module.c:323: error: 'None' undeclared (first use in this function)
canberra-gtk-module.c:324: warning: implicit declaration of function 'XFree'
make[2]: *** [libcanberra_gtk_module_la-canberra-gtk-module.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libcanberra/work/libcanberra-0.12" && make all " returned error 2
Command output: make  all-recursive
Making all in src
/bin/sh ../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.0 -std=gnu99 -DHAVE_CONFIG_H -I. -I..   -I/opt/local/include -D_REENTRANT -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng12   -O2 -Wall -W -Wextra -pedantic -pipe -Wno-long-long -Winline -Wundef -Wformat=2 -Wsign-compare -Wpacked -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wcast-align -Wwrite-strings -Winline -Wno-unused-parameter -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -MT libcanberra_gtk_module_la-canberra-gtk-module.lo -MD -MP -MF .deps/libcanberra_gtk_module_la-canberra-gtk-module.Tpo -c -o libcanberra_gtk_module_la-canberra-gtk-module.lo `test -f 'canberra-gtk-module.c' || echo './'`canberra-gtk-module.c
libtool: compile:  /usr/bin/gcc-4.0 -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -D_REENTRANT -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -O2 -Wall -W -Wextra -pedantic -pipe -Wno-long-long -Winline -Wundef -Wformat=2 -Wsign-compare -Wpacked -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wcast-align -Wwrite-strings -Winline -Wno-unused-parameter -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -MT libcanberra_gtk_module_la-canberra-gtk-module.lo -MD -MP -MF .deps/libcanberra_gtk_module_la-canberra-gtk-module.Tpo -c canberra-gtk-module.c  -fno-common -DPIC -o .libs/libcanberra_gtk_module_la-canberra-gtk-module.o
In file included from /opt/local/include/gtk-2.0/gtk/gtk.h:226,
                 from canberra-gtk-module.c:25:
/opt/local/include/gtk-2.0/gtk/gtkitemfactory.h:47: warning: function declaration isn't a prototype
canberra-gtk-module.c:26:22: error: gdk/gdkx.h: No such file or directory
canberra-gtk-module.c: In function 'is_hidden':
canberra-gtk-module.c:296: error: 'Atom' undeclared (first use in this function)
canberra-gtk-module.c:296: error: (Each undeclared identifier is reported only once
canberra-gtk-module.c:296: error: for each function it appears in.)
canberra-gtk-module.c:296: error: syntax error before 'type_return'
canberra-gtk-module.c:303: warning: implicit declaration of function 'XGetWindowProperty'
canberra-gtk-module.c:303: warning: implicit declaration of function 'GDK_DISPLAY_XDISPLAY'
canberra-gtk-module.c:303: warning: implicit declaration of function 'GDK_WINDOW_XID'
canberra-gtk-module.c:304: warning: implicit declaration of function 'gdk_x11_get_xatom_by_name_for_display'
canberra-gtk-module.c:305: error: 'False' undeclared (first use in this function)
canberra-gtk-module.c:305: error: syntax error before numeric constant
canberra-gtk-module.c:305: error: 'type_return' undeclared (first use in this function)
canberra-gtk-module.c:307: error: 'Success' undeclared (first use in this function)
canberra-gtk-module.c:310: error: syntax error before numeric constant
canberra-gtk-module.c:314: error: syntax error before 'atom'
canberra-gtk-module.c:316: error: 'atom' undeclared (first use in this function)
canberra-gtk-module.c:323: error: 'None' undeclared (first use in this function)
canberra-gtk-module.c:324: warning: implicit declaration of function 'XFree'
make[2]: *** [libcanberra_gtk_module_la-canberra-gtk-module.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Warning: the following items did not execute (for libcanberra): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

Significance: libcanberra is required by xulrunner, which is required by yelp, which is required by gnucash-docs. What I'm really after is to install gnucash-docs. I made a temporary workaround by removing yelp as a requirement for gnucash-docs.

Change History (14)

comment:1 Changed 15 years ago by blb@…

Is your gtk2 install a +quartz one? If so, perhaps libcanberra expects an X11-based gtk2. It may be possible to disable gtk support in libcanberra, as I do see --enable-gtk in configure.args for it, possibly in a +no_x11 variant?

comment:2 Changed 15 years ago by JDLH (Jim DeLaHunt)

Is my gtk2 install a +quartz one? Great question.

What I have I have mostly because gnucash needed it, and my gnucash is +no_x11 -x11 +quartz .

Here's the info on my gtk2. I'm not sure how to interpret the (+) and (-) in the second line.

% port info gtk2
gtk2 @2.16.1, Revision 4 (x11)
Variants:    darwin_7, darwin_8, (+)no_x11, (+)quartz, universal, (-)x11

This is GTK+ version 2.x. GTK+, which stands for Gimp ToolKit, is a library for
creating GUIs for the X Windows System.
Homepage:    http://www.gtk.org/

Build Dependencies:   pkgconfig
Library Dependencies: cairo, fontconfig, freetype, glib2, jpeg, tiff, libiconv,
                      libpng, jasper, atk, pango, gettext, zlib, xorg-libXi,
                      xorg-libXrandr, xorg-libXcursor, xorg-libXinerama,
                      xorg-libXdamage, xorg-libXcomposite, xorg-libXfixes
Runtime Dependencies: shared-mime-info
Platforms:            darwin
Maintainers:          nox@macports.org openmaintainer@macports.org

Does the above say that my gtk2 install is a +quartz one?

Is there a MacPorts variant of libcanberra which is +quartz? What's the right way to set up the dependencies so that gnucash-docs tells (yelp which tells xulrunner which tells) libcanberra to be +quartz?

comment:3 Changed 15 years ago by jmroot (Joshua Root)

port info gtk2 tells you about what's available in the ports tree. You want port installed gtk2.

comment:4 in reply to:  3 Changed 15 years ago by JDLH (Jim DeLaHunt)

Replying to jmr@…:

port info gtk2 tells you about what's available in the ports tree. You want port installed gtk2.

Ah, right you are!

% port installed gtk2
The following ports are currently installed:
  gtk2 @2.14.7_1+no_x11+quartz
  gtk2 @2.16.1_4+no_x11+quartz (active)

I interpret this as saying that my gtk2 is +quartz and +no_x11. I don't see a -x11.

So, does libcanberra expect a X11-based gtk2? Is it possible gtk support in libcanberra ? My overarching goal is to propose a modification to make yelp build and run in the +quartz and +no_x11 case of gnucash-docs.

comment:5 Changed 15 years ago by dmitrij.ledkov@…

libcanberra 0.16 and macports 1.8.0

I can still confirm this bug. Quartz gtk doesn't have gdk/gdkx.h which is needed by libcanberra when passing --enable-gtk (default flag) so it expects X11 enabled gtk. Passing --disable-gtk builds fine but I'm yet to find out if that will be usefull in building xulrunner.

comment:6 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Do we still see the problem with libcanberra 0.25?

comment:7 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: libcanberra_0.12 - build failurelibcanberra build failure when gtk2 +no_x11 +quartz installed

comment:8 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Has duplicate #25776 which shows the problem does still occur with version 0.25.

comment:9 in reply to:  8 Changed 14 years ago by smibrahim@…

is there any solution ?

comment:10 Changed 14 years ago by smibrahim@…

Cc: smibrahim@… added

Cc Me!

comment:11 Changed 14 years ago by toreador@…

Cc: toreador@… added

Cc Me!

comment:12 Changed 14 years ago by bgrupe27

Cc: bgrupe@… added

Cc Me!

comment:13 Changed 14 years ago by james.r.haigh@…

Cc: james.r.haigh@… added

Cc Me!

comment:14 Changed 14 years ago by afb@…

Resolution: fixed
Status: newclosed

Fixed, r77611.

Might even work, too. (Please test)

Note: See TracTickets for help on using tickets.