2012-02-10 3 views
2

위의 시나리오에서 다음과 같은 컴파일 오류가 발생합니다. 누군가 왜 저에게 말할 수 있습니까? 나는tslib를 Å 문자로 사용하면 Qt 컴파일 오류가 발생합니다.

http://billforums.station51.net/viewtopic.php?f=8&t=15

ts_test.o: In function `main': 
ts_test.c:(.text+0x1d8): undefined reference to `rpl_malloc' 
fbutils.o: In function `open_framebuffer': 
fbutils.c:(.text+0xa7c): undefined reference to `rpl_malloc' 
collect2: ld returned 1 exit status 
make[2]: *** [ts_test] Error 1 
ts_harvest.o: In function `main': 
ts_harvest.c:(.text+0x5d0): undefined reference to `rpl_malloc' 
fbutils.o: In function `open_framebuffer': 
fbutils.c:(.text+0xa7c): undefined reference to `rpl_malloc' 
collect2: ld returned 1 exit status 
make[2]: *** [ts_harvest] Error 1 
make[2]: Leaving directory `/home/thwijeth/Downloads/tslib-1.0/tests' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory `/home/thwijeth/Downloads/tslib-1.0' 
make: *** [all] Error 2 
ts_test.o: In function `main': 
ts_test.c:(.text+0x1d8): undefined reference to `rpl_malloc' 
fbutils.o: In function `open_framebuffer': 
fbutils.c:(.text+0xa7c): undefined reference to `rpl_malloc' 
collect2: ld returned 1 exit status 
make[2]: *** [ts_test] Error 1 
ts_harvest.o: In function `main': 
ts_harvest.c:(.text+0x5d0): undefined reference to `rpl_malloc' 
fbutils.o: In function `open_framebuffer': 
fbutils.c:(.text+0xa7c): undefined reference to `rpl_malloc' 
collect2: ld returned 1 exit status 
make[2]: *** [ts_harvest] Error 1 
make[2]: Leaving directory `/home/thwijeth/Downloads/tslib-1.0/tests' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory `/home/thwijeth/Downloads/tslib-1.0' 
make: *** [all] Error 2 

답변

5

simple Google search on "rpl_malloc" 솔루션에 대한 제안이 문제에 대한 많은 참조를 찾아 내 가이드 라인으로 다음과 같은 문서를 사용하고 있습니다. 문제는 어떤 이유로 Autoconf 구성 스크립트가 malloc을 찾는 데 문제가있어서 rpl_malloc으로 폴백하려고 시도하는 것입니다. 로) 당신이 bash 쉘을 가정 (구성을 실행하여 예를 들어, configure을 실행하기 전에

1)이 ac_cv_func_malloc_0_nonnull=yes 환경 변수를 정의 :

ac_cv_func_malloc_0_nonnull=yes ./configure <your configure options> 

또는

이 문제를 해결하기 위해 몇 가지 제안이 있습니다

2. 구성 스크립트를 수동으로 변경하여 rpl_malloc problem AC_FUNC_MALLOC 행의 앞에 주석을 붙이고 # 접 두부를 붙입니다.

(참조 : this blog post, among others)

+0

생명의 은인입니다. 그것은 내 문제를 해결했다. – Tharanga

관련 문제