Bugs item #804718, was opened at 2003-09-11 22:58
Message generated for change (Comment added) made by broeker
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: Hans-Bernhard Broeker (broeker)
Date: 2003-09-14 22:09
Message:
Logged In: YES
user_id=27517
I'm quite sure the line in vp.h reads #include <fcntl.h>, not
#include <sys/fcntl.h>.
Anyway, removing the #if around it doesn't do anything to
solve actual problem --- which is that configure didn't detect
the presence of a <fcntl.h> file in your machine. You *did*
re-run configure after changing to flex and gcc, I assume,
didn't you? If not, do so now. Start from a 'make distclean',
just in case, then re-start the installation procedure at the
'configure' step; or just zap the cscope source tree and
restart from a freshly un-tarred one.
[The F_FDSET & friends problems in mypopen.c stem from this
same, source, too... except that this time, the #include
<fcntl.h> in src/global.h is being deactivated.
----------------------------------------------------------------------
Comment By: mohsin bhally (mbhally)
Date: 2003-09-14 21: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 09: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
|