home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / database / informix / 2357 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  2.3 KB

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