Compile problem

From: Anita D Litteer <amc_at_inel.gov>
Date: Tue, 26 Mar 1996 15:54:30 -0700 (MST)

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 > $_at_ -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_at_inel.gov
Idaho National Engineering Lab. (208) 526-9357
P.O. Box 1625 FAX: (208) 526-9936
Idaho Falls, ID 83415-2603
______________________________________________________________________
Received on Wed Mar 27 1996 - 00:12:41 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:46 NZDT