Libtool and Support for Shared Libraries (3)

Bron Gondwana brong at fastmail.fm
Wed Jun 27 01:58:01 EDT 2012


On Wed, Jun 27, 2012, at 08:54 AM, Greg Banks wrote:
> 
> 
> 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.

Ahh, yep - so I was!  Looking better now :)

libtool: install: warning: `sieve/libcyrus_sieve.la' has not been installed in `/usr/cyrus-future/lib'
libtool: install: warning: `lib/libcyrus.la' has not been installed in `/usr/cyrus-future/lib'
libtool: install: warning: `lib/libcyrus_min.la' has not been installed in `/usr/cyrus-future/lib'
libtool: install: /usr/bin/install -c sieve/.libs/sievec /usr/src/cyrus-future-build/cyrus/debian/cyrus-future/usr/cyrus-future/bin/sievec

but that's only a warning :)

Bron.
-- 
  Bron Gondwana
  brong at fastmail.fm



More information about the Cyrus-devel mailing list