Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 465450 - media-libs/libtheora-1.1.1 with media-libs/libpng-1.6 - png2theora-png2theora.o: In function `png_read': png2theora.c:(.text+0x1bf): undefined reference to `png_sizeof'
Summary: media-libs/libtheora-1.1.1 with media-libs/libpng-1.6 - png2theora-png2theora...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: media-video herd
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: libpng16
  Show dependency tree
 
Reported: 2013-04-10 21:54 UTC by Billy DeVincentis
Modified: 2013-04-11 06:10 UTC (History)
0 users

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


Attachments
ebuild patch (libtheora.patch,397 bytes, patch)
2013-04-10 22:11 UTC, Billy DeVincentis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Billy DeVincentis 2013-04-10 21:54:18 UTC
libtool: link: x86_64-pc-linux-gnu-gcc -Wall -Wno-parentheses -march=native -O2 -pipe -Wl,-O1 -o .libs/dump_psnr dump_psnr.o  -Wl,--as-needed ../lib/.libs/libtheoradec.so -logg -lm
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include      -Wall -Wno-parentheses -march=native -O2 -pipe -c -o encoder_example-encoder_example.o `test -f 'encoder_example.c' || echo './'`encoder_example.c
/bin/sh ../libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc   -Wall -Wno-parentheses -march=native -O2 -pipe  -Wl,-O1 -Wl,--as-needed -o encoder_example encoder_example-encoder_example.o  ../lib/libtheoraenc.la ../lib/libtheoradec.la -logg  -lvorbis -lm -logg  -lvorbisenc -lm 
libtool: link: x86_64-pc-linux-gnu-gcc -Wall -Wno-parentheses -march=native -O2 -pipe -Wl,-O1 -o .libs/encoder_example encoder_example-encoder_example.o  -Wl,--as-needed ../lib/.libs/libtheoraenc.so ../lib/.libs/libtheoradec.so -lvorbis -logg -lvorbisenc -lm
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include    -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT   -Wall -Wno-parentheses -march=native -O2 -pipe -c -o player_example-player_example.o `test -f 'player_example.c' || echo './'`player_example.c
/bin/sh ../libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT   -Wall -Wno-parentheses -march=native -O2 -pipe  -Wl,-O1 -Wl,--as-needed -o player_example player_example-player_example.o ../lib/libtheoradec.la -logg  -lSDL -lpthread -lvorbis -lm -logg   
libtool: link: x86_64-pc-linux-gnu-gcc -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Wall -Wno-parentheses -march=native -O2 -pipe -Wl,-O1 -o .libs/player_example player_example-player_example.o  -Wl,--as-needed ../lib/.libs/libtheoradec.so -lSDL -lpthread -lvorbis -lm -logg
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include     -I/usr/include/libpng16  -Wall -Wno-parentheses -march=native -O2 -pipe -c -o png2theora-png2theora.o `test -f 'png2theora.c' || echo './'`png2theora.c
png2theora.c: In function ‘png_read’:
png2theora.c:465:5: warning: implicit declaration of function ‘png_sizeof’ [-Wimplicit-function-declaration]
png2theora.c:412:8: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
png2theora.c:465:31: warning: ‘row_data’ may be used uninitialized in this function [-Wuninitialized]
png2theora.c:467:22: warning: ‘row_pointers’ may be used uninitialized in this function [-Wuninitialized]
/bin/sh ../libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -I/usr/include/libpng16  -Wall -Wno-parentheses -march=native -O2 -pipe  -Wl,-O1 -Wl,--as-needed -o png2theora png2theora-png2theora.o  ../lib/libtheoraenc.la ../lib/libtheoradec.la -logg  -lpng16  -lm 
libtool: link: x86_64-pc-linux-gnu-gcc -I/usr/include/libpng16 -Wall -Wno-parentheses -march=native -O2 -pipe -Wl,-O1 -o .libs/png2theora png2theora-png2theora.o  -Wl,--as-needed ../lib/.libs/libtheoraenc.so ../lib/.libs/libtheoradec.so -logg -lpng16 -lm
png2theora-png2theora.o: In function `png_read':
png2theora.c:(.text+0x1bf): undefined reference to `png_sizeof'
png2theora.c:(.text+0x1e7): undefined reference to `png_sizeof'
collect2: error: ld returned 1 exit status
make[2]: *** [png2theora] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-libs/libtheora-1.1.1/work/libtheora-1.1.1/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-libs/libtheora-1.1.1/work/libtheora-1.1.1'
make: *** [all] Error 2
emake failed
 * ERROR: media-libs/libtheora-1.1.1 failed (compile phase):
 *   emake failed
 * 
 * Call stack:
 *          ebuild.sh, line   93:  Called src_compile
 *        environment, line 3212:  Called __eapi2_src_compile
 *   phase-helpers.sh, line  632:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 * 
 * If you need support, post the output of `emerge --info '=media-libs/libtheora-1.1.1'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/libtheora-1.1.1'`.
 * The complete build log is located at '/var/tmp/portage/media-libs/libtheora-1.1.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/libtheora-1.1.1/temp/environment'.
 * Working directory: '/var/tmp/portage/media-libs/libtheora-1.1.1/work/libtheora-1.1.1'
 * S: '/var/tmp/portage/media-libs/libtheora-1.1.1/work/libtheora-1.1.1'

>>> Failed to emerge media-libs/libtheora-1.1.1, Log file:

>>>  '/var/tmp/portage/media-libs/libtheora-1.1.1/temp/build.log'
 * 
 * The following package has failed to build or install:
 * 
 *  (media-libs/libtheora-1.1.1::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/media-libs/libtheora-1.1.1/temp/build.log'
 * 
Linux1 billydv #
Comment 1 Billy DeVincentis 2013-04-10 22:11:18 UTC
Created attachment 345154 [details, diff]
ebuild patch
Comment 2 Samuli Suominen gentoo-dev 2013-04-11 03:01:50 UTC
happens only with USE=examples.   fixed in tree, thanks for the "patch"!