From: Dominic J. Eidson (deidson_at_seton.org)
Date: Mon May 15 2006 - 22:53:27 CEST
Message-ID: <4468EA47.4030201@seton.org> Date: Mon, 15 May 2006 15:53:27 -0500 From: "Dominic J. Eidson" <deidson@seton.org> Subject: [suse-sles-e] Compiling against openldap2-devel-2.2.6-37.19
I am running SLES 9.0 (SP 2?) on a x86_64 machine, and trying to compile
ruby's ruby-ldap module, but get the following error:
gcc -shared -L'/usr/local/lib' -Wl,-R'/usr/local/lib' -o ldap.so mod.o
entry.o saslconn.o conn.o ldap.o sslconn.o misc.o -Wl,-R -Wl,/usr/local/lib
-L/usr/local/lib -L. -lruby -lldap -lldap_r -llber -lresolv -lpthread -lnsl
-lssl -lcrypto -lpthread -ldl -lcrypt -lm -lc
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin/ld:
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../lib64/libldap.a(bind.o):
relocation R_X86_64_32 can not be used when making a shared object; recompile
with -fPIC
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../lib64/libldap.a: could
not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [ldap.so] Error 1
sigs-new:/tmp/ruby-ldap-0.9.4 #
Is there any reason that openldap2-devel-2.2.6-37.19's libldap.a was not
compiled with -fPIC?
- d.
-- Dominic J. Eidson http://www.faqs.org/rfcs/rfc1855.html Network Engineer Atos Origin 512-324-9914 --------------------------------------------------------------------- To unsubscribe, e-mail: suse-sles-e-unsubscribe@suse.com For additional commands, e-mail: suse-sles-e-help@suse.com
This archive was generated by hypermail 2.1.7 : Mon May 15 2006 - 22:53:41 CEST