Laszlo Nemeth wrote:

> libgmp is from the gnu web site, freshly installed. After 'make' the
> libgmp.so.2 file was generated from libgmp.a by ld -Bsymbolic.
> 
> If anyone had similar problems or knows how to fix this I would
> appreciate any hints.

The problem of getting a shared version of libgmp was addressed around
New Year's. Marcin 'Qrczak' Kowalczy gave the following URL for source
code that allows building both static and shared libs:
<A  HREF="ftp://ftp.pld.org.pl/stable/SRPMS/gmp-2.0.2-14.src.rpm">
ftp://ftp.pld.org.pl/stable/SRPMS/gmp-2.0.2-14.src.rpm</A>

I haven't tried it (I had already built a shared version by editing
the Makefile by hand), but it should work just fine.

By the way, although I am by no means an expert on shared libraries, I
am quite certain that it is not possible to turn a standard static library
into a shared library. Among other problems, the code in a shared library
must be position-independent, and the only way to get position-independent
code is to compile the source code with the option -fPIC (or perhaps some
other equivalent option if you're not using GCC), which is not normally
done for a static library.

Mark

________________________________________________________________________________

                                  Mark E. Hall
                      Mahanakorn University of Technology
                          Vanit Building 2, 8th Floor
                           1126/1 New Petchburi Road
                            Bangkok 10400, Thailand
                                66-2-6553181--7
                                [EMAIL PROTECTED]
                          http://www.mut.ac.th/~mehall

Reply via email to