Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49457 - transcode-0.6.12-r1 fails to link with undefined references under gcc 3.4
Summary: transcode-0.6.12-r1 fails to link with undefined references under gcc 3.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 48528
  Show dependency tree
 
Reported: 2004-04-29 20:32 UTC by gent_bz
Modified: 2004-06-25 18:18 UTC (History)
3 users (show)

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


Attachments
transcode-0.6.12-gcc-3.4.patch (transcode-0.6.12-gcc-3.4.patch,2.44 KB, patch)
2004-05-21 11:15 UTC, ecco
Details | Diff
applies 3.4 patch conditionally also adds -fno-unit-at-a-time conditionally (transcode-0.6.12-r1.ebuild.patch,1.19 KB, patch)
2004-06-05 17:34 UTC, Disenchanted (RETIRED)
Details | Diff
patch 32756 was incorrect this fixes it (transcode-0.6.12-r1.ebuild.patch,1.23 KB, patch)
2004-06-05 18:00 UTC, Disenchanted (RETIRED)
Details | Diff
sad but true cd${S} should have been cd ${S} , fixed (transcode-0.6.12-r1.ebuild.patch,1.22 KB, patch)
2004-06-05 19:06 UTC, Disenchanted (RETIRED)
Details | Diff
uses transcode-0-6-12-gcc-3.4.patch and transcode-gcc34.patch (transcode-0.6.12-r1.ebuild.patch,1.09 KB, patch)
2004-06-05 19:40 UTC, Disenchanted (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description gent_bz 2004-04-29 20:32:31 UTC
Lots of unresolved symbols. Remedies by adding -fno-unit-at-a-time to CFLAGS.

Reproducible: Always
Steps to Reproduce:
1. emerge =sys-devel/gcc-3.4.0
2. emerge transcode




Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.4.0, glibc-2.3.3_pre20040420-r0,
2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 AMD Athlon(tm)
Gentoo Base System version 1.4.10
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -ftracer -pipe
-maccumulate-outgoing-args -fprefetch-loop-arrays"
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/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 -ftracer -pipe
-maccumulate-outgoing-args -fprefetch-loop-arrays"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://linux.ntcu.net/dists/gentoo/
http://gentoo.seren.com/gentoo http://gentoo.ccccom.com"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.0.238/gentoo-portage"
USE="3dnow X aalib alsa apm avi berkdb cdr crypt cups curl dedicated dv dvd
encode esd faad foomaticdb gdbm gif gnome gpm gstreamer gtk gtk2 imlib jpeg lcms
libg++ libwww mad mbox mikmod mmx motif mozilla mpeg ncurses nls nptl oggvorbis
opengl oss pam pdflib perl png ppds python qt quicktime readline samba sdl slang
spell sse ssl tcpd tiff truetype usb videos wmf x86 xml xml2 xmms xv zlib"
Comment 1 Nuno Alexandre 2004-04-30 00:24:41 UTC
I was having the same problem with gcc 3.3.3, but changing the CLFAGS to something more conservative ( default ) works ok.

Comment 2 Kathy Wills 2004-05-19 18:09:48 UTC
Thanks. Adding the -fno-unit-at-a-time to CFLAGS worked for me too.
Comment 3 Prakash Punnoor 2004-05-21 02:35:16 UTC
I think transcode needs the same fix as avifile does.
Comment 4 ecco 2004-05-21 11:15:18 UTC
Created attachment 31802 [details, diff]
transcode-0.6.12-gcc-3.4.patch

This should do it. It uses __attribute__((used)) for variables, which will not
work with <gcc-3.4, so it should be applied conditionally.
Comment 5 Disenchanted (RETIRED) gentoo-dev 2004-06-05 17:34:51 UTC
Created attachment 32756 [details, diff]
applies 3.4 patch conditionally also adds -fno-unit-at-a-time conditionally

summarizes all discussed fixes and makes them conditional to gcc 3.4
Comment 6 Disenchanted (RETIRED) gentoo-dev 2004-06-05 18:00:05 UTC
Created attachment 32759 [details, diff]
patch 32756 was incorrect this fixes it

accidentally included unpack ${A} and cd ${S} in conditional block
tested now with 3.3.3 and 3.4.0
sorry for any inconvenience
Comment 7 Disenchanted (RETIRED) gentoo-dev 2004-06-05 19:06:36 UTC
Created attachment 32761 [details, diff]
sad but true cd${S} should have been cd ${S} , fixed

ok, when moving cd ${S} out of condtional i mistyped it

this merged with gcc 3.3 and 3.4
*sigh* sorry
Comment 8 Bret Towe 2004-06-05 19:10:52 UTC
using the ebuild patch and adding this patch: transcode-0.6.12-gcc-3.4.patch
that is attached to this bug
makes it compile fine and doesnt need the -fno-unit-at-a-time
and i do think it would be best to not use that cause according to the gcc
info pages not using it could slow down the code that is generated
and im sure everyone wants transcode to be as fast as it can
Comment 9 Bret Towe 2004-06-05 19:21:38 UTC
if there is any confusion which there prob is conserning me
i do mean not using unit-at-a-time could produce slower code
Comment 10 Disenchanted (RETIRED) gentoo-dev 2004-06-05 19:40:48 UTC
Created attachment 32763 [details, diff]
uses transcode-0-6-12-gcc-3.4.patch and transcode-gcc34.patch

both gcc3.4 patches conditional on gcc 3.4
thanks for pointing out the slowdown Bret
Comment 11 Bret Towe 2004-06-08 19:05:18 UTC
this ebuild patch and the other patch for transcode to allow it to compile with gcc 3.4 works fine for me on x86
Comment 12 Disenchanted (RETIRED) gentoo-dev 2004-06-25 18:18:49 UTC
All fixes applied conditionally for gcc-3.4.0 now, allow time for fixes to propagate to mirrers, then sync and compile transcode-0.6.12-r1