RPM Community Forums

Mailing List Message of <rpm-devel>

popt 1.14 link failure on darwin

From: Anders F Björklund <afb@rpm5.org>
Date: Mon 07 Apr 2008 - 21:34:38 CEST
Message-Id: <370C534A-7FDC-4561-AF0A-1F99F72E1C8A@rpm5.org>
Trying to upgrade to rpm 5.2 / popt 1.14, but:

checking for poptGetContext in -lpopt... no
checking whether to build with POPT library... no

This is because it misses a libtool dependency*:

# The name of the static archive.
old_library='libpopt.a'

# Libraries that this one depends upon.
dependency_libs=' /usr/lib/libiconv.la'

So it ends up with a missing symbol when linking:

/usr/bin/ld: Undefined symbols:
_libiconv
_libiconv_close
_libiconv_open

Is it possible to have RPM_CHECK_LIB use libtool,
when it is looking for such external libraries ?

--anders

* PS. this dependency is new for popt 1.14,
       as popt 1.13 didn't depend on libiconv.
Received on Mon Apr 7 21:34:38 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.