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

problem to staticly link with ncurses #2535

Closed
vicuna opened this issue Jul 24, 2000 · 2 comments
Closed

problem to staticly link with ncurses #2535

vicuna opened this issue Jul 24, 2000 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Jul 24, 2000

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

Bug description

Full_Name: Vanicat Rémi
Version: Ocaml 3
OS: Redhat 6.1
Submission from: serveur1-1.labri.u-bordeaux.fr (147.210.8.170)

I'have found something that is not exctly a bug, but which is anoying :
when i try to staticly link an ocaml program, it fail :
+serveur1-1:~/lang/ocaml$ ocamlopt -ccopt --static toto.ml
/usr/bin/ld: cannot open -lcurses: Aucun fichier ou répertoire de ce type
collect2: ld returned 1 exit status
Error during linking

the raison is quite simple : there is a libcurses.so, which is a link to
libncurses.so, but no libcurses.a, so the configure script succed to do a
-lcurses but i failed when i link staticly.

the solution was quite simple for me : i'have change the configure script,
but maybe it should have an option to choose one's curses library.

@vicuna
Copy link
Author

vicuna commented Jul 28, 2000

Comment author: administrator

I'have found something that is not exctly a bug, but which is anoying :
when i try to staticly link an ocaml program, it fail :
+serveur1-1:~/lang/ocaml$ ocamlopt -ccopt --static toto.ml
/usr/bin/ld: cannot open -lcurses: Aucun fichier ou répertoire de ce type
collect2: ld returned 1 exit status
Error during linking

the raison is quite simple : there is a libcurses.so, which is a link to
libncurses.so, but no libcurses.a, so the configure script succed to do a
-lcurses but i failed when i link staticly.

I view this as a bug in RedHat's ncurses-devel RPM: since it includes
a symbolic link for libcurses.so, it should also contain a symbolic
link for libcurses.a.

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Jul 28, 2000

Comment author: administrator

RedHat RPM packaging bug

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