[csw-maintainers] serf - how to correctly depend on libapr ?

Mike Watters mwatters at opencsw.org
Sun May 17 06:55:09 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi rupert,
rupert THURNER wrote:
> 
> gmake[2]: Entering directory
> `/home/rupert/mgar/pkg/libserf/trunk/work/build-isa-i386/serf-0.3.0'
> /opt/csw/apache2/share/build/libtool --silent --mode=link
> /opt/studio/SOS11/SUNWspro/bin/cc -xarch=386 -L/opt/csw/lib
> -L/opt/csw/bdb44/lib -static -o test/serf_get libserf-0.la
> test/serf_get.lo /opt/csw/apache2/lib/libaprutil-1.la -lldap -llber
> -ldb-4.4 -lexpat -liconv  -lapr-1 -luuid -lsendfile -lrt -lsocket
> -lpthread -ldl -lm  -lz -lssl -lcrypto
> ld: fatal: library -lapr-1: not found
> ld: fatal: File processing errors. No output written to test/serf_get
> gmake[2]: *** [test/serf_get] Error 1
> gmake[2]: Leaving directory
> `/home/rupert/mgar/pkg/libserf/trunk/work/build-isa-i386/serf-0.3.0'
> gmake[1]: *** [build-work/build-isa-i386/serf-0.3.0/Makefile] Error 2
> gmake[1]: Leaving directory `/home/rupert/mgar/pkg/libserf/trunk'
> gmake: *** [merge-isa-i386] Error 2
> 
> what can this be?

I tried to build it on build8s and found the problem.  ;)
there was a bug with the fixlibtool script.  and a bug in gar
that was forcing it to run for every build with mGar.
I have corrected both the mGar bug fixed in r4909

and the fixlibtool bug is fixed in r4910

make the changes below to your recipe and update your version of gar
then run make clean && make test

# UPSTREAM_MASTER_SITES =

DEPENDS = server/apache2
STRIP_LIBTOOL = 1

CONFIGURE_ARGS = $(DIRPATHS)
CONFIGURE_ARGS += --with-apr=$(prefix)/apache2/bin/apr-config
CONFIGURE_ARGS += --with-apr-util=$(prefix)/apache2/bin/apu-config

TEST_TARGET = check
include gar/category.mk


- --
Thanks,
Mike

"Any intelligent fool can make things bigger, more complex,
and more violent.  It takes a touch of genius -- and a lot of courage --
to move in the opposite direction."

* Albert Einstein 1879 - 1955
    US German-born Theoretical Physicist
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkoPmK0ACgkQLrhmsXMSLxd6bwCfcOi6GHN/6YtiR4VqoFW0oSlK
GagAnjRDWg9s6Pxi+QvXxd6yX64rxgER
=Dukp
-----END PGP SIGNATURE-----



More information about the maintainers mailing list