home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!emory!emory!not-for-mail
- From: johnl@obelix.informix.com (Jonathan Leffler)
- Newsgroups: comp.databases.informix
- Subject: Re: Need insight on error
- Message-ID: <1d2viaINNe0p@emory.mathcs.emory.edu>
- Date: 2 Nov 92 00:23:06 GMT
- Article-I.D.: emory.1d2viaINNe0p
- Sender: walt@mathcs.emory.edu
- Reply-To: johnl@obelix.informix.com (Jonathan Leffler)
- Distribution: world
- Organization: Emory University, Dept of Math and CS
- Lines: 43
- X-Informix-List-ID: <list.1565>
-
- Dear Todd,
-
- UUNET bounced this mail with host david.wheaton.edu unknown -- hence the
- posting to informix-list.
-
- >From: uunet!david.wheaton.edu!bernha (Todd A Bernhardt)
- >Subject: Need insight on error
- >Date: 30 Oct 92 23:21:06 GMT
- >X-Informix-List-Id: <news.2039>
- >
- >Hi, this error popped up for seemingly no reason this week. The 4gl source
- >had not been recompiled in nearly one month and the reason for its
- >recompiling was a change to a globals file. My knowledge of C does not
- >lead me to an intuitive understanding of this error and any insight anyone
- >can give me is already greatly appriciated!!!
-
- >/usr/informix/bin/c4gl -a -L/usr/sturecs/lib -c ticket_list.4gl
- >(ccom): ticket_list.c, line 1183: ccom: Internal: initialization alignment error
- > {100, sizeof(ticket_arr[b_chk("ticket_list.4gl",119,(x)-1,50)].lot_code)},
- > --------------------------------------------------------------------------^
- >*** Error code 1
-
- >Stop.
-
- Uggggh. Without the source code for the I4GL, it'll be difficult to get very
- far with this, but I think the following statements can be made:
-
- * You have an array called ticket_arr which is defined as
- ticket_arr ARAY[50] OF RECORD LIKE ticket_list{?}.*
- * You have a fetch statement (possibly an implicit one in a FOREACH loop),
- which reads: INTO ticket_arr[x].lot_code
- * This occurs at line 119 in file ticket_list.4gl.
- * You are compiling with the -a flag now (deduced from the presence of the
- call to b_chk, and then observed on your command line, so not too many
- marks for billiance just there).
-
- I would hazard a guess that when you previously compiled this code, you were
- not using the -a option. The error is in your C compiler: it is baulking on
- what is legitimate (but very complex) C syntax. Try recompiling without the
- -a flag.
-
- Yours deductively,
- Jonathan Leffler (johnl@obelix.informix.com) #include <disclaimer.h>
-