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 <jmcke...@gatewaygeomatics.com>@lists.osgeo.org Envoyé par : mapserver-users-boun...@lists.osgeo.org 2012-05-17 12:44 A mapserver <mapserver-users@lists.osgeo.org> cc Objet Re: [mapserver-users] cannot build svn mapserver with php-mapscript On 12-05-17 12:17 PM, steve.tout...@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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users