From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075325006467.tru64-unix-managers.marc@archive.invalid> From: "Luis A. Suarez" Date: Fri, 03 Nov 1995 14:08:21 +0000 To: tru64-unix-managers Subject: xgen errors in digital unix V3.2c 148 alpha X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075325006467 Hi, Is there a version of xgen that runs on digital unix? We are getting these errors when trying to compile xgen in digital unix, version 3.2c. We have tried both BSD and DEC compiler options. cc -O -D_MOTIF_1_2 -DDEC -DR5_XLIB -DSMT -DFUNCPROTO=3 -I. -c button.c *** Exit 1/usr/lib/cmplrs/cc/cfe: Warning: ./Matrix.h:125: Macro XmRStringArray redefined. /usr/lib/cmplrs/cc/cfe: Error: button.c, line 235: redeclaration of 'readdir'; previous declaration at line 145 in file '/usr/include/dirent.h' struct direct *readdir(); --------------------------------------------^ /usr/lib/cmplrs/cc/cfe: Error: button.c, line 235: Incompatible function return type for this function struct direct *readdir(); ---------------------------------------------------^ /usr/lib/cmplrs/cc/cfe: Error: button.c, line 244: 'd_name' undefined, reoccurrences will not be reported if (*(dp->d_name) != '.') { ------------------------^ /usr/lib/cmplrs/cc/cfe: Error: button.c, line 244: member of structure or union required if (*(dp->d_name) != '.') { --------------------------^ /usr/lib/cmplrs/cc/cfe: Error: button.c, line 247: member of structure or union required xmlabel = XmStringLtoRCreate(dp->d_name, ((char*)&_XmStrings[0])); -----------------------------------------------------^ *** Exit 1 Stop. Since the message said "previous declaration", we tried commenting out the line 235 of button.c struct direct *readdir(); Then we got the following errors: /usr/lib/cmplrs/cc/cfe: Warning: ./Matrix.h:125: Macro XmRStringArray redefined. /usr/lib/cmplrs/cc/cfe: Warning: button.c, line 243: Incompatible pointer type assignment for (dp = readdir(dirp); dp != 0L; dp = readdir(dirp)) { --------------------^ /usr/lib/cmplrs/cc/cfe: Warning: button.c, line 243: Incompatible pointer type assignment for (dp = readdir(dirp); dp != 0L; dp = readdir(dirp)) { --------------------------------------------------^ /usr/lib/cmplrs/cc/cfe: Error: button.c, line 244: 'd_name' undefined, reoccurrences will not be reported if (*(dp->d_name) != '.') { ------------------------^ /usr/lib/cmplrs/cc/cfe: Error: button.c, line 244: member of structure or union required if (*(dp->d_name) != '.') { --------------------------^ /usr/lib/cmplrs/cc/cfe: Error: button.c, line 247: member of structure or union required xmlabel = XmStringLtoRCreate(dp->d_name, ((char*)&_XmStrings[0])); -----------------------------------------------------^ *** Exit 1 Stop. Since "dp" appeared to cause the trouble, it was suggested to include #include at the beginning of your file. This generated the errors: cc -O -D_MOTIF_1_2 -DDEC -DR5_XLIB -DSMT -DFUNCPROTO=3 -I. -c button.c /usr/lib/cmplrs/cc/cfe: Warning: ./Matrix.h:125: Macro XmRStringArray redefined. /usr/lib/cmplrs/cc/cfe: Warning: button.c, line 243: Incompatible pointer type assignment for (dp = readdir(dirp); dp != 0L; dp = readdir(dirp)) { --------------------^ /usr/lib/cmplrs/cc/cfe: Warning: button.c, line 243: Incompatible pointer type assignment for (dp = readdir(dirp); dp != 0L; dp = readdir(dirp)) { --------------------------------------------------^ /usr/lib/cmplrs/cc/cfe: Error: button.c, line 244: 'd_name' undefined, reoccurrences will not be reported if (*(dp->d_name) != '.') { ------------------------^ /usr/lib/cmplrs/cc/cfe: Error: button.c, line 244: member of structure or union required if (*(dp->d_name) != '.') { --------------------------^ /usr/lib/cmplrs/cc/cfe: Error: button.c, line 247: member of structure or union required xmlabel = XmStringLtoRCreate(dp->d_name, ((char*)&_XmStrings[0])); -----------------------------------------------------^ *** Exit 1 Stop. These are stabs in the dark, since I do not program in C. I have contacted the xgen developers but there is no person at user support at this time (they expect to fill the position in spring). So, has any member of this group ported xgen to digital unix? Any help, comments, etc. would be very much appreciated. Thank you, Luis A. Suarez (luis@itzamn.ath.epa.gov) US Environmental Protection Agency National Exposure Research Laboratory - Ecosystems Division 960 College Station Road Athens, GA 30605-2700 Tel: 706.546.2301 Fax: 706.546.3252