[Pkg-directfb-devel] Bug#635888: directfb: FTBFS; sh7722_jpegtool.c:80: undefined reference to `direct_page_align'

Nobuhiro Iwamatsu iwamatsu at nigauri.org
Fri Jul 29 12:07:01 UTC 2011


Source: directfb
Version: 1.2.10.0-4.1
Severity: wishlist
Tags: patch
User: debian-sh4 at superh.org
Usertags: sh4
X-Debbugs-CC: debian-superh at lists.debian.org

Hi,

directfb 1.2.10.0-4.1 FTBFS on Renesas sh4.
  http://buildd.debian-ports.org/status/fetch.php?pkg=directfb&arch=sh4&ver=1.2.10.0-4.1&stamp=1311550182

-----
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   -g -O2 -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/bash ../../libtool --tag=CC   --mode=link gcc  -g -O2 -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 -g -O2 -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
sh7722_jpegtool.o: In function `write_ppm':
/build/buildd-directfb_1.2.10.0-4.1-sh4-lydx28/directfb-1.2.10.0/directfb-build/gfxdrivers/sh772x/../../../gfxdrivers/sh772x/sh7722_jpegtool.c:80:
undefined reference to `direct_page_align'
/build/buildd-directfb_1.2.10.0-4.1-sh4-lydx28/directfb-1.2.10.0/directfb-build/gfxdrivers/sh772x/../../../gfxdrivers/sh772x/sh7722_jpegtool.c:80:
undefined reference to `direct_config'
/build/buildd-directfb_1.2.10.0-4.1-sh4-lydx28/directfb-1.2.10.0/directfb-build/gfxdrivers/sh772x/../../../gfxdrivers/sh772x/sh7722_jpegtool.c:80:
undefined reference to `direct_messages_perror'
sh7722_jpegtool.o: In function `main':
/build/buildd-directfb_1.2.10.0-4.1-sh4-lydx28/directfb-1.2.10.0/directfb-build/gfxdrivers/sh772x/../../../gfxdrivers/sh772x/sh7722_jpegtool.c:95:
undefined reference to `direct_initialize'
/build/buildd-directfb_1.2.10.0-4.1-sh4-lydx28/directfb-1.2.10.0/directfb-build/gfxdrivers/sh772x/../../../gfxdrivers/sh772x/sh7722_jpegtool.c:95:
undefined reference to `direct_config'
/build/buildd-directfb_1.2.10.0-4.1-sh4-lydx28/directfb-1.2.10.0/directfb-build/gfxdrivers/sh772x/../../../gfxdrivers/sh772x/sh7722_jpegtool.c:95:
undefined reference to `direct_stream_create'
/build/buildd-directfb_1.2.10.0-4.1-sh4-lydx28/directfb-1.2.10.0/directfb-build/gfxdrivers/sh772x/../../../gfxdrivers/sh772x/sh7722_jpegtool.c:95:
undefined reference to `direct_stream_destroy'
/build/buildd-directfb_1.2.10.0-4.1-sh4-lydx28/directfb-1.2.10.0/directfb-build/gfxdrivers/sh772x/../../../gfxdrivers/sh772x/sh7722_jpegtool.c:95:
undefined reference to `direct_messages_info'
./.libs/libsh7722_jpeg.so: undefined reference to `direct_stream_seek'
./.libs/libsh7722_jpeg.so: undefined reference to `dfb_pixelformat_name'
./.libs/libsh7722_jpeg.so: undefined reference to `direct_stream_peek'
./.libs/libsh7722_jpeg.so: undefined reference to
`direct_messages_unimplemented'
./.libs/libsh7722_jpeg.so: undefined reference to `direct_messages_error'
./.libs/libsh7722_jpeg.so: undefined reference to `direct_messages_bug'
./.libs/libsh7722_jpeg.so: undefined reference to `direct_memcpy'
./.libs/libsh7722_jpeg.so: undefined reference to `direct_stream_wait'
./.libs/libsh7722_jpeg.so: undefined reference to `direct_stream_read'
./.libs/libsh7722_jpeg.so: undefined reference to `errno2result'
./.libs/libsh7722_jpeg.so: undefined reference to `direct_messages_derror'
./.libs/libsh7722_jpeg.so: undefined reference to `direct_try_open'
./.libs/libsh7722_jpeg.so: undefined reference to `direct_messages_once'
collect2: ld returned 1 exit status
make[5]: *** [sh7722_jpegtool] Error 1
-----

I created a patch which revice this problem.
Colud you check and apply this patch?

Best regards,
 Nobuhiro


-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_ftbbs_sh4.patch
Type: text/x-patch
Size: 563 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-directfb-devel/attachments/20110729/6d25ba90/attachment.bin>


More information about the Pkg-directfb-devel mailing list