OCaml Forge
SCM

Detail: [#1041] defines break detection of mkdtemp on MacOS X

Bugs: Browse | Download .csv | Monitor

[#1041] defines break detection of mkdtemp on MacOS X

Date:
2011-09-28 09:44
Priority:
3
State:
Open
Submitted by:
Markus Weißmann (mww)
Assigned to:
ygrek (ygrek)
Resolution:
None
Severity:
None
Hardware:
None
 
Operating System:
Version:
 
URL:
Summary:
defines break detection of mkdtemp on MacOS X

Detailed description
"mkdtemp" is not found during configuration;
when "_POSIX_C_SOURCE 200112L" and "_XOPEN_SOURCE 600" are removed from the defines in discover.ml, it is found and working perfectly (on MacOS X).

Either these defines should be removed alltogether OR for OS X only.

Followup

Message
Date: 2012-03-06 17:21
Sender: Markus Weißmann

./configure succeeds but fails to detect mkdtemp;
this is trunk from git (should be branch 1fd2559acdc1df8f2a723f3d7659bc108b27b9fa)
Date: 2012-03-06 16:37
Sender: ygrek

Thanks for the log. AFAICS configure just fails to detect some features, but doesn't fail in general, or? Does it generate config.h? Is it extunix 0.0.3 or the latest git?
Date: 2012-03-05 15:11
Sender: Markus Weißmann

I've meanwhile upgraded to OS X 10.7.3 which uses clang/llvm 3.0. I've attached the logfile of 'ocaml setup.ml -configure' (which fails).
Date: 2012-03-05 14:26
Sender: ygrek

Thanks for your report, somehow I have missed it (blaming spam filter..)
Please, can you recheck with the latest git?
It defines _POSIX_C_SOURCE to 200809L and _XOPEN_SOURCE to 700.

Attached Files:

Attachments:
ocaml-extunix-10.7-clang.log

Changes:

Field Old Value Date By
File Added160: ocaml-extunix-10.7-clang.log2012-03-05 15:11mww
assigned_tonone2012-03-05 14:41ygrek