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"
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 ?
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"
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.
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
printing : you added that specific version while this bug was open ...
Same problem here with the same version numbers as comment #4. It's been raised on the forum as well now.
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.
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.
Should/could this latest patch be incorporated into the ${PN}-2-x-printers.patch file?
*** Bug 76750 has been marked as a duplicate of this bug. ***
thanks richard... works for me
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.
*** Bug 77627 has been marked as a duplicate of this bug. ***
Works here as well.
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...
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.
*** Bug 78834 has been marked as a duplicate of this bug. ***
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
I have libgnomecups-0.1.10 and and the current patch doesnt seem to work for me. I still get the exact same error.
Works here with libgnomecups-0.1.14.
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.