#10596 closed defect (fixed)
BUG: GTK2 doesn't build if cups-headers installed
Reported by: | damien.pollet@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.2 |
Keywords: | Cc: | markd@… | |
Port: | gtk2, cups-headers |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
Here's what I get when building gtk2 after a port clean --all gtk2:
---> Building gtk2 with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_x11_gtk2/work/gtk+-2.10.2" && make all CFLAGS+="-I/usr/X11R6/include"" returned error 2 Command output: gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../.. -I../../../gtk -I../../../gtk -I../../../gdk -I../../../gdk -DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED -D_REENTRANT -DXTHREADS -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/pango-1.0 -I/opt/local/include/cairo -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng12 -I/usr/X11R6/include -I/opt/local/include/atk-1.0 -DG_DISABLE_CAST_CHECKS -I/opt/local/include -no-cpp-precomp -DX_LOCALE -I/usr/X11R6/include -I/usr/X11R6/include -MT gtkprintbackendlpr.lo -MD -MP -MF .deps/gtkprintbackendlpr.Tpo -c gtkprintbackendlpr.c -fno-common -DPIC -o .libs/gtkprintbackendlpr.o gtkprintbackendlpr.c: In function '_cairo_write': gtkprintbackendlpr.c:183: warning: pointer targets in passing argument 2 of 'g_io_channel_write_chars' differ in signedness /bin/sh ../../../libtool --mode=link gcc -I/usr/X11R6/include -L/opt/local/lib -lpango-1.0 -o libprintbackend-lpr.la -rpath /opt/local/lib/gtk-2.0/2.10.0/printbackends -avoid-version -module gtkprintbackendlpr.lo -L/usr/X11R6/lib -lXrender -lX11 -L/opt/local/lib -L/usr/X11R6/lib -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv -lcairo -lSM -lICE -lfreetype -lz -lfontconfig -lpng12 -lXrender -lX11 -ltiff -ljpeg -L/opt/local/lib -lpng12 -lm ../../../gtk/libgtk-x11-2.0.la gcc ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o .libs/libprintbackend-lpr.so -bundle .libs/gtkprintbackendlpr.o -L/opt/local/lib -L/usr/X11R6/lib /opt/local/lib/libpangocairo-1.0.dylib /usr/X11R6/lib/libSM.dylib /usr/X11R6/lib/libICE.dylib /usr/X11R6/lib/libX11.dylib /opt/local/lib/libpangoft2-1.0.dylib /opt/local/lib/libexpat.dylib /opt/local/lib/libz.dylib /opt/local/lib/libpango-1.0.dylib /opt/local/lib/libatk-1.0.dylib /opt/local/lib/libgobject-2.0.dylib /opt/local/lib/libgmodule-2.0.dylib /opt/local/lib/libglib-2.0.dylib /opt/local/lib/libintl.dylib /opt/local/lib/libiconv.dylib /opt/local/lib/libcairo.dylib -lSM -lICE /opt/local/lib/libfreetype.dylib -lz /opt/local/lib/libfontconfig.dylib /opt/local/lib/libXrender.dylib -lX11 /opt/local/lib/libtiff.dylib /opt/local/lib/libjpeg.dylib /opt/local/lib/libpng12.dylib -lm ../../../gtk/.libs/libgtk-x11-2.0.dylib /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_x11_gtk2/work/gtk+-2.10.2/gdk/.libs/libgdk-x11-2.0.dylib /usr/X11R6/lib/libXrandr.dylib /usr/X11R6/lib/libXinerama.dylib /usr/X11R6/lib/libXext.dylib /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_x11_gtk2/work/gtk+-2.10.2/gdk-pixbuf/.libs/libgdk_pixbuf-2.0.dylib 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 gcc -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 -DXTHREADS -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/pango-1.0 -I/opt/local/include/cairo -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng12 -I/usr/X11R6/include -I/opt/local/include/atk-1.0 -DG_DISABLE_CAST_CHECKS -I/opt/local/include -no-cpp-precomp -DX_LOCALE -I/usr/X11R6/include -I/usr/X11R6/include -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 gcc -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 -DXTHREADS -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/pango-1.0 -I/opt/local/include/cairo -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng12 -I/usr/X11R6/include -I/opt/local/include/atk-1.0 -DG_DISABLE_CAST_CHECKS -I/opt/local/include -no-cpp-precomp -DX_LOCALE -I/usr/X11R6/include -I/usr/X11R6/include -MT gtkprintbackendcups.lo -MD -MP -MF .deps/gtkprintbackendcups.Tpo -c gtkprintbackendcups.c -fno-common -DPIC -o .libs/gtkprintbackendcups.o gtkprintbackendcups.c: In function '_cairo_write_to_cups': gtkprintbackendcups.c:272: warning: pointer targets in passing argument 2 of 'g_io_channel_write_chars' differ in signedness gtkprintbackendcups.c: In function 'available_choices': gtkprintbackendcups.c:1689: error: 'struct ppd_group_str' has no member named 'name' gtkprintbackendcups.c: In function 'handle_option': gtkprintbackendcups.c:2036: error: 'struct ppd_group_str' has no member named 'name' gtkprintbackendcups.c:2043: error: 'struct ppd_group_str' has no member named 'name' gtkprintbackendcups.c:2050: error: 'struct ppd_group_str' has no member named 'name' gtkprintbackendcups.c: In function 'handle_group': gtkprintbackendcups.c:2080: error: 'struct ppd_group_str' has no member named 'name' 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
Attachments (1)
Change History (15)
comment:1 Changed 18 years ago by pete-darwinports@…
comment:2 Changed 18 years ago by pkern@…
It is caused by an installed cups-headers port. OS X 10.4 already provides the correct cups headers with the name member specified in the header. Uninstalling it fixes the problem. I just don't know if any ports down the dependency chain still depend on it.
comment:3 Changed 18 years ago by ryogt@…
Removing cups-headers worked for me. About dependencies:
$ port dependents cups-headers cups-headers has no dependents!
Changed 18 years ago by jw118@…
Attachment: | gtk+-2.10.2-whitout_cups-headers.txt added |
---|
gtk2 Build Output on Panther 10.3.9, cups-headers uninstalled
comment:5 Changed 18 years ago by jw118@…
I'm still on a Panther (10.3.9) and removing cups-headers lets gtk+-2.10.2 not build (see attachment).
comment:6 Changed 18 years ago by pete-darwinports@…
Removing cups-headers fixed my problem. 10.4.7 and D|Mports 1.320
comment:7 Changed 18 years ago by markd@…
Summary: | GTK2 doesn't build (in gtkprintbackendcups) → BUG: GTK2 doesn't build if cups-headers installed |
---|
comment:8 follow-up: 12 Changed 18 years ago by yaseppochi (Stephen J. Turnbull)
Mac OS X: Panther, 10.3.9 port: svn HEAD, updated 6 hours ago
gtk2 2.10.3 still doesn't build with cups-headers 1.1.15_1 because all cups support is missing except for a README identifying "Jaguar" as version "10.3" of Mac OS X.
gtk2 2.10.3 still doesn't build with cups-headers 1.1.15_0 because the `name' member is missing from some struct.
(You've known that for six weeks, it would appear. *sigh*)
gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../.. -I../../../gtk -I../../../gtk -I../../../gdk -I../../../gdk -DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED -D_REENTRANT -DXTHREADS -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/freetype2 -I/opt/local/include/libpng12 -I/usr/X11R6/include -I/opt/local/include/atk-1.0 -DG_DISABLE_CAST_CHECKS -I/opt/local/include -no-cpp-precomp -DX_LOCALE -I/usr/X11R6/include -I/usr/X11R6/include -MT gtkprintbackendcups.lo -MD -MP -MF .deps/gtkprintbackendcups.Tpo -c gtkprintbackendcups.c -fno-common -DPIC -o .libs/gtkprintbackendcups.o gtkprintbackendcups.c: In function `available_choices': gtkprintbackendcups.c:1693: error: structure has no member named `name' gtkprintbackendcups.c: In function `handle_option': gtkprintbackendcups.c:2041: error: structure has no member named `name' gtkprintbackendcups.c:2048: error: structure has no member named `name' gtkprintbackendcups.c:2055: error: structure has no member named `name' gtkprintbackendcups.c: In function `handle_group': gtkprintbackendcups.c:2084: error: structure has no member named `name' 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
Warning: the following items did not execute (for gtk2): com.apple.activate com.apple.build com.apple.destroot com.apple.archive com.apple.install
comment:9 Changed 18 years ago by markd@…
Cc: | markd@… added |
---|
A fix has been committed for this. Please test it.
comment:10 Changed 18 years ago by markd@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:11 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Milestone: | → Port Bugs |
Port: | gtk2 cups-headers added |
comment:12 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
comment:14 Changed 15 years ago by jmroot (Joshua Root)
Component: | base → ports |
---|
I'm seeing the same error. DP 1.320 and OS X 10.4.7. Thought it was just my addled knowledge of DP.