From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jay K Newsgroups: gmane.lisp.guile.bugs Subject: RE: guile 1.8.7 static const char foo[] is incomplete type, rejected by some compilers Date: Wed, 9 Jun 2010 19:13:01 +0000 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1276111651 14052 80.91.229.12 (9 Jun 2010 19:27:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Jun 2010 19:27:31 +0000 (UTC) To: Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Jun 09 21:27:30 2010 connect(): No such file or directory Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OMQvy-00089S-7D for guile-bugs@m.gmane.org; Wed, 09 Jun 2010 21:27:30 +0200 Original-Received: from localhost ([127.0.0.1]:46096 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMQsi-0003om-Rm for guile-bugs@m.gmane.org; Wed, 09 Jun 2010 15:24:08 -0400 Original-Received: from [140.186.70.92] (port=53049 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMQsa-0003mu-Lz for bug-guile@gnu.org; Wed, 09 Jun 2010 15:24:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OMQsZ-0003VR-0i for bug-guile@gnu.org; Wed, 09 Jun 2010 15:24:00 -0400 Original-Received: from col0-omc3-s2.col0.hotmail.com ([65.55.34.140]:17636) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMQsY-0003Us-So for bug-guile@gnu.org; Wed, 09 Jun 2010 15:23:58 -0400 Original-Received: from COL101-W14 ([65.55.34.135]) by col0-omc3-s2.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 9 Jun 2010 12:13:01 -0700 X-Originating-IP: [71.112.27.90] Importance: Normal X-OriginalArrivalTime: 09 Jun 2010 19:13:01.0096 (UTC) FILETIME=[C741C280:01CB0807] X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP4, XP SP1+ X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:4630 Archived-At: > I will try ftp://alpha.gnu.org/gnu/guile/guile-1.9.11.tar.gz. Haven't managed to get it to find bdw-gc=2C despite building and installing= it.. Due this is other difficulties=2C I tried building guile 1.8.7 with native = cc: libtool: compile:=A0 cc -DHAVE_CONFIG_H -I.. -I/home/jayk/src/guile-1.8.7 -= I.. -ieee -ieee -D_REENTRANT -pthread -I/home/jayk/include -L/home/jayk/lib= -c -MD /home/jayk/src/guile-1.8.7/libguile/hashtab.c=A0 -DPIC -o .libs/lib= guile_la-hashtab.o cc: Error: /home/jayk/src/guile-1.8.7/libguile/hashtab.c=2C line 914: The s= tatic declaration of "s_scm_hash_fold" is a tentative definition and specif= ies an incomplete type. (incompstat) static const char s_scm_hash_fold[]=3B ------------------^ cc: Error: /home/jayk/src/guile-1.8.7/libguile/hashtab.c=2C line 952: The s= tatic declaration of "s_scm_hash_for_each" is a tentative definition and sp= ecifies an incomplete type. (incompstat) static const char s_scm_hash_for_each[]=3B bash-4.1$ diff=A0 orig/guile-1.8.7/libguile/hashtab.c guile-1.8.7/libguile/= hashtab.c 914c914 < static const char s_scm_hash_fold[]=3B --- > static const char s_scm_hash_fold[sizeof("hash-fold")]=3B 952c952 < static const char s_scm_hash_for_each[]=3B --- > static const char s_scm_hash_for_each[sizeof("hash-for-each")]=3B bash-4.1$ cc -V Compaq C V6.3-025 on Compaq Tru64 UNIX V5.1 (Rev. 732) Compiler Driver V6.3-026 (sys) cc Driver It the compiles ok. I don't hit the isinf error=2C not surprising=2C since = there's then no -Wmissing-prototypes. =A0- Jay ---------------------------------------- > From: jay.krell@cornell.edu > To: bug-guile@gnu.org > Subject: isinf and type-pun warning/error on OSF guile 1.8.7 > Date: Wed=2C 9 Jun 2010 15:43:49 +0000 > > > libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/home/jayk/src/guile-1.8.7 = -I.. -mieee -mieee -D_REENTRANT -pthread -g -O2 -Wall -Wmissing-prototypes = -Werror -MT libguile_la-numbers.lo -MD -MP -MF .deps/libguile_la-numbers.Tp= o -c /home/jayk/src/guile-1.8.7/libguile/numbers.c -DPIC -o .libs/libguile= _la-numbers.o > cc1: warnings being treated as errors > /home/jayk/src/guile-1.8.7/libguile/numbers.c: In function 'xisinf': > /home/jayk/src/guile-1.8.7/libguile/numbers.c:144: error: implicit declar= ation of function 'isinf' > /home/jayk/src/guile-1.8.7/libguile/numbers.c: In function 'guile_ieee_in= it': > /home/jayk/src/guile-1.8.7/libguile/numbers.c:623: error: dereferencing t= ype-punned pointer will break strict-aliasing rules > /home/jayk/src/guile-1.8.7/libguile/numbers.c:654: error: dereferencing t= ype-punned pointer will break strict-aliasing rules > make[3]: *** [libguile_la-numbers.lo] Error 1 > make[3]: Leaving directory `/home/jayk/obj/guile/libguile' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/jayk/obj/guile/libguile' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/jayk/obj/guile' > make: *** [all] Error 2 > bash-4.1$ > > > I hacked these bogusly to fix. > Put "0 &&" on the first #if and removed -Werror from libguile/Makefile fo= r the second. > I couldn't find isinf in any header. > Oops=2C I guess I should have just removed -Wmissing-prototypes. I'll t= ry that. > > > I recall seeing the same problem on Irix=2C where autoconf does a link ch= eck > and compiles without -Wmissing-prototype so it passes=2C because the func= tion > does exist somewhere. Autoconf checks need to more closely resemble > how later compilation will occur. > > > It is *possible* I changed gcc from 4.5.0 to 4.3.5 while this was compili= ng=2C but I don't think so. > > > Same thing in make check: > > > /home/jayk/src/guile-1.8.7/test-suite/standalone/test-conversion.c:859: e= rror: dereferencing type-punned pointer will break strict-aliasing rules > make[4]: *** [test_conversion-test-conversion.o] Error 1 > > > I will try ftp://alpha.gnu.org/gnu/guile/guile-1.9.11.tar.gz. > > > - Jay > =