Package: directfb Version: 1.2.7-2 Severity: wishlist Tags: patch X-Debbugs-CC: [email protected]
Hi! I am now trying to run Debian on Renesas SH CPU(sh4). Current source code can not build package by sh772x driver. Because this driver need libjpeg , but this doesn't link library. <snip> libtool: link: ar cru .libs/libdirectfb_sh7722.a sh7722.o sh7722_blt.o sh7723_blt.o sh7722_jpeg.o sh7722_layer.o sh7722_lcd.o sh7722_multi.o sh7722_screen.o libtool: link: ranlib .libs/libdirectfb_sh7722.a libtool: link: ( cd ".libs" && rm -f "libdirectfb_sh7722.la" && ln -s "../libdirectfb_sh7722.la" "libdirectfb_sh7722.la" ) gcc -DHAVE_CONFIG_H -I. -I../../../gfxdrivers/sh772x -I../.. -I../../../include -I../../lib -I../../../lib -I../../../src -I../../../systems -I../../../gfxdrivers/sh772x/kernel-module -D_REENTRANT -O3 -ffast-math -pipe -D_GNU_SOURCE -Werror-implicit-function-declaration -MT sh7722_jpegtool.o -MD -MP -MF .deps/sh7722_jpegtool.Tpo -c -o sh7722_jpegtool.o ../../../gfxdrivers/sh772x/sh7722_jpegtool.c mv -f .deps/sh7722_jpegtool.Tpo .deps/sh7722_jpegtool.Po /bin/sh ../../libtool --tag=CC --mode=link gcc -O3 -ffast-math -pipe -D_GNU_SOURCE -Werror-implicit-function-declaration -wl,--as-needed -o sh7722_jpegtool sh7722_jpegtool.o ../../src/libdirectfb.la libsh7722_jpeg.la -ldl -lpthread libtool: link: gcc -O3 -ffast-math -pipe -D_GNU_SOURCE -Werror-implicit-function-declaration -wl,--as-needed -o .libs/sh7722_jpegtool sh7722_jpegtool.o ../../src/.libs/libdirectfb.so ./.libs/libsh7722_jpeg.so -ldl -lpthread gcc-4.3.real: unrecognized option '-wl,--as-needed' ./.libs/libsh7722_jpeg.so: undefined reference to `jpeg_calc_output_dimensions' ./.libs/libsh7722_jpeg.so: undefined reference to `jpeg_CreateDecompress' ./.libs/libsh7722_jpeg.so: undefined reference to `jpeg_destroy_decompress' ./.libs/libsh7722_jpeg.so: undefined reference to `jpeg_finish_decompress' ./.libs/libsh7722_jpeg.so: undefined reference to `jpeg_read_header' ./.libs/libsh7722_jpeg.so: undefined reference to `jpeg_start_decompress' ./.libs/libsh7722_jpeg.so: undefined reference to `jpeg_resync_to_restart' ./.libs/libsh7722_jpeg.so: undefined reference to `jpeg_std_error' ./.libs/libsh7722_jpeg.so: undefined reference to `jpeg_read_scanlines' collect2: ld returned 1 exit status make[4]: *** [sh7722_jpegtool] Error 1 make[4]: Leaving directory `/home/iwamatsu/build-area/directfb-1.2.7/directfb-build/gfxdrivers/sh772x' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/iwamatsu/build-area/directfb-1.2.7/directfb-build/gfxdrivers' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/iwamatsu/build-area/directfb-1.2.7/directfb-build' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/iwamatsu/build-area/directfb-1.2.7/directfb-build' make: *** [build-dist] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2 <snip> I made a patch to support SH. Would you please apply it? Best regards, Nobuhiro -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.29-1-amd64 (SMP w/4 CPU cores) Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash
--- a/gfxdrivers/sh772x/Makefile.am 2009-01-20 21:50:58.000000000 +0900 +++ b/gfxdrivers/sh772x/Makefile.am 2009-07-09 11:03:52.000000000 +0900 @@ -32,6 +32,8 @@ -export-dynamic \ -avoid-version +libsh7722_jpeg_la_LIBADD = \ + $(LIBJPEG) bin_PROGRAMS = sh7722_jpegtool

