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

assert dans une dll #3598

Closed
vicuna opened this issue Aug 29, 2002 · 1 comment
Closed

assert dans une dll #3598

vicuna opened this issue Aug 29, 2002 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Aug 29, 2002

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

Bug description

Sur mon alpha, j'ai gcc 2.95.2. Dans les extensions C pour Cash, il y
a un assert (0). Quand je tente de linker Cash sur cette machine,
j'ai:
/usr/local/bin/ocamlmktop-3.06 -g -o cashtop -I . -I /usr/local/lib/ocaml-3.06/contrib -I /usr/local/lib/ocaml-3.06/camlp4 -dllpath /usr/local/lib/ocaml-3.06/contrib pcre.cma camlp4o.cma unix.cma cash.cma set_dir.cmo
Error on dynamically loaded library: Unresolved symbol in ./dllcash.so: __eprintf

L'origine du problème me semble être:

  • la macro assert est expansée ainsi par gcc:
    ((void) (( 0 ) ? 0 : (__eprintf ("%s:%u: failed assertion `%s'\n", "unix_plus.c" , 146 , "0" ), 0) ))
  • __eprintf est dans libgcc.a (je ne vois pas de .so correspondant)
  • ocamlrun n'ayant aucun assert, quand ocamlmktop charge la dll pour voir
    si tout est là, __eprintf est indéfini.

Je ne vois pas bien comment résoudre proprement le problème au moment
de ocamlmklib/top. Ou dois-je renoncer à assert ?

Bruno.

@vicuna
Copy link
Author

vicuna commented Apr 18, 2004

Comment author: administrator

Tentative fix 2004-04-18, XL. Needs testing.

@vicuna vicuna closed this as completed Jun 28, 2004
@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