[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Cannot link to -lshp on armel: hidden symbol '__aeabi_dcmpgt'



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

tags 497160 + patch
thanks

The problem is that shapelib throws away a seemingly good libtool linked library and replaces
it with something hacks in together almost right.

This fix should make gpsmanshp and xastir runnable on armel, would this be acceptable for lenny?

diff -urN old/shapelib-1.2.10/Makefile shapelib-1.2.10/Makefile
- --- old/shapelib-1.2.10/Makefile        2003-04-07 13:03:22.000000000 +0000
+++ shapelib-1.2.10/Makefile    2008-11-04 12:23:06.000000000 +0000
@@ -113,18 +113,18 @@
        gcc -DPACKAGE=\"libshp\" -DVERSION=\"$(SHPLIB_VERSION)\" -DSTDC_HEADERS=1 -I. -I. -I/usr/local/include -g -O2 -c  -fPIC -DPIC dbfopen.c -o .libs/dbfopen.lo
        gcc -DPACKAGE=\"libshp\" -DVERSION=\"$(SHPLIB_VERSION)\" -DSTDC_HEADERS=1 -I. -I. -I/usr/local/include -g -O2 -c dbfopen.c -o dbfopen.o >/dev/null 2>&1
        mv -f .libs/dbfopen.lo dbfopen.lo
- -       /bin/sh ./libtool --mode=link gcc  -g -O2  -o libshp.la -rpath /usr/local/lib -version-info 1:1:0 shpopen.lo shptree.lo dbfopen.lo
- -       rm -fr .libs/libshp.la .libs/libshp.* .libs/libshp.*
- -       rm -fr .libs/libshp.lax
- -       mkdir .libs/libshp.lax
- -       /usr/bin/ld -G -h libshp.so.1 -o .libs/libshp.so.$(LIBSHP_VERSION)  shpopen.lo shptree.lo dbfopen.lo  -lc
- -
- -       (cd .libs && rm -f libshp.so.1 && ln -s libshp.so.$(LIBSHP_VERSION) libshp.so.1)
- -       (cd .libs && rm -f libshp.so && ln -s libshp.so.$(LIBSHP_VERSION) libshp.so)
- -       ar cru .libs/libshp.a  shpopen.o shptree.o dbfopen.o
- -       ranlib .libs/libshp.a
- -       rm -fr .libs/libshp.lax
- -       (cd .libs && rm -f libshp.la && ln -s ../libshp.la libshp.la)
+       /bin/sh ./libtool --mode=link gcc  -g -O2  -o libshp.la -rpath /usr/lib -version-info 1:1:0 shpopen.lo shptree.lo dbfopen.lo
+#      rm -fr .libs/libshp.la .libs/libshp.* .libs/libshp.*
+#      rm -fr .libs/libshp.lax
+#      mkdir .libs/libshp.lax
+#      /usr/bin/ld -G -h libshp.so.1 -o .libs/libshp.so.$(LIBSHP_VERSION)  shpopen.lo shptree.lo dbfopen.loa -lc
+#
+#      (cd .libs && rm -f libshp.so.1 && ln -s libshp.so.$(LIBSHP_VERSION) libshp.so.1)
+#      (cd .libs && rm -f libshp.so && ln -s libshp.so.$(LIBSHP_VERSION) libshp.so)
+#      ar cru .libs/libshp.a  shpopen.o shptree.o dbfopen.o
+#      ranlib .libs/libshp.a
+#      rm -fr .libs/libshp.lax
+#      (cd .libs && rm -f libshp.la && ln -s ../libshp.la libshp.la)

 lib_install:
        cp .libs/libshp.la .libs/libshp.lai
Binary files old/shapelib-1.2.10/shprewind and shapelib-1.2.10/shprewind differ


- -- 
"rm -rf" only sounds scary if you don't have backups
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFJEERAibPvMsrqrwMRAvyJAJwPyiNvs8a7CJTrhG7RDM/7xWE4mQCgpX/4
IMbOmZ+JFcGlD2wfh/QLHwg=
=itZG
-----END PGP SIGNATURE-----


Reply to: