Summary: | media-libs/libdc1394-2.1.3-r1 fails to link (undefined references to yuy2_to_yv16 and yuy2_to_yv12) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Luke-Jr <luke-jr+gentoobugs> |
Component: | [OLD] Library | Assignee: | Gentoo Media-video project <media-video> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | Thomas.Rausch |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
emerge --info fix for dc1394_vloopback example inline funcs |
Created attachment 286735 [details]
emerge --info
Old copy of libdc1394 installed and it's getting picked up? Try emerge -C libdc1394 just to be sure please Unmerged old version and manually deleted preserved lib. No change in error. 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).
*** Bug 385611 has been marked as a duplicate of this bug. *** For me it works now, if I omit the CFLAGS="-O0" out and ONLY "-O2" in. |
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