On 2011/07/04 18:00, Amit Kulkarni wrote:
> > watch out with # when you escape the newlines; this doesn't do what
> > you're expecting. test with e.g. 'make show=CONFIGURE_ENV'.
> 
> Ahh... thanks for the clue. Lesson learned, never again will I use #,
> just delete it.

make show=XXX is a good lesson too. :-)

> David, sorry for #2
> 
> Stuart,
> it builds much further but ld complains.
> 
> cc -shared -fPIC -DPIC -o .libs/librpm.so.2.0 -std=gnu99 -O2 -pipe
> -fPIC -DPIC -D_REENTRANT -Wall -Wpointer-arith -Wmissing-prototypes
> -Wno-char-subscripts -fno-strict-aliasing -fstack-protector
> backend/.libs/dbconfig.o backend/.libs/db3.o .libs/headerutil.o
> .libs/header.o .libs/headerfmt.o .libs/rpmdb.o .libs/fprint.o
> .libs/tagname.o .libs/rpmtd.o .libs/cpio.o .libs/depends.o
> .libs/order.o .libs/formats.o .libs/tagexts.o .libs/fsm.o
> .libs/manifest.o .libs/misc.o .libs/package.o .libs/poptALL.o
> .libs/poptI.o .libs/poptQV.o .libs/psm.o .libs/query.o .libs/rpmal.o
> .libs/rpmchecksig.o .libs/rpmds.o .libs/rpmfi.o .libs/rpmgi.o
> .libs/rpminstall.o .libs/rpmlead.o .libs/rpmps.o .libs/rpmprob.o
> .libs/rpmrc.o .libs/rpmte.o .libs/rpmts.o .libs/rpmfs.o
> .libs/rpmvercmp.o .libs/signature.o .libs/transaction.o .libs/verify.o
> .libs/rpmlock.o .libs/rpmscript.o .libs/legacy.o .libs/merge.o
> .libs/rpmliblua.o .libs/rpmchroot.o .libs/rpmplugins.o .libs/rpmug.o
> -Wl,-whole-archive /usr/local/lib/libintl.a /usr/local/lib/libiconv.a
                     ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^

This should use -lintl -liconv, rather than trying to link static libs
against this otherwise dynamically-linked program. Look for LTLIBICONV /
LTLIBINTL in ports patches for hacks around it, or a better fix is for
upstream to update to the macros from gettext 0.17 or newer.

> -lbz2 -lz -llzma -llua -lm -lpopt -ldb -lpthread
                                         ^^^^^^^^^

This should be -pthread. Recent x11/vlc/patch-configure_ac has a good
check for this that might be usable.

> *** Error code 2
> 
> Stop in /home/amit/obsd/ports/pobj/rpm-4.9.0/build-amd64/lib (line 635
> of Makefile).

Reply via email to