[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Error when compiling lsyslog-5
- From: Henk Boom <henk@...>
- Date: Wed, 7 Jul 2010 14:30:39 -0400
2010/7/7 michal kalinowski <michal.kalinowski@interia.pl>:
> In make file I have this:
> CFLAGS= $(INCS) $(WARN) -O2 $G -fPIC
>
> Still is the same result:
> cc -o syslog.so -shared lsyslog.o
> /usr/bin/ld: lsyslog.o: relocation R_X86_64_32 against `a local
> symbol' can not be used when making a shared object; recompile with
> -fPIC
> lsyslog.o: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make: *** [syslog.so] Error 1
Maybe you already did this, but make sure that you do a 'make clean'
first, so that the .o file is regenerated with the new flags.
henk