Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56176 - vcdimager-0.7.20 compile problem...
Summary: vcdimager-0.7.20 compile problem...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 55414
  Show dependency tree
 
Reported: 2004-07-05 14:27 UTC by André Carvalho
Modified: 2004-07-16 02:57 UTC (History)
2 users (show)

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


Attachments
patched ebuild (vcdimager-0.7.20-r1_ebuild.tar.bz2,1.42 KB, application/octet-stream)
2004-07-09 12:26 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description André Carvalho 2004-07-05 14:27:53 UTC
When trying to emerge vcdimager-0.7.20 it does not compile with the error of:
image.c:80: error: conflicting types for `vcd_image_sink_write'
image_sink.h:67: error: previous declaration of `vcd_image_sink_write'.

Can be corrected by patching the image.c file:
== START ==
--- image.c~    2003-11-10 09:57:49.000000000 -0200
+++ image.c     2004-07-05 18:14:37.781168616 -0300
@@ -76,7 +76,7 @@
 }

 int
-vcd_image_sink_write (VcdImageSink *obj, void *buf, uint32_t lsn)
+vcd_image_sink_write (VcdImageSink *obj, void *buf, lsn_t lsn)
 {
   vcd_assert (obj != NULL);

== EOF ==

Reproducible: Always
Steps to Reproduce:
1. emerge vcdimager

Actual Results:  
Doesn't build and install. 

Expected Results:  
To be installed successfully. 

 
Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 
2.6.7-gentoo-r6) 
================================================================= 
System uname: 2.6.7-gentoo-r6 i686 AMD Athlon(tm) XP 1800+ 
Gentoo Base System version 1.4.16 
Autoconf: sys-devel/autoconf-2.59-r4 
Automake: sys-devel/automake-1.8.5-r1 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.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="-O3 -march=athlon-xp -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo 
http://mirror.tucdemonic.org/gentoo/ ftp://gentoo.ccccom.com 
http://mirror.datapipe.net/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="3dnow X acpi alsa arts avi berkdb bonobo cdr crypt cups dvd emacs encode 
encoder esd firebird flash foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml 
guile icq imlib jabber jack java jpeg kde ldap leim libg++ libsamplerate 
libwww mad mikmod mmx motif mozilla mpeg mule mysql ncurses nls oggvorbis 
opengl oss pam pdflib perl png python qt quicktime readline samba scanner sdl 
slang sndfile spell sse ssl svga tcltk tcpd truetype x86 xml2 xmms xosd xv 
zlib"
Comment 1 Ashe 2004-07-07 01:31:49 UTC
ALso got this. This is needed to install k3b.
Comment 2 Alexander Hsia 2004-07-07 22:34:49 UTC
Patch listed in forums fixed this problem for me:

diff -Naur vcdimager-0.7.20/lib/image.c vcdimager-0.7.20.fix/lib/image.c
--- vcdimager-0.7.20/lib/image.c   2003-11-10 06:57:49.000000000 -0500
+++ vcdimager-0.7.20.fix/lib/image.c   2004-07-01 20:52:27.171914064 -0400
@@ -76,7 +76,7 @@
 }
 
 int
-vcd_image_sink_write (VcdImageSink *obj, void *buf, uint32_t lsn)
+vcd_image_sink_write (VcdImageSink *obj, void *buf, lsn_t lsn)
 {
   vcd_assert (obj != NULL);
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2004-07-09 12:26:24 UTC
Created attachment 35073 [details]
patched ebuild

I attached the patch posted in comment #2
This worked on my machines
Comment 4 ignoreme 2004-07-10 08:44:19 UTC
The patched ebuild worked great for me.  Thank You!
Comment 5 Stefan Schweizer (RETIRED) gentoo-dev 2004-07-12 09:10:28 UTC
Please add "inherit eutils" to make the patching work
Comment 6 Simone Gotti (RETIRED) gentoo-dev 2004-07-13 11:45:45 UTC
Thanks, after adding "inherit eutils" the compilation worked for me with gcc 3.4.1-r1.

Please add this new ebuild to the portage.
Comment 7 paulphilippe 2004-07-15 05:29:19 UTC
I am still having trouble applying this patch ebuild after three days. I am using gcc-3.3.4-r1.  When I start emerge the package I get a message like :

"Unpacking vcdimager-0.7.20.tar.gz to /var/tmp/portage/vcdimager-0.7.20-r1/work
/usr/sbin/ebuild.sh: line 21: epatch: command not found"

From what package can I get this epatch command? 

By looking at the image.c file, it looks like the ebuild is compiled without taking into account the diff file. Can someone tell me how to correctly apply the patch?.



Comment 8 Martin Holzer (RETIRED) gentoo-dev 2004-07-15 06:04:42 UTC
add this line
inherit eutils
Comment 9 paulphilippe 2004-07-15 06:30:49 UTC
Hi,

   Thanks for your quick reply. I have added the "inherit eutils" line into the diff file that came with the patched ebuild and it still doesn't work. Maybe I added the line at the wrong place. Can you tell me exactly where it should go?

Paul
Comment 10 Martin Holzer (RETIRED) gentoo-dev 2004-07-15 06:32:09 UTC
added with -r1

thx
Comment 11 Kathy Wills 2004-07-15 19:26:27 UTC
This didn't fix it for me. At the beginning of the compile:

>>> Unpacking vcdimager-0.7.20.tar.gz to /var/tmp/portage/vcdimager-0.7.20-r1/work
/usr/sbin/ebuild.sh: line 21: epatch: command not found
>>> Source unpacked.

Then it goes on to end with the same error.

.lo -MD -MP -MF .deps/image.Tpo -c image.c  -fPIC -DPIC -o .libs/image.o
image.c:80: error: conflicting types for 'vcd_image_sink_write'
image_sink.h:67: error: previous declaration of 'vcd_image_sink_write'was here
image.c:80: error: conflicting types for 'vcd_image_sink_write'
image_sink.h:67: error: previous declaration of 'vcd_image_sink_write'was here
make[2]: *** [image.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/vcdimager-0.7.20-r1/work/vcdimager-0.7.20/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/vcdimager-0.7.20-r1/work/vcdimager-0.7.20'
make: *** [all] Error 2

Emerge info:

Portage 2.0.50-r9 (default-x86-1.4, gcc-3.4.1, glibc-2.3.4.20040619-r0, 2.6.7-rc3-love2)
=================================================================
System uname: 2.6.7-rc3-love2 i686 Pentium III (Coppermine)
Gentoo Base System version 1.5.1
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -mtune=i686 -O2 -funroll-loops -pipe -fno-unit-at-a-time"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/kde/cvs/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=pentium3 -mtune=i686 -O2 -funroll-loops -pipe -fno-unit-at-a-time"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://mirror.clarkson.edu/pub/distributions/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/bmg-main /usr/local/bmg-gnome-current"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb cdr crypt cups doc encode esd foomaticdb gdbm gif gimp gimp-print gphoto2 gtk gtk2 imlib java jpeg kde libg++libwww mad mikmod motif mozilla mpeg ncurses nls nptl oggvorbis opengloss pam pdflib perl png python qt quicktime readline samba sdl slang spell ssl svga tcltk tcpd tetex truetype x86 xml2 xmms xv zlib"

!!! ERROR: media-video/vcdimager-0.7.20-r1 failed.
!!! Function src_compile, Line 33, Exitcode 2
!!! (no error message)
Comment 12 Martin Holzer (RETIRED) gentoo-dev 2004-07-15 23:19:10 UTC
please unset
PORTDIR_OVERLAY="/usr/local/portage /usr/local/bmg-main /usr/local/bmg-gnome-current"
reemerge portage
then try again
Comment 13 Kathy Wills 2004-07-16 01:42:16 UTC
First explain to me what these directories that contain ebuilds used by my system have to do with getting vcdimager to compile.
Comment 14 Martin Holzer (RETIRED) gentoo-dev 2004-07-16 02:39:27 UTC
do you want official support ?
then use official ebuilds
Comment 15 Kathy Wills 2004-07-16 02:57:51 UTC
These directories turned out to have absolutely nothing to do with the problem. The purpose of using Gentoo is for choice. The problem was I was missing the inherit eutils in the ebuild. A simple emerge sync and then emerge solved the problem. I had missed the information on adding inherit eutils to the ebuild.