Bug 207548 - media-video/transcode-1.0.5-r3 stable request
Bug#: 207548 (mol) Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: media-video@gentoo.org Reported By: lordcris@yahoo.it
Component: Applications
URL: 
Summary: media-video/transcode-1.0.5-r3 stable request
Keywords:  STABLEREQ
Status Whiteboard: 
Opened: 2008-01-26 13:43 0000
Description:   Opened: 2008-01-26 13:43 0000
/minilzo.Tpo -c minilzo.c  -fPIC -DPIC -o .libs/minilzo.o
In file included from /usr/include/asm/sigcontext.h:5,
                 from /usr/include/bits/sigcontext.h:29,
                 from /usr/include/signal.h:334,
                 from ../../src/transcode.h:48,
                 from rtjpeg_aud_plugin.c:62:
/usr/include/asm/types.h:19: error: conflicting types for '__s32'
RTjpegN.h:32: error: previous declaration of '__s32' was here
/usr/include/asm/types.h:20: error: conflicting types for '__u32'
RTjpegN.h:28: error: previous declaration of '__u32' was here
make[3]: *** [rtjpeg_aud_plugin.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT
-DMOD_PATH=\"/usr/lib/transcode\" -I../.. -I../../import -I../../src -Wall
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-march=prescott -O2 -pipe -fomit-frame-pointer -DDCT_YUV_PRECISION=1 -MT
rtjpeg_vid_plugin.lo -MD -MP -MF .deps/rtjpeg_vid_plugin.Tpo -c
rtjpeg_vid_plugin.c  -fPIC -DPIC -o .libs/rtjpeg_vid_plugin.o
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT
-DMOD_PATH=\"/usr/lib/transcode\" -I../.. -I../../import -I../../src -Wall
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-march=prescott -O2 -pipe -fomit-frame-pointer -DDCT_YUV_PRECISION=1 -MT
soxfuncs.lo -MD -MP -MF .deps/soxfuncs.Tpo -c soxfuncs.c  -fPIC -DPIC -o
.libs/soxfuncs.o
In file included from rtjpeg_vid_plugin.c:57:
RTjpegN.h:28: error: conflicting types for '__u32'
/usr/include/asm/types.h:20: error: previous declaration of '__u32' was here
RTjpegN.h:32: error: conflicting types for '__s32'
/usr/include/asm/types.h:19: error: previous declaration of '__s32' was here
make[3]: *** [rtjpeg_vid_plugin.lo] Error 1
make[3]: Leaving directory
`/var/tmp/portage/media-video/transcode-1.0.5/work/transcode-1.0.5/import/nuv'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/media-video/transcode-1.0.5/work/transcode-1.0.5/import'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/media-video/transcode-1.0.5/work/transcode-1.0.5'
make: *** [all] Error 2



i have sys-kernel/linux-headers-2.6.24 installed

Reproducible: Always




emerge --info
Portage 2.1.4 (default-linux/x86/2007.0/desktop, gcc-4.2.2, glibc-2.7-r1,
2.6.24-gentoo i686)
=================================================================
System uname: 2.6.24-gentoo i686 Intel(R) Core(TM)2 Quad CPU @ 2.93GHz
Timestamp of tree: Sat, 26 Jan 2008 11:46:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.3
dev-lang/python:     2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf
/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache digest distlocks fixpackages metadata-transfer parallel-fetch
sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://ftp.heanet.ie/pub/gentoo/ http://mirror.ing.unibo.it/gentoo/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles
--exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/Dottout /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi aiglx alsa apache2 bash-completion berkdb bitmap-fonts
branding cairo cdparanoia cdr cli cpudetection cracklib crypt css cups dbus
divx divx4linux dlloader dri dts dvb dvd dvdr dvdread emboss encode esd fam
fbdev ffmpeg firefox flac font-server foomaticdb fortran gdbm gif glibc-omitfp
glitz gmedia gstreamer gtk gtk2 hal iconv ipv6 isdnlog ithreads java javacomm
jpeg kde kdexdeltas kickoff kqemu lame live mad matroska midi mikmod mmx mmx2
mmxext mns mozbranding mozdevelop mp3 mpeg mudflap musepack musicbrainz ncurses
network newspr nls nptl nptlonly nsplugin nvidia nxclient offensive ogg opengl
openmp openntpd optimisememory oss pam parse-clocks pcre pdf perl png pppd
python qt qt-copy qt3 qt3support qt4 quicktime readline real reflection rtc
rtsp samba scanner sdl session softmmu spell spl sse sse2 ssl svg symlink tcpd
threadsonly thunderbird tiff transparency truetype truetype-fonts type1-fonts
unicode userlocales v4l v4l2 vcd vorbis wavpack win32codecs wma wmp wxwindows
x264 x86 xine xml xorg xv xvid zlib" ALSA_CARDS="hda-intel"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file
hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route
share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias
authn_anon authn_dbm authn_default authn_file authz_dbm authz_default
authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs
dav_lock deflate dir disk_cache env expires ext_filter file_cache filter
headers include info log_config logio mem_cache mime mime_magic negotiation
rewrite setenvif speling status unique_id userdir usertrack vhost_alias"
ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad
cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en"
USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #1 From Jakub Moc (RETIRED) 2008-01-26 13:58:15 0000 -------
Bug 194370 clearly affects x86 as well, the whole thing should go to /dev/null
on every arch out there.

------- Comment #2 From Alexis Ballier 2008-01-26 14:04:31 0000 -------
(In reply to comment #1)
> Bug 194370 clearly affects x86 as well, the whole thing should go to /dev/null
> on every arch out there.
> 

or just be bumped:
1.0.6rc1 containing
- avifile fixes for gutsy (but af6 import module is still deprecated)
- NUV code backport

------- Comment #3 From Steve Dibb 2008-01-26 15:57:05 0000 -------
(In reply to comment #2)
> (In reply to comment #1)
> > Bug 194370 clearly affects x86 as well, the whole thing should go to /dev/null
> > on every arch out there.
> > 
> 
> or just be bumped:
> 1.0.6rc1 containing
> - avifile fixes for gutsy (but af6 import module is still deprecated)
> - NUV code backport
> 

I'm gonna get to both of them, haven't fixed 1.0.5 yet.

------- Comment #4 From DEMAINE Benoît-Pierre, aka DoubleHP 2008-01-27 17:08:59 0000 -------
what about transcode-1.1.0_alpha4 that is in portage ? should it be compilable
?

------- Comment #5 From Heltem 2008-01-29 17:41:43 0000 -------
I think this bug comes from the i386 and x86_64 branches merge in 2.6.24 kernel
which aims to unify most of x86 code.

It seems transcode file RTjpegN.h is fooled by new types handling in
/usr/include/asm/types.h.

------- Comment #6 From Bill Knight 2008-01-29 23:57:53 0000 -------
It looks like this is quite an old problem that has re-surfaced -- see bug
#194370 

------- Comment #7 From Francesco Romani 2008-01-30 19:50:18 0000 -------
(In reply to comment #6)
> It looks like this is quite an old problem that has re-surfaced -- see bug
> #194370 

Yes And I've decided to bite the bullet. The plan is to finally fix this issue
in 1.0.6rc1 and 1.1.0alpha7. At least on the beginning, the only arch supported
for NUV will be x86 (NUV support will be forced to off on other archs). Later
*EXPERIMENTAL* x86-64 support will be added.

-- 
Francesco Romani (transcode dev team)

------- Comment #8 From Cody Harris 2008-02-01 13:38:07 0000 -------
I tried merging transcode-1.1.0_alpha4, however dvdrip fails complaining that
transcode-1.1.0_alpha4 does not actually support the extrafilters use flag.

------- Comment #9 From Francesco Romani 2008-02-03 09:20:05 0000 -------
(In reply to comment #7)
> Yes And I've decided to bite the bullet. The plan is to finally fix this issue
> in 1.0.6rc1 and 1.1.0alpha7. At least on the beginning, the only arch supported

Applied and released both.

-- 
Francesco Romani (transcode dev team)


------- Comment #10 From Ian Abbott 2008-02-11 11:55:35 0000 -------
(In reply to comment #5)
> I think this bug comes from the i386 and x86_64 branches merge in 2.6.24 kernel
> which aims to unify most of x86 code.

So a temporary workaround would be to downgrade to linux-headers-2.6.23?

------- Comment #11 From Steve Dibb 2008-02-12 22:52:54 0000 -------
(In reply to comment #10)
> (In reply to comment #5)
> > I think this bug comes from the i386 and x86_64 branches merge in 2.6.24 kernel
> > which aims to unify most of x86 code.
> 
> So a temporary workaround would be to downgrade to linux-headers-2.6.23?
> 

No.  For the record, the theory is wrong.

------- Comment #12 From Erik Zeek 2008-02-15 23:24:55 0000 -------
Also for the record:  media-video/transcode-1.0.5-r1 fails as well.

------- Comment #13 From Steve Dibb 2008-02-15 23:28:54 0000 -------
(In reply to comment #12)
> Also for the record:  media-video/transcode-1.0.5-r1 fails as well.
> 

paste output, please

------- Comment #14 From Erik Zeek 2008-02-15 23:31:18 0000 -------
(In reply to comment #13)
> (In reply to comment #12)
> > Also for the record:  media-video/transcode-1.0.5-r1 fails as well.
> > 
> 
> paste output, please
> 

Making all in nuv
make[3]: Entering directory
`/gentoo/tmp/portage/media-video/transcode-1.0.5-r1/work/transcode-1.0.5/import/nuv'
mkdir .libs
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT
-DMOD_PATH=\"/usr/lib/transcode\" -I../.. -I../../import -I../../src -Wall
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-mtune=native -march=native -pipe -DDCT_YUV_PRECISION=1 -MT import_nuv.lo -MD
-MP -MF .deps/import_nuv.Tpo -c import_nuv.c  -fPIC -DPIC -o .libs/import_nuv.o
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT
-DMOD_PATH=\"/usr/lib/transcode\" -I../.. -I../../import -I../../src -Wall
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-mtune=native -march=native -pipe -DDCT_YUV_PRECISION=1 -MT RTjpegN.lo -MD -MP
-MF .deps/RTjpegN.Tpo -c RTjpegN.c  -fPIC -DPIC -o .libs/RTjpegN.o
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT
-DMOD_PATH=\"/usr/lib/transcode\" -I../.. -I../../import -I../../src -Wall
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-mtune=native -march=native -pipe -DDCT_YUV_PRECISION=1 -MT minilzo.lo -MD -MP
-MF .deps/minilzo.Tpo -c minilzo.c  -fPIC -DPIC -o .libs/minilzo.o
RTjpegN.c: In function ‘RTjpeg_compressYUV420’:
RTjpegN.c:2857: warning: pointer targets in initialization differ in signedness
RTjpegN.c:2858: warning: pointer targets in initialization differ in signedness
RTjpegN.c:2879: warning: pointer targets in passing argument 1 of
‘RTjpeg_dctY’ differ in signedness
RTjpegN.c:2883: warning: pointer targets in passing argument 1 of
‘RTjpeg_dctY’ differ in signedness
RTjpegN.c:2887: warning: pointer targets in passing argument 1 of
‘RTjpeg_dctY’ differ in signedness
RTjpegN.c:2891: warning: pointer targets in passing argument 1 of
‘RTjpeg_dctY’ differ in signedness
RTjpegN.c: In function ‘RTjpeg_compressYUV422’:
RTjpegN.c:2911: warning: pointer targets in initialization differ in signedness
RTjpegN.c:2932: warning: pointer targets in passing argument 1 of
‘RTjpeg_dctY’ differ in signedness
RTjpegN.c:2936: warning: pointer targets in passing argument 1 of
‘RTjpeg_dctY’ differ in signedness
RTjpegN.c: In function ‘RTjpeg_decompressYUV422’:
RTjpegN.c:2982: warning: pointer targets in initialization differ in signedness
RTjpegN.c:3010: warning: pointer targets in passing argument 1 of
‘RTjpeg_idct’ differ in signedness
RTjpegN.c:3016: warning: pointer targets in passing argument 1 of
‘RTjpeg_idct’ differ in signedness
RTjpegN.c: In function ‘RTjpeg_decompressYUV420’:
RTjpegN.c:3030: warning: pointer targets in initialization differ in signedness
RTjpegN.c:3031: warning: pointer targets in initialization differ in signedness
RTjpegN.c:3059: warning: pointer targets in passing argument 1 of
‘RTjpeg_idct’ differ in signedness
RTjpegN.c:3065: warning: pointer targets in passing argument 1 of
‘RTjpeg_idct’ differ in signedness
RTjpegN.c:3071: warning: pointer targets in passing argument 1 of
‘RTjpeg_idct’ differ in signedness
RTjpegN.c:3077: warning: pointer targets in passing argument 1 of
‘RTjpeg_idct’ differ in signedness
RTjpegN.c: In function ‘RTjpeg_mcompressYUV420’:
RTjpegN.c:3211: warning: pointer targets in initialization differ in signedness
RTjpegN.c:3212: warning: pointer targets in initialization differ in signedness
RTjpegN.c:3250: warning: pointer targets in passing argument 1 of
‘RTjpeg_dctY’ differ in signedness
RTjpegN.c:3259: warning: pointer targets in passing argument 1 of
‘RTjpeg_dctY’ differ in signedness
RTjpegN.c:3268: warning: pointer targets in passing argument 1 of
‘RTjpeg_dctY’ differ in signedness
RTjpegN.c:3277: warning: pointer targets in passing argument 1 of
‘RTjpeg_dctY’ differ in signedness
RTjpegN.c: In function ‘RTjpeg_mcompressYUV422’:
RTjpegN.c:3317: warning: pointer targets in assignment differ in signedness
RTjpegN.c:3345: warning: pointer targets in passing argument 1 of
‘RTjpeg_dctY’ differ in signedness
RTjpegN.c:3354: warning: pointer targets in passing argument 1 of
‘RTjpeg_dctY’ differ in signedness
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT
-DMOD_PATH=\"/usr/lib/transcode\" -I../.. -I../../import -I../../src -Wall
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-mtune=native -march=native -pipe -DDCT_YUV_PRECISION=1 -MT resample.lo -MD -MP
-MF .deps/resample.Tpo -c resample.c  -fPIC -DPIC -o .libs/resample.o
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT
-DMOD_PATH=\"/usr/lib/transcode\" -I../.. -I../../import -I../../src -Wall
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-mtune=native -march=native -pipe -DDCT_YUV_PRECISION=1 -MT
rtjpeg_aud_plugin.lo -MD -MP -MF .deps/rtjpeg_aud_plugin.Tpo -c
rtjpeg_aud_plugin.c  -fPIC -DPIC -o .libs/rtjpeg_aud_plugin.o
In file included from /usr/include/asm/sigcontext.h:5,
                 from /usr/include/bits/sigcontext.h:29,
                 from /usr/include/signal.h:334,
                 from ../../src/transcode.h:48,
                 from rtjpeg_aud_plugin.c:62:
/usr/include/asm/types.h:19: error: conflicting types for ‘__s32’
RTjpegN.h:32: error: previous declaration of ‘__s32’ was here
/usr/include/asm/types.h:20: error: conflicting types for ‘__u32’
RTjpegN.h:28: error: previous declaration of ‘__u32’ was here
make[3]: *** [rtjpeg_aud_plugin.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory
`/gentoo/tmp/portage/media-video/transcode-1.0.5-r1/work/transcode-1.0.5/import/nuv'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/gentoo/tmp/portage/media-video/transcode-1.0.5-r1/work/transcode-1.0.5/import'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/gentoo/tmp/portage/media-video/transcode-1.0.5-r1/work/transcode-1.0.5'
make: *** [all] Error 2
make: Leaving directory
`/gentoo/tmp/portage/media-video/transcode-1.0.5-r1/work/transcode-1.0.5'
 *
 * ERROR: media-video/transcode-1.0.5-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2796:  Called die
 * The specific snippet of code:
 *       emake all || die "emake failed"
 *  The die message:
 *   emake failed
 *
 * If you need support, post the topmost build error, and the call stack if
relevant.
 * A complete build log is located at
'/var/log/portage/media-video:transcode-1.0.5-r1:20080215-232110.log'.
 * The ebuild environment file is located at
'/gentoo/tmp/portage/media-video/transcode-1.0.5-r1/temp/environment'.
 *

------- Comment #15 From Steve Dibb 2008-02-15 23:34:24 0000 -------
(In reply to comment #14)
> (In reply to comment #13)
> > (In reply to comment #12)
> > > Also for the record:  media-video/transcode-1.0.5-r1 fails as well.
> > > 
> > 
> > paste output, please
> > 
> 
> Making all in nuv

I forgot to ask for make.conf as well

------- Comment #16 From Erik Zeek 2008-02-15 23:35:20 0000 -------
Created an attachment (id=143619) [details]
emerge --info

Here's my emerge --info too.

------- Comment #17 From Erik Zeek 2008-02-15 23:36:57 0000 -------
Created an attachment (id=143620) [details]
make.conf

As requested.

------- Comment #18 From Steve Dibb 2008-02-15 23:40:17 0000 -------
(In reply to comment #16)
> Created an attachment (id=143619) [edit] [details]
> emerge --info
> 
> Here's my emerge --info too.
> 

Yah, thats what I meant ... sorry *brainfart*.

I'm guessing the problem is with gcc 4.2.x.

------- Comment #19 From Erik Zeek 2008-02-15 23:47:09 0000 -------
(In reply to comment #18)
> (In reply to comment #16)
> > Created an attachment (id=143619) [edit] [details]
> > emerge --info
> > 
> > Here's my emerge --info too.
> > 
> 
> Yah, thats what I meant ... sorry *brainfart*.
> 
> I'm guessing the problem is with gcc 4.2.x.
> 

I just checked my emerge.log, and I have successfully built transcode-1.0.5
with gcc-4.2.2 previously.

------- Comment #20 From Leonid Podolny 2008-02-15 23:54:37 0000 -------
(In reply to comment #11)
> No.  For the record, the theory is wrong.
> 
I had the same issue, so I've just downgraded linux-headers back to version
2.6.23, emerged transcode and then upgraded linux-headers back. I will, of
course, reemerge transcode once you guys sort this bug out, but it does work as
a temporary workaround.

------- Comment #21 From Erik Zeek 2008-02-16 00:21:53 0000 -------
(In reply to comment #20)
> (In reply to comment #11)
> > No.  For the record, the theory is wrong.
> > 
> I had the same issue, so I've just downgraded linux-headers back to version
> 2.6.23, emerged transcode and then upgraded linux-headers back. I will, of
> course, reemerge transcode once you guys sort this bug out, but it does work as
> a temporary workaround.
> 

That worked.  For the record here are the differences between the types.h
files:

diff -u types-2.6.23-r3.h types-2.6.24.h
--- types-2.6.23-r3.h   2008-02-15 17:14:01.000000000 -0700
+++ types-2.6.24.h      2008-02-15 17:20:07.000000000 -0700
@@ -1,5 +1,5 @@
-#ifndef _I386_TYPES_H
-#define _I386_TYPES_H
+#ifndef _ASM_X86_TYPES_H
+#define _ASM_X86_TYPES_H

 #ifndef __ASSEMBLY__

@@ -19,7 +19,12 @@
 typedef __signed__ int __s32;
 typedef unsigned int __u32;

-#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) ||
(defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)
+#ifdef __i386__
+# ifdef __GNUC__
+__extension__ typedef __signed__ long long __s64;
+__extension__ typedef unsigned long long __u64;
+# endif
+#else
 typedef __signed__ long long __s64;
 typedef unsigned long long __u64;
 #endif

------- Comment #22 From Erik Zeek 2008-02-16 00:37:32 0000 -------
The fist part of RTjpegN.h has the following:

#ifndef _I386_TYPES_H
typedef unsigned char __u8;
typedef unsigned short __u16;
typedef unsigned long __u32;
typedef unsigned long long __u64;
typedef signed char __s8;
typedef signed short __s16;
typedef signed long __s32;
#endif

It's relying on the old header guard from types.h

------- Comment #23 From Erik Zeek 2008-02-16 00:49:48 0000 -------
media-video/transcode-1.0.6_rc1 merged fine.

------- Comment #24 From Steve Dibb 2008-02-16 01:20:08 0000 -------
(In reply to comment #21)
> (In reply to comment #20)
> > (In reply to comment #11)
> > > No.  For the record, the theory is wrong.
> > > 
> > I had the same issue, so I've just downgraded linux-headers back to version
> > 2.6.23, emerged transcode and then upgraded linux-headers back. I will, of
> > course, reemerge transcode once you guys sort this bug out, but it does work as
> > a temporary workaround.
> > 
> 
> That worked.

Hmm, okay ... odd.  Well, both versions of linux-headers work for me (.23 and
.24), so I can't even reproduce the error.

------- Comment #25 From Erik Zeek 2008-02-16 05:20:25 0000 -------
(In reply to comment #24)
> Hmm, okay ... odd.  Well, both versions of linux-headers work for me (.23 and
> .24), so I can't even reproduce the error.
> 

Are you on 32bit x86?  From bug 194370, it appears that nuv is only enabled for
that arch.

------- Comment #26 From Karel De Vriendt 2008-02-16 09:25:24 0000 -------
Is this a similar (same) problem with transcode-1.0.6.rc1?

End of emerge log:

RTjpegN.c: In function ‘RTjpeg_mcompressYUV422’:
RTjpegN.c:3319: warning: pointer targets in assignment differ in signedness
RTjpegN.c:3347: warning: pointer targets in passing argument 1 of
‘RTjpeg_dctY’ differ in signedness
RTjpegN.c:3356: warning: pointer targets in passing argument 1 of
‘RTjpeg_dctY’ differ in signedness
import_nuv.c:20:19: error: lzo1x.h: No such file or directory
import_nuv.c: In function ‘nuv_decode_video’:
import_nuv.c:484: warning: pointer targets in assignment differ in signedness
import_nuv.c:491: error: ‘lzo_uint’ undeclared (first use in this function)
import_nuv.c:491: error: (Each undeclared identifier is reported only once
import_nuv.c:491: error: for each function it appears in.)
import_nuv.c:491: error: expected ‘;’ before ‘len’
import_nuv.c:497: warning: implicit declaration of function
‘lzo1x_decompress’
import_nuv.c:498: error: ‘len’ undeclared (first use in this function)
import_nuv.c:498: error: ‘LZO_E_OK’ undeclared (first use in this function)
import_nuv.c:520: warning: pointer targets in passing argument 2 of
‘RTjpeg_decompressYUV420’ differ in signedness
import_nuv.c: In function ‘import_nuv_decode’:
import_nuv.c:635: warning: pointer targets in assignment differ in signedness
make[3]: *** [import_nuv_la-import_nuv.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory
`/var/tmp/portage/media-video/transcode-1.0.6_rc1/work/transcode-1.0.6rc1/import/nuv'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/media-video/transcode-1.0.6_rc1/work/transcode-1.0.6rc1/import'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/media-video/transcode-1.0.6_rc1/work/transcode-1.0.6rc1'
make: *** [all] Error 2
 *
 * ERROR: media-video/transcode-1.0.6_rc1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2761:  Called die
 * The specific snippet of code:
 *       emake all || die "emake failed"
 *  The die message:
 *   emake failed
 *
 * If you need support, post the topmost build error, and the call stack if
relevant.
 * A complete build log is located at
'/var/tmp/portage/media-video/transcode-1.0.6_rc1/temp/build.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/media-video/transcode-1.0.6_rc1/temp/environment'.

And emerge --info

emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.2.2, glibc-2.7-r1,
2.6.24-gentoo-r2 i686)
=================================================================
System uname: 2.6.24-gentoo-r2 i686 AMD Athlon(tm) 64 Processor 3500+
Timestamp of tree: Sat, 16 Feb 2008 07:46:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.5.1-r5
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config
/usr/kde/4.0/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf
/etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/
/etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo
/etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans
userfetch"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo "
LANG="en_US.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles
--exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="   "
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acpi alsa berkdb bitmap-fonts branding bzip2 cairo cddb
cdparanoia cdr clamav cli cups dbus directfb dri dts dvd dvdr dvdread encode
exif fam fbcon ffmpeg firefox flac foomaticdb ftp gif gimp glitz gphoto2 gtk
hal hddtemp id3tag imagemagick imlib java javascript jpeg kde lame libnotify
libwww lm_sensors mad midi mikmod mime mmx mp3 mpeg mplayer msn mudflap ncurses
nls nptl nptlonly nsplugin odbc ogg opengl openmp pcre pdf perl php png ppds
pppd python qt3 qt3support qt4 quicktime raw readline real reflection rss samba
scanner sdl semantic-desktop session spell spl sse sse2 ssl subversion svg svga
symlink syslog tcpd theora tiff tk tokenizer truetype truetype-fonts tunepimp
type1-fonts unicode usb vorbis win32codecs wmf wxwindows x86 xcomposite xine
xml xorg xscreensaver xv zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm
alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa
lfloat linear meter mulaw multi null plug rate route share shm softvol"
APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm
authn_default authn_file authz_dbm authz_default authz_groupfile authz_host
authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir
disk_cache env expires ext_filter file_cache filter headers include info
log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling
status unique_id userdir usertrack vhost_alias" ELIBC="glibc"
INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz
cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU"
VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS,
LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

If more info is needed, please ask.
Many thanks in advance for helping.

------- Comment #27 From Steve Dibb 2008-02-18 19:29:40 0000 -------
Should have done this a long time ago, added nuv use flag to
transcode-1.0.5-r2, try it without to see if that fixes issues.

------- Comment #28 From Steve Dibb 2008-05-15 20:31:39 0000 -------
note to self: need to mask nuv use flag on arches so we can make this a stable
candidate

------- Comment #29 From Carsten Lohrke 2008-05-18 23:49:43 0000 -------
*** Bug 222671 has been marked as a duplicate of this bug. ***

------- Comment #30 From Attila Tóth 2008-07-11 10:25:31 0000 -------
Recently stabilized version media-video/transcode-1.0.4-r2 also have exactly
the same problem. As it was correctly pointed out by Erik Zeek
(https://bugs.gentoo.org/show_bug.cgi?id=207548#c22) the problem is caused by
kernel architecture merge triggered changes and obsolete transcode exceptions
about defines. This can be corrected either by a simple patch or by pushing
newer version to become stable. Namely media-video/transcode-1.06_rc2-r1
compiles cleanly.
It would be good to have a working stable for x86.

Regards,
Dw.

------- Comment #31 From Steve Dibb 2008-07-16 17:38:02 0000 -------
(In reply to comment #28)
> note to self: need to mask nuv use flag on arches so we can make this a stable
> candidate
> 

That's fixed, but used changes from newer ebuilds to work with imagemagick and
ffmpeg, so we'll wait on stabilization for now.  In the meantime, 1.0.4 is
working and stable, and if there are any compile problems with 1.0.5, just add
em here.

------- Comment #32 From Steve Dibb 2008-07-29 02:07:53 0000 -------
Arches,

Please test and mark stable:

=media-video/transcode-1.0.5-r3

Thanks

------- Comment #33 From Ferris McCormick 2008-07-29 18:05:41 0000 -------
Sparc stable.

------- Comment #34 From Raúl Porcel 2008-08-04 13:42:10 0000 -------
x86 stable, alpha will do if an user requests it

------- Comment #35 From Andrei Slavoiu 2008-08-11 12:05:43 0000 -------
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT
-DMOD_PATH=\"/usr/lib/transcode\" -I../.. -I../../import -I../../src -Wall
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-march=prescott -pipe -ggdb -DDCT_YUV_PRECISION=1 -MT rtjpeg_aud_plugin.lo -MD
-MP -MF .deps/rtjpeg_aud_plugin.Tpo -c rtjpeg_aud_plugin.c  -fPIC -DPIC -o
.libs/rtjpeg_aud_plugin.o
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT
-DMOD_PATH=\"/usr/lib/transcode\" -I../.. -I../../import -I../../src -Wall
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-march=prescott -pipe -ggdb -DDCT_YUV_PRECISION=1 -MT resample.lo -MD -MP -MF
.deps/resample.Tpo -c resample.c  -fPIC -DPIC -o .libs/resample.o
In file included from /usr/include/asm/sigcontext.h:4,
                 from /usr/include/bits/sigcontext.h:28,
                 from /usr/include/signal.h:333,
                 from ../../src/transcode.h:47,
                 from rtjpeg_aud_plugin.c:61:
/usr/include/asm/types.h:19: error: conflicting types for ‘__s32’
RTjpegN.h:32: error: previous declaration of ‘__s32’ was here
/usr/include/asm/types.h:20: error: conflicting types for ‘__u32’
RTjpegN.h:28: error: previous declaration of ‘__u32’ was here
make[3]: *** [rtjpeg_aud_plugin.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory
`/var/tmp/portage/media-video/transcode-1.0.5-r3/work/transcode-1.0.5/import/nuv'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/media-video/transcode-1.0.5-r3/work/transcode-1.0.5/import'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/media-video/transcode-1.0.5-r3/work/transcode-1.0.5'
make: *** [all] Error 2
 *
 * ERROR: media-video/transcode-1.0.5-r3 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2816:  Called die
 * The specific snippet of code:
 *       emake all || die "emake failed"
 *  The die message:
 *   emake failed
 *
 * If you need support, post the topmost build error, and the call stack if
relevant.
 * A complete build log is located at
'/var/log/portage/media-video:transcode-1.0.5-r3:20080811-090405.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/media-video/transcode-1.0.5-r3/temp/environment'.
 *

-------------------------------------------------------------------------------

emerge --info

Portage 2.1.4.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0,
2.6.24-gentoo-r8 i686)
=================================================================
System uname: 2.6.24-gentoo-r8 i686 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
Timestamp of tree: Mon, 11 Aug 2008 01:45:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13, 2.5.2-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe -ggdb -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config
/usr/kde/4.0/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf
/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe -ggdb -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="buildpkg collision-protect distlocks fixpackages metadata-transfer
parallel-fetch sandbox sfperms splitdebug strict unmerge-orphans userfetch
userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.roedu.net/pub/mirrors/gentoo.org
ftp://ftp.romnet.org/gentoo ftp://mirrors.evolva.ro/gentoo
http://distfiles.gentoo.org
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="ro_RO.UTF-8"
LC_ALL="ro_RO.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en eo ro"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles
--exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X a52 aac aalib accessibility acl acpi ads aiglx alsa amr amrnb amrwb
asf bash-completion berkdb bluetooth branding bzip2 cdr cli cracklib crypt css
cups curl dbus dga djvu dmi doc dri dvd dvdr dvdread eds emboss encode evo exif
fam fbcon ffmpeg firefox flac fortran gcj gd gdbm gif glib glitz glut gmp
gnokii gnutls gpm graphviz hal history htmlhandbook iconv id3tag idn
imagemagick imlib ipv6 irc isdnlog java javascript jingle jpeg jpeg2k kde
kdeenablefinal kdehiddenvisibility kerberos kig-scripting kipi lcms ldap
libcaca libnotify lm_sensors lzo mad midi mikmod mjpeg mmx mng mp3 mp4 mpeg
mudflap musicbrainz ncurses network nls nowlistening nptl nptlonly
ntlm_unsupported_patch ogg openexr opengl openmp pam pch pcre pdf perforce perl
png povray ppds pppd python qt3 qt3support qt4 quicktime rdesktop readline
reflection ruby samba sasl sdl session slang snmp speex spell spl sqlite
sqlite3 sse sse2 ssl ssse3 startup-notification statistics svg symlink sysfs
tcpd theora threads tidy tiff truetype unicode usb visualization vnc vorbis
win32codecs winbind wmf x264 x86 xattr xcb xcomposite xml xmp xorg xv xvid xvmc
yahoo zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x
ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel
intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file
hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug
rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic
authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm
authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache
dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache
filter headers include info log_config logio mem_cache mime mime_magic
negotiation rewrite setenvif speling status unique_id userdir usertrack
vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses
text" LINGUAS="en eo ro" USERLAND="GNU" VIDEO_CARDS="i810 vesa"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_COMPRESS,
PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

------- Comment #36 From Andrei Slavoiu 2008-08-11 12:13:50 0000 -------
Never mind, I just realized I have linux-headers-2.6.25-r4 unmasked for some
reason... Sorry for the noise.

------- Comment #37 From nixnut 2008-08-22 19:27:48 0000 -------
ppc stable

------- Comment #38 From Brent Baude 2008-08-31 16:10:24 0000 -------
ppc64 stable

------- Comment #39 From Alexis Ballier 2008-10-31 12:26:29 0000 -------
(In reply to comment #38)
> ppc64 stable
> 

can be closed then