Subject:
|
O_ASYNC problem (Solaris again)
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Fri, 19 Nov 1999 02:14:51 GMT
|
Viewed:
|
2733 times
|
| |
| |
Hi all,
We are persisting with our build on solaris for legOS 0.2.2 things are getting
closer. We have sorted out the getopt.h problems by just copying the getopt.c
and getopt.h into the dll-src directory (because it is a known path for the
Makefile for dll-src). We will talk more with the sys admin at a later date
about where our copy of getopt.* has gone from /usr/include or wether Solaris
ever had it.
Anyhow we are now up against another problem. This time the culprit is
O_ASYNC. It seems that this is an undeclared identifier. What file does this
usually reside in from the bunch of .h includes in loader.c?? Here are two
Solaris captures to illustrate the problem
The first capture was taken using the original, "out of the box" loader.c the
second capture was taken after the following lines were added to loader.c at
line 48
#ifndef O_ASYNC
#define O_ASYNC FASYNC
#endif
---- Solaris capture (before redefinition) ----
frost-dll-src: ls
CVS convert.c keepalive.c loader.c rcxtty.c srec.h
Makefile getopt.c keepalive.h lx.c rcxtty.h srecload.c
config.h getopt.h lnp.c lx.h srec.c srecload.h
frost-dll-src: gmake
gcc -o loader.o -c loader.c -O2 -Wall -I/usr/include -I. -I../../include
loader.c: In function `LNPinit':
loader.c:224: `O_ASYNC' undeclared (first use in this function)
loader.c:224: (Each undeclared identifier is reported only once
loader.c:224: for each function it appears in.)
gmake: *** [loader.o] Error 1
---- end solaris capture ----
---- Solaris capture (after redefinition) ----
frost-dll-src: ls
CVS convert.c keepalive.c loader.c rcxtty.c srec.h
Makefile getopt.c keepalive.h lx.c rcxtty.h srecload.c
config.h getopt.h lnp.c lx.h srec.c srecload.h
frost-dll-src: make
gcc -o loader.o -c loader.c -O2 -Wall -I/usr/include -I. -I../../include
loader.c: In function `LNPinit':
loader.c:224: `FASYNC' undeclared (first use in this function)
loader.c:224: (Each undeclared identifier is reported only once
loader.c:224: for each function it appears in.)
*** Error code 1
make: Fatal error: Command failed for target `loader.o'
------ end capture ---
as you can see redefining O_ASYNC to FASYNC does not help the situation at all
as it appears under Solaris FASYNC is also somethnig which is not known. :(.
This was tried because of another older post in lugnet/legoS (can't remember
the number but just do a search for O_ASYNC and it pops up)
Anyone have any ideas?
cheers and thanks again for the help
michael
|
|
Message has 2 Replies: | | Re: O_ASYNC problem (Solaris again)
|
| (...) I think it is quite likely that Solaris does not have it- neither Solaris i386 or Solaris Sparc (at least the versions that I have access to) have it. (...) Hmm. O_ASYNC is defined in /usr/include/bits/fcntl.h under Linux. The equivalent file (...) (25 years ago, 19-Nov-99, to lugnet.robotics.rcx.legos)
|
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|