Opened 15 years ago

Last modified 15 years ago

#18252 closed defect

Error building gtk2 — at Initial Version

Reported by: EvilKnight@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc: ryandesign@…
Port: gtk2

Description

I had submitted a previous ticket (18158:libpixman build) which may provide clues for this one.

I have been running:

sudo port install p5-gtk2

Up to libpixman, I had Xcode 1.1 installed. It was determined that I needed Xcode 1.5. That did fix the problem and everything went along fine to here. I have verified that the directory exists. I mention the previous ticket in case it may have something to do with switching Xcode versions in the middle of the process.

Error output:

--->  Fetching gtk2
--->  Attempting to fetch gtk+-2.14.7.tar.bz2 from ftp://ftp.cse.buffalo.edu/pub/Gnome/sources/gtk+/2.14/
--->  Verifying checksum(s) for gtk2
--->  Extracting gtk2
--->  Applying patches to gtk2
--->  Configuring gtk2
--->  Building gtk2
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_gtk2/work/gtk+-2.14.7" && make all " returned error 2
Command output: /opt/local/lib/libiconv.dylib(localcharset.o) definition of _locale_charset
/opt/local/lib/libintl.dylib(localcharset.o) definition of _locale_charset
creating libprintbackend-lpr.la
(cd .libs && rm -f libprintbackend-lpr.la && ln -s ../libprintbackend-lpr.la libprintbackend-lpr.la)
Making all in cups
if /bin/sh ../../../libtool --mode=compile /usr/bin/gcc-3.3 -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../.. -I../../../gtk -I../../../gtk -I../../../gdk -I../../../gdk -I/opt/local/include -DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED -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/pango-1.0 -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/opt/local/include/atk-1.0      -DG_DISABLE_CAST_CHECKS  -I/opt/local/include -DX_LOCALE -I/usr/X11R6/include -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -I/opt/local/include    -DGDK_PIXBUF_DISABLE_DEPRECATED -O2 -fstrict-aliasing -Wall -MT gtkprintbackendcups.lo -MD -MP -MF ".deps/gtkprintbackendcups.Tpo" \
  -c -o gtkprintbackendcups.lo `test -f 'gtkprintbackendcups.c' || echo './'`gtkprintbackendcups.c; \
then mv -f ".deps/gtkprintbackendcups.Tpo" ".deps/gtkprintbackendcups.Plo"; \
else rm -f ".deps/gtkprintbackendcups.Tpo"; exit 1; \
fi
mkdir .libs
 /usr/bin/gcc-3.3 -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../.. -I../../../gtk -I../../../gtk -I../../../gdk -I../../../gdk -I/opt/local/include -DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED -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/pango-1.0 -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/opt/local/include/atk-1.0 -DG_DISABLE_CAST_CHECKS -I/opt/local/include -DX_LOCALE -I/usr/X11R6/include -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -I/opt/local/include -DGDK_PIXBUF_DISABLE_DEPRECATED -O2 -fstrict-aliasing -Wall -MT gtkprintbackendcups.lo -MD -MP -MF .deps/gtkprintbackendcups.Tpo -c gtkprintbackendcups.c  -fno-common -DPIC -o .libs/gtkprintbackendcups.o
In file included from /opt/local/include/glib-2.0/glib.h:77,
                 from /opt/local/include/glib-2.0/glib/gprintf.h:23,
                 from /opt/local/include/glib-2.0/glib/gstdio.h:24,
                 from gtkprintbackendcups.c:38:
/opt/local/include/glib-2.0/glib/gtestutils.h:196: warning: use of `long double' type; its size may change in a future release
/opt/local/include/glib-2.0/glib/gtestutils.h:196: warning: (Long double usage is reported only once for each file.
/opt/local/include/glib-2.0/glib/gtestutils.h:196: warning: To disable this warning, use -Wno-long-double.)
gtkprintbackendcups.c: In function `cups_printer_create_cairo_surface':
gtkprintbackendcups.c:318: error: `ppd_attr_t' undeclared (first use in this function)
gtkprintbackendcups.c:318: error: (Each undeclared identifier is reported only once
gtkprintbackendcups.c:318: error: for each function it appears in.)
gtkprintbackendcups.c:318: error: `ppd_attr' undeclared (first use in this function)
gtkprintbackendcups.c:329: warning: implicit declaration of function `ppdFindAttr'
make[4]: *** [gtkprintbackendcups.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: The following dependencies failed to build: gtk2 p5-cairo p5-extutils-depends p5-extutils-pkgconfig p5-glib
Error: Status 1 encountered during processing.

Keith

Change History (0)

Note: See TracTickets for help on using tickets.