Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Trouble compiling with gcc-2.95.3 on Tru64
@ 2002-01-13  2:30 Jesse Marlin
  0 siblings, 0 replies; only message in thread
From: Jesse Marlin @ 2002-01-13  2:30 UTC (permalink / 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.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-01-13  2:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-13  2:30 Trouble compiling with gcc-2.95.3 on Tru64 Jesse Marlin

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