From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anthony Green Newsgroups: gmane.comp.lib.ffi.general,gmane.lisp.guile.bugs Subject: Re: undefined ffi_type_pointer problem mipsel linux Date: Wed, 07 Dec 2011 05:54:14 -0500 Message-ID: <4EDF45D6.5000302@moxielogic.com> References: <7276900f.5f2e.134177f887f.Coremail.byweinno@163.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1323255278 30033 80.91.229.12 (7 Dec 2011 10:54:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 7 Dec 2011 10:54:38 +0000 (UTC) Cc: libffi-discuss-9JcytcrH/bA+uJoB2kUjGw@public.gmane.org, bug-guile-mXXj517/zsQ@public.gmane.org To: =?UTF-8?B?ybrJug==?= Original-X-From: libffi-discuss-return-1294-gcfg-libffi-discuss=m.gmane.org-9JcytcrH/bA+uJoB2kUjGw@public.gmane.org Wed Dec 07 11:54:33 2011 Return-path: Envelope-to: gcfg-libffi-discuss-1dZseelyfdZg9hUCZPvPmw@public.gmane.org Original-Received: from server1.sourceware.org ([209.132.180.131] helo=sourceware.org) by lo.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1RYF8z-00017F-4k for gcfg-libffi-discuss-1dZseelyfdZg9hUCZPvPmw@public.gmane.org; Wed, 07 Dec 2011 11:54:33 +0100 Original-Received: (qmail 26240 invoked by alias); 7 Dec 2011 10:54:30 -0000 Original-Received: (qmail 26230 invoked by uid 22791); 7 Dec 2011 10:54:29 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,TW_BF X-Spam-Check-By: sourceware.org Original-Received: from mail-qy0-f169.google.com (HELO mail-qy0-f169.google.com) (209.85.216.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 07 Dec 2011 10:54:16 +0000 Original-Received: by qcsd17 with SMTP id d17so248482qcs.0 for ; Wed, 07 Dec 2011 02:54:15 -0800 (PST) Original-Received: by 10.229.19.206 with SMTP id c14mr1137315qcb.266.1323255255457; Wed, 07 Dec 2011 02:54:15 -0800 (PST) Original-Received: from [192.168.1.139] (bas3-toronto06-1177890430.dsl.bell.ca. [70.53.46.126]) by mx.google.com with ESMTPS id ff9sm239228qab.16.2011.12.07.02.54.13 (version=SSLv3 cipher=OTHER); Wed, 07 Dec 2011 02:54:14 -0800 (PST) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: <7276900f.5f2e.134177f887f.Coremail.byweinno-9Onoh4P/yGk@public.gmane.org> X-IsSubscribed: yes Mailing-List: contact libffi-discuss-help-9JcytcrH/bA+uJoB2kUjGw@public.gmane.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Original-Sender: libffi-discuss-owner-9JcytcrH/bA+uJoB2kUjGw@public.gmane.org Xref: news.gmane.org gmane.comp.lib.ffi.general:506 gmane.lisp.guile.bugs:5958 Archived-At: On 12/7/2011 2:49 AM, ɺɺ wrote: > Dear Mr. Green : > > My box is fuloong 6004, loongson2f cpu, mips64, little endian, more > info see > http://www.linux-mips.org/wiki/Loongson#Loongson_2F > > Here I want install autogen, then needs guile dependency, guile needs > libffi, when I install libffi, afterthat I install guile, problem is > that undefined ffi_type_pointer, I try to several methods, it still > can be ok. I checked the ffi.h is extern, shall I defined the use > #define for each one ? This just looks like libffi isn't being linked to guile at all. Can you verify that libffi was actually built and installed in the right place? Next, I would see what "CCLD guile" is really doing. I'm not sure how guile is built these days, but maybe you just have to add V=1 to the "make" command line. AG > > Thanks > > bo cheng > > > > CCLD guile > ./.libs/libguile-2.0.so: undefined reference to `ffi_type_pointer' > ./.libs/libguile-2.0.so: undefined reference to `ffi_type_float' > ./.libs/libguile-2.0.so: undefined reference to `ffi_type_void' > ./.libs/libguile-2.0.so: undefined reference to `ffi_type_sint64' > ./.libs/libguile-2.0.so: undefined reference to `ffi_prep_cif' > ./.libs/libguile-2.0.so: undefined reference to `ffi_type_uint32' > ./.libs/libguile-2.0.so: undefined reference to `ffi_type_double' > ./.libs/libguile-2.0.so: undefined reference to `ffi_prep_closure_loc' > ./.libs/libguile-2.0.so: undefined reference to `ffi_call' > ./.libs/libguile-2.0.so: undefined reference to `ffi_type_sint8' > ./.libs/libguile-2.0.so: undefined reference to `ffi_closure_free' > ./.libs/libguile-2.0.so: undefined reference to `ffi_closure_alloc' > ./.libs/libguile-2.0.so: undefined reference to `ffi_type_uint8' > ./.libs/libguile-2.0.so: undefined reference to `ffi_type_sint32' > ./.libs/libguile-2.0.so: undefined reference to `ffi_type_uint16' > ./.libs/libguile-2.0.so: undefined reference to `ffi_type_sint16' > ./.libs/libguile-2.0.so: undefined reference to `ffi_type_uint64' > collect2: ld returned 1 exit status > make[3]: *** [guile] Error 1 > make[3]: Leaving directory `/root/soft/guile-2.0.3/libguile' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/root/soft/guile-2.0.3/libguile' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/ > > > Theres is in ffi.h > > > /* These are defined in types.c */ > extern ffi_type ffi_type_void; > extern ffi_type ffi_type_uint8; > extern ffi_type ffi_type_sint8; > extern ffi_type ffi_type_uint16; > extern ffi_type ffi_type_sint16; > extern ffi_type ffi_type_uint32; > extern ffi_type ffi_type_sint32; > extern ffi_type ffi_type_uint64; > extern ffi_type ffi_type_sint64; > extern ffi_type ffi_type_float; > extern ffi_type ffi_type_double; > extern ffi_type ffi_type_pointer; > > > >