[csw-maintainers] libtool: link: `/opt/csw/bdb44/lib/libdb-4.4.la' is not a valid libtool archive (there is only .so ...)

Mike Watters mwatters at opencsw.org
Mon Jun 29 20:03:02 CEST 2009


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

rupert THURNER wrote:

> 
> how could one avoid that?
> 

the main issue is the Makefile generated by configre is using "libtool" from
/opt/csw/apache2/share/build/libtool which does "NOT" get modified by my strip.

Here is a patch to the Makefile currently in svn that will allow you to build
and test successfully libserf


if you cut and paste, please take care to watch for wrapping I have Thunderbird
configured to wrap at 100 characters.

$ svn diff Makefile
Index: Makefile
===================================================================
- --- Makefile    (revision 5414)
+++ Makefile    (working copy)
@@ -23,13 +23,19 @@
 # UPSTREAM_MASTER_SITES =

 DEPENDS = server/apache2rt
- -STRIP_LIBTOOL = 1

 CONFIGURE_ARGS = $(DIRPATHS)
- -CONFIGURE_ARGS += --with-apr=$(prefix)/apache2
- -CONFIGURE_ARGS += --with-apr-util=$(prefix)/apache2
- -#CONFIGURE_ARGS += --with-apr=$(prefix)/apache2/bin/apr-config
- -#CONFIGURE_ARGS += --with-apr-util=$(prefix)/apache2/bin/apu-config
+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
+
+EXTRA_LDFLAGS = -R/opt/csw/bdb44/lib
+APR_LIBTOOL = $(shell /opt/csw/apache2/bin/apr-config --apr-libtool)
+post-configure-modulated:
+       gcp $(APR_LIBTOOL) $(WORKSRC)
+       perl -i -pne 's|$(APR_LIBTOOL)|$(abspath $(WORKSRC)/libtool)|' \
+               $(WORKSRC)/Makefile
+       $(GARBIN)/fixlibtool $(WORKSRC)
+       @$(MAKECOOKIE)



- --

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 (SunOS)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpJAdUACgkQLrhmsXMSLxeBXQCgmTxH6hTrxyY2TrT6eSMj+S4t
c+4Anj0nU/L6fyoBYYX4VqFjMCGd4iRo
=qeGL
-----END PGP SIGNATURE-----



More information about the maintainers mailing list