Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 124641 - media-video/camorama-0.17 doesn't build with GCC4
Summary: media-video/camorama-0.17 doesn't build with GCC4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2006-03-02 07:20 UTC by Samuli Suominen (RETIRED)
Modified: 2006-06-07 06:55 UTC (History)
2 users (show)

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


Attachments
Patch for Camorama 0.17 to compile with GCC 4 (0.17-gcc4.patch,986 bytes, patch)
2006-03-05 08:22 UTC, Samuli Suominen (RETIRED)
Details | Diff
Ebuild I used to test that this patch works with GCC 4.1, it does. (camorama-0.17-r1.ebuild,754 bytes, text/plain)
2006-03-05 08:36 UTC, Samuli Suominen (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samuli Suominen (RETIRED) gentoo-dev 2006-03-02 07:20:09 UTC
I've tried 4.0.2 and 4.1.0-20060223, result is same. It builds fine with GCC 3.4.5.

drac@unaffiliated ~ $ gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /var/tmp/portage/gcc-4.1.0_pre20060223/work/gcc-4.1.0-20060223/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.0-pre20060223 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.0-pre20060223/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.0-pre20060223 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.0-pre20060223/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.0-pre20060223/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.0-pre20060223/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libmudflap --disable-libgcj --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.0-pre20060223  (prerelease)
drac@unaffiliated ~ $ sudo emerge -av camorama


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-video/camorama-0.17  USE="-debug" 304 kB

Total size of downloads: 304 kB

Do you want me to merge these packages? [Yes/No] y
>>> Emerging (1 of 1) media-video/camorama-0.17 to /
>>> Downloading http://trumpetti.atm.tut.fi/gentoo/distfiles/camorama-0.17.tar.bz2
--17:15:38--  http://trumpetti.atm.tut.fi/gentoo/distfiles/camorama-0.17.tar.bz2           => `/usr/portage/distfiles/camorama-0.17.tar.bz2'
Resolving trumpetti.atm.tut.fi... 130.230.54.100, 2001:708:310:54::2
Connecting to trumpetti.atm.tut.fi|130.230.54.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 312,233 (305K) [application/x-tar]

100%[====================================>] 312,233      851.35K/s

17:15:38 (849.62 KB/s) - `/usr/portage/distfiles/camorama-0.17.tar.bz2' saved [312233/312233]

>>> checksums files   ;-) camorama-0.17.ebuild
>>> checksums files   ;-) camorama-0.16.ebuild
>>> checksums files   ;-) files/digest-camorama-0.16
>>> checksums files   ;-) files/digest-camorama-0.17
>>> checksums src_uri ;-) camorama-0.17.tar.bz2
>>> Unpacking source...
>>> Unpacking camorama-0.17.tar.bz2 to /var/tmp/portage/camorama-0.17/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/camorama-0.17/work/camorama-0.17 ...
QA Notice: USE Flag 'doc' not in IUSE for media-video/camorama-0.17
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-gtk-doc --build=i686-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for intltool >= 0.21... 0.26 found
checking for perl... /usr/bin/perl
checking for style of include used by make... GNU
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking dependency style of i686-pc-linux-gnu-gcc... gcc3
checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking for gmsgfmt... /usr/bin/gmsgfmt
checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed...  am be cs da de es fa fr ml nl no pl pt pt_BR sr sr@Latn sv uk vi ja
checking for strerror in -lcposix... no
checking for i686-pc-linux-gnu-gcc... (cached) i686-pc-linux-gnu-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether i686-pc-linux-gnu-gcc accepts -g... (cached) yes
checking for i686-pc-linux-gnu-gcc option to accept ANSI C... (cached) none needed
checking dependency style of i686-pc-linux-gnu-gcc... (cached) gcc3
checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking for unistd.h... (cached) yes
checking linux/videodev.h usability... yes
checking linux/videodev.h presence... yes
checking for linux/videodev.h... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking glade/glade.h usability... no
checking glade/glade.h presence... no
checking for glade/glade.h... no
./configure: line 5804: GNOME_COMPILE_WARNINGS: command not found
checking for pkg-config... /usr/bin/pkg-config
checking for gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0 libgnomeui-2.0 gtk+-2.0 >= 1.3.13 gconf-2.0 libglade-2.0... yes
checking PACKAGE_CFLAGS... -DORBIT2=1 -pthread -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/libglade-2.0
checking PACKAGE_LIBS... -Wl,--export-dynamic -pthread -L/usr/X11R6/lib -lgdk_pixbuf_xlib-2.0 -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lgnome-keyring -lgnomecanvas-2 -lgnome-2 -lpopt -lart_lgpl_2 -lpangoft2-1.0 -lgnomevfs-2 -lbonobo-2 -lbonobo-activation -lgconf-2 -lORBit-2 -lgthread-2.0 -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lz -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
checking for gconftool-2... /usr/bin/gconftool-2
Using config source xml::/etc/gconf/gconf.xml.defaults for schema installation
Using $(sysconfdir)/gconf/schemas/ as install directory for schema files
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating data/Makefile
config.status: creating pixmaps/Makefile
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: executing default-1 commands
config.status: executing depfiles commands
config.status: executing default-2 commands
make  all-recursive
make[1]: Entering directory `/var/tmp/portage/camorama-0.17/work/camorama-0.17'
Making all in src
make[2]: Entering directory `/var/tmp/portage/camorama-0.17/work/camorama-0.17/src'
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/share"\" -DDATADIR=\""/usr/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -DORBIT2=1 -pthread -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/libglade-2.0      -march=athlon-xp -O2 -pipe -fomit-frame-pointer -MT main.o -MD -MP -MF ".deps/main.Tpo" \
  -c -o main.o `test -f 'main.c' || echo './'`main.c; \
then mv -f ".deps/main.Tpo" ".deps/main.Po"; \
else rm -f ".deps/main.Tpo"; exit 1; \
fi
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/share"\" -DDATADIR=\""/usr/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -DORBIT2=1 -pthread -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/libglade-2.0      -march=athlon-xp -O2 -pipe -fomit-frame-pointer -MT v4l.o -MD -MP -MF ".deps/v4l.Tpo" \
  -c -o v4l.o `test -f 'v4l.c' || echo './'`v4l.c; \
then mv -f ".deps/v4l.Tpo" ".deps/v4l.Po"; \
else rm -f ".deps/v4l.Tpo"; exit 1; \
fi
main.c: In function 
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2006-03-02 07:20:09 UTC
I've tried 4.0.2 and 4.1.0-20060223, result is same. It builds fine with GCC 3.4.5.

drac@unaffiliated ~ $ gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /var/tmp/portage/gcc-4.1.0_pre20060223/work/gcc-4.1.0-20060223/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.0-pre20060223 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.0-pre20060223/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.0-pre20060223 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.0-pre20060223/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.0-pre20060223/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.0-pre20060223/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libmudflap --disable-libgcj --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.0-pre20060223  (prerelease)
drac@unaffiliated ~ $ sudo emerge -av camorama


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-video/camorama-0.17  USE="-debug" 304 kB

Total size of downloads: 304 kB

Do you want me to merge these packages? [Yes/No] y
>>> Emerging (1 of 1) media-video/camorama-0.17 to /
>>> Downloading http://trumpetti.atm.tut.fi/gentoo/distfiles/camorama-0.17.tar.bz2
--17:15:38--  http://trumpetti.atm.tut.fi/gentoo/distfiles/camorama-0.17.tar.bz2           => `/usr/portage/distfiles/camorama-0.17.tar.bz2'
Resolving trumpetti.atm.tut.fi... 130.230.54.100, 2001:708:310:54::2
Connecting to trumpetti.atm.tut.fi|130.230.54.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 312,233 (305K) [application/x-tar]

100%[====================================>] 312,233      851.35K/s

17:15:38 (849.62 KB/s) - `/usr/portage/distfiles/camorama-0.17.tar.bz2' saved [312233/312233]

>>> checksums files   ;-) camorama-0.17.ebuild
>>> checksums files   ;-) camorama-0.16.ebuild
>>> checksums files   ;-) files/digest-camorama-0.16
>>> checksums files   ;-) files/digest-camorama-0.17
>>> checksums src_uri ;-) camorama-0.17.tar.bz2
>>> Unpacking source...
>>> Unpacking camorama-0.17.tar.bz2 to /var/tmp/portage/camorama-0.17/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/camorama-0.17/work/camorama-0.17 ...
QA Notice: USE Flag 'doc' not in IUSE for media-video/camorama-0.17
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-gtk-doc --build=i686-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for intltool >= 0.21... 0.26 found
checking for perl... /usr/bin/perl
checking for style of include used by make... GNU
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking dependency style of i686-pc-linux-gnu-gcc... gcc3
checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking for gmsgfmt... /usr/bin/gmsgfmt
checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed...  am be cs da de es fa fr ml nl no pl pt pt_BR sr sr@Latn sv uk vi ja
checking for strerror in -lcposix... no
checking for i686-pc-linux-gnu-gcc... (cached) i686-pc-linux-gnu-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether i686-pc-linux-gnu-gcc accepts -g... (cached) yes
checking for i686-pc-linux-gnu-gcc option to accept ANSI C... (cached) none needed
checking dependency style of i686-pc-linux-gnu-gcc... (cached) gcc3
checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking for unistd.h... (cached) yes
checking linux/videodev.h usability... yes
checking linux/videodev.h presence... yes
checking for linux/videodev.h... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking glade/glade.h usability... no
checking glade/glade.h presence... no
checking for glade/glade.h... no
./configure: line 5804: GNOME_COMPILE_WARNINGS: command not found
checking for pkg-config... /usr/bin/pkg-config
checking for gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0 libgnomeui-2.0 gtk+-2.0 >= 1.3.13 gconf-2.0 libglade-2.0... yes
checking PACKAGE_CFLAGS... -DORBIT2=1 -pthread -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/libglade-2.0
checking PACKAGE_LIBS... -Wl,--export-dynamic -pthread -L/usr/X11R6/lib -lgdk_pixbuf_xlib-2.0 -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lgnome-keyring -lgnomecanvas-2 -lgnome-2 -lpopt -lart_lgpl_2 -lpangoft2-1.0 -lgnomevfs-2 -lbonobo-2 -lbonobo-activation -lgconf-2 -lORBit-2 -lgthread-2.0 -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lz -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
checking for gconftool-2... /usr/bin/gconftool-2
Using config source xml::/etc/gconf/gconf.xml.defaults for schema installation
Using $(sysconfdir)/gconf/schemas/ as install directory for schema files
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating data/Makefile
config.status: creating pixmaps/Makefile
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: executing default-1 commands
config.status: executing depfiles commands
config.status: executing default-2 commands
make  all-recursive
make[1]: Entering directory `/var/tmp/portage/camorama-0.17/work/camorama-0.17'
Making all in src
make[2]: Entering directory `/var/tmp/portage/camorama-0.17/work/camorama-0.17/src'
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/share"\" -DDATADIR=\""/usr/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -DORBIT2=1 -pthread -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/libglade-2.0      -march=athlon-xp -O2 -pipe -fomit-frame-pointer -MT main.o -MD -MP -MF ".deps/main.Tpo" \
  -c -o main.o `test -f 'main.c' || echo './'`main.c; \
then mv -f ".deps/main.Tpo" ".deps/main.Po"; \
else rm -f ".deps/main.Tpo"; exit 1; \
fi
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/share"\" -DDATADIR=\""/usr/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -DORBIT2=1 -pthread -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/libglade-2.0      -march=athlon-xp -O2 -pipe -fomit-frame-pointer -MT v4l.o -MD -MP -MF ".deps/v4l.Tpo" \
  -c -o v4l.o `test -f 'v4l.c' || echo './'`v4l.c; \
then mv -f ".deps/v4l.Tpo" ".deps/v4l.Po"; \
else rm -f ".deps/v4l.Tpo"; exit 1; \
fi
main.c: In function load_interface:
main.c:87: error: invalid lvalue in assignment
make[2]: *** [main.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/camorama-0.17/work/camorama-0.17/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/camorama-0.17/work/camorama-0.17'
make: *** [all] Error 2

!!! ERROR: media-video/camorama-0.17 failed.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2006-03-03 08:51:42 UTC
Sorry about long URL but it includes a fix (patch) http://groups.google.co.in/group/linux.debian.bugs.dist/browse_thread/thread/7feed2547ec0c769/c72cbe550bcf3a10%23c72cbe550bcf3a10?sa=X&oi=groupsr&start=0&num=2

..for 0.17-r1 ? :-)

diff -urN ../tmp-orig/camorama-0.17/src/callbacks.c ./src/callbacks.c
--- ../tmp-orig/camorama-0.17/src/callbacks.c   2003-08-20 20:24:40.000000000 +0200
+++ ./src/callbacks.c   2004-12-08 15:10:42.666913856 +0100
@@ -380,7 +380,7 @@
 {
     gchar *name, *title;

-    (G_CONST_RETURN) name = gtk_widget_get_name (widget);
+    name = gtk_widget_get_name (widget);

     if (strcmp (name, "small1") == 0) {
         cam->x = cam->vid_cap.minwidth;
diff -urN ../tmp-orig/camorama-0.17/src/main.c ./src/main.c
--- ../tmp-orig/camorama-0.17/src/main.c        2003-08-20 20:24:40.000000000 +0200
+++ ./src/main.c        2004-12-08 15:10:08.112166976 +0100
@@ -84,7 +84,7 @@
     GtkWidget *eventbox = NULL, *image = NULL;
     gint width, height;

-    (GtkTooltips *)cam->tooltips = gtk_tooltips_new ();
+    cam->tooltips = gtk_tooltips_new ();
     logo = (GdkPixbuf *) create_pixbuf (DATADIR "/pixmaps/camorama.png");
     if (logo == NULL) {
         printf ("\n\nLOGO NO GO\n\n");

Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2006-03-03 08:56:28 UTC
erm, sorry forgot to mention that I've tested this patch with GCC 4.1 final, and it works.
Comment 4 Tony Vroon (RETIRED) gentoo-dev 2006-03-05 05:18:41 UTC
Patch fails to apply properly and is not in the correct format (note the warnings emitted about the header).
Please rediff and attach here, then reopen the bug.

PATCH COMMAND:  patch -p3 -g0 --no-backup-if-mismatch < /cvs/gentoo-x86/media-video/camorama/files/0.17-gcc4.patch

===========================
missing header for unified diff at line 4 of patch
patching file src/callbacks.c
Hunk #1 succeeded at 380 with fuzz 1.
missing header for unified diff at line 17 of patch
patching file src/main.c
Hunk #1 FAILED at 84.
1 out of 1 hunk FAILED -- saving rejects to file src/main.c.rej
===========================
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2006-03-05 07:08:25 UTC
Sorry, i'm a bit new on creating these patches. This is my first try, anywhere near correct?

unaffiliated camorama-0.17.orig # patch -p1 -g0 --no-backup-if-mismatch < 0.17-gcc4.patch

patching file src/callbacks.c
patching file src/main.c

unaffiliated camorama-0.17.orig # cat 0.17-gcc4.patch

diff -ur camorama-0.17.orig/src/callbacks.c camorama-0.17/src/callbacks.c
--- camorama-0.17.orig/src/callbacks.c  2003-08-20 21:24:40.000000000 +0300
+++ camorama-0.17/src/callbacks.c       2006-03-05 16:38:09.000000000 +0200
@@ -380,7 +380,7 @@
 {
     gchar *name, *title;

-    (G_CONST_RETURN) name = gtk_widget_get_name (widget);
+    name = gtk_widget_get_name (widget);

     if (strcmp (name, "small1") == 0) {
         cam->x = cam->vid_cap.minwidth;
diff -ur camorama-0.17.orig/src/main.c camorama-0.17/src/main.c
--- camorama-0.17.orig/src/main.c       2003-08-20 21:24:40.000000000 +0300
+++ camorama-0.17/src/main.c    2006-03-05 16:38:18.000000000 +0200
@@ -84,7 +84,7 @@
     GtkWidget *eventbox = NULL, *image = NULL;
     gint width, height;

-    (GtkTooltips *)cam->tooltips = gtk_tooltips_new ();
+    cam->tooltips = gtk_tooltips_new ();
     logo = (GdkPixbuf *) create_pixbuf (DATADIR "/pixmaps/camorama.png");
     if (logo == NULL) {
         printf ("\n\nLOGO NO GO\n\n");
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2006-03-05 08:22:19 UTC
Created attachment 81406 [details, diff]
Patch for Camorama 0.17 to compile with GCC 4
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2006-03-05 08:36:30 UTC
Created attachment 81409 [details]
Ebuild I used to test that this patch works with GCC 4.1, it does.
Comment 8 Tony Vroon (RETIRED) gentoo-dev 2006-03-05 14:47:18 UTC
This is in the portage tree. Thank you for your patch & bug report.
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2006-06-07 06:55:12 UTC
I pinged upstream (again!) but this time also the second (designer developer) of Camorama.