Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 383295 - media-libs/libdc1394-2.1.3-r1 fails to link (undefined references to yuy2_to_yv16 and yuy2_to_yv12)
Summary: media-libs/libdc1394-2.1.3-r1 fails to link (undefined references to yuy2_to_...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
: 385611 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-17 02:26 UTC by Luke-Jr
Modified: 2011-10-05 09:12 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,28.15 KB, text/plain)
2011-09-17 02:26 UTC, Luke-Jr
Details
emerge --info (emerge--info,16.23 KB, text/plain)
2011-09-17 02:27 UTC, Luke-Jr
Details
fix for dc1394_vloopback example inline funcs (libdc1394-fix.patch,423 bytes, text/plain)
2011-10-04 14:50 UTC, Luke-Jr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke-Jr 2011-09-17 02:26:12 UTC
Created attachment 286733 [details]
build.log

/bin/sh ../libtool --tag=CC   --mode=link i686-pc-linux-gnu-gcc  -Wall -Wunused -std=gnu99 -O2 -march=core2 -pipe -ggdb -O0  -Wl,-O1 -Wl,--as-needed -o grab_color_image grab_color_image.o ../dc1394/libdc1394.la -lm 
libtool: link: i686-pc-linux-gnu-gcc -Wall -Wunused -std=gnu99 -O2 -march=core2 -pipe -ggdb -O0 -Wl,-O1 -o .libs/dc1394_vloopback dc1394_vloopback.o affine.o  -Wl,--as-needed ../dc1394/.libs/libdc1394.so /usr/lib/libraw1394.so /usr/lib/libusb-1.0.so -lrt -lm -pthread
libtool: link: i686-pc-linux-gnu-gcc -Wall -Wunused -std=gnu99 -O2 -march=core2 -pipe -ggdb -O0 -Wl,-O1 -o .libs/grab_gray_image grab_gray_image.o  -Wl,--as-needed ../dc1394/.libs/libdc1394.so /usr/lib/libraw1394.so /usr/lib/libusb-1.0.so -lrt -lm -pthread
dc1394_vloopback.o: In function `capture_pipe':
/var/tmp/portage/media-libs/libdc1394-2.1.3-r1/work/libdc1394-2.1.3/examples/dc1394_vloopback.c:334: undefined reference to `yuy2_to_yv16'
/var/tmp/portage/media-libs/libdc1394-2.1.3-r1/work/libdc1394-2.1.3/examples/dc1394_vloopback.c:343: undefined reference to `yuy2_to_yv12'
dc1394_vloopback.o: In function `capture_mmap':
/var/tmp/portage/media-libs/libdc1394-2.1.3-r1/work/libdc1394-2.1.3/examples/dc1394_vloopback.c:392: undefined reference to `yuy2_to_yv16'
/var/tmp/portage/media-libs/libdc1394-2.1.3-r1/work/libdc1394-2.1.3/examples/dc1394_vloopback.c:402: undefined reference to `yuy2_to_yv12'
collect2: ld returned 1 exit status
make[2]: *** [dc1394_vloopback] Error 1
make[2]: *** Waiting for unfinished jobs....
libtool: link: i686-pc-linux-gnu-gcc -Wall -Wunused -std=gnu99 -O2 -march=core2 -pipe -ggdb -O0 -Wl,-O1 -o .libs/dc1394_reset_bus dc1394_reset_bus.o  -Wl,--as-needed ../dc1394/.libs/libdc1394.so /usr/lib/libraw1394.so /usr/lib/libusb-1.0.so -lrt -lm -pthread
libtool: link: i686-pc-linux-gnu-gcc -Wall -Wunused -std=gnu99 -O2 -march=core2 -pipe -ggdb -O0 -Wl,-O1 -o .libs/grab_partial_image grab_partial_image.o  -Wl,--as-needed ../dc1394/.libs/libdc1394.so /usr/lib/libraw1394.so /usr/lib/libusb-1.0.so -lrt -lm -pthread
libtool: link: i686-pc-linux-gnu-gcc -Wall -Wunused -std=gnu99 -O2 -march=core2 -pipe -ggdb -O0 -Wl,-O1 -o .libs/grab_color_image grab_color_image.o  -Wl,--as-needed ../dc1394/.libs/libdc1394.so /usr/lib/libraw1394.so /usr/lib/libusb-1.0.so -lrt -lm -pthread
make[2]: Leaving directory `/var/tmp/portage/media-libs/libdc1394-2.1.3-r1/work/libdc1394-2.1.3/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-libs/libdc1394-2.1.3-r1/work/libdc1394-2.1.3'
make: *** [all] Error 2
Comment 1 Luke-Jr 2011-09-17 02:27:51 UTC
Created attachment 286735 [details]
emerge --info
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2011-10-04 12:02:37 UTC
Old copy of libdc1394 installed and it's getting picked up? Try emerge -C libdc1394 just to be sure please
Comment 3 Luke-Jr 2011-10-04 14:33:53 UTC
Unmerged old version and manually deleted preserved lib. No change in error.
Comment 4 Luke-Jr 2011-10-04 14:50:26 UTC
Created attachment 288775 [details]
fix for dc1394_vloopback example inline funcs

I don't know why nobody else has this problem, but GCC apparently requires the 'static' keyword in addition to 'inline' when it's used in the same source file (ie, not a header).
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2011-10-05 08:28:19 UTC
*** Bug 385611 has been marked as a duplicate of this bug. ***
Comment 6 Thomas Rausch 2011-10-05 09:12:28 UTC
For me it works now, if I omit the CFLAGS="-O0" out and ONLY "-O2" in.