tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Compile problem
@ 1996-03-26 22:54 Anita D Litteer
  0 siblings, 0 replies; only message in thread
From: Anita D Litteer @ 1996-03-26 22:54 UTC (permalink / raw)
  To: tru64-unix-managers

We are preparing to go from 2.0 to 3.2c.  We have an application that consists
of Motif, C, and Oracle ProC code that currently builds and runs successfully
under 2.0.  To avoid hardcoding the array sizes in the Oracle VARCHAR 
definition, we perform the following steps during our compile under 2.0:

cc -E $*.pc > $*.ppc -I/ips/d2/cos/ips-3.0/include
/usr/oracle/bin/proc iname=$*.ppc oname=$*.c $(PCCFLAGS)
cc -std -c -g $*.c > $@ -I/ips/d2/cos/ips-3.0/include

The first cc -E pass replaces entries like:
VARCHAR plnestyp_id[PLNESTYP_ID_W] 
to
VARCHAR plnestyp_id[2];

so that the ProC code can be correctly precompiled by the Oracle proc precom-
piler in the next step.

As stated, this process works great on 2.0. 

In 3.2c, we get in trouble doing the above with the /usr/include/sys/signal.h
file.

The following is output in the process:

cc -E chgBsuNarTitle.pc > chgBsuNarTitle.ppc -I/ips/d2/cos/ips-3.0/include;
/syslib-alpha/oracle/bin/proc iname=chgBsuNarTitle.ppc oname=chgBsuNarTitle.c userid=cos/jenny sqlcheck=semantics include=/syslib-alpha/oracle/lib ireclen=256 oreclen=256 select_error=no;
cc -std -c -g chgBsuNarTitle.c > chgBsuNarTitle.o -I/ips/d2/cos/ips-3.0/include

Pro*C: Release 1.5.10.1.0 - Production on Tue Mar 26 15:31:28 1996

Copyright (c) Oracle Corporation 1979, 1992.  All rights reserved.


Precompiling chgBsuNarTitle.ppc
/usr/lib/cmplrs/cc/cfe: Error: /usr/include/sys/signal.h, line 218: member types cannot be function types or incomplete type.
         union sigval    sigev_value;    
 ------------------------^
*** Exit 1
Stop.

The problem in this instance seems to be the inability to correctly include the
contents of the /usr/include/sys/siginfo.h file using this method since that is
where the sigval structure is defined in 3.2c

I need to know if I will be able to use this process to build my application on
3.2c and if I can, what modification/compiler options will make this possible.



______________________________________________________________________
Anita D. Litteer                                amc@inel.gov
Idaho National Engineering Lab.                 (208) 526-9357
P.O. Box 1625                            FAX:   (208) 526-9936        
Idaho Falls, ID 83415-2603
______________________________________________________________________

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

only message in thread, other threads:[~1996-03-26 22:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-03-26 22:54 Compile problem Anita D Litteer

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