Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Diff of /sml/trunk/HISTORY
ViewVC logotype

Diff of /sml/trunk/HISTORY

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1465, Thu Mar 4 22:30:03 2004 UTC revision 1468, Fri Mar 19 18:54:52 2004 UTC
# Line 13  Line 13 
13  Description:  Description:
14    
15  ----------------------------------------------------------------------  ----------------------------------------------------------------------
16    Name: Allen Leung (leunga (at) reservoir (dot) com)
17    Date: 2004/03/19 14:40:00 EST
18    Tag: leunga-20040319-cygwin-nlffi
19    Description:
20    
21    Fixed the runtime so that ml-nlffi-lib runs on the cygwin version
22    of SML/NJ.  The problem is that
23    
24       lib = dlopen(NULL, ...)
25       f   = dlsym(lib, "malloc");
26    
27    does not work on Windows unless we explicitly export symbols
28    such as 'malloc' during linking.  We fixed this by explicitly
29    exporting the required symbols with the magic gcc incantation:
30    
31        -Wl,--export-all cygwin.def
32    
33    where cygwin.def is a file containing all the symbols that
34    we wish to export.
35    
36    I suspect this is a Windows problem and we'll have to
37    do the same (somehow with windows compilers) when
38    we build the native win32 version with the system
39    calls LoadLibrary/GetProcAddress.
40    
41    ----------------------------------------------------------------------
42  Name: Matthias Blume (blume (at) tti - c (dot) org)  Name: Matthias Blume (blume (at) tti - c (dot) org)
43  Date: 2004/03/04 16:35:00 CST  Date: 2004/03/04 16:35:00 CST
44  Tag: blume-20040304-intinf-fmt  Tag: blume-20040304-intinf-fmt

Legend:
Removed from v.1465  
changed lines
  Added in v.1468

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0