Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15248 - avifile-0.7.29.20030204 fails to build
Summary: avifile-0.7.29.20030204 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Nick Hadaway
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-06 19:57 UTC by Caleb Shay
Modified: 2003-02-10 18:12 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Caleb Shay 2003-02-06 19:57:38 UTC
output below:

i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../../include -I./../loader
-Wall -Wno-unused -I../../../include -g -O2 -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_REENTRANT -pipe -c VideoEncoder.cpp  -fPIC -DPIC -o
VideoEncoder.lo
VideoEncoder.cpp: In member function `virtual int 
   avm::VideoEncoder::EncodeFrame(const avm::CImage*, void*, int*, uint_t*, 
   int*)':
VideoEncoder.cpp:187: `st1' undeclared (first use this function)
VideoEncoder.cpp:187: (Each undeclared identifier is reported only once for 
   each function it appears in.)
VideoEncoder.cpp:187: `localcount' undeclared (first use this function)
make[3]: *** [VideoEncoder.lo] Error 1
make[3]: Leaving directory
`/var/tmp/portage/avifile-0.7.29.20030204/work/avifile0.7-0.7.29/plugins/libwin32/videocodec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/avifile-0.7.29.20030204/work/avifile0.7-0.7.29/plugins/libwin32'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/avifile-0.7.29.20030204/work/avifile0.7-0.7.29/plugins'
make: *** [all-recursive] Error 1

!!! ERROR: media-video/avifile-0.7.29.20030204 failed.
!!! Function src_compile, Line 142, Exitcode 2
!!! (no error message)


emerge info output:

Portage 2.0.46-r11 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r3)
=================================================================
System uname: 2.4.20-xfs_pre6 i686 AMD Athlon(tm) XP 2000+
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 libg++ guile -canna -cjk freewnn ruby zeo -apm -kde -qt -arts -nls
-3dfx 3dnow aalib acl acpi alsa -arts2 avi berkdb bonobo cdr crypt cups dga
directfb doc dvd encode evo fbcon flash gd gdbm ggi ggz gif gnome gphoto2 gpm
gps gtkhtml imap imlib innodb ipv6 java jikes jpeg junit -kde -kerberos lcms
ldap libwww maildir mbox mikmod mmx motif mozilla mpeg mysql ncurses nls
nocardbus oav odbc oggvorbis opengl oss pam -pcmcia pda pdflib perl pic
plotutils png -pnp python -qt qtmt quicktime readline samba scanner sdl slang
slp snmp spell sse ssl svga tcltk tcpd tetex tiff truetype wmf X xface xml xml2
xmms xv zlib icc icc-pgo xfs esd esound gtk gtk2 apache2"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
CXXFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS=""
AUTOCLEAN="yes"
SYNC="rsync://rsync2.us.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache buildpkg"


Reproducible: Always
Steps to Reproduce:
1. emerge avifile
2. Watch it crash and burn

Actual Results:  
It failed to build.

Expected Results:  
Have a nice happy build of avifile.

I found at least one other bug with the exact same error as me.  I would have
added to that one but it was marked as resolved (though there was NO resolution
in any of the comments).

Unfortunately, this also prevents the merging of gnome.  Not a good thing.

Oh, and what's with the forced use of the wizard-style bug entry?
Comment 1 Alastair Tse (RETIRED) gentoo-dev 2003-02-07 23:50:03 UTC
try :

DEBUGBUILD="" emerge -u avifile

why :

looks like some dodgy code in VideoEncoder.cpp with undeclared function.
That part of the code is only enabled when configurure is run with
--enable-timing. This in turn is only enabled in the ebuild if you have
DEBUGBUILD set to non-zero.
Comment 2 Alastair Tse (RETIRED) gentoo-dev 2003-02-07 23:59:03 UTC
i mean undeclared variable .. 

anyway .. adding myself to cc
Comment 3 Caleb Shay 2003-02-08 13:40:33 UTC
Worked for me.
Comment 4 Andreas Waschbuesch 2003-02-10 06:08:05 UTC
This doesn't seem to be very deterministic (o;

Failes over here too.

$ emerge info

Portage 2.0.46-r12 (default-x86-1.4, gcc-which: no gcc in (/sbin:/bin:/usr/sbin:/usr/bin)
sh: line 1: -dumpversion: command not found, glibc-2.3.1-r2)
=================================================================
System uname: 2.4.20-gentoo-r1 i686 AMD Athlon(TM) XP 1600+
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 oss 3dnow avi crypt cups encode gif jpeg kde libg++ mikmod mmx mpeg ncurses nls pdflib png qtmt quicktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline arts svga tcltk java guile X gpm tcpd pam perl python esd imlib oggvorbis gtk qt motif opengl aalib alsa -apm cdr dga dvd -gnome libwww maildir scanner -sdl sse ssl tetex"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=athlon-xp -march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-mcpu=athlon-xp -march=athlon-xp -O3 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"

$ emerge avifile

[...]

i686-pc-linux-gnu-gcc -shared  codeckeeper.lo Uncompressed.lo -Wl,--whole-archive aviplay/.libs/libaviplay.al aviread/.libs/libaviread.al aviwrite/.libs/libaviwrite.al common/.libs/libcommon.al subtitle/.libs/libsubtitle.al video/.libs/libvideo.al -Wl,--no-whole-archive  -L/usr/X11R6/lib -L/usr/kde/3/lib -lz -L/usr/lib /usr/lib/libSDL.so -lm /usr/lib/libasound.so -lartsc -lvga -lSM -lICE -lXinerama -lXv -lXrender -lXft -lXxf86vm -lXxf86dga -lXi -lXext -lX11 -lpthread -lnsl -ldl  -Wl,-soname -Wl,libaviplay-0.7.so.0 -o .libs/libaviplay-0.7.so.0.0.29
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lartsc
collect2: ld returned 1 exit status
make[2]: *** [libaviplay.la] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/avifile-0.7.29.20030204/work/avifile0.7-0.7.29/lib'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/avifile-0.7.29.20030204/work/avifile0.7-0.7.29/lib'
make: *** [all-recursive] Fehler 1

!!! ERROR: media-video/avifile-0.7.29.20030204 failed.
!!! Function src_compile, Line 139, Exitcode 2
!!! (no error message)
Comment 5 Alastair Tse (RETIRED) gentoo-dev 2003-02-10 09:34:26 UTC
the second reported error is a different error than the initial report.

its failing because it can't find libartsc*. This is another problem with the avifile ebuild. i don't know why that happens. Maybe try without qt:

USE="-qt" emerge avifile 

Comment 6 Jon Nelson (RETIRED) 2003-02-10 12:36:43 UTC
I have "-qt" in my USE flags, and I get the artc error, too.
Comment 7 Nick Hadaway 2003-02-10 15:54:11 UTC
I am currently testing building avifile without arts installed... I don't currently have it in the dependancy list... as I did not think it was a requirement.

The build completed without a problem... hrm...

Comment 8 Alastair Tse (RETIRED) gentoo-dev 2003-02-10 16:46:56 UTC
Same here. avifile compiles fine for me, but i've never had "arts" in my USE. 
The only guess I can come up with is something in sdl-config that adds "-lartsc" 
to the CFLAGS.

maybe you could try and see if this works:

USE="-sdl" emerge avifile 

That is the only depenedency in the chain that might use arts:

mcvaio /usr/portage/media-libs/libsdl % emerge -vp avifile libsdl
 
These are the packages that I would merge, in order:
 
Calculating dependencies ...done!
[ebuild   R  ] media-video/avifile-0.7.29.20030204  -static -freetype +xv +sdl -dvd +mmx -sse -3dnow +zlib +oggvorbis +X -qt +alsa +esd
[ebuild   R  ] media-libs/libsdl-1.2.5-r1  -arts +xv +opengl -fbcon -aalib -nas
+esd +X +svga -ggi +alsa

If that is the case, we need to have a hack in the ebuild to remove any signs of -lartsc in the CFLAGS after ./configure. According to the ./configure.in in avifile, artsc is not used or supported anymore.
Comment 9 Nick Hadaway 2003-02-10 18:12:23 UTC
Re: the -larts link problem, it appears to be LDPATH problems...
env-update and source /etc/profile OR reboot (windows style!)

I have removed --enable-timing from DEBUGBUILD so for those of you wanting
to compile with debugging enabled should now work properly.