From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,f24e0ad70c54105d,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-01-12 18:30:01 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!peer1-sjc1.usenetserver.com!fs01-sjc1.usenetserver.com!usenetserver.com!filter.west.usenetserver.com!filter.usenetserver.com!e3500-atl1.usenetserver.com.POSTED!53ab2750!not-for-mail Sender: sonic@killer.euler.net Newsgroups: comp.unix.tru64 Subject: Trouble compiling with gcc-2.95.3 on Tru64 From: Jesse Marlin Message-ID: User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@usenetserver.com X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly. NNTP-Posting-Date: Sat, 12 Jan 2002 21:21:03 EST Organization: BELLSOUTH.net Date: 12 Jan 2002 21:30:09 -0500 Xref: archiver1.google.com comp.unix.tru64:6429 I am trying to compile an application and am having trouble with signal.h that is bundled with gcc-2.95.3. gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wp,-MD,.deps/memory.pp -c memory.c -DPIC -o .libs/memory.lo In file included from stack.h:40, from memory.c:33: /usr/local/gcc-2.95.3/lib/gcc-lib/alphaev6-dec-osf4.0f/2.95.3/include/signal.h:257: warning: `struct _Esigaction' declared inside parameter list /usr/local/gcc-2.95.3/lib/gcc-lib/alphaev6-dec-osf4.0f/2.95.3/include/signal.h:257: warning: its scope is only this definition or declaration, which is probably not what you want. memory.c: In function `__mp_memquery': memory.c:744: storage size of `s' isn't known memory.c:771: warning: passing arg 3 of `_Esigaction' from incompatible pointer type memory.c:772: warning: passing arg 3 of `_Esigaction' from incompatible pointer type memory.c:788: warning: passing arg 2 of `_Esigaction' from incompatible pointer type memory.c:789: warning: passing arg 2 of `_Esigaction' from incompatible pointer type memory.c: At top level: memory.c:130: storage size of `membushandler' isn't known memory.c:131: storage size of `memsegvhandler' isn't known If I explicitely include -I/usr/include on the compile line this file compiles okay. I looked at the differences between select.h in /usr/include and the one in gcc-2.95.3: /usr/include/signal.h: #define sigaction(__a,__b,__c) _Esigaction(__a,__b,__c) /usr/local/gcc-2.95.3/lib/gcc-lib/alphaev6-dec-osf4.0f/2.95.3/include/signal.h: #define sigaction _Esigaction I am not sure why this is problem. Could it be the ordering of some includes. I had found a problem with bzero. If you include stdio.h prior to strings.h, select.h defined a different version of bzero, and strings.h then tried to redefine it. If strings.h is included first there are #ifs in there to prevent it from including the one in select.h. Could we possibly have some outdated /usr/include? This application is being configured via the autotools, and I am trying to find a way to fix the configure scripts correctly. Some things compile correctly when I include /usr/include and some things fail. Thanks for any help.