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

Re: (ITS#7278) [PATCH] SHA-2: Add support salted SHA-2 password hashes

At Thu, 31 May 2012 08:43:30 +0200,
Michael Ströder wrote:
> I'm trying to build this module (make distclean before) from recent RE24 git
> 0cfc487a70f2de40d9827b67949569653ee0e28a but it fails:
> $ make
> cc -I../../../../include -Wall -g -c slapd-sha2.c
> cc -I../../../../include -Wall -g -c sha2.c
> cc -I../../../../include -shared -Wall -g slapd-sha2.o sha2.o -o slapd-sha2.so
> /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld:
> slapd-sha2.o: relocation R_X86_64_32 against `.text' can not be used when
> making a shared object; recompile with -fPIC

See the above message. :-)

> slapd-sha2.o: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make: *** [slapd-sha2.so] Error 1
> Do I have to tweak the Makefile?

Add -fPIC to $CCFLAGS in Makefile if you are using GCC.

-- Name: SATOH Fumiyasu (fumiyas @ osstech co jp)
-- Business Home: http://www.OSSTech.co.jp/
-- GitHub Home: https://GitHub.com/fumiyas/