From unknown Sun Jun 22 04:09:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10241: undefined ffi_type_pointer problem mipsel linux Resent-From: =?UTF-8?Q?=E7=8F=8A=E7=8F=8A?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 07 Dec 2011 08:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10241 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: libffi-discuss@sourceware.org, green@moxielogic.com, 10241@debbugs.gnu.org X-Debbugs-Original-To: libffi-discuss@sourceware.org, green@moxielogic.com, bug-guile@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13232454704612 (code B ref -1); Wed, 07 Dec 2011 08:12:01 +0000 Received: (at submit) by debbugs.gnu.org; 7 Dec 2011 08:11:10 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RYCas-0001CK-1l for submit@debbugs.gnu.org; Wed, 07 Dec 2011 03:11:10 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RYCWF-00015V-3A for submit@debbugs.gnu.org; Wed, 07 Dec 2011 03:06:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RYCVX-0006uS-Jl for submit@debbugs.gnu.org; Wed, 07 Dec 2011 03:05:40 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00, CHARSET_FARAWAY_HEADER,HTML_MESSAGE,RP_MATCHES_RCVD,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:44642) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYCVX-0006uO-IK for submit@debbugs.gnu.org; Wed, 07 Dec 2011 03:05:39 -0500 Received: from eggs.gnu.org ([140.186.70.92]:41702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYCVT-0006x4-A3 for bug-guile@gnu.org; Wed, 07 Dec 2011 03:05:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RYCVO-0006q2-SF for bug-guile@gnu.org; Wed, 07 Dec 2011 03:05:35 -0500 Received: from mproxyjp2.163.com ([176.32.86.149]:58413) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYCVM-0006pM-TH for bug-guile@gnu.org; Wed, 07 Dec 2011 03:05:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Received:Date:From:To:Message-ID:Subject: MIME-Version:Content-Type; bh=1TDgEnMhCXGNINYMHRgntw07dpZo/8mkZv m/IWR2wyM=; b=miMCSySDSU2GMj55fsZFzTs9gpzKRvNeWYM8U0d1s4D8LXE/Jo oe7gJSuM2KoPZ2YXd71jTQIJ0jNbcJusRy6GZlWIT7GyuP9TsfDh2f62HJYi+zTt sMRjRD/QZ1Ir7xxeD8oJNLfHAoAa+M8sI/8b+NDRIpjCmCLxeEDx71WXk= Received: from byweinno ( [27.188.24.128] ) by ajax-webmail-wmsvr154 (Coremail) ; Wed, 7 Dec 2011 15:49:21 +0800 (CST) Date: Wed, 7 Dec 2011 15:49:21 +0800 (CST) From: =?UTF-8?Q?=E7=8F=8A=E7=8F=8A?= Message-ID: <7276900f.5f2e.134177f887f.Coremail.byweinno@163.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_75271_1641281353.1323244161151" X-Originating-IP: [27.188.24.128] X-Priority: 3 X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build 111110(15680.4167.4075) Copyright (c) 2002-2011 www.mailtech.cn 163com X-CM-CTRLDATA: 6bRA/mZvb3Rlcl9odG09MjYzOTo4MQ== X-CM-TRANSID: msGowGD5oUOBGt9OP28KAA--.18519W X-CM-SenderInfo: 5e1zvxxqqrqiywtou0bp/1tbiMh8PVElwYAPYyQAAs9 X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-Mailman-Approved-At: Wed, 07 Dec 2011 03:11:08 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) ------=_Part_75271_1641281353.1323244161151 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: 7bit 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 ? 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; ------=_Part_75271_1641281353.1323244161151 Content-Type: text/html; charset=GBK Content-Transfer-Encoding: 7bit
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 ?

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;




------=_Part_75271_1641281353.1323244161151-- From unknown Sun Jun 22 04:09:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10241: undefined ffi_type_pointer problem mipsel linux Resent-From: =?UTF-8?Q?=E7=8F=8A=E7=8F=8A?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 07 Dec 2011 08:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10241 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: =?UTF-8?Q?=E7=8F=8A=E7=8F=8A?= Cc: 10241@debbugs.gnu.org, green@moxielogic.com, libffi-discuss@sourceware.org X-Debbugs-Original-Cc: bug-guile@gnu.org, green@moxielogic.com, libffi-discuss@sourceware.org Received: via spool by submit@debbugs.gnu.org id=B.13232462985907 (code B ref -1); Wed, 07 Dec 2011 08:25:01 +0000 Received: (at submit) by debbugs.gnu.org; 7 Dec 2011 08:24:58 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RYCoD-0001XE-Qp for submit@debbugs.gnu.org; Wed, 07 Dec 2011 03:24:58 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RYCo6-0001X3-Vz for submit@debbugs.gnu.org; Wed, 07 Dec 2011 03:24:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RYCnP-0002L7-6I for submit@debbugs.gnu.org; Wed, 07 Dec 2011 03:24:08 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: ** X-Spam-Status: No, score=2.6 required=5.0 tests=BAYES_00, CHARSET_FARAWAY_HEADER, HTML_MESSAGE, MIME_CHARSET_FARAWAY, RP_MATCHES_RCVD, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:34487) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYCnP-0002Kz-1e for submit@debbugs.gnu.org; Wed, 07 Dec 2011 03:24:07 -0500 Received: from eggs.gnu.org ([140.186.70.92]:46543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYCnK-0000ne-B5 for bug-guile@gnu.org; Wed, 07 Dec 2011 03:24:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RYCnH-0002I4-SM for bug-guile@gnu.org; Wed, 07 Dec 2011 03:24:02 -0500 Received: from m13-154.163.com ([220.181.13.154]:59176) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYCnF-0002Fz-Bi for bug-guile@gnu.org; Wed, 07 Dec 2011 03:23:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Received:Date:From:To:Cc:Message-ID:In-Reply-To: References:Subject:MIME-Version:Content-Type; bh=bwQkkdCGCZBnhiE +pZw9bNka4GOckRK5soSt/XaCu18=; b=T91S59aAWl69E7WG+d0ehIyIwC4GHQJ 7pSCHKnr5effowpwf0zC/MSCO0HvwV2loCgrjS+IQ6FeYLsxufoq49W5bPy7hzzJ 9eGt3ExG7clHXOEO/6YByG4XXGH4V8KhkRc5VXBNDIUg6fGxZe2MCAzkLdY919o/ qWXv3WDPFklE= Received: from byweinno ( [27.188.24.128] ) by ajax-webmail-wmsvr154 (Coremail) ; Wed, 7 Dec 2011 16:23:46 +0800 (CST) Date: Wed, 7 Dec 2011 16:23:46 +0800 (CST) From: =?UTF-8?Q?=E7=8F=8A=E7=8F=8A?= Message-ID: <11e8df07.6762.134179f0d3b.Coremail.byweinno@163.com> In-Reply-To: <7276900f.5f2e.134177f887f.Coremail.byweinno@163.com> References: <7276900f.5f2e.134177f887f.Coremail.byweinno@163.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_81416_1076948998.1323246226746" X-Originating-IP: [27.188.24.128] X-Priority: 3 X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build 111110(15680.4167.4075) Copyright (c) 2002-2011 www.mailtech.cn 163com X-CM-CTRLDATA: EVNbOWZvb3Rlcl9odG09MzYyODo4MQ== X-CM-TRANSID: msGowGCZQEKTIt9O83sKAA--.18696W X-CM-SenderInfo: 5e1zvxxqqrqiywtou0bp/1tbi6xAPVE2-3jjcPQACsX X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.7 (----) ------=_Part_81416_1076948998.1323246226746 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: base64 W3Jvb3RAbG9vbmdzb24gcHJvY10jIGNhdCBjcHVpbmZvCnN5c3RlbSB0eXBlIDogbGVtb3RlLWZ1 bG9vbmcKcHJvY2Vzc29yIDogMApjcHUgbW9kZWwgOiBJQ1QgTG9vbmdzb24tMiBWMC4zIEZQVSBW MC4xCkJvZ29NSVBTIDogNTMwLjQzCndhaXQgaW5zdHJ1Y3Rpb24gOiBubwptaWNyb3NlY29uZCB0 aW1lcnMgOiB5ZXMKdGxiX2VudHJpZXMgOiA2NApleHRyYSBpbnRlcnJ1cHQgdmVjdG9yIDogbm8K aGFyZHdhcmUgd2F0Y2hwb2ludCA6IG5vCkFTRXMgaW1wbGVtZW50ZWQgOgpzaGFkb3cgcmVnaXN0 ZXIgc2V0cyA6IDEKY29yZSA6IDAKVkNFRCBleGNlcHRpb25zIDogbm90IGF2YWlsYWJsZQpWQ0VJ IGV4Y2VwdGlvbnMgOiBub3QgYXZhaWxhYmxlCgpbcm9vdEBsb29uZ3NvbiBwcm9jXSMgY2F0IHZl cnNpb24KTGludXggdmVyc2lvbiAyLjYuMjcuNy00MyAocm9vdEBsb29uZ3Nvbi5yZWRmbGFnLWxp bnV4LmNvbSkgKGdjYyB2ZXJzaW9uIDMuNC42KSAjMSBQUkVFTVBUIFR1ZSBNYXkgNSAyMzo1MToz MCBDU1QgMjAwOQoKQXQgMjA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R5cGVf cG9pbnRlcjsKCgoKCgo= ------=_Part_81416_1076948998.1323246226746 Content-Type: text/html; charset=GBK Content-Transfer-Encoding: base64 W3Jvb3RAbG9vbmdzb24gcHJvY10jIGNhdCBjcHVpbmZvPGJyPnN5c3RlbSB0eXBlICAgICAgICAg ICAgIDogbGVtb3RlLWZ1bG9vbmc8YnI+cHJvY2Vzc29yICAgICAgICAgICAgICAgOiAwPGJyPmNw dSBtb2RlbCAgICAgICAgICAgICAgIDogSUNUIExvb25nc29uLTIgVjAuMyAgRlBVIFYwLjE8YnI+ Qm9nb01JUFMgICAgICAgICAgICAgICAgOiA1MzAuNDM8YnI+d2FpdCBpbnN0cnVjdGlvbiAgICAg ICAgOiBubzxicj5taWNyb3NlY29uZCB0aW1lcnMgICAgICA6IHllczxicj50bGJfZW50cmllcyAg ICAgICAgICAgICA6IDY0PGJyPmV4dHJhIGludGVycnVwdCB2ZWN0b3IgIDogbm88YnI+aGFyZHdh cmUgd2F0Y2hwb2ludCAgICAgOiBubzxicj5BU0VzIGltcGxlbWVudGVkICAgICAgICA6PGJyPnNo YWRvdyByZWdpc3RlciBzZXRzICAgIDogMTxicj5jb3JlICAgICAgICAgICAgICAgICAgICA6IDA8 YnI+VkNFRCBleGNlcHRpb25zICAgICAgICAgOiBub3QgYXZhaWxhYmxlPGJyPlZDRUkgZXhjZXB0 aW9ucyAgICAgICAgIDogbm90IGF2YWlsYWJsZTxicj48YnI+W3Jvb3RAbG9vbmdzb24gcHJvY10j IGNhdCB2ZXJzaW9uPGJyPkxpbnV4IHZlcnNpb24gMi42LjI3LjctNDMgKHJvb3RAbG9vbmdzb24u cmVkZmxhZy1saW51eC5jb20pIChnY2MgdmVyc2lvbiAzLjQuNikgIzEgUFJFRU1QVCBUdWUgTWF5 IDUgMjM6NTE6MzAgQ1NUIDIwMDk8YnI+PGJyPkF0IDIwMTEtMTItMDcgMTU6NDk6MjEsIsm6yboi Jm5ic3A7Jmx0O2J5d2Vpbm5vQDE2My5jb20m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ZmZpX3R5cGUgZmZpX3R5cGVfdWludDg7PGJyPmV4dGVybiBmZmlfdHlwZSBmZmlfdHlwZV9zaW50 ODs8YnI+ZXh0ZXJuIGZmaV90eXBlIGZmaV90eXBlX3VpbnQxNjs8YnI+ZXh0ZXJuIGZmaV90eXBl IGZmaV90eXBlX3NpbnQxNjs8YnI+ZXh0ZXJuIGZmaV90eXBlIGZmaV90eXBlX3VpbnQzMjs8YnI+ ZXh0ZXJuIGZmaV90eXBlIGZmaV90eXBlX3NpbnQzMjs8YnI+ZXh0ZXJuIGZmaV90eXBlIGZmaV90 eXBlX3VpbnQ2NDs8YnI+ZXh0ZXJuIGZmaV90eXBlIGZmaV90eXBlX3NpbnQ2NDs8YnI+ZXh0ZXJu IGZmaV90eXBlIGZmaV90eXBlX2Zsb2F0Ozxicj5leHRlcm4gZmZpX3R5cGUgZmZpX3R5cGVfZG91 YmxlOzxicj5leHRlcm4gZmZpX3R5cGUgZmZpX3R5cGVfcG9pbnRlcjs8YnI+PGJyPjxicj48L2Rp dj48YnI+PGJyPjxzcGFuIHRpdGxlPSJuZXRlYXNlZm9vdGVyIj48c3BhbiBpZD0ibmV0ZWFzZV9t YWlsX2Zvb3RlciI+PC9zcGFuPjwvc3Bhbj48L2Jsb2NrcXVvdGU+PGJyPjxicj48c3BhbiB0aXRs ZT0ibmV0ZWFzZWZvb3RlciI+PHNwYW4gaWQ9Im5ldGVhc2VfbWFpbF9mb290ZXIiPjwvc3Bhbj48 L3NwYW4+ ------=_Part_81416_1076948998.1323246226746-- From unknown Sun Jun 22 04:09:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10241: undefined ffi_type_pointer problem mipsel linux Resent-From: Anthony Green Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 07 Dec 2011 17:47:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10241 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: =?UTF-8?Q?=C9=BA=C9=BA?= Cc: 10241@debbugs.gnu.org, libffi-discuss@sourceware.org X-Debbugs-Original-Cc: bug-guile@gnu.org, libffi-discuss@sourceware.org Received: via spool by submit@debbugs.gnu.org id=B.1323280016633 (code B ref -1); Wed, 07 Dec 2011 17:47:04 +0000 Received: (at submit) by debbugs.gnu.org; 7 Dec 2011 17:46:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RYLa2-0000A5-Br for submit@debbugs.gnu.org; Wed, 07 Dec 2011 12:46:55 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RYF9T-0004xi-Ho for submit@debbugs.gnu.org; Wed, 07 Dec 2011 05:55:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RYF8l-0006er-QK for submit@debbugs.gnu.org; Wed, 07 Dec 2011 05:54:20 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:50596) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYF8l-0006en-Ol for submit@debbugs.gnu.org; Wed, 07 Dec 2011 05:54:19 -0500 Received: from eggs.gnu.org ([140.186.70.92]:33045) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYF8k-0007bW-Gz for bug-guile@gnu.org; Wed, 07 Dec 2011 05:54:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RYF8j-0006eT-6Y for bug-guile@gnu.org; Wed, 07 Dec 2011 05:54:18 -0500 Received: from mail-qy0-f169.google.com ([209.85.216.169]:64992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYF8j-0006eG-2O for bug-guile@gnu.org; Wed, 07 Dec 2011 05:54:17 -0500 Received: by qcsd17 with SMTP id d17so248483qcs.0 for ; Wed, 07 Dec 2011 02:54:15 -0800 (PST) Received: by 10.229.19.206 with SMTP id c14mr1137315qcb.266.1323255255457; Wed, 07 Dec 2011 02:54:15 -0800 (PST) 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) Message-ID: <4EDF45D6.5000302@moxielogic.com> Date: Wed, 07 Dec 2011 05:54:14 -0500 From: Anthony Green User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 References: <7276900f.5f2e.134177f887f.Coremail.byweinno@163.com> In-Reply-To: <7276900f.5f2e.134177f887f.Coremail.byweinno@163.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.6 (------) X-Mailman-Approved-At: Wed, 07 Dec 2011 12:46:52 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) 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; > > > > From unknown Sun Jun 22 04:09:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10241: undefined ffi_type_pointer problem mipsel linux Resent-From: Mark H Weaver Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 07 Dec 2011 20:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10241 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: =?UTF-8?Q?=E7=8F=8A=E7=8F=8A?= Cc: 10241@debbugs.gnu.org, green@moxielogic.com, libffi-discuss@sourceware.org Received: via spool by 10241-submit@debbugs.gnu.org id=B10241.132328913016059 (code B ref 10241); Wed, 07 Dec 2011 20:19:01 +0000 Received: (at 10241) by debbugs.gnu.org; 7 Dec 2011 20:18:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RYNx4-0004Ay-FB for submit@debbugs.gnu.org; Wed, 07 Dec 2011 15:18:50 -0500 Received: from world.peace.net ([96.39.62.75]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RYNx1-0004Ap-H4 for 10241@debbugs.gnu.org; Wed, 07 Dec 2011 15:18:49 -0500 Received: from 209-6-91-212.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com ([209.6.91.212] helo=yeeloong) by world.peace.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1RYNw5-0000TO-Ms; Wed, 07 Dec 2011 15:17:49 -0500 From: Mark H Weaver References: <7276900f.5f2e.134177f887f.Coremail.byweinno@163.com> <11e8df07.6762.134179f0d3b.Coremail.byweinno@163.com> Date: Wed, 07 Dec 2011 15:16:25 -0500 In-Reply-To: <11e8df07.6762.134179f0d3b.Coremail.byweinno@163.com> ("=?UTF-8?Q?=E7=8F=8A=E7=8F=8A?="'s message of "Wed, 7 Dec 2011 16:23:46 +0800 (CST)") Message-ID: <871usgkuhy.fsf@netris.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Can you please run "make V=1" so that we can see the complete command used in the failing link (CCLD guile) command? As Anthony Green said, it appears that libffi was not linked. I can think of a few possible reasons: * Did you forget to run "ldconfig" after installing libffi? * Was libffi present when you last ran Guile's configure? * Is there a problem with pkg-config on your system? (What is the output of "pkg-config --libs libffi"?) Thanks, Mark From unknown Sun Jun 22 04:09:57 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: =?UTF-8?Q?=E7=8F=8A=E7=8F=8A?= Subject: bug#10241: closed (Re: bug#10241: undefined ffi_type_pointer problem mipsel linux) Message-ID: References: <87pqg0kufv.fsf@pobox.com> <7276900f.5f2e.134177f887f.Coremail.byweinno@163.com> X-Gnu-PR-Message: they-closed 10241 X-Gnu-PR-Package: guile Reply-To: 10241@debbugs.gnu.org Date: Wed, 07 Dec 2011 20:19:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1323289142-16084-1" This is a multi-part message in MIME format... ------------=_1323289142-16084-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #10241: undefined ffi_type_pointer problem mipsel linux which was filed against the guile package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 10241@debbugs.gnu.org. --=20 10241: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D10241 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1323289142-16084-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 10241-done) by debbugs.gnu.org; 7 Dec 2011 20:18:32 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RYNwm-0004AW-6k for submit@debbugs.gnu.org; Wed, 07 Dec 2011 15:18:32 -0500 Received: from a-pb-sasl-sd.pobox.com ([74.115.168.62] helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RYNwk-0004AP-Hz for 10241-done@debbugs.gnu.org; Wed, 07 Dec 2011 15:18:31 -0500 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id E6F9188CB; Wed, 7 Dec 2011 15:17:44 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=6u+9Qk8szQVC eMkSIGsffUFh96A=; b=Bwp9zcPYUR8+Mnu+oLqvHsbaX9BiimDjCRBddzVuOh5m Ca08vScWcKkTbBKNktLRuq0wLmuLE8djsuj28w0wKc8QW/sKwOX+xzTvy+ARt6Sa k+TLs4kbabRlQsr8/OJC4sTMkEMpEYelC4sdRmi6rCZbw56BcDRIuYVXQnlGJvU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=fnAdJ4 bHHy3PPsgJQtQjiej2aHR0gH7bo6NEjbAcZV5FJlXQxwkMDJHbMO5XoxBhUxjIBk MHIp0BLoJJRi7EpQFHYgnKsNgNX+w6G6LnUFIDydP3SdbHkMF3YZMgzZWDYhgABK QKbHxyQL3GM1WubHlddR8JOG+1l4mI0VfXva4= Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id E10D588CA; Wed, 7 Dec 2011 15:17:44 -0500 (EST) Received: from badger (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 5126488C4; Wed, 7 Dec 2011 15:17:44 -0500 (EST) From: Andy Wingo To: Anthony Green Subject: Re: bug#10241: undefined ffi_type_pointer problem mipsel linux References: <7276900f.5f2e.134177f887f.Coremail.byweinno@163.com> <4EDF45D6.5000302@moxielogic.com> Date: Wed, 07 Dec 2011 21:17:40 +0100 In-Reply-To: <4EDF45D6.5000302@moxielogic.com> (Anthony Green's message of "Wed, 07 Dec 2011 05:54:14 -0500") Message-ID: <87pqg0kufv.fsf@pobox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Pobox-Relay-ID: 85BCF554-2110-11E1-B0BA-65B1DE995924-02397024!a-pb-sasl-sd.pobox.com X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 10241-done Cc: =?utf-8?B?ybrJug==?= , 10241-done@debbugs.gnu.org, libffi-discuss@sourceware.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) On Wed 07 Dec 2011 11:54, Anthony Green writes: > On 12/7/2011 2:49 AM, =C9=BA=C9=BA 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=3D1 to the > "make" command line. Indeed. Libffi certainly builds on mipsel machines, as does Guile, so I suspect this is an error configuring Guile. Perhaps you needed to set PKG_CONFIG_PATH, =C9=BA=C9=BA? Andy --=20 http://wingolog.org/ ------------=_1323289142-16084-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 7 Dec 2011 08:11:10 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RYCas-0001CK-1l for submit@debbugs.gnu.org; Wed, 07 Dec 2011 03:11:10 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RYCWF-00015V-3A for submit@debbugs.gnu.org; Wed, 07 Dec 2011 03:06:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RYCVX-0006uS-Jl for submit@debbugs.gnu.org; Wed, 07 Dec 2011 03:05:40 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00, CHARSET_FARAWAY_HEADER,HTML_MESSAGE,RP_MATCHES_RCVD,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:44642) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYCVX-0006uO-IK for submit@debbugs.gnu.org; Wed, 07 Dec 2011 03:05:39 -0500 Received: from eggs.gnu.org ([140.186.70.92]:41702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYCVT-0006x4-A3 for bug-guile@gnu.org; Wed, 07 Dec 2011 03:05:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RYCVO-0006q2-SF for bug-guile@gnu.org; Wed, 07 Dec 2011 03:05:35 -0500 Received: from mproxyjp2.163.com ([176.32.86.149]:58413) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYCVM-0006pM-TH for bug-guile@gnu.org; Wed, 07 Dec 2011 03:05:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Received:Date:From:To:Message-ID:Subject: MIME-Version:Content-Type; bh=1TDgEnMhCXGNINYMHRgntw07dpZo/8mkZv m/IWR2wyM=; b=miMCSySDSU2GMj55fsZFzTs9gpzKRvNeWYM8U0d1s4D8LXE/Jo oe7gJSuM2KoPZ2YXd71jTQIJ0jNbcJusRy6GZlWIT7GyuP9TsfDh2f62HJYi+zTt sMRjRD/QZ1Ir7xxeD8oJNLfHAoAa+M8sI/8b+NDRIpjCmCLxeEDx71WXk= Received: from byweinno ( [27.188.24.128] ) by ajax-webmail-wmsvr154 (Coremail) ; Wed, 7 Dec 2011 15:49:21 +0800 (CST) Date: Wed, 7 Dec 2011 15:49:21 +0800 (CST) From: =?GBK?B?ybrJug==?= To: libffi-discuss@sourceware.org, green@moxielogic.com, bug-guile@gnu.org Message-ID: <7276900f.5f2e.134177f887f.Coremail.byweinno@163.com> Subject: undefined ffi_type_pointer problem mipsel linux MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_75271_1641281353.1323244161151" X-Originating-IP: [27.188.24.128] X-Priority: 3 X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build 111110(15680.4167.4075) Copyright (c) 2002-2011 www.mailtech.cn 163com X-CM-CTRLDATA: 6bRA/mZvb3Rlcl9odG09MjYzOTo4MQ== X-CM-TRANSID: msGowGD5oUOBGt9OP28KAA--.18519W X-CM-SenderInfo: 5e1zvxxqqrqiywtou0bp/1tbiMh8PVElwYAPYyQAAs9 X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 07 Dec 2011 03:11:08 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) ------=_Part_75271_1641281353.1323244161151 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: 7bit 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 ? 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; ------=_Part_75271_1641281353.1323244161151 Content-Type: text/html; charset=GBK Content-Transfer-Encoding: 7bit
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 ?

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;




------=_Part_75271_1641281353.1323244161151-- ------------=_1323289142-16084-1--