Browse thread
[Caml-list] building OCaml on SCO UnixWare 7.01 system (problems)
-
Shane Y. Gibson
- Xavier Leroy
- Sven Luther
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Xavier Leroy <xavier.leroy@i...> |
| Subject: | Re: [Caml-list] building OCaml on SCO UnixWare 7.01 system (problems) |
> During the compilation process (with both GCC 2.95 and the SCO
> Development System CC compiler), I get the following errors:
>
> gcc -I../../byterun -O -fno-defer-pop -Wall -Wno-unused
> -D_FILE_OFFSET_BITS=64 -g -c scheduler.c
> scheduler.c:97: conflicting types for `thread_t'
> /usr/include/sys/types.h:305: previous declaration of `thread_t'
> *** Error code 1 (bu21)
> UX:make: ERROR: fatal error.
That's a "namespace pollution" error: the system's include files
define things that they should not according to a number of recent
Unix standards such as SUS and Unix98. (I must resist making an SCO joke at
that point.)
A trick that may work (it was helpful to work around a similar problem
on AIX) is to specify "-D_XOPEN_SOURCE=500":
./configure -cc "cc -D_XOPEN_SOURCE=500"
There might be a manual page explaining those standard conformance
directives; on Solaris and Digital Unix, it's standards(5).
Hope this helps,
- Xavier Leroy
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners