Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000166OCamlOCaml generalpublic2000-07-24 20:562000-07-28 11:29
Reporteradministrator 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000166: problem to staticly link with ncurses
DescriptionFull_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.

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0002144)
administrator (administrator)
2000-07-28 11:28

> 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

(0002145)
administrator (administrator)
2000-07-28 11:29

RedHat RPM packaging bug

- Issue History
Date Modified Username Field Change
2005-11-18 10:13 administrator New Issue


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker