From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?=E7=8F=8A=E7=8F=8A?= Newsgroups: gmane.lisp.guile.bugs,gmane.comp.lib.ffi.general Subject: bug#10241: undefined ffi_type_pointer problem mipsel linux Date: Wed, 7 Dec 2011 15:49:21 +0800 (CST) Message-ID: <7276900f.5f2e.134177f887f.Coremail.byweinno@163.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_75271_1641281353.1323244161151" X-Trace: dough.gmane.org 1323283807 18525 80.91.229.12 (7 Dec 2011 18:50:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 7 Dec 2011 18:50:07 +0000 (UTC) To: libffi-discuss@sourceware.org, green@moxielogic.com, 10241@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Dec 07 19:50:02 2011 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RYMZ7-0004qK-5M for guile-bugs@m.gmane.org; Wed, 07 Dec 2011 19:50:01 +0100 Original-Received: from localhost ([::1]:59970 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYMZ6-0004AI-P3 for guile-bugs@m.gmane.org; Wed, 07 Dec 2011 13:50:00 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:56782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYCb7-0007GR-30 for bug-guile@gnu.org; Wed, 07 Dec 2011 03:11:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RYCb2-0007o4-Hw for bug-guile@gnu.org; Wed, 07 Dec 2011 03:11:25 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56277) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYCb2-0007nz-D4 for bug-guile@gnu.org; Wed, 07 Dec 2011 03:11:20 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RYCbi-0001DT-9h for bug-guile@gnu.org; Wed, 07 Dec 2011 03:12:02 -0500 X-Loop: help-debbugs@gnu.org 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: X-Debbugs-Original-To: libffi-discuss@sourceware.org, green@moxielogic.com, bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13232454704612 (code B ref -1); Wed, 07 Dec 2011 08:12:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Dec 2011 08:11:10 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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= Original-Received: from byweinno ( [27.188.24.128] ) by ajax-webmail-wmsvr154 (Coremail) ; Wed, 7 Dec 2011 15:49:21 +0800 (CST) 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-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 Resent-Date: Wed, 07 Dec 2011 03:12:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Wed, 07 Dec 2011 13:49:58 -0500 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:5960 gmane.comp.lib.ffi.general:510 Archived-At: ------=_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/li bguile-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_ty pe_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_typ e_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--