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

3.04 sur sparc/Solaris #3096

Closed
vicuna opened this issue Dec 20, 2001 · 2 comments
Closed

3.04 sur sparc/Solaris #3096

vicuna opened this issue Dec 20, 2001 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Dec 20, 2001

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

Bug description

avec gcc version 2.8.1, j'ai eu ceci:
../../boot/ocamlrun ../../tools/ocamlmklib -o graphics open.o draw.o fill.o color.o text.o image.o make_img.o dump_img.o point_col.o sound.o events.o subwindow.o -L/usr/local/X11R6/lib -lX11
gcc: unrecognized option -rpath' /usr/local/X11R6/lib: file not recognized: Is a directory make[1]: *** [libgraphics.a] Error 2 make[1]: Leaving directory /afs/inria.fr/common/usr/local/src/old/ocaml-3.04/otherlibs/graph'
make: *** [otherlibraries] Error 2

Donc je n'ai pas de labltk ni de browser.
Avec -verbose:
../../boot/ocamlrun ../../tools/ocamlmklib -verbose -o graphics open.o draw.o fill.o color.o text.o image.o make_img.o dump_img.o point_col.o sound.o events.o subwindow.o -L/usr/local/X11R6/lib -lX11

  • gcc -shared -o dllgraphics.so subwindow.o events.o sound.o point_col.o dump_img.o make_img.o image.o text.o color.o fill.o draw.o open.o -L/usr/local/X11R6/lib -rpath /usr/local/X11R6/lib -lX11
    gcc: unrecognized option `-rpath'
    /usr/local/X11R6/lib: file not recognized: Is a directory

Ça n'en dit pas beaucoup plus...

Bruno.

@vicuna
Copy link
Author

vicuna commented Dec 21, 2001

Comment author: administrator

From: Bruno.Verlyck@inria.fr

Avec -verbose:
../../boot/ocamlrun ../../tools/ocamlmklib -verbose -o graphics open.o draw.o fill.o color.o text.o image.o make_img.o dump_img.o point_col.o sound.o events.o subwindow.o -L/usr/local/X11R6/lib -lX11

  • gcc -shared -o dllgraphics.so subwindow.o events.o sound.o point_col.o dump_img.o make_img.o image.o text.o color.o fill.o draw.o open.o -L/usr/local/X11R6/lib -rpath /usr/local/X11R6/lib -lX11
    gcc: unrecognized option `-rpath'
    /usr/local/X11R6/lib: file not recognized: Is a directory

Ça n'en dit pas beaucoup plus...

Ca en dit suffisemment: il y avait un bug dans configure pour solaris
avec GNU ld. Je suppose que cette architecture n'a pas ete testee (en
general on utilise le linker de solaris).

Voici un patch:

Index: configure

RCS file: /net/pauillac/caml/repository/csl/configure,v
retrieving revision 1.154
diff -c -r1.154 configure
*** configure 2001/12/07 14:23:01 1.154
--- configure 2001/12/21 00:25:43


*** 419,436 ****
sharedcccompopts="-fPIC"
if sh ./solaris-ld; then
mksharedlib="$bytecc -shared -o"
! byteccrpath="-Wl,-R"
mksharedlibrpath="-R"
else
mksharedlib="$bytecc -shared -o"
bytecclinkopts="$bytecclinkopts -Wl,-E"
byteccrpath="-Wl,-rpath,"
! mksharedlibrpath="-rpath "
fi
shared_libraries_supported=true;;
*)
sharedcccompopts="-KPIC"
! byteccrpath="-Wl,-R"
mksharedlib="/usr/ccs/bin/ld -G -o"
shared_libraries_supported=true;;
esac;;
--- 419,437 ----
sharedcccompopts="-fPIC"
if sh ./solaris-ld; then
mksharedlib="$bytecc -shared -o"
! byteccrpath="-R"
mksharedlibrpath="-R"
else
mksharedlib="$bytecc -shared -o"
bytecclinkopts="$bytecclinkopts -Wl,-E"
byteccrpath="-Wl,-rpath,"
! mksharedlibrpath="-Wl,-rpath,"
fi
shared_libraries_supported=true;;
*)
sharedcccompopts="-KPIC"
! byteccrpath="-R"
! mksharedlibrpath="-R"
mksharedlib="/usr/ccs/bin/ld -G -o"
shared_libraries_supported=true;;
esac;;

@vicuna
Copy link
Author

vicuna commented Dec 25, 2001

Comment author: administrator

bug in shared library support on solaris with GNU ld. Fixed by Jacques
(2001-12-21)

@vicuna vicuna closed this as completed Dec 25, 2001
@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