[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#635888: directfb: FTBFS; sh7722_jpegtool.c:80: undefined reference to `direct_page_align'



Source: directfb
Version: 1.2.10.0-4.1
Severity: wishlist
Tags: patch
User: debian-sh4@superh.org
Usertags: sh4
X-Debbugs-CC: debian-superh@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
diff --git a/gfxdrivers/sh772x/Makefile.am b/gfxdrivers/sh772x/Makefile.am
index 7a7461c..b4e1cfc 100644
--- a/gfxdrivers/sh772x/Makefile.am
+++ b/gfxdrivers/sh772x/Makefile.am
@@ -33,7 +33,8 @@ libsh7722_jpeg_la_LDFLAGS = \
 	-avoid-version
 
 libsh7722_jpeg_la_LIBADD = \
-        $(LIBJPEG)
+	$(top_builddir)/src/libdirectfb.la	\
+	$(LIBJPEG)
 
 bin_PROGRAMS = sh7722_jpegtool
 
@@ -42,6 +43,7 @@ sh7722_jpegtool_SOURCES = \
 
 sh7722_jpegtool_LDADD = \
 	$(top_builddir)/src/libdirectfb.la	\
+	$(top_builddir)/lib/direct/libdirect.la	\
 	libsh7722_jpeg.la
 
 

Reply to: