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

-custom et unix #3309

Closed
vicuna opened this issue Apr 22, 2002 · 2 comments
Closed

-custom et unix #3309

vicuna opened this issue Apr 22, 2002 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Apr 22, 2002

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

Bug description

l'option -custom ne semble plus compatible avec la librairie unix:

Vincent Poirriez

Voici une copie d'écran:
(**debut)
poirriez@marsiq:/cust$ ocamlc -c ls.ml
poirriez@marsiq:
/cust$ ocamlc -custom unix.cma ls.cmo -o mlls
poirriez@marsiq:~/cust$ ./mlls

poirriez@marsiq:/cust$ ocamlc unix.cma ls.cmo -o mlls2
poirriez@marsiq:
/cust$ ./mlls2
mlls2 mlls ls.cmi ls.cmo ls.ml .. .
(fin)

Je suis sur une machine debian avec le paquet suivant:
poirriez@marsiq:~/cust$ sudo dpkg -l |grep ocaml
ii ocaml 3.04-9 ML language implementation with a class-base

le code de ls.ml:

let ls d =
let handle = Unix.opendir d in
let rec aux res =
try aux ((Unix.readdir handle)::res)
with End_of_file -> res
in
let r = aux [] in
Unix.closedir handle;
r

let _ = List.iter (Printf.printf "%s ") (ls Filename.current_dir_name);
print_newline();
flush stdout

@vicuna
Copy link
Author

vicuna commented Apr 24, 2002

Comment author: administrator

Bonjour Vincent,

l'option -custom ne semble plus compatible avec la librairie unix:

Je n'arrive pas à reproduire le problème ici. Cela pourrait être dû à
une incohérence entre dllunix.so et libunix.a dans le paquetage Debian
(peu probable), ou une bizarrerie dans la lib C (peu probable aussi!).

  • Xavier

@vicuna
Copy link
Author

vicuna commented Apr 26, 2002

Comment author: administrator

Could not reproduce. Waiting for more info.

@vicuna vicuna closed this as completed Apr 26, 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