Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] building OCaml on SCO UnixWare 7.01 system (problems)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-06-01 (16:10)
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 Archives:
Bug reports: FAQ:
Beginner's list: