[mapserver-users] cannot build svn mapserver with php-mapscript SOLVED
Steve.Toutant at inspq.qc.ca
Steve.Toutant at inspq.qc.ca
Thu May 17 09:59:32 PDT 2012
After hours of searching I found the problem a few minutes after I post on
the mailing list.
Thanks to these guys
http://www.linuxquestions.org/questions/linux-software-2/ubuntu-amd64-x86_64-version-7-04-issues-with-compiling-php-from-source-578103/
The problem was a bad symbolic link.
lrwxrwxrwx 1 root root 16 janv. 4 08:47 libxml2.so ->
libxml2.so.2.7.1
lrwxrwxrwx 1 root root 16 déc. 22 08:55 libxml2.so.2 ->
libxml2.so.2.7.6
libxml2.so.2.7.1 didn't exist
I defined a new symbolic link so now libxml2.so point on libxml2.so.2.7.6
I just built and tested php-mapscript and it is working
Steve
Jeff McKenna <jmckenna at gatewaygeomatics.com>@lists.osgeo.org
Envoyé par : mapserver-users-bounces at lists.osgeo.org
2012-05-17 12:44
A
mapserver <mapserver-users at lists.osgeo.org>
cc
Objet
Re: [mapserver-users] cannot build svn mapserver with php-mapscript
On 12-05-17 12:17 PM, Steve.Toutant at inspq.qc.ca wrote:
>
> Hi,
> I successfully built mapserver (svn version) on SLES 11 SP1, but cannot
> compile with php-mapscript. I get this error
>
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld:
> /usr/lib64/libxml2.a(error.o): relocation R_X86_64_32 against
> `.rodata.str1.1' can not be used when making a shared object; recompile
> with -fPIC
> /usr/lib64/libxml2.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make[1]: *** [php_mapscript.so] Erreur 1
>
> Here is the /configure options I used, and below the mapserver config I
get
> Someone can help?
Hello Steve,
I am not on that platform, but I am guessing there is a problem with
your libxml2 binaries. I would try something like:
yum install libxml2-devel
(or whatever your the package command is in your environment)
Hopefully others with comment with more details for you.
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120517/2423a135/attachment.htm>
More information about the MapServer-users
mailing list