Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48145 - media-video/camstream-0.26.3 fails to build on AMD64
Summary: media-video/camstream-0.26.3 fails to build on AMD64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-17 10:55 UTC by Duncan Hill
Modified: 2004-10-31 10:58 UTC (History)
1 user (show)

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


Attachments
ebuild patch to support new asm patch + gnuconfig + QT issue (camstream-0.26.3.ebuild.patch,1.35 KB, patch)
2004-04-17 10:57 UTC, Duncan Hill
Details | Diff
64 bit assembler patch for camstream (camstream-0.26.3-x86_64-asm.patch,7.09 KB, patch)
2004-04-17 10:58 UTC, Duncan Hill
Details | Diff
ebuild patch with ~amd64, icon install fix, QT fix, gnuconfig fix. (camstream-0.26.3.ebuild.patch,1.52 KB, patch)
2004-04-17 11:20 UTC, Duncan Hill
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Duncan Hill 2004-04-17 10:55:12 UTC
Camstream has some 32 bit assembler that obviously won't play nice with a 64 bit kernel.  

video_asm.S: Assembler messages:
video_asm.S:24: Error: `8(%ebp)' is not a valid 64 bit base/index expression
video_asm.S:25: Error: `12(%ebp)' is not a valid 64 bit base/index expression
video_asm.S:26: Error: `16(%ebp)' is not a valid 64 bit base/index expression
video_asm.S:27: Error: `20(%ebp)' is not a valid 64 bit base/index expression

and so on.  When reported to the author of the application, the gist of the answer was 'I don't have a 64 bit system to test on, you're going to have to solve it.'

http://smcc.demon.nl/anthill/query.php?bug=67

Reproducible: Always
Steps to Reproduce:
1. emerge /usr/portage/media-video/camstream/camstream-0.26.3.ebuild
2. ???
3. Don't profit!

Actual Results:  
Failed compile. 

Expected Results:  
Compiled. 

Portage 2.0.50-r6 (default-amd64-2004.0, gcc-3.3.3, glibc-2.3.2-r9, 
2.6.3-gentoo-r2-cs1) 
================================================================= 
System uname: 2.6.3-gentoo-r2-cs1 x86_64 4 
Gentoo Base System version 1.4.3.13 
ccache version 2.3 [enabled] 
Autoconf: sys-devel/autoconf-2.58-r1 
Automake: sys-devel/automake-1.7.8 
ACCEPT_KEYWORDS="amd64 ~amd64" 
AUTOCLEAN="yes" 
CFLAGS="-O2" 
CHOST="x86_64-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 /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O2" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="X aalib acpi alsa amd64 apache2 apm arts artswrappersuid avi bonobo cddb 
cdr crypt cups dga dvd encode esd ethereal faad flac foomaticdb gd gdbm gif 
gnome gpm gstreamer gtk gtk2 gtkhtml imlib innodb jpeg kde libg++ libwww mad 
maildir mikmod motif mozilla mozp3p mozsvg mpeg msn mysql ncurses nls nogcj 
oggvorbis opengl pam pdflib pear-db perl png python qt quicktime readline 
samba sasl sdl slang spell ssl tcltk tcpd tetex theora tiff transparent-proxy 
truetype usb vim-with-x xml2 xmms xv yahoo zlib"
Comment 1 Duncan Hill 2004-04-17 10:57:32 UTC
Created attachment 29511 [details, diff]
ebuild patch to support new asm patch + gnuconfig + QT issue

This ebuild patch addes support for gnuconfig_update, flags camstream as
~amd64, and incorporates a previous bugs.g.o patch for a QT issue when
compiling.
Comment 2 Duncan Hill 2004-04-17 10:58:50 UTC
Created attachment 29512 [details, diff]
64 bit assembler patch for camstream

Only patches camstream/video/*, not ccvt/*.  Done with a crude sed 's/%e/%r/'
and may not work properly on all systems.  Works For Me with my Logitech
Notebook Pro.
Comment 3 Danny van Dyk (RETIRED) gentoo-dev 2004-04-17 11:07:41 UTC
This is mainly a bug to make media-video/camstream work on amd64. However, i can't
include those sandbox-violation patches on my own. CC'ing maintainer.

phosphan: Could you please include that sandbox-issue patches ?
Comment 4 Duncan Hill 2004-04-17 11:20:54 UTC
Created attachment 29513 [details, diff]
ebuild patch with ~amd64, icon install fix, QT fix, gnuconfig fix.

Previous ebuild patch didn't install icons in the right place, so the GUI was a
little sparse and unuseable.
Comment 5 Patrick Kursawe (RETIRED) gentoo-dev 2004-04-19 10:06:09 UTC
Will check this tomorrow - if not, please remind me :-)
Comment 6 Patrick Kursawe (RETIRED) gentoo-dev 2004-04-20 00:06:26 UTC
Duncan, the fix for the icon path is not necessary if you do the fix for the Qt problem correctly (which indeed fixes a "fix" by someone else...).

Please try the version I've just put into portage when available. Thanks!
Comment 7 Duncan Hill 2004-04-20 10:45:40 UTC
Works! :)
Comment 8 Vermyndax 2004-10-31 10:58:14 UTC
This is working fine for me too - maybe it should be marked stable on amd64 since no other bugs have been filed and there have been two successful compiles ;)