I understand that Version 6 of ghostscript-viewer plugin was released yesterday. What is with the "too few arguments" for procmime? viewer.c: In function `ghostscript_viewer_show_mimepart': viewer.c:98: warning: passing arg 2 of `procmime_get_part' from incompatible pointer type viewer.c:98: error: too few arguments to function `procmime_get_part' make[3]: *** [viewer.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... rm: cannot remove `': Invalid argument gcc -DHAVE_CONFIG_H -I. -I. -I.. -Ilibgtkgs -I/usr/local/include -I/usr/include/sylpheed-claws -I/usr/include/sylpheed-claws/common -I/usr/include/sylpheed-claws/gtk -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/var/tmp/portage/sylpheed-claws-0.9.7/work/sylpheed-0.9.7claws -I/var/tmp/portage/sylpheed-claws-0.9.7/work/sylpheed-0.9.7claws/src -I/var/tmp/portage/sylpheed-claws-0.9.7/work/sylpheed-0.9.7claws/src/common -I/var/tmp/portage/sylpheed-claws-0.9.7/work/sylpheed-0.9.7claws/src/gtk -march=pentium4 -O3 -pipe -fomit-frame-pointer -MT viewerprefs.lo -MD -MP -MF .deps/viewerprefs.Tpo -c viewerprefs.c -o viewerprefs.o >/dev/null 2>&1 make[3]: Leaving directory `/var/tmp/portage/sylpheed-claws-0.9.7/work/sylpheed-0.9.7claws/src/plugins/ghostscript-viewer-0.5/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/sylpheed-claws-0.9.7/work/sylpheed-0.9.7claws/src/plugins/ghostscript-viewer-0.5/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/sylpheed-claws-0.9.7/work/sylpheed-0.9.7claws/src/plugins/ghostscript-viewer-0.5' make: *** [all] Error 2 !!! ERROR: net-mail/sylpheed-claws-0.9.7 failed. !!! Function src_compile, Line 140, Exitcode 2 !!! (no error message) Reproducible: Always Steps to Reproduce: 1.emerge -vu sylpheed-claws 2. 3. Actual Results: compile fails Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.20-gentoo-r7) ================================================================= System uname: 2.4.20-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz Gentoo Base System version 1.4.3.12 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/xdvi/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs sandbox ccache userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb alsa gdbm berkdb slang readline arts tetex nas bonobo svga tcltk X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt kde motif opengl mozilla cdr 3dnow 3ds acpi acpi4linux clamav dga doc dv dvd fbcon gstreamer gtk2 gtkhtml imagemagick ipv6 java jikes lcms mmx moznocompose moznoirc moznomail parse-clocks ppds radeon sse usb v4l xface xine -apm"
You mean it breaks with the 0.5 version of the plugin (as in the ebuild) ?
Yes, but someone on the sylpheed-claws list said they tried version 6 and it still did not compile.
Actually that was me - I replaced the ghostscript-plugin's version and removed the patch (that was now obsolete) and still it complains about "too few arguments".
The problem is that procmime_get_part has changed its interface between 0.9.6 and 0.9.7. It previously required 3 args and now only 2. The error comes from the Makefile : /usr/include/sylpheed-claws is included before /var/tmp/portage/sylpheed-claws-0.9.7/work/sylpheed-0.9.7claws/src and so the previous definition is used the compilation fails. Changing : LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \ $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) to LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \ $(INCLUDES) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) into /var/tmp/portage/sylpheed-claws-0.9.7/work/sylpheed-0.9.7claws/src/Makefile, solves the problem.
Created attachment 21371 [details, diff] Patch to correct ghostscript-viewer plugin compilation failure
Created attachment 21372 [details] Modification to the ebuild to apply the patch sylpheed-claws-0.9.7 installed and running. Plugin not tested yet.
Created attachment 21402 [details] Modification to the ebuild to apply the patch (v2) Small typo : the patch was applied twice in the ebuild. Same failure and same corrections on ppc.
ok, fixed in cvs.
I should close this when it's fixed ;)