Libtool and Support for Shared Libraries (3)
Greg Banks
gnb at fastmail.fm
Tue Jun 26 18:54:05 EDT 2012
On Wed, Jun 27, 2012, at 12:27 AM, Bron Gondwana wrote:
>
>
> /usr/bin/ld.bfd.real: /usr/lib/libcom_err.a(error_message.o): relocation
> R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared
> object; recompile with -fPIC
> /usr/lib/libcom_err.a: could not read symbols: Bad value
>
>
> So what am I doing wrong,
Nothing.
> or in the alternative what is the build system
> doing wrong?
There is a path through configure.ac which sets
COM_ERR_LIBS="${with_com_err}/lib/libcom_err.a"
and COM_ERR_LIBS gets used to link against shared libraries in
Makefile.am
imap_libcyrus_imap_la_LIBADD = $(COM_ERR_LIBS) $(LIB_UUID)
...
sieve_libcyrus_sieve_la_LIBADD = $(COM_ERR_LIBS)
...
I would guess you did something like
./configure --with-com_err=/usr
but you should be able to get a better result by just dropping the
option entirely.
--
Greg.
More information about the Cyrus-devel
mailing list