From: SourceForge.net <no...@so...> - 2003-09-14 19:26:00
|
Bugs item #804718, was opened at 2003-09-11 20:58 Message generated for change (Comment added) made by mbhally You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104664&aid=804718&group_id=4664 Category: None Group: None Status: Open Resolution: Accepted Priority: 5 Submitted By: mohsin bhally (mbhally) Assigned to: Hans-Bernhard Broeker (broeker) Summary: error building on SunOS 5.5.1 Initial Comment: I'm using flex 2.5.4 and gcc 2.8.1 and getting the following error: gcc2.8.1 -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c build.c build.c: In function `opendatabase': build.c:154: `O_RDONLY' undeclared (first use in this function) build.c:154: (Each undeclared identifier is reported only once build.c:154: for each function it appears in.) build.c: In function `build': build.c:317: `O_RDONLY' undeclared (first use in this function) *** Error code 1 make: Fatal error: Command failed for target `build.o' pls. let me know ---------------------------------------------------------------------- >Comment By: mohsin bhally (mbhally) Date: 2003-09-14 19:26 Message: Logged In: YES user_id=846527 Broeker, The file that has the O_RDONLY defined is sys/fcntl.h, i took out the condidtional compiles around : # include <sys/fcntl.h> in vp.h this took care of the build.c error but then display.c gave errors where sys_nerr and sys_errlist were not defined. I commented out the conditional compiles from around where these were referenced, that fixed the display.c error, and now got stuck with the following error: gcc2.8.1 -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c mypopen.c mypopen.c: In function `myopen': mypopen.c:80: `F_SETFD' undeclared (first use in this function) mypopen.c:80: (Each undeclared identifier is reported only once mypopen.c:80: for each function it appears in.) mypopen.c: In function `myfopen': mypopen.c:116: `F_SETFD' undeclared (first use in this function) mypopen.c: In function `mypopen': mypopen.c:156: `F_DUPFD' undeclared (first use in this function) *** Error code 1 make: Fatal error: Command failed for target `mypopen.o' ?? ---------------------------------------------------------------------- Comment By: Hans-Bernhard Broeker (broeker) Date: 2003-09-12 07:46 Message: Logged In: YES user_id=27517 Please try to find out which include file Solaris has their #define O_RDONLY in. This just might be the same problem reported on the same day in another bug report, which appears to be caused by a missing #include <sys/types.h> in vp.h. Could you please try to see if that fixes this problem, too? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104664&aid=804718&group_id=4664 |