Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Jesse Marlin <marlin_j@bellsouth.net>
Subject: Trouble compiling with gcc-2.95.3 on Tru64
Date: 12 Jan 2002 21:30:09 -0500	[thread overview]
Message-ID: <m3elkvyocu.fsf@killer.euler.net> (raw)


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.



                 reply	other threads:[~2002-01-13  2:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox