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

Armin Burger armin.burger at gmx.net
Mon Jan 2 09:39:56 EST 2012


thanks again Thomas,

with this setting for the apsx2 it compiled and installed fine.

Armin

On 02/01/2012 15:18, thomas bonfort wrote:
> hmm, the apxs2 command does seem to need the -Wl flag passed to it
>
> --
> thomas
>
> On Mon, Jan 2, 2012 at 14:41, Armin Burger<armin.burger at gmx.net>  wrote:
>> Thomas
>>
>> thanks a lot for the quick help.
>>
>> OS is Ubuntu 10.04 64bit, libtool version is 2.2.6b.
>>
>> I made the changes as you suggested and compilation continued. But then
>> another error appeared:
>>
>> /usr/bin/apxs2 -Wc," -DUSE_MEMCACHE -DUSE_PCRE -DUSE_OGR -DUSE_GEOS
>> -DUSE_SQLITE -DUSE_PIXMAN    -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread
>> -O2 -Wall -fPIC -DHAVE_SYMLINK -DNDEBUG  -I../include -I/usr/include/apr-1.0
>>   -I/usr/include/apr-1.0 -I/usr/include/pixman-1  " -lcurl -lpng -ljpeg
>> /usr/lib/libapr-1.la /usr/lib/libaprutil-1.la -lpcre -lsqlite3 -lpixman-1
>>     -c mod_mapcache.c libmapcache.la
>> Usage: apxs -g [-S<var>=<val>] -n<modname>
>>        apxs -q [-S<var>=<val>]<query>  ...
>>        apxs -c [-S<var>=<val>] [-o<dsofile>] [-D<name>[=<value>]]
>>                [-I<incdir>] [-L<libdir>] [-l<libname>] [-Wc,<flags>]
>>                [-Wl,<flags>] [-p]<files>  ...
>>        apxs -i [-S<var>=<val>] [-a] [-A] [-n<modname>]<dsofile>  ...
>>        apxs -e [-S<var>=<val>] [-a] [-A] [-n<modname>]<dsofile>  ...
>> make[1]: *** [mod_mapcache.o] Error 1
>>
>>
>> Armin
>>
>>
>>
>>
>> On 02/01/2012 14:22, thomas bonfort wrote:
>>>
>>> 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
>>>
>>
>


More information about the mapserver-users mailing list