[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Error when compiling lsyslog-5
- From: michal kalinowski <michal.kalinowski@...>
- Date: Wed, 7 Jul 2010 20:13:46 +0200
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
Michał
2010/7/7 Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>:
>> [root@xx lsyslog-5]# make
>> 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
>
> Just do what it asks: add -fPIC to CFLAGS.
>