From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076330121570.tru64-unix-managers.marc@archive.invalid> From: Anita D Litteer Date: Tue, 26 Mar 1996 22:54:30 +0000 To: tru64-unix-managers Subject: Compile problem X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076330121570 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 ______________________________________________________________________