Bug 116750 - [patch] x11-toolkits/gtk20: fails to build when print/cups-base (1.3*) is installed
Summary: [patch] x11-toolkits/gtk20: fails to build when print/cups-base (1.3*) is ins...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-gnome (Nobody)
Depends on:
Reported: 2007-09-29 19:50 UTC by Scot Hetzel
Modified: 2007-09-30 23:50 UTC (History)
0 users

See Also:

file.diff (923 bytes, patch)
2007-09-29 19:50 UTC, Scot Hetzel
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Scot Hetzel 2007-09-29 19:50:01 UTC
Since the upgrade of print/cups-base to 1.3, gtk20 will no longer build when cups-base is installed.

Found fix at:


Fix: add the attached file to the port.

NOTE: The attached patch will break the port for users of cups-base < 1.3 due to the use of httpGetAuthString.

Patch attached with submission follows:
How-To-Repeat: install cups-base or define WITH_CUPS when building x11-toolkits/gtk20

cd /usr/ports/x11-toolkits/gtk20
make build
 cc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../.. -I../../../gtk -I../../../gtk -I../../../gdk -I../../../gdk -I/usr/local/include -DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED -D_REENTRANT -D_THREAD_SAFE -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/pango-1.0 -I/usr/local/include/cairo -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/atk-1.0 -DG_DISABLE_CAST_CHECKS -I/usr/local/include/freetype2 -I/usr/local/include -D_THREAD_SAFE -I/usr/local/include -DG_DISABLE_DEPRECATED -O2 -fno-strict-aliasing -pipe -march=k8 -Wall -MT gtkcupsutils.lo -MD -MP -MF .deps/gtkcupsutils.Tpo -c gtkcupsutils.c  -fPIC -DPIC -o .libs/gtkcupsutils.o
gtkcupsutils.c: In function '_post_send':
gtkcupsutils.c:631: error: dereferencing pointer to incomplete type
gtkcupsutils.c: In function '_get_send':
gtkcupsutils.c:970: error: dereferencing pointer to incomplete type
gmake[4]: *** [gtkcupsutils.lo] Error 1
gmake[4]: Leaving directory `/usr/ports/x11-toolkits/gtk20/work/gtk+-2.10.14/modules/printbackends/cups'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/ports/x11-toolkits/gtk20/work/gtk+-2.10.14/modules/printbackends'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/ports/x11-toolkits/gtk20/work/gtk+-2.10.14/modules'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/x11-toolkits/gtk20/work/gtk+-2.10.14'
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/ports/x11-toolkits/gtk20.
Comment 1 Edwin Groothuis freebsd_committer 2007-09-29 19:50:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gnome

Over to maintainer
Comment 2 dfilter service freebsd_committer 2007-09-30 23:42:51 UTC
marcus      2007-09-30 22:42:46 UTC

  FreeBSD ports repository

  Modified files:
    x11-toolkits/gtk20   Makefile 
  Added files:
  Fix build and subsequent functionality of the CUPS printer backend
  in GTK+.
  PR:             116750
  Obtained from:  http://bugzilla.gnome.org/show_bug.cgi?id=467414
  Revision  Changes    Path
  1.203     +1 -1      ports/x11-toolkits/gtk20/Makefile
  1.1       +13 -0     ports/x11-toolkits/gtk20/files/patch-modules_printbackends_cups_gtkcupsutils.c (new)
cvs-all@freebsd.org mailing list
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Joe Marcus Clarke freebsd_committer 2007-09-30 23:42:55 UTC
State Changed
From-To: open->closed

Bugzilla patch committed.  Thanks.