[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#3687) OpenLDAP compilation problem

This message does not indicate a bug in OpenLDAP software, this report 
will be closed.

You cannot link static code into a shared library on your system. If you 
want to build a shared libldap, then all of the libraries it depends on 
must also be shared libraries.

sharath.babu@philips.com wrote:

>Full_Name: sharath babu
>Version: 2.2.*
>OS: Redhat Enterprise Linux
>URL: ftp://ftp.openldap.org/incoming/
>Submission from: (NULL) (
>rm -fr .libs/libldap.la .libs/libldap.* .libs/libldap-2.2.*
>gcc -shared  bind.lo open.lo result.lo error.lo compare.lo search.lo controls.lo
>messages.lo referenc es.lo extended.lo cyrus.lo modify.lo add.lo modrdn.lo
>delete.lo abandon.lo sasl.lo sbind.lo kbind.lo unbind.lo cancel.lo filter.lo
>free.lo sort.lo passwd.lo whoami.lo getdn.lo getentry.lo getattr.lo get
>values.lo addentry.lo request.lo os-ip.lo url.lo sortctrl.lo vlvctrl.lo init.lo
>options.lo print.lo s tring.lo util-int.lo schema.lo charray.lo tls.lo
>os-local.lo dnssrv.lo utf-8.lo utf-8-conv.lo version .lo  -Wl,--rpath
>-Wl,--rpath - Wl,/home/ldap/lib  -L/usr/local/ssl/lib
>-L/usr/local/BerkeleyDB.4.3/lib ../../libraries/liblber/.libs /liblber.so
>-lresolv -lsasl2 -lssl -lcrypto  -Wl,-soname -Wl,libldap-2.2.so.7 -o
>.libs/libldap-2.2.so .7.0.18
>/usr/bin/ld: /usr/local/ssl/lib/libssl.a(s3_pkt.o): relocation R_X86_64_32 can
>not be used when makin g a shared object; recompile with -fPIC
>/usr/local/ssl/lib/libssl.a: could not read symbols: Bad value
>collect2: ld returned 1 exit status
>make[2]: *** [libldap.la] Error 1
>make[2]: Leaving directory
>make[1]: *** [all-common] Error 1
>make[1]: Leaving directory
>make: *** [all-common] Error 1
>[FapAdmin@host openldap-2.2.25]$

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support