[mapserver-users] MapCache compilation error; ld cannot find libraries

thomas bonfort thomas.bonfort at gmail.com
Mon Jan 2 08:22:50 EST 2012


There have been some extensive changes in the build process over the
holidays. Please try editing src/Makefile, and replace the two
occurences of -Wl,"$(LIBS)" by $(LIBS).

If that fixes it, can you post the output of
/usr/share/apr-1.0/build/libtool --version, and your OS distribution
and version

--
thomas

On Mon, Jan 2, 2012 at 14:13, Armin Burger <armin.burger at gmx.net> wrote:
> Hi all
>
> I tried to compile MapCache from Mapserver trunk and get the error
>
> /usr/share/apr-1.0/build/libtool --mode=link --tag CC gcc -rpath
> /usr/local/lib ./lock.lo ./service_ve.lo ./source.lo ./tileset.lo ./core.lo
> ./image.lo ./imageio_jpeg.lo ./http.lo ./imageio_png.lo ./service_wms.lo
> ./grid.lo ./source_mapserver.lo ./service_wmts.lo ./ezxml.lo
> ./cache_memcache.lo ./configuration.lo ./source_gdal.lo ./dimension.lo
> ./service_kml.lo ./cache_disk.lo ./imageio.lo ./util.lo ./services.lo
> ./axisorder.lo ./service_tms.lo ./strptime.lo ./service_demo.lo
> ./configuration_xml.lo ./source_wms.lo ./cache_tiff.lo ./cache_sqlite.lo
> ./image_error.lo ./buffer.lo ./imageio_mixed.lo -Wl,"-lcurl -lpng -ljpeg
> /usr/lib/libapr-1.la /usr/lib/libaprutil-1.la -lpcre -lsqlite3 -lpixman-1
>   "  -o libmapcache.la
> libtool: link: x86_64-linux-gnu-gcc -shared  ./.libs/lock.o
> ./.libs/service_ve.o ./.libs/source.o ./.libs/tileset.o ./.libs/core.o
> ./.libs/image.o ./.libs/imageio_jpeg.o ./.libs/http.o ./.libs/imageio_png.o
> ./.libs/service_wms.o ./.libs/grid.o ./.libs/source_mapserver.o
> ./.libs/service_wmts.o ./.libs/ezxml.o ./.libs/cache_memcache.o
> ./.libs/configuration.o ./.libs/source_gdal.o ./.libs/dimension.o
> ./.libs/service_kml.o ./.libs/cache_disk.o ./.libs/imageio.o ./.libs/util.o
> ./.libs/services.o ./.libs/axisorder.o ./.libs/service_tms.o
> ./.libs/strptime.o ./.libs/service_demo.o ./.libs/configuration_xml.o
> ./.libs/source_wms.o ./.libs/cache_tiff.o ./.libs/cache_sqlite.o
> ./.libs/image_error.o ./.libs/buffer.o ./.libs/imageio_mixed.o
>  -Wl,"-lcurl -lpng -ljpeg /usr/lib/libapr-1.la /usr/lib/libaprutil-1.la
> -lpcre -lsqlite3 -lpixman-1     "   -Wl,-soname -Wl,libmapcache.so.0 -o
> .libs/libmapcache.so.0.0.0
> /usr/bin/ld: cannot find -lcurl -lpng -ljpeg /usr/lib/libapr-1.la
> /usr/lib/libaprutil-1.la -lpcre -lsqlite3 -lpixman-1
> collect2: ld returned 1 exit status
> make[1]: *** [libmapcache.la] Error 1
>
>
> all the libraries mentioned after "/usr/bin/ld: cannot find..." are
> installed and also found from the "configure" script of MapCache, see
>  http://dpaste.com/680244/
>
> They are also listed in the ldconfig cache, so I don't have a clue what's
> going wrong.
>
> Any ideas?
>
> Armin
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users


More information about the mapserver-users mailing list