Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34519 - sylpheed-claws-0.9.7 compile fails
Summary: sylpheed-claws-0.9.7 compile fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Marius Mauch (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-27 07:31 UTC by Roger Hawley
Modified: 2003-11-28 20:13 UTC (History)
0 users

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


Attachments
Patch to correct ghostscript-viewer plugin compilation failure (gviewer-Makefile.in.patch,930 bytes, patch)
2003-11-27 10:43 UTC, Olivier Castan
Details | Diff
Modification to the ebuild to apply the patch (sylpheed-claws-0.9.7.ebuild,4.78 KB, text/plain)
2003-11-27 10:45 UTC, Olivier Castan
Details
Modification to the ebuild to apply the patch (v2) (sylpheed-claws-0.9.7.ebuild,4.73 KB, text/plain)
2003-11-28 01:33 UTC, Olivier Castan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roger Hawley 2003-11-27 07:31:07 UTC
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"
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2003-11-27 07:47:23 UTC
You mean it breaks with the 0.5 version of the plugin (as in the ebuild) ?
Comment 2 Roger Hawley 2003-11-27 08:12:47 UTC
Yes, but someone on the sylpheed-claws list said they tried
version 6 and it still did not compile.
Comment 3 Felix Eckhofer 2003-11-27 08:32:38 UTC
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".
Comment 4 Olivier Castan 2003-11-27 10:16:55 UTC
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.
Comment 5 Olivier Castan 2003-11-27 10:43:51 UTC
Created attachment 21371 [details, diff]
Patch to correct ghostscript-viewer plugin compilation failure
Comment 6 Olivier Castan 2003-11-27 10:45:58 UTC
Created attachment 21372 [details]
Modification to the ebuild to apply the patch

sylpheed-claws-0.9.7 installed and running. Plugin not tested yet.
Comment 7 Olivier Castan 2003-11-28 01:33:18 UTC
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.
Comment 8 Marius Mauch (RETIRED) gentoo-dev 2003-11-28 20:13:25 UTC
ok, fixed in cvs.
Comment 9 Marius Mauch (RETIRED) gentoo-dev 2003-11-28 20:13:54 UTC
I should close this when it's fixed ;)