Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic loading under MACOSX #3066

Closed
vicuna opened this issue Dec 2, 2001 · 1 comment
Closed

Dynamic loading under MACOSX #3066

vicuna opened this issue Dec 2, 2001 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Dec 2, 2001

Original bug ID: 686
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Samuel Hériard
Version: 3.03 ALPHA+5 (2001-11-23)
OS: Darwin (MACOSX)
Submission from: reims-1-a7-65-152.dial.proxad.net (62.147.65.152)

a patch to get DL of C primitive working on MACOSX/Darwin, it needs dlcompat
(darwin cvs or http://fink.sourceforge.net/bindist/source/dlcompat-20010831.tar.gz)

cheers,

--
Samuel

cvs server: Diffing .
Index: configure

RCS file: /caml/ocaml/configure,v
retrieving revision 1.151
diff -r1.151 configure
383a384

need_underscore_before_symbols=false
436a438,442
-apple-darwin)
mksharedlib="cc -bundle -flat_namespace -undefined suppress -o"
sharedcccompopts="-fno-common"
need_underscore_before_symbols=true
shared_libraries_supported=true;;
442a449,451
if $need_underscore_before_symbols; then
echo "#define DL_NEEDS_UNDERSCORE_BEFORE_SYMBOLS" >> s.h
fi

cvs server: Diffing byterun
Index: byterun/unix.c

RCS file: /caml/ocaml/byterun/unix.c,v
retrieving revision 1.4
diff -r1.4 unix.c
171a172

#ifndef DL_NEEDS_UNDERSCORE_BEFORE_SYMBOLS
172a174,178
#else
char name[100] = "";
strcat (&_name[1], name);
return dlsym(handle, _name);
#endif

@vicuna
Copy link
Author

vicuna commented Dec 3, 2001

Comment author: administrator

Redundant with #3065

@vicuna vicuna closed this as completed Aug 25, 2002
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant