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

Problems with shared library support on solaris #3354

Closed
vicuna opened this issue May 17, 2002 · 1 comment
Closed

Problems with shared library support on solaris #3354

vicuna opened this issue May 17, 2002 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented May 17, 2002

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

Bug description

Full_Name: Josef Svenningsson
Version: 3.04
OS: Solaris5
Submission from: muppet90.cs.chalmers.se (129.16.228.10)

I cannot install ocaml-3.04 on my solaris machine. When I do "make world" it
stops
when building the graph library with the following message:

gcc: unrecognized option -rpath' /usr/X11/lib: file not recognized: Is a directory collect2: ld returned 1 exit status make[1]: *** [libgraphics.a] Error 2 make[1]: Leaving directory /.../chalmers.se/fs/cab/cs/work/proj/multi/home/src/ocaml/ocaml-3.04/otherlibs/graph'
make: *** [otherlibraries] Error 2

gcc --version
2.95.3

I suppose this has to do with the shared library support.

@vicuna
Copy link
Author

vicuna commented May 18, 2002

Comment author: administrator

Full_Name: Josef Svenningsson
Version: 3.04
OS: Solaris5
Submission from: muppet90.cs.chalmers.se (129.16.228.10)

I cannot install ocaml-3.04 on my solaris machine. When I do "make world" it
stops
when building the graph library with the following message:

gcc: unrecognized option -rpath' /usr/X11/lib: file not recognized: Is a directory collect2: ld returned 1 exit status make[1]: *** [libgraphics.a] Error 2 make[1]: Leaving directory /.../chalmers.se/fs/cab/cs/work/proj/multi/home/src/ocaml/ocaml-3.04/otherlibs/graph'
make: *** [otherlibraries] Error 2

gcc --version
2.95.3

I suppose this has to do with the shared library support.

Indeed, there was a small bug in configure in 3.04.
You can correct it by hand:
edit config/Makefile and replace
MKSHAREDLIBRPATH="-rpath "
by
MKSHAREDLIBRPATH=-Wl,-rpath,
(with no space at the end of the line!)

This should solve it.
Otherwise, you can still use the -no-shared-libs option to configure.

 Jacques

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