[MacPorts] #18252: gtk2 on Panther: `ppd_attr_t' undeclared (first use in this function) (was: Error building gtk2)
MacPorts
noreply at macports.org
Wed Jan 28 11:09:44 PST 2009
#18252: gtk2 on Panther: `ppd_attr_t' undeclared (first use in this function)
----------------------------------+-----------------------------------------
Reporter: EvilKnight@… | Owner: nox@…
Type: defect | Status: new
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.7.0
Keywords: | Port: gtk2
----------------------------------+-----------------------------------------
Changes (by ryandesign@…):
* cc: rhwood@… (added)
Old 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
New 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
--
Comment:
Replying to [ticket:18252 EvilKnight@…]:
> gtkprintbackendcups.c:318: error: `ppd_attr_t' undeclared (first use in
this function)
The only occurrence of that error message I can find with Google
[http://mail.gnome.org/archives/garnome-list/2005-July/msg00113.html says]
the solution is to install the CUPS headers. And I believe that's why the
gtk2 port has since r28266 included a dependency on cups-headers for
Panther. But it sounds like Randall wasn't convinced that his change would
actually fix the issue.
--
Ticket URL: <http://trac.macports.org/ticket/18252#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list