Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65604 - nautilus 2.8.2-r1 won't compile with 'cups' USE flag set
Summary: nautilus 2.8.2-r1 won't compile with 'cups' USE flag set
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 76750 77627 78834 (view as bug list)
Depends on:
Blocks: 74075
  Show dependency tree
 
Reported: 2004-09-27 16:38 UTC by Stephane Loeuillet
Modified: 2005-01-21 12:49 UTC (History)
12 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
allow nautilus to compile with cups USE flag (nautilus-2.8.2-rkilgore.diff,690 bytes, patch)
2004-12-31 00:27 UTC, Richard Kilgore
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stephane Loeuillet 2004-09-27 16:38:13 UTC
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOMAIN=\"Nautilus-Printers\" -I../.. -DDATADIR=\"/usr/share\" -DGNOMELOCALEDIR=\"/usr/share/locale\" -pthread -DORBIT2=1 -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/eel-2 -I/usr/include/gconf/2 -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/libart-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomeui-2.0 -I/usr/include/libxml2 -I/usr/include/gail-1.0 -I/usr/include/libglade-2.0 -I/usr/include/orbit-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/libbonobo-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-module-2.0 -I/usr/include/gnome-desktop-2.0 -I/usr/include/startup-notification-1.0 -I/usr/include/libgnomecups-1 -DGTK_ENABLE_BROKEN -march=athlon-xp -O3 -pipe -fomit-frame-pointer -Wp,-MD,.deps/nautilus-printers.pp -c nautilus-printers.c  -fPIC -DPIC -o .libs/nautilus-printers.o
nautilus-printers.c: In function `nautilus_printer_container_class_init':
nautilus-printers.c:601: warning: assignment from incompatible pointer type
nautilus-printers.c: In function `make_printers_view':
nautilus-printers.c:857: error: too few arguments to function `gnome_cups_ui_init'

USE="cups -debug flac gstreamer mad oggvorbis" emerge nautilus

got :
cups-1.1.21
libgnomecups-0.1.12 (0.1.10 in portage)
gnome-cups-manager-0.24 (0.23 in portage, 0.25 won't compile)

perhaps it is because of those two newer versions

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.51_rc6 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20040916-r0,
2.6.9-rc2 i686)
=================================================================
System uname: 2.6.9-rc2 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache digest distlocks fixpackages sandbox strict
userpriv"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex X aalib accessibility acpi adns alsa apache2 avi berkdb
bitmap-fonts bonobo cdr crypt cups divx4linux doc dv dvb dvd dvdr dvdread eds
encode erandom esd ethereal evo faac faad flac flash foomaticdb gd gdbm gif gimp
gnome gnomedb gnutls gstreamer gtk gtk2 gtkhtml hal idea ieee1394 innodb irda
irmc ithreads joystick jpeg ldap libcaca libg++ libgda libwww mad mikmod mmx
mmx2 mozilla moznocompose moznoirc moznomail mozsvg mozxmlterm mpeg mysql
ncurses net nls nntp nptl nvidia offensive oggvorbis opengl pam pcre pcsc-lite
pda pdflib perl pic plotutils png postgres ppds pwdb python quicktime readline
rtc samba sasl sdl slang sndfile speex spell sse ssl svg svga tcpd tetex theora
threads tiff truetype unicode usb v4l v4l2 videos x86 xml xml2 xprint xv xvid
xvmc yv12 zlib zvbi"
Comment 1 foser (RETIRED) gentoo-dev 2004-09-28 08:14:53 UTC
could the print team maybe have a look here ?

So this is not currently a problem, as the newer versions aren't available in gentoo at this point ?
Comment 2 E Smith 2004-10-06 19:40:59 UTC
works on mine, have gnome-cups-manager installed 

net-print/gnome-cups-manager
      Latest version available: 0.23
      Latest version installed: 0.23
      Size of downloaded files: 489 kB
      Homepage:    http://www.gnome.org/
      Description: GNOME CUPS Printer Management Interface
      License:     GPL-2

 gnome-base/nautilus
      Latest version available: 2.8.0
      Latest version installed: 2.8.0
      Size of downloaded files: 5,637 kB
      Homepage:    http://www.gnome.org/projects/nautilus/
      Description: A filemanager for the Gnome2 desktop
      License:     GPL-2 LGPL-2 FDL-1.1



 emerge info
Portage 2.0.51_rc7 (gcc34-amd64-2004.1, gcc-3.4.2, glibc-2.3.4.20040808-r0, 2.6.7-gentoo-r14 x86_64)
=================================================================
System uname: 2.6.7-gentoo-r14 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O3 -msse2 -msse -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O3 -msse2 -msse -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/bmg-main"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa amd64 apache2 apm avi berkdb bitmap-fonts cdr crypt cups dvd eds encode esd fam foomaticdb gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal imlib java joystick jpeg libg++ libwww mbox mikmod mime motif mozilla mpeg mysql ncurses nls nptl oggvorbis openal opengl oss pam pdflib perl php png ppds python quicktime readline scanner sdl slang spell ssl tcltk tcpd truetype unicode usb xine xml2 xmms xprint xv xvid zlib"

Comment 3 Stephane Loeuillet 2004-10-14 05:51:40 UTC
still a problem when using libgnomecups 0.1.13 and gnome-cups-manager 0.27

so : it is not a problem with versions actually in portage (0.1.10 and 0.23) but would be for any newer version.
Comment 4 Stephane Loeuillet 2004-12-27 05:00:09 UTC
just retried with : (all in portage)
  - nautilus 2.8.2-r1
  - cups 1.1.23_pre1
  - libgnomecups 0.1.14
  - gnome-cups-manager 0.28

result :

the very same compilation error
Comment 5 foser (RETIRED) gentoo-dev 2004-12-28 08:11:17 UTC
printing : you added that specific version while this bug was open ...
Comment 6 Jonathan Heaney 2004-12-28 09:09:37 UTC
Same problem here with the same version numbers as comment #4.

It's been raised on the forum as well now.
Comment 7 Richard Kilgore 2004-12-31 00:27:53 UTC
Created attachment 47267 [details, diff]
allow nautilus to compile with cups USE flag

It seems to work to just pass NULL to gnome_cups_ui_init().
It gets passed on to gnome_cups_checkpath(), which just appears
to be keeping track of some notion of "current directory" or
something.  But if it receives NULL, it does nothing.
Comment 8 Jonathan Heaney 2005-01-01 12:51:47 UTC
OK, I put that patch in the files directory, and after the

# add libgnomeprint support
use cups && epatch ${FILESDIR}/${PN}-2-x-printers.patch

bit in the ebuild, added

#fix cups compilation error
use cups && epatch ${FILESDIR}/nautilus-2.8.2-rkilgore.diff

Re-emerged and it worked fine.
Comment 9 Jonathan Heaney 2005-01-03 14:28:35 UTC
Should/could this latest patch be incorporated into the ${PN}-2-x-printers.patch file?
Comment 10 Alastair Tse (RETIRED) gentoo-dev 2005-01-05 04:39:32 UTC
*** Bug 76750 has been marked as a duplicate of this bug. ***
Comment 11 merwan kashouty 2005-01-07 19:53:44 UTC
thanks richard... works for me
Comment 12 Santiago Gala 2005-01-09 09:07:58 UTC
I'm getting the same error further along:

 powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOMAIN=\"Nautilus-Printers\" -I../.. -DDATADIR=\"/usr/share\" -DGNOMELOCALEDIR=\"/usr/share/locale\" -pthread -DORBIT2=1 -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/eel-2 -I/usr/include/gconf/2 -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/libart-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomeui-2.0 -I/usr/include/libxml2 -I/usr/include/gail-1.0 -I/usr/include/libglade-2.0 -I/usr/include/orbit-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/libbonobo-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-module-2.0 -I/usr/include/gnome-desktop-2.0 -I/usr/include/startup-notification-1.0 -I/usr/include/libgnomecups-1 -DGTK_ENABLE_BROKEN -O2 -mcpu=7450 -maltivec -mabi=altivec -pipe -Wp,-MD,.deps/nautilus-printers.pp -c nautilus-printers.c  -fPIC -DPIC -o .libs/nautilus-printers.o
nautilus-printers.c: In function `nautilus_printer_container_class_init':
nautilus-printers.c:601: warning: assignment from incompatible pointer type
nautilus-printers.c: In function `make_printers_view':
nautilus-printers.c:857: error: too few arguments to function `gnome_cups_ui_init'
make[3]: *** [nautilus-printers.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/nautilus-2.8.2-r1/work/nautilus-2.8.2/components/printers'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/nautilus-2.8.2-r1/work/nautilus-2.8.2/components'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/nautilus-2.8.2-r1/work/nautilus-2.8.2'
make: *** [all-recursive-am] Error 2

my USE="+cups -debug +flac +gstreamer +mad +oggvorbis"

I edited the file to pass a NULL, as per the patch here, and it seems to work too.
Comment 13 foser (RETIRED) gentoo-dev 2005-01-12 06:36:33 UTC
*** Bug 77627 has been marked as a duplicate of this bug. ***
Comment 14 Hagai Kariti 2005-01-15 03:24:56 UTC
Works here as well.
Comment 15 Jonathan Smith (RETIRED) gentoo-dev 2005-01-19 08:11:21 UTC
is this patch going to be worked into portage? i'm still haveing this problem, with both the latest stable ebuild, and the latest ~x86...
Comment 16 Mike Gardiner (RETIRED) gentoo-dev 2005-01-20 01:39:03 UTC
Apologies for the delay. I've added a nautilus-2.8-x-printers.patch with the fixed cups init.

Please emerge sync and USE="cups" emerge nautilus

Not revision bumping as USE="-cups" users will see no change, and USE="cups" users can't compile as is.
Comment 17 Nedim Cholich 2005-01-20 13:25:05 UTC
*** Bug 78834 has been marked as a duplicate of this bug. ***
Comment 18 yab 2005-01-20 14:42:14 UTC
The recently committed ebuild for 2.8.2-r1 breaks if libgnomecups version <= 0.1.10 (which is the stable version as of 2005/1/20).  The ebuild should check the version, so instead of

        use cups && epatch ${FILESDIR}/${PN}-2.8-x-printers.patch

maybe something like

        if use cups ; then
                if has_version "<=net-print/libgnomecups-0.1.10" ; then
                        epatch ${FILESDIR}/${PN}-2-x-printers.patch
                else
                        epatch ${FILESDIR}/${PN}-2.8-x-printers.patch
                fi
        fi
Comment 19 Sebastian Klüft 2005-01-20 15:52:04 UTC
I have libgnomecups-0.1.10 and and the current patch doesnt seem to work for me. I still get the exact same error.
Comment 20 Jonathan Heaney 2005-01-20 19:20:03 UTC
Works here with libgnomecups-0.1.14.
Comment 21 Mike Gardiner (RETIRED) gentoo-dev 2005-01-21 02:31:20 UTC
gnome-cups-ui-init.h is from gnome-cups-manager, not libgnomecups. 

I've added the has_version fix for now, and we'll get the newer gnome-cups libraries into stable when we can.

Thanks for the patch yab@duke.edu.