Opened 19 years ago

Closed 18 years ago

Last modified 8 years ago

#4041 closed defect (fixed)

BUG: gimp2 configure script fails to find GTK+2

Reported by: carson@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: markd@…
Port:

Description

I am using DarwinPorts 1.011 (installed in the default /opt/local) on OS X 10.3.9. Excuting "port install gimp2" correctly installs the gtk2 port; however, once it actually gets around to installing gimp2 itself, the configure script fails to find GTK. The output is:

[carson@caroline ~]$ sudo port -v install gimp2 ---> Configuring gimp2 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking for gcc... gcc 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 gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking build system type... powerpc-apple-darwin7.9.0 checking host system type... powerpc-apple-darwin7.9.0 checking for a sed that does not truncate output... /usr/bin/sed checking for egrep... grep -E checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -p checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking how to run the C preprocessor... gcc -E 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 dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking how to run the C++ preprocessor... g++ -E checking for g77... no checking for f77... no checking for xlf... no checking for frt... no checking for pgf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for f90... no checking for xlf90... no checking for pgf90... no checking for epcf90... no checking for f95... no checking for fort... no checking for xlf95... no checking for ifc... no checking for efc... no checking for pgf95... no checking for lf95... no checking for gfortran... no checking whether we are using the GNU Fortran 77 compiler... no checking whether accepts -g... no checking the maximum length of command line arguments... 65536 checking command to parse /usr/bin/nm -p output from gcc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if gcc static flag works... yes checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fno-common checking if gcc PIC flag -fno-common works... yes checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin7.9.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 configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fno-common checking if g++ PIC flag -fno-common works... yes checking if g++ supports -c -o file.o... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin7.9.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes appending configuration tag "F77" to libtool checking whether to enable maintainer-specific portions of Makefiles... no checking for target architecture... powerpc-apple-darwin7.9.0 checking for some Win32 platform... no checking for native Win32... no checking for strerror in -lcposix... no checking for gcc option to accept ANSI C... none needed checking for a BSD-compatible install... /usr/bin/install -c checking whether make sets $(MAKE)... (cached) yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking for _LARGE_FILES value needed for large files... no checking whether to turn on debugging... no checking whether to turn on profiling... no checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for ANSI C header files... (cached) yes checking for sys/wait.h that is POSIX.1 compatible... yes checking whether time.h and sys/time.h may both be included... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/times.h usability... yes checking sys/times.h presence... yes checking for sys/times.h... yes checking for sys/wait.h... (cached) yes checking for unistd.h... (cached) yes checking for pid_t... yes checking return type of signal handlers... void checking for vprintf... yes checking for _doprnt... no checking for working alloca.h... yes checking for alloca... yes checking for difftime... yes checking for putenv... yes checking for mmap... yes checking for perl... /opt/local/bin/perl checking for XML::Parser... ok checking for iconv... /opt/local/bin/iconv checking for msgfmt... /opt/local/bin/msgfmt checking for msgmerge... /opt/local/bin/msgmerge checking for xgettext... /opt/local/bin/xgettext checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking for LC_MESSAGES... yes checking libintl.h usability... yes checking libintl.h presence... yes checking for libintl.h... yes checking for ngettext in libc... no checking for bindtextdomain in -lintl... yes checking for ngettext in -lintl... yes checking for dgettext in -lintl... yes checking for bind_textdomain_codeset... yes checking for msgfmt... /opt/local/bin/msgfmt checking for dcgettext... yes checking for gmsgfmt... /opt/local/bin/msgfmt checking for xgettext... /opt/local/bin/xgettext checking for catalogs to be installed... bg ca cs da de el en_CA en_GB es eu fi fr ga gl he hu hr id it ja ko lt ms nb nl no pa pl pt pt_BR ro ru sk sr sr@Latn sv tr uk vi yi zh_CN zh_TW checking for pkg-config... /opt/local/bin/pkg-config checking for GLIB - version >= 2.4.5... yes (version 2.6.5) checking pkg-config is at least version 0.9.0... yes checking for GMODULE_CFLAGS... -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include checking for GMODULE_LIBS... -L/opt/local/lib -lgmodule-2.0 -lgobject-2.0 -lglib-2.0 -lintl -liconv checking if GLib is version 2.7.0 or newer... no checking for bind_textdomain_codeset... (cached) yes checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking for pkg-config... (cached) /opt/local/bin/pkg-config checking for GTK+ - version >= 2.4.4... no * Could not run GTK+ 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 GTK+ is incorrectly installed. configure: error: Test for GTK+ failed. See the file 'INSTALL' for help. Error: Target com.apple.configure returned: configure failure: shell command "cd "/opt/local/var/db/ dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_graphics_gimp2/ work/gimp-2.2.7" && LDFLAGS=-L/opt/local/lib CPPFLAGS=-I/opt/local/include ./configure -- prefix=/opt/local --enable-mp --mandir=/opt/local/share/man --disable-print --without-libmng -- without-libexif --without-aa" returned error 1 Command output: checking for libintl.h... yes checking for ngettext in libc... no checking for bindtextdomain in -lintl... yes checking for ngettext in -lintl... yes checking for dgettext in -lintl... yes checking for bind_textdomain_codeset... yes checking for msgfmt... /opt/local/bin/msgfmt checking for dcgettext... yes checking for gmsgfmt... /opt/local/bin/msgfmt checking for xgettext... /opt/local/bin/xgettext checking for catalogs to be installed... bg ca cs da de el en_CA en_GB es eu fi fr ga gl he hu hr id it ja ko lt ms nb nl no pa pl pt pt_BR ro ru sk sr sr@Latn sv tr uk vi yi zh_CN zh_TW checking for pkg-config... /opt/local/bin/pkg-config checking for GLIB - version >= 2.4.5... yes (version 2.6.5) checking pkg-config is at least version 0.9.0... yes checking for GMODULE_CFLAGS... -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include checking for GMODULE_LIBS... -L/opt/local/lib -lgmodule-2.0 -lgobject-2.0 -lglib-2.0 -lintl -liconv checking if GLib is version 2.7.0 or newer... no checking for bind_textdomain_codeset... (cached) yes checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking for pkg-config... (cached) /opt/local/bin/pkg-config checking for GTK+ - version >= 2.4.4... no * Could not run GTK+ 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 GTK+ is incorrectly installed. configure: error: Test for GTK+ failed. See the file 'INSTALL' for help.

Warning: the following items did not execute (for gimp2): com.apple.activate com.apple.configure com.apple.build com.apple.destroot com.apple.archive com.apple.install

Attachments (1)

config.log (72.6 KB) - added by scott@… 19 years ago.
Gimp 2.2.8 config.log file

Download all attachments as: .zip

Change History (7)

comment:1 Changed 19 years ago by yves@…

there is a newer gimp version available, if that does not solve your case, send the dports/graphics/gimp2/ work/gimp-2.2.8/config.log

Changed 19 years ago by scott@…

Attachment: config.log added

Gimp 2.2.8 config.log file

comment:2 Changed 19 years ago by scott@…

(From update of attachment 3555) I'm having the exact same problem as the submitter. I am running OS X 10.4.2 and have DarwinPorts 1.011.

My pkgconfig is updated and I recently ran "sudo port -d selfupdate"

I have attached my config.log in my previous post to help resolve this.

comment:3 Changed 19 years ago by fabianwenk (Fabian Wenk)

Had the same problem just before, eg. after a port selfupdate/sync where a few ports needed upgrade on which also gimp2 depends. I'm running on MacOS X 10.3.9.

After the upgrade of gimp-print from 4.2.6_0 to 4.2.6_1 I wanted to check if the problem I had with the last upgrade of gimp2 still exists. It does, see #4666

I solved the problem with gimp2 not finding GTK2 after upgrading fontconfig, xrender, Xft2 and pango. Then also a 'port uninstall gtk2', 'port clean --archive --work gtk2' and 'port install gtk2' was needed. Afterwards the gimp2 configure was happy with the installed version 2.6.8_0 of gtk2. Probably also the problem with gimp-print needs to be solved for installing gimp2, see URL above.

Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:4 Changed 19 years ago by scott@…

I tried Fabian's solution and was able to successfully install and run Gimp 2.2.8.

comment:5 Changed 18 years ago by markd@…

Cc: markd@… added

(In reply to comment #5)

I tried Fabian's solution and was able to successfully install and run Gimp 2.2.8.

I cannot duplicate this now. This can be closed.

comment:6 Changed 18 years ago by blb@…

Resolution: fixed
Status: newclosed

Resolving per markd@'s comment. Reopen if this is still an issue.

Note: See TracTickets for help on using tickets.